/* ============================================================
   Mai Yoshikawa 公式サイト 共通スタイルシート
   ============================================================ */

:root {
  --gold: #9a7b2f;
  --gold-light: #c9a84c;
  --gold-pale: #e8d9a0;
  --cream: #f5f0e8;
  --dark: #1a1610;
  --text: #2c2416;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: 'Noto Serif JP', serif;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  padding: 1.4rem 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 22, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 123, 47, 0.2);
  transition: background 0.5s;
}

/* トップページのみナビを透明開始にしたい場合はbodyに .nav-transparent を付与 */
body.nav-transparent nav {
  background: transparent;
  border-bottom-color: transparent;
}
body.nav-transparent nav.scrolled {
  background: rgba(26, 22, 16, 0.92);
  border-bottom-color: rgba(154, 123, 47, 0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover, nav a.active {
  opacity: 1;
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ── ハンバーガーメニュー（モバイル） ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   下層ページ共通：シンプル見出しヘッダー（ヒーローなし）
   ============================================================ */
.page-content {
  padding-top: 50px;
}

.page-intro {
  padding: 5rem 6rem 2rem;
  text-align: center;
}

.page-label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.page-label::before,
.page-label::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(154, 123, 47, 0.4);
}

.page-lead {
  font-size: 0.88rem;
  line-height: 2.3;
  color: rgba(245, 240, 232, 0.65);
  font-weight: 300;
  letter-spacing: 0.06em;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   下層ページ用：パララックス型ヒーロー（写真背景バージョン）
   philosophy.html などで使用。profile.htmlのデザインを踏襲。
   ============================================================ */
.parallax-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.parallax-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.parallax-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 16, 8, 0.55) 0%,
    rgba(20, 16, 8, 0.35) 55%,
    rgba(20, 16, 8, 0.15) 100%
  );
}

.hero-spacer {
  height: 80vh;
}

.page-scroll {
  position: relative;
  z-index: 1;
  background: var(--dark);
}

.sub-body {
  background: var(--dark);
  padding: 4rem 6rem 8rem;
  min-height: 100vh;
}

.sub-label {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.sub-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.sub-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* 本文テキストの共通スタイル（philosophy / note / plan / lesson で共用） */
.prose {
  font-size: 0.88rem;
  line-height: 2.4;
  color: rgba(245, 240, 232, 0.68);
  font-weight: 300;
  letter-spacing: 0.06em;
  max-width: 680px;
}

.prose p + p {
  margin-top: 1.6rem;
}

/* ── 外部リンクボタン(note誘導などに使用) ── */
.btn-gold {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2.6rem;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  border: 1px solid rgba(154, 123, 47, 0.5);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ── セクション共通 ── */
.section {
  padding: 4rem 6rem 6rem;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.5rem;
}

.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: #0e0c08;
  padding: 2.5rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(154,123,47,0.15);
}

footer p {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.28);
}

/* ============================================================
   スマホ対応 (768px以下)
   ============================================================ */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.2rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-logo {
    display: block;
    font-size: 0.85rem;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(26, 22, 16, 0.97);
    backdrop-filter: blur(8px);
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    display: flex;
    max-height: 500px;
  }

  nav a {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(154, 123, 47, 0.15);
  }

  nav a:last-child { border-bottom: none; }

  .page-intro { padding: 6.5rem 1.8rem 1.5rem; }

  .section { padding: 3rem 1.8rem 4rem; }

  .sub-body { padding: 3rem 1.8rem 4rem; }

  .sub-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }

  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
