/* ============================================
   Regene Field Observatory — 共通スタイル
   ============================================ */
:root {
  --ink: #22271f;          /* 墨色に近い深緑 */
  --forest: #2f3d31;       /* 深い森の緑 */
  --moss: #5c6b56;         /* 苔 */
  --washi: #f6f3ec;        /* 和紙 */
  --washi-dark: #ece7db;
  --gold: #9c8a63;         /* 抑えた金茶 */
  --line: rgba(34, 39, 31, 0.16);
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--washi);
  line-height: 2;
  font-feature-settings: "palt";
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5vw;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.4; }
.brand .en {
  font-size: 15px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.brand .ja {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--moss);
}
.site-header.on-dark:not(.scrolled) .brand,
.site-header.on-dark:not(.scrolled) .nav a { color: var(--washi); }
.site-header.on-dark:not(.scrolled) .brand .ja { color: rgba(246,243,236,0.75); }

.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .cta {
  border: 1px solid currentColor;
  padding: 9px 22px;
  letter-spacing: 0.22em;
}
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--forest); color: var(--washi); border-color: var(--forest); }

/* 言語切替 */
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  background: none;
  border: none;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  transition: 0.3s;
  opacity: 0.65;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button.active {
  background: var(--forest);
  color: var(--washi);
  opacity: 1;
}
.site-header.on-dark:not(.scrolled) .lang-switch button.active {
  background: var(--washi);
  color: var(--forest);
}
html[lang="en"] body { letter-spacing: 0.02em; }
html[lang="en"] h1, html[lang="en"] h2.title, html[lang="en"] .hero h1 { letter-spacing: 0.04em; line-height: 1.5; }
html[lang="th"] body {
  font-family: "Noto Serif Thai", var(--serif);
  letter-spacing: 0;
  line-height: 2.1;
}
html[lang="th"] h1, html[lang="th"] h2.title, html[lang="th"] .hero h1 {
  letter-spacing: 0.02em;
  line-height: 1.7;
}

/* モバイルメニュー */
.menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 120;
}
.menu-btn span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  margin: 7px auto;
  transition: 0.3s;
}
.site-header.on-dark:not(.scrolled) .menu-btn span { background: var(--washi); }
body.menu-open .menu-btn span { background: var(--washi); }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav a { color: var(--washi); font-size: 16px; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--washi);
  background: linear-gradient(160deg, #2c3a2e 0%, #1d271f 55%, #141b15 100%);
  overflow: hidden;
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,27,21,0.78) 0%, rgba(20,27,21,0.15) 55%, rgba(20,27,21,0.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 6vw 12vh;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: rgba(246,243,236,0.8);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.12em;
}
.hero .hero-sub {
  margin-top: 28px;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.14em;
  color: rgba(246,243,236,0.85);
  max-width: 34em;
}
.scroll-hint {
  position: absolute;
  bottom: 30px; right: 6vw;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: rgba(246,243,236,0.7);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 46px;
  background: rgba(246,243,236,0.5);
  margin: 12px auto 0;
  animation: drop 2.4s ease infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 120px 6vw; }
.section.tight { padding: 90px 6vw; }
.section.dark {
  background: var(--forest);
  color: var(--washi);
}
.section.tinted { background: var(--washi-dark); }

.container { max-width: 1080px; margin: 0 auto; }
.container.narrow { max-width: 760px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--sans);
  font-weight: 500;
}
.section.dark .eyebrow { color: #c2b189; }

h2.title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}
.lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.4;
  max-width: 40em;
}
.lead + .lead { margin-top: 1.8em; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 写真プレースホルダー ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(92,107,86,0.55), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(34,39,31,0.6), transparent 55%),
    linear-gradient(150deg, #46523f 0%, #2c3a2e 60%, #1e2820 100%);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246,243,236,0.55);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-family: var(--sans);
  text-align: center;
  padding: 20px;
}
.photo.r-wide { aspect-ratio: 16 / 8; }
.photo.r-land { aspect-ratio: 4 / 3; }
.photo.r-port { aspect-ratio: 3 / 4; }

/* ---------- 2カラム ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.rev .col-text { order: 2; }
.split.rev .col-photo { order: 1; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .col-text { order: 1; }
  .split.rev .col-photo { order: 2; }
}

/* ---------- カード ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 70px;
}
.pillar {
  background: var(--washi);
  padding: 48px 30px;
}
.pillar .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.pillar h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 18px 0 14px;
  letter-spacing: 0.14em;
}
.pillar p { font-size: 13px; line-height: 2.1; color: #4a4f45; }
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- プログラム ---------- */
.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.program:last-of-type { border-bottom: none; }
.program .p-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 16px;
}
.program h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  line-height: 1.8;
}
.program p { font-size: 14px; line-height: 2.3; color: #3c4138; }
.program .meta {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--moss);
  line-height: 2.2;
}
@media (max-width: 820px) {
  .program { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
  .program.rev .col-photo { order: 2; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.26em;
  padding: 17px 54px;
  border: 1px solid var(--ink);
  transition: 0.35s ease;
  text-align: center;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: var(--washi); }
.btn.light { border-color: rgba(246,243,236,0.7); color: var(--washi); }
.btn.light:hover { background: var(--washi); color: var(--forest); border-color: var(--washi); }

/* ---------- 静かな引用帯 ---------- */
.quote-band {
  padding: 150px 6vw;
  background: var(--forest);
  color: var(--washi);
  text-align: center;
}
.quote-band .q {
  font-size: clamp(19px, 2.6vw, 28px);
  line-height: 2.4;
  letter-spacing: 0.16em;
  font-weight: 400;
}
.quote-band .q-note {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(246,243,236,0.65);
  font-family: var(--sans);
}

/* ---------- 定義リスト ---------- */
.info-list { border-top: 1px solid var(--line); margin-top: 30px; }
.info-list .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 26px 6px;
  border-bottom: 1px solid var(--line);
}
.info-list .k {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--moss);
  padding-top: 4px;
}
.info-list .v { font-size: 14px; line-height: 2.2; }
@media (max-width: 640px) {
  .info-list .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(246,243,236,0.85);
  padding: 90px 6vw 50px;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}
.site-footer .f-brand .en { font-size: 17px; letter-spacing: 0.24em; }
.site-footer .f-brand .ja {
  font-size: 10px; letter-spacing: 0.3em;
  color: rgba(246,243,236,0.5);
  margin-top: 8px;
}
.site-footer .f-brand p {
  margin-top: 26px;
  font-size: 12px;
  line-height: 2.3;
  color: rgba(246,243,236,0.6);
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(246,243,236,0.5);
  font-weight: 500;
  margin-bottom: 22px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 14px; }
.site-footer li a {
  font-size: 13px;
  letter-spacing: 0.12em;
  transition: color 0.3s;
}
.site-footer li a:hover { color: var(--gold); }
.copyright {
  max-width: 1080px;
  margin: 70px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(246,243,236,0.12);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(246,243,236,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- フェードイン ---------- */
.fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade.in { opacity: 1; transform: none; }

/* ---------- ページヘッダー（下層） ---------- */
.page-head {
  padding: 190px 6vw 90px;
  background: var(--forest);
  color: var(--washi);
}
.page-head .eyebrow { color: #c2b189; }
.page-head h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.8;
}
.page-head p {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(246,243,236,0.8);
  max-width: 36em;
  line-height: 2.3;
}
