/* ========================================
   EnSPA & WELLNESS - Top Page Styles
   Mobile-first (SP版)
   ======================================== */

:root {
  --color-primary: #542f00;
  --color-text: #3f2806; /* Figma 本文 */
  --color-border: #d5c3ac;
  --color-bg-beige: #ebe1d4;
  --color-accent: #8e5b10;
  --color-gray: #7a7a7a;
  --color-white: #ffffff;
  --header-height: 60px;
  --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-sans: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  --font-yu-gothic: "Yu Gothic", "YuGothic", sans-serif;
  --font-yu-mincho: "Yu Mincho", "YuMincho", serif;
  --font-zen: "Zen Kaku Gothic New", sans-serif;
  --site-width-pc: 600px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site {
  width: 100%;
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 11px;
}

.header__logo img {
  height: 13px;
  width: auto;
}

.header__book {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 1px;
  border-bottom: 1px solid var(--color-text);
  margin-left: auto;
  margin-right: 12px;
}

.header__book span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.header__flag {
  flex-shrink: 0;
}

.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 28px;
  flex-shrink: 0;
}

.header__menu-icon--close {
  display: none;
}

.header__menu-btn.is-open .header__menu-icon--open {
  display: none;
}

.header__menu-btn.is-open .header__menu-icon--close {
  display: block;
}

/* ========================================
   Nav Overlay
   ======================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(84, 47, 0, 0.85);
  padding: 16px 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.nav-overlay__social {
  display: flex;
  gap: 14px;
  margin-right: auto;
}

.nav-overlay__social img {
  width: 35px;
  height: 35px;
}

.nav-overlay__lang {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 1px;
  border-bottom: 1px solid var(--color-white);
  color: var(--color-white);
}

.nav-overlay .lang-switcher {
  display: none;
}

.lang-switcher {
  position: relative;
}

.lang-switcher__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 108px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: rgba(24, 20, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: left;
}

.lang-switcher__option:hover,
.lang-switcher__option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.nav-overlay__lang span,
.lang-switcher__option span {
  font-size: 12px;
  letter-spacing: 0.1em;
}

html.is-lang-en .nav-btn__ja {
  display: none;
}

.nav-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay__book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 5px 1px 8px;
  border-bottom: 0.5px solid var(--color-white);
  color: var(--color-white);
  font-family: var(--font-yu-gothic);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-yu-gothic);
  font-weight: 400;
}

.nav-overlay__list a {
  display: block;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-overlay__list li:last-child a {
  border-bottom: none;
  padding-bottom: 0;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding-top: var(--header-height);
}

.hero__slider {
  position: relative;
  width: 100%;
  height: 515px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero__slides,
.hero__logo,
.hero__dots {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__logo {
  place-self: center;
  z-index: 2;
  pointer-events: none;
}

.hero__logo img {
  width: 273px;
  height: auto;
}

.hero__dots {
  place-self: end center;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  transition: background 0.3s;
}

.hero__dot.is-active {
  background: var(--color-white);
}

/* ========================================
   Catchcopy
   ======================================== */

.catchcopy {
  width: 100%;
  padding: 25px 20px 0;
}

.catchcopy__text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 33px;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-text);
}

/* ========================================
   Global Guests
   ======================================== */

.global {
  width: 100%;
  padding: 40px 24px 0;
  text-align: center;
}

.global__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.global__text {
  font-size: 16px;
  line-height: 24.2px;
  color: var(--color-gray);
}

/* ========================================
   Nav Buttons
   ======================================== */

.nav-buttons {
  width: 100%;
  padding: 22px 25px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-yu-gothic);
  font-weight: 400;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.8;
}

.nav-btn__en {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

.nav-btn__ja {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.nav-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-btn--primary .nav-btn__en,
.nav-btn--primary .nav-btn__ja {
  color: var(--color-white);
}

/* ========================================
   School
   ======================================== */

.school {
  width: 100%;
  padding: 0 0 20px;
  background: var(--color-bg-beige);
}

.school__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--color-primary);
  padding: 40px 20px 32px;
}

.school__card {
  margin: 0 21px 40px;
  background: var(--color-white);
  overflow: hidden;
}

.school__image {
  width: 100%;
  aspect-ratio: 357 / 151;
  overflow: hidden;
}

.school__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.school__body {
  padding: 20px 24px 28px;
  text-align: center;
}

.school__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.school__text {
  font-size: 14px;
  line-height: 24.5px;
  color: var(--color-primary);
  text-align: justify;
  margin-bottom: 20px;
}

.school__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 318px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.3em;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.school__btn:hover {
  opacity: 0.85;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  position: relative;
  width: 100%;
  font-family: var(--font-yu-gothic);
  font-weight: 400;
}

.footer__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.footer__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 354px;
  height: 70px;
  background: var(--color-primary);
  border-radius: 100px;
  color: var(--color-white);
  margin-bottom: 48px;
  transition: opacity 0.2s;
}

.footer__book:hover {
  opacity: 0.85;
}

.footer__book-ja {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.3em;
  line-height: 1;
  margin-bottom: 4px;
}

.footer__book-en {
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.footer__logo {
  margin-bottom: 40px;
}

.footer__logo img {
  height: 13px;
  width: auto;
  margin: 0 auto;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 32px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__links a {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__social {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer__social img {
  width: 32px;
  height: 32px;
}

.footer__copyright {
  font-family: var(--font-zen);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  text-align: center;
}

/* ========================================
   Body scroll lock (menu open)
   ======================================== */

body.is-menu-open {
  overflow: hidden;
}

/* ========================================
   PC版
   ======================================== */

@media (min-width: 768px) {
  .site {
    width: 100%;
    max-width: none;
    background: transparent;
  }

  .header__inner {
    padding: 0 40px;
  }

  .hero__slider {
    height: 600px;
  }

  /* 背景はブラウザ幅いっぱい、コンテンツは600px中央 */
  .catchcopy,
  .global,
  .nav-buttons,
  .school {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      min(var(--site-width-pc), calc(100% - 50px))
      minmax(0, 1fr);
  }

  .catchcopy {
    background: var(--color-white);
    padding: 25px 0 0;
  }

  .catchcopy__text {
    grid-column: 2;
    padding: 0 20px;
  }

  .global {
    background: var(--color-white);
    padding: 40px 0 0;
    text-align: center;
  }

  .global__title,
  .global__text {
    grid-column: 2;
    padding: 0 24px;
  }

  .global__title {
    line-height: 1.03;
  }

  .global__title-br {
    display: none;
  }

  .nav-buttons {
    background: var(--color-white);
    padding: 22px 0 80px;
    gap: 12px;
  }

  .nav-btn {
    grid-column: 2;
    margin: 0 25px;
  }

  .school__heading,
  .school__card {
    grid-column: 2;
  }

  .school__heading {
    padding: 40px 20px 32px;
  }

  .school__card {
    margin: 0 0 40px;
  }

  .footer__inner {
    max-width: var(--site-width-pc);
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}
