/* ============================================
   VOND VATCH - CSS Variables & Base
   ============================================ */

:root {
  /* ----------------------------------------
     Colors
  ---------------------------------------- */
  --brown-dark:    #564123;
  --gold:          #EACC8A;
  --gold-dark:     #BD8D25;
  --gold-deep:     #AA790C;
  --brown-darkest: #302828;
  --sage:          #B6C9A0;
  --sage-dark:     #95AD79;
  --cream:         #F3EDE4;
  --peach:         #F0C3A1;
  --peach-light:   #FDE8E3;
  --cream-light:   #FFFBED;
  --gold-bright:   #EFBA46;
  --brown-mid:     #BA815C;
  --brown-warm:    #AB602E;
  --green:         #95AD79;
  --gray-light:    #E6E6E6;
  --gray:          #AAAAAA;
  --black:         #000000;

  /* ----------------------------------------
     Typography
  ----------------------------------------
     大見出し       : Abril Fatface
     小見出し・ナビ : Abhaya Libre (400)
     一部見出し     : Abhaya Libre ExtraBold (800)
     本文           : Noto Sans JP
  ---------------------------------------- */

  --font-display: 'Abril Fatface', serif;
  --font-nav:     'Abhaya Libre', serif;
  --font-body:    'Noto Sans JP', sans-serif;

  /* Spacing */
  --header-height-pc: 72px;
  --header-height-sp: 56px;
  --max-width:        1200px;
  --side-padding-pc:  200px;
  --side-padding-sp:  20px;

  /* Transition */
  --transition: 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--cream-light);
  color: var(--brown-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page-wrap {
  flex: 1;
}

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

ul {
  list-style: none;
}

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

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid var(--gold);
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow var(--transition), border-color 0.4s ease;
}

/* TODO: REMOVE — header--light クラスによる色切り替え（JS・PHPのdata属性とセット）
.site-header.header--light {
  border-bottom-color: var(--brown-dark);
}

.site-header.header--light .nav-list a {
  color: #76a17b;
}

.site-header.header--light .nav-list a:hover {
  color: var(--brown-warm);
}
*/

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(48, 40, 40, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
  height: var(--header-height-pc);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* --- ロゴ --- */
.header-logo {
  width: 180px;
  min-width: 140px;
  height: auto;
  display: block;
  flex-shrink: 1;
  transition: filter 0.2s ease;
}

@media (hover: hover) {
  .header-logo:hover {
    filter: brightness(0.85);
  }
}

@media (hover: none) {
  .header-logo:active {
    filter: brightness(0.85);
  }
}

.header-logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* --- PCナビ --- */
.header-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  font-family: var(--font-nav);  /* Abhaya Libre */
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brown-dark);
  transition: width var(--transition);
}

@media (hover: hover) {
  .nav-list a:hover {
    color: var(--brown-warm);
  }

  .nav-list a:hover::after {
    width: 100%;
  }
}

@media (hover: none) {
  .nav-list a:active {
    color: var(--brown-warm);
  }

  .nav-list a:active::after {
    width: 100%;
  }
}

/* CONTACTだけ枠付き */
.nav-list .nav-contact {
  background-color: var(--brown-dark);
  padding: 5px 14px 4px;
  transition: background-color var(--transition), color var(--transition);
}

.nav-list .nav-contact::after {
  display: none;
}

@media (hover: hover) {
  .nav-list .nav-contact:hover {
    background-color: var(--brown-darkest);
  }
}

@media (hover: none) {
  .nav-list .nav-contact:active {
    background-color: var(--brown-darkest);
  }
}

/* --- ヘッダーSNS（PCのみ） --- */
.header-sns {
  display: flex;
  align-items: center;
}

.header-sns a {
  display: flex;
  color: var(--brown-dark);
  transition: color var(--transition);
}

@media (hover: hover) {
  .header-sns a:hover {
    color: var(--brown-warm);
  }
}

@media (hover: none) {
  .header-sns a:active {
    color: var(--brown-warm);
  }
}

/* --- ハンバーガー（SPのみ） --- */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.hamburger-img--close {
  display: none;
}

/* ============================================
   SP ドロワーナビ（フルスクリーン）
   ============================================ */

.sp-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brown-dark);
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(171, 96, 46, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(48, 40, 40, 0.45) 0%, transparent 50%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  overflow-y: auto;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.sp-nav.is-open {
  transform: translateX(0);
}

/* ドロワー内ヘッダー行（ロゴ＋✕ボタン） */
.sp-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-padding-sp);
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-height-pc) + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(234, 204, 138, 0.2);
  flex-shrink: 0;
}

.sp-nav-logo {
  display: flex;
  align-items: center;
}

.sp-nav-logo__img {
  width: 140px;
  height: auto;
  display: block;
}

.sp-nav-logo .logo-sub {
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: 8px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.sp-nav-logo .logo-main {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* 閉じるボタン */
.sp-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.sp-nav-close__img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

@media (hover: hover) {
  .sp-nav-close:hover {
    opacity: 0.65;
  }
}

@media (hover: none) {
  .sp-nav-close:active {
    opacity: 0.65;
  }
}

/* メニューリスト */
.sp-nav-list {
  display: flex;
  flex-direction: column;
  padding: 20px var(--side-padding-sp) 0;
  flex: 1;
}

.sp-nav-list li {
  border-bottom: 1px solid rgba(234, 204, 138, 0.18);
}

.sp-nav-list a {
  display: block;
  font-family: var(--font-nav);   /* Abhaya Libre */
  font-weight: 800;               /* ExtraBold */
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 18px 0;
  transition: color var(--transition);
}

@media (hover: hover) {
  .sp-nav-list a:hover {
    color: var(--gold-bright);
  }
}

@media (hover: none) {
  .sp-nav-list a:active {
    color: var(--gold-bright);
  }
}

/* 項目が順番にフェードイン */
.sp-nav.is-open .sp-nav-list li {
  animation: navItemIn 0.45s ease forwards;
  opacity: 0;
}
.sp-nav.is-open .sp-nav-list li:nth-child(1) { animation-delay: 0.10s; }
.sp-nav.is-open .sp-nav-list li:nth-child(2) { animation-delay: 0.16s; }
.sp-nav.is-open .sp-nav-list li:nth-child(3) { animation-delay: 0.22s; }
.sp-nav.is-open .sp-nav-list li:nth-child(4) { animation-delay: 0.28s; }
.sp-nav.is-open .sp-nav-list li:nth-child(5) { animation-delay: 0.34s; }
.sp-nav.is-open .sp-nav-list li:nth-child(6) { animation-delay: 0.40s; }
.sp-nav.is-open .sp-nav-list li:nth-child(7) { animation-delay: 0.46s; }

@keyframes navItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sp-nav-sns {
  padding: 28px var(--side-padding-sp) 40px;
}

.sp-nav-sns a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(234, 204, 138, 0.6);
  transition: color var(--transition);
}

@media (hover: hover) {
  .sp-nav-sns a:hover {
    color: var(--gold);
  }
}

@media (hover: none) {
  .sp-nav-sns a:active {
    color: var(--gold);
  }
}

/* オーバーレイ：フルスクリーンなので不要 */
.sp-nav-overlay {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--brown-dark);
  color: var(--cream-light);
  padding: 56px var(--side-padding-pc) 36px;
}

/* 水彩テクスチャ */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/suisai.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* --- フッターロゴ --- */
.footer-logo a {
  display: inline-block;
}

.footer-logo-img {
  width: 200px;
  height: auto;
  display: block;
}

/* --- フッターナビ --- */
.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-nav-list a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: rgba(255, 251, 237, 0.6);
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-nav-list a:hover {
    color: var(--gold);
  }
}

@media (hover: none) {
  .footer-nav-list a:active {
    color: var(--gold);
  }
}

/* --- フッターSNS --- */
.footer-sns {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-sns a {
  display: flex;
  opacity: 0.7;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  .footer-sns a:hover {
    opacity: 1;
  }
}

@media (hover: none) {
  .footer-sns a:active {
    opacity: 1;
  }
}

.footer-sns__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* --- コピーライト --- */
.footer-copy {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: rgba(255, 251, 237, 0.3);
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE - タブレット（〜960px）
   PCナビが収まらない幅ではハンバーガーに切り替え
   ============================================ */

@media (max-width: 960px) {

  .header-nav,
  .header-sns {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ============================================
   RESPONSIVE - SP（〜768px）
   ============================================ */

@media (max-width: 768px) {

  /* 試験的：1rem = 14px（すぐ戻す可能性あり） */
  html {
    font-size: 14px;
  }

  .header-inner {
    padding: 0 var(--side-padding-sp);
    height: var(--header-height-pc);
    gap: 0;
  }

  .header-logo {
    width: 180px;
  }

  .header-logo .logo-sub {
    font-size: 8px;
  }

  .header-logo .logo-main {
    font-size: 17px;
  }

  .header-nav,
  .header-sns {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .site-footer {
    padding: 48px var(--side-padding-sp) 28px;
  }

  .footer-nav-list {
    gap: 8px 16px;
  }
}


/* ============================================
   PAGE HERO（共通）
   ============================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.page-hero__img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  display: block;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: var(--header-height-pc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-indent: 0.35em;
  line-height: 1;
  color: var(--gold);
}

@media (max-width: 768px) {
  .page-hero {
    height: 160px;
  }

  .page-hero__content {
    padding-top: var(--header-height-sp);
  }

  .page-hero__title {
    font-size: 24px;
  }
}
