/* ═══════════════════════════════════════════════════════
   css/about.css
   UP47 Shimane — About Page
═══════════════════════════════════════════════════════ */


/* ───────────────────────────────────────
   BASE — parchment背景
─────────────────────────────────────── */
body {
  background: var(--parchment);
  color: var(--deep-night);
}

.nav-active {
  border-bottom: 1px solid rgba(200, 169, 110, 0.6);
  padding-bottom: 1px;
}


/* ───────────────────────────────────────
   1. HERO
─────────────────────────────────────── */
.about-hero {
  margin-top: 70px;
  padding: 72px 6vw 48px;
  background: var(--parchment);
}

.about-hero-inner {
  max-width: 860px;
}

/* H1 — EB Garamond / 大見出し */
.about-h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--deep-night);
  margin-bottom: 0.5rem;
}

.about-h1 em {
  font-style: italic;
  color: var(--dusk-purple);
}

.about-h1-sub {
  font-family: var(--jp);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(28, 24, 48, 0.5);
  margin-bottom: 2.4rem;
}

/* タブナビ */
.about-tabnav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(28, 24, 48, 0.12);
}

.about-tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(28, 24, 48, 0.45);
  text-decoration: none;
  padding: 0.6rem 1.4rem 0.6rem 0;
  margin-right: 1.4rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.about-tab:hover {
  color: var(--deep-night);
}

.about-tab.active {
  color: var(--deep-night);
  border-bottom-color: var(--dusk-purple);
}


/* ───────────────────────────────────────
   2. SECTION 共通
─────────────────────────────────────── */
.about-section {
  padding: 80px 0;
  background: var(--parchment);
}

.about-section--dark {
  background: #f0ede6;
}

.about-section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 6vw;
}

.about-section-inner--narrow {
  max-width: 760px;
}

/* セクション見出し */
.about-h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--deep-night);
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.about-h2--light {
  color: var(--deep-night);
}

.about-h2-jp {
  font-family: var(--jp);
  font-size: 0.75em;
  color: rgba(28, 24, 48, 0.45);
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-bottom: 2rem;
  display: block;
}

/* ルーラー */
.about-h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(28, 24, 48, 0.15), transparent);
  margin-top: 1.2rem;
  margin-bottom: 2.4rem;
}


/* ───────────────────────────────────────
   3. WHERE IS SHIMANE — 地図 + テキスト
─────────────────────────────────────── */
.where-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .where-grid {
    grid-template-columns: 1fr;
  }
}

.where-img-wrap {
  position: relative;
  overflow: hidden;
}

.where-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.where-text p {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.04em;
  color: rgba(28, 24, 48, 0.75);
  margin-bottom: 1.2em;
}

.where-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.where-list li {
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(28, 24, 48, 0.65);
  padding-left: 1em;
  position: relative;
}

.where-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--dusk-purple);
  opacity: 0.6;
}

.where-closing {
  font-style: italic;
  color: rgba(28, 24, 48, 0.5) !important;
  font-family: var(--serif) !important;
  font-size: 1rem !important;
}

/* 写真の下に続く本文 */
.where-text-below {
  margin-bottom: 3rem;
}

.where-text-below p {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 0.04em;
  color: rgba(28, 24, 48, 0.75);
  margin-bottom: 1.2em;
}

.where-text-below p:last-child {
  margin-bottom: 0;
}

/* 統計グリッド */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(28, 24, 48, 0.08);
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-item {
  padding: 1.6rem 1.4rem;
  border-right: 0px solid rgba(28, 24, 48, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.stat-item:nth-child(3n) {
  border-right: none;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--deep-night);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-unit {
  font-family: var(--jp);
  font-size: 0.55em;
  color: rgba(28, 24, 48, 0.5);
  margin-left: 0.1em;
}

.stat-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--dusk-purple);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-family: var(--jp);
  font-size: 11px;
  line-height: 1.7;
  color: rgba(28, 24, 48, 0.5);
}

/* 島根マップ 
.shimane-map {
  border: 1px solid rgba(28,24,48,0.08);
  padding: 1.8rem;
  background: rgba(255,255,255,0.4);
}*/

.map-img {
  width: 100%;
  object-fit: cover;
  display: block;
}


/* ───────────────────────────────────────
   4. PLANNER CTA
─────────────────────────────────────── */
.planner-cta {
  padding: 56px 6vw;
  background: rgba(245, 240, 233, 0.8);
  border-bottom: 1px solid rgba(28, 24, 48, 0.08);
  text-align: center;
  position: relative;
}

/* アイコンボタン行 */
.planner-cta-icons {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  margin-bottom: 2rem;
}

.cta-icon-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--jp);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(28, 24, 48, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-icon-btn:hover {
  color: var(--deep-night);
}

.cta-icon-btn svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.cta-icon-btn small {
  display: block;
  font-size: 10px;
  color: rgba(28, 24, 48, 0.4);
}

/* ダークボタン行 */
.planner-cta-btns {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 2rem;
}

.cta-dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  /* SVGとテキストの間に余白 */
  justify-content: center;
  padding: 0 2rem;
  height: 52px;
  background: var(--deep-night);
  color: var(--parchment);
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
  min-width: 160px;
}

.cta-dark-btn:hover {
  background: var(--dusk-purple);
}

/* インラインの戻るボタン（位置確認用に残す） */
.scroll-top-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(28, 24, 48, 0.2);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(28, 24, 48, 0.5);
  transition: border-color 0.2s, color 0.2s;
}

.scroll-top-inline:hover {
  border-color: var(--deep-night);
  color: var(--deep-night);
}

/* 右下固定: ページトップボタン */
.scroll-top-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 700;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(28, 24, 48, 0.22);
  background: rgba(245, 240, 233, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(28, 24, 48, 0.6);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  box-shadow: 0 2px 12px rgba(28, 24, 48, 0.08);
}

.scroll-top-fixed:hover {
  border-color: var(--deep-night);
  color: var(--deep-night);
  background: var(--parchment);
}

@media (max-width: 600px) {
  .planner-cta-icons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .planner-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-dark-btn {
    width: 240px;
  }
}


/* ───────────────────────────────────────
   5. KOJIKI — 古事記セクション
─────────────────────────────────────── */
.kojiki-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}

@media (max-width: 700px) {
  .kojiki-intro {
    grid-template-columns: 1fr;
  }
}

.kojiki-img-wrap {
  overflow: hidden;
}

.kojiki-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

.kojiki-text p {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 26px;
  color: rgba(28, 24, 48, 0.72);
  margin-bottom: 1.2em;
}

.kojiki-quote {
  border-left: 2px solid var(--dusk-purple);
  padding: 0.6rem 0 0.6rem 1.2rem;
  margin: 1.4rem 0;
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(28, 24, 48, 0.55);
  font-style: normal;
}

.kojiki-quote cite {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(28, 24, 48, 0.35);
}

/* 章 */
.kojiki-chapters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kojiki-chapter {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.4rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(28, 24, 48, 0.08);
}

.kojiki-chapter:last-child {
  border-bottom: 1px solid rgba(28, 24, 48, 0.08);
}

.chapter-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--dusk-purple);
  background: rgba(92, 74, 122, 0.15);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.chapter-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--deep-night);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.chapter-text {
  font-family: var(--jp);
  font-size: 14px;
  line-height: 26px;
  color: rgba(28, 24, 48, 0.68);
  margin-bottom: 0.8em;
}

.chapter-text:last-child {
  margin-bottom: 0;
}


/* ───────────────────────────────────────
   6. KAMIARI — 神在月セクション
─────────────────────────────────────── */
.kamiari-body p,
.kamiari-quote p,
.kamiari-closing p {
  font-family: var(--jp);
  font-size: 15px;
  line-height: 28px;
  color: rgba(28, 24, 48, 0.72);
  margin-bottom: 1.2em;
}

.kamiari-quote {
  border-left: 2px solid rgba(92, 74, 122, 0.4);
  padding-left: 1.4rem;
  margin: 2.4rem 0;
}

.kamiari-closing {
  margin-top: 2rem;
}

.kamiari-closing p {
  color: rgba(28, 24, 48, 0.5);
  font-style: italic;
  font-family: var(--jp);
}

/* 神在月 イベント表 */
.kamiari-info {
  border: 1px solid rgba(28, 24, 48, 0.1);
  margin: 2.4rem 0;
}

.kamiari-info-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(28, 24, 48, 0.07);
  align-items: center;
}

.kamiari-info-item:last-child {
  border-bottom: none;
}

.kamiari-info-label {
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--deep-night);
  font-weight: 700;
}

.kamiari-info-val {
  font-family: var(--jp);
  font-size: 12px;
  color: rgba(28, 24, 48, 0.55);
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  .kamiari-info-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}


/* ───────────────────────────────────────
   SCROLL REVEAL
─────────────────────────────────────── */
.sf {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.sf.on {
  opacity: 1;
  transform: translateY(0);
}


/* ───────────────────────────────────────
   FOOTER 上書き
─────────────────────────────────────── */
footer {
  background: var(--deep-night);
}

/* フッターテキスト色をヘッダーナビと同じgoldに */
.footer-nav,
.footer-nav a,
.footer-nav span,
.footer-credit,
.footer-credit a,
.footer-copy {
  color: var(--gold) !important;
}

.footer-nav a:hover {
  opacity: 0.65;
}


/* ───────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────── */
@media (max-width: 768px) {
  .about-hero {
    margin-top: 60px;
    padding: 48px 6vw 36px;
  }

  .about-section {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(3n) {
    border-right: 1px solid rgba(28, 24, 48, 0.08);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }
}