:root {
  --color-navy: #07215c;
  --color-white: #ffffff;
  --color-text: #303339;
  --color-rule: #706c6b;
  --color-accent: #c27100;
  --color-brown-start: #53453c;
  --color-red: #a52821;
  --font-sans: "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Noto Serif JP", serif;
  --font-display: "Yuji Syuku", "Noto Serif JP", serif;
  --header-h: 80px;
  --bp-tablet: 1028px;
  --bp-mobile: 768px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 30px;
  font-size: 18px;
  line-height: 1.4;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

main {
  padding-top: var(--header-h);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s;
}

.site-header__inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 5vw, 96px);
  min-height: var(--header-h);
}

.site-header__nav-wrap {
  display: flex;
  gap: 4rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  font-size: 16px;
  line-height: 1.4;
}

.site-header__nav a {
  color: var(--color-white);
}
.site-header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--color-white);
}

.site-header__cta-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-navy);
}

.site-header__cta-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 28px;
  color: var(--color-navy);
}

.site-header__cta-phone img {
  flex-shrink: 0;
}

.site-header__sp-bar {
  display: none;
  align-items: center;
  gap: 12px;
}

.site-header__sp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-white);
}

.site-header__menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-header__menu-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transform-origin: 50% 50%;
}

/* 外側の線：開閉ともにゆるやかな ease、閉じるときは先に動き始める */
.site-header__menu-btn .site-header__menu-bar:nth-child(1),
.site-header__menu-btn .site-header__menu-bar:nth-child(3) {
  transition: transform 0.42s cubic-bezier(0.33, 1, 0.68, 1) 0.06s;
}

/* 中央線：短くフェード、閉じるときは線が揃ってから表示 */
.site-header__menu-btn .site-header__menu-bar:nth-child(2) {
  opacity: 1;
  transform: scaleX(1);
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
    transform 0.32s cubic-bezier(0.33, 1, 0.68, 1) 0.12s;
}

.site-header__menu-btn[aria-expanded="true"]
  .site-header__menu-bar:nth-child(1),
.site-header__menu-btn[aria-expanded="true"]
  .site-header__menu-bar:nth-child(3) {
  transition-delay: 0.1s;
}

.site-header__menu-btn[aria-expanded="true"]
  .site-header__menu-bar:nth-child(2) {
  transition-delay: 0s;
  opacity: 0;
  transform: scaleX(0.15);
}

.site-header__menu-btn[aria-expanded="true"]
  .site-header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__menu-btn[aria-expanded="true"]
  .site-header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-header__menu-bar {
    transition-duration: 0.01ms;
    transition-delay: 0s !important;
  }
}

.site-header__menu-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.nav-drawer:not([hidden]) {
  pointer-events: auto;
}

.nav-drawer__surface {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0s linear;
}

/* SP / タブレット：上からスライドイン */
@media (max-width: 1028px) {
  .nav-drawer__surface {
    transform: translate3d(0, -100%, 0);
    transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-drawer--open .nav-drawer__surface {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1028px) and (prefers-reduced-motion: reduce) {
  .nav-drawer__surface {
    transition-duration: 0.01ms;
  }
}

.nav-drawer__close {
  position: absolute;
  top: calc((var(--header-h) - 40px) / 2);
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-white);
}

.nav-drawer__close:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.nav-drawer__close-icon {
  display: block;
}

.nav-drawer__content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 56px;
  box-sizing: border-box;
  min-height: min(100%, 100vh);
  min-height: min(100%, 100dvh);
  padding: 72px 24px max(48px, env(safe-area-inset-bottom, 0px));
  padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 48px));
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
}

.nav-drawer__sp-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@supports not (justify-content: safe center) {
  .nav-drawer__content {
    justify-content: flex-start;
    padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 48px));
  }
}

.nav-drawer__logo {
  display: block;
  width: 70px;
  height: auto;
}

.nav-drawer__rule {
  display: block;
  width: 315px;
  max-width: calc(100vw - 48px);
  height: 1px;
  background: var(--color-white);
}

.nav-drawer__reserve {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 315px;
}

.nav-drawer__reserve-label {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-white);
}

.nav-drawer__phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 315px;
  color: var(--color-white);
}

.nav-drawer__phone-icon {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.nav-drawer__phone-num {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-white);
}

.nav-drawer__nav a {
  color: inherit;
  padding: 0;
  border: none;
}

body.nav-drawer-open {
  overflow: hidden;
}

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 72px 24px 32px;
}

.site-footer__inner {
  max-width: 1028px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  max-width: 234px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 96px;
  font-size: 16px;
}
.site-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  opacity: 0.9;
}

.to-top {
  position: fixed;
  right: clamp(12px, 3vw, 40px);
  bottom: 100px;
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  background-color: var(--color-white);
  transition:
    opacity 0.25s,
    transform 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 0;
  border: 2px solid var(--color-navy);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: hover) {
  .to-top:hover {
    transform: translateY(-2px);
  }
}

.to-top__icon {
  width: 70px;
  height: 70px;
}

.to-top__icon {
  width: 70px;
  height: 70px;
  color: var(--color-navy);
}

@media (max-width: 1028px) {
  .site-header__logo,
  .site-header__nav,
  .site-header__cta {
    display: none !important;
  }

  .site-header__sp-bar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }

  .site-header__inner {
    justify-content: flex-start;
    padding: 16px;
  }

  .site-footer__nav {
    gap: 16px 32px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .site-footer__brand > img {
    max-width: 182px;
  }

  .site-footer__nav {
    font-size: 12px;
    justify-content: flex-start;
  }

  .site-footer__copy {
    font-size: 10px;
  }

  .to-top {
    width: 56px;
    height: 56px;
    top: auto;
    bottom: 20px;
    right: 16px;
    border-radius: 28px;
    padding: 12px;
    border: 1px solid var(--color-navy);
  }

  .to-top__icon {
    width: 28px;
    height: 28px;
  }
}
