@font-face {
  font-family: "Zen Maru Gothic";
  src:
    local("Zen Maru Gothic Regular"),
    url("/assets/fonts/ZenMaruGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src:
    local("Zen Maru Gothic Bold"),
    url("/assets/fonts/ZenMaruGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #0f172a;
  --bg: #ffffff;
  --brand: #0F3D8A;
}

/* box-sizing */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html {
  font-size: 16px;
  font-family:"Zen Maru Gothic","Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--fg);
  background-color: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  font-family: inherit;
}

img, svg, video { max-width: 100%; height: auto; }

/* anchor: default=none, hover=underline */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* common.settings */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

section {
  padding-block: 30px;
}

.section-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  color: var(--brand);
  letter-spacing: .2em;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  color: var(--brand);
  letter-spacing: .2em;
  margin-bottom: 20px;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-top {
  color: var(--brand);
  background-color: var(--bg);
}

.header-bottom {
  color: var(--bg);
  background-color: var(--brand);
  opacity: 0.95;
}

.header-infomation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 5px;
}

.header-logo {
  max-width: 60px;
  max-height: 60px;
}

.header-contact{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.2vw, 14px);
  max-width: 800px;
  flex-wrap: nowrap;
}

.header-contact-item {
  display: flex;
  align-items: center;
  column-gap: .4rem;
  min-width: 0;
}

.header-contact-item.link-tel {
  color: #000;
}

.header-contact-item i {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
}

.header-contact-item div {
  line-height: 1.3;
}

.header-contact-item span {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 2.1rem);
}

.header-contact-link a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
}

.header-contact-link a:hover {
  color: #FFF;
  background-color: var(--brand);
}

.header-contact-link .fa-line {
  color: #06C755;
}

.header-navigation {
  padding-block: 8px;
}

.header-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(.75rem, 2.5vw, 1.25rem);
  flex-wrap: wrap;
}

.header-navigation li {
  display: inline-block;
  padding: .35rem .2rem;
}

/* footer */
footer {
  width: 100%;
  color: var(--bg);
  background-color: var(--brand);  
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

.footer-infomation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 10px;
}

.footer-logo {
  max-width: 60px;
  max-height: 60px;
}

.footer-contact{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.2vw, 14px);
  max-width: 800px;
  flex-wrap: nowrap;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  column-gap: .4rem;
  min-width: 0;
}

.footer-contact-item i {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
}

.footer-contact-item div {
  line-height: 1.3;
}

.footer-contact-item span {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 2.1rem);
}

.footer-separator {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.45);
  margin: 12px 0 18px;
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: clamp(16px, 3vw, 32px);
  row-gap: 14px;
  padding-bottom: 16px;
  align-items: start;
}

.footer-nav-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-copyright {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: .8rem;
}

@media (max-width: 840px) {
  /* common.settings */
  section {
    padding-block: 15px;
  }

  /* header */
  .header-infomation {
    padding-block: 8px;
  }

  .header-logo {
    max-width: 40px;
    max-height: 40px;
  }

  .header-contact {
    gap: 12px;
    max-width: none;
    flex-wrap: nowrap;
  }

  .header-contact-item i {
    font-size: 24px;
  }

  .header-contact-text {
    display: none;
  }

  .header-contact-link a {
    padding: 0;
    border-radius: 0px;
  }

  .header-contact-link a:hover {
    color: var(--brand);
    background-color: var(--bg);
  }

  .header-navigation {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-block: 10px;
  }

  .header-navigation ul {
    flex-wrap: nowrap;
    gap: 14px;
    padding-inline: 12px;
  }

  .header-navigation li {
    padding: 0;
    flex: 0 0 auto;
  }

  .header-navigation a {
    display: block;
    padding: 12px 14px;
    min-height: 40px;
    line-height: 1.15;
    font-size: clamp(14px, 3.6vw, 16px);
    white-space: nowrap;
    letter-spacing: .02rem;
  }

  /* footer */
  .footer-infomation {
    padding-block: 8px;
  }

  .footer-logo {
    max-width: 40px;
    max-height: 40px;
  }

  .footer-contact {
    gap: 12px;
    max-width: none;
    flex-wrap: nowrap;
  }

  .footer-contact-item div {
    display: none;
  }

  .footer-contact-item i {
    font-size: 24px;
  }

  .footer-separator {
    margin: 10px 0 14px;
  }

  .footer-navigation {
    grid-template-columns: 1fr;
  }

  .footer-nav-col {
    display: contents;
  }
}