@font-face {
  font-family: "Noto Sans JP";
  src: url("/fonts/NotoSansJP-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0d2f66;
  --navy-dark: #0a1c40;
  --blue: #3576e0;
  --blue-light: #7fa6e8;
  --text: #1c2536;
  --text-muted: #48566d;
  --surface: #ffffff;
  --surface-soft: #f4f6fa;
  --border: #d8e2f0;
  --content-width: 1360px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface-soft);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #f0a13c;
  outline-offset: 4px;
}

::selection {
  color: var(--navy-dark);
  background: #cfe0ff;
}

[hidden] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e7ebf2;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 56px, var(--content-width));
  min-height: 82px;
  margin: 0 auto;
  gap: 16px;
}

.site-logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 44px;
}

.site-logo img {
  width: auto;
  height: clamp(44px, 3.4vw, 50px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
}

.site-nav > a,
.site-nav-services > button {
  color: #33415c;
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav > a:hover,
.site-nav-services > button:hover,
.site-nav-services > button[aria-expanded="true"] {
  color: var(--blue);
}

.site-nav > a > span,
.site-nav-services small {
  display: block;
  margin-top: 2px;
  color: #7186a6;
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 400;
}

.site-nav-services {
  position: relative;
}

.site-nav-services > button {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.site-nav-services small {
  font-family: inherit;
}

.site-nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

[data-service-menu-button][aria-expanded="true"] .site-nav-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.site-nav-service-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 20;
  width: 250px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(13, 45, 91, 0.18);
  transform: translateX(-50%);
}

.site-nav-service-panel > a {
  display: block;
  padding: 11px 14px;
  color: #233752;
  border-radius: 7px;
  font-size: clamp(12.5px, 0.95vw, 14px);
  font-weight: 600;
}

.site-nav-service-panel > a:hover,
.site-nav-service-panel > a:focus-visible {
  color: var(--blue);
  background: #f0f6ff;
}

.site-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.header-inquiry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  gap: 7px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 24px;
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 600;
  transition: background 0.2s ease;
}

.header-inquiry:hover {
  background: #174683;
}

.header-inquiry svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-button > span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-button > span:first-child {
  transform: translateY(-7px);
}

.menu-button > span:last-child {
  transform: translateY(7px);
}

.menu-button[aria-expanded="true"] > span:first-child {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] > span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  padding: 8px 20px 20px;
  border-top: 1px solid #e7ebf2;
}

.mobile-nav > a,
.mobile-nav-services > button {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 6px;
  color: #22304a;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f2f6;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  text-align: left;
}

.mobile-nav-services > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-nav-service-panel {
  padding: 4px 0 8px 18px;
  background: #f6f9fd;
}

.mobile-nav-service-panel > a {
  display: block;
  padding: 11px 12px;
  color: #334b6d;
  border-bottom: 1px solid #e7edf5;
  font-size: clamp(12.5px, 1vw, 15px);
  font-weight: 500;
}

.no-js .menu-button {
  display: none;
}

.no-js .mobile-nav[hidden] {
  display: block;
}

.no-js [data-service-menu-panel][hidden] {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 28px;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--navy);
}

.button-primary:hover {
  background: #174683;
}

.button-outline {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--navy);
}

.button-outline:hover {
  color: #ffffff;
  background: var(--navy);
}

.button-light {
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.button-outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-footer {
  padding: clamp(36px, 5vw, 56px) 28px 24px;
  color: #9fb6e0;
  background: var(--navy);
}

.site-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(300px, 1.08fr);
  align-items: stretch;
  gap: 18px;
  padding-bottom: 36px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-contact-grid > section {
  position: relative;
  padding: clamp(24px, 2.5vw, 34px);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.footer-contact-grid > section::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 2.5vw, 34px);
  width: 42px;
  height: 3px;
  background: var(--blue-light);
  content: "";
}

.footer-contact-grid h2,
.footer-links-grid h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 700;
}

.footer-contact-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(17px, 1.5vw, 21px);
}

.footer-office-label {
  margin: 0 0 14px;
  color: #85b8ff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(10px, 0.7vw, 11px);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-contact-grid address,
.footer-contact-grid p {
  margin: 0 0 12px;
  font-size: clamp(11.5px, 0.85vw, 13px);
  font-style: normal;
  line-height: 1.75;
}

.footer-contact-grid a {
  color: #c3d3ef;
}

.footer-contact-grid .footer-phone {
  display: inline-block;
  margin-bottom: 16px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.footer-contact-grid .footer-phone:hover {
  color: #85b8ff;
}

.footer-contact-grid > .footer-inquiry-card {
  color: #21324f;
  background: #f3f7ff;
  border-color: transparent;
}

.footer-contact-grid .footer-inquiry-card h2 {
  color: var(--navy);
}

.footer-contact-grid .footer-inquiry-card > p:not(.footer-office-label) {
  color: #53627a;
}

.footer-contact-grid .footer-hours {
  padding-top: 14px;
  border-top: 1px solid #d5e0f0;
  font-weight: 700;
}

.footer-contact-grid .footer-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-contact-grid .footer-inquiry:hover {
  color: #ffffff;
  background: var(--navy);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links-grid h2 {
  margin-bottom: 14px;
}

.footer-links-grid a,
.footer-links-grid p {
  display: block;
  margin: 0 0 9px;
  color: #9fb6e0;
  font-size: clamp(12px, 0.9vw, 13px);
}

.footer-links-grid a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links-grid p {
  cursor: default;
}

.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand-row > img {
  width: auto;
  height: clamp(34px, 2.8vw, 40px);
  padding: 7px 10px;
  background: #ffffff;
  border-radius: 8px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-size: clamp(11px, 0.8vw, 12px);
}

.footer-copyright {
  margin: 0;
  padding-top: 20px;
  color: #9fb6e0;
  font-size: clamp(11.5px, 0.85vw, 13px);
  text-align: center;
}

@media (max-width: 1120px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header-inner {
    width: min(100% - 32px, var(--content-width));
    min-height: 66px;
  }

  .site-logo img {
    height: 37px;
  }

  .header-inquiry {
    min-height: 40px;
    padding: 8px 14px;
    font-size: clamp(12px, 0.9vw, 13px);
  }

  .footer-contact-grid,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact-grid {
    gap: 24px;
  }

  .footer-links-grid > section {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 460px) {
  .header-inquiry svg {
    display: none;
  }

  .header-inquiry {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
