/*
Theme Name: FURUSATO Journal
Theme URI: https://journal.furusato.co-nect.co.jp
Author: co-nect Inc.
Description: FURUSATO Journal — 全国の地方を訪ね、そこで働き暮らす人々の物語を記すジャーナル。
Version: 1.0
Text Domain: furusato-journal
*/

/* FURUSATO Journal — デザイントークン
   配色比率: 写真35% / ベース55% / 深い藍6% / 朱3% / 装飾1% */

:root {
  /* ── ベース ── */
  --washi:      #F7F5EE;
  --paper:      #FBF9F2;
  --ink:        #26241D;
  --ink-sub:    #7A7568;
  --rule:       #D8D2C2;
  --kinari:     #EDE7D7;

  /* ── メディアプライマリ ── */
  --indigo:      #3D6E92;
  --indigo-soft: #5E86A6;
  --sky:         #669AB4;

  /* ── アクション色（CTA）── */
  --cta:         #2C5A74;
  --cta-d:       #224A61;

  /* ── 朱（限定使用） ── */
  --vermilion:   #B8623A;
  --vermilion-d: #A3502C;

  /* ── article.php で使用 ── */
  --teal:       #669AB4;
  --washi-soft: #FBF9F2;
  --ink-faded:  #524D42;
  --accent:     #3D6E92;
  --border:     #D8D2C2;

  /* ── タイポ ── */
  --serif: "Noto Serif JP", "Shippori Mincho", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Sans", sans-serif;
  --en:    "Cormorant Garamond", Georgia, serif;
  --info:  "Inter", system-ui, sans-serif;

  --ls: 1;
  --overlay: 0.13;

  --maxw:  1180px;
  --readw: 680px;
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--washi);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: calc(0.06em * var(--ls));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
svg.deco { display: block; }

/* ── レイアウト ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 50px; position: relative; }
section { position: relative; }

.eyebrow {
  font-family: var(--info);
  font-size: 12px; font-weight: 400;
  letter-spacing: calc(0.26em * var(--ls));
  text-transform: uppercase;
  color: var(--ink);
}

/* ── ヘッダー ── */
.gh {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 50px;
  transition: background .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.gh.solid {
  background: rgba(247,245,238,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}
.gh-logo { display: flex; flex-direction: column; line-height: 1.06; }
.gh-logo .n1 { font-family: var(--en); font-weight: 600; font-size: 23px; letter-spacing: 0.14em; color: var(--indigo); }
.gh-logo .n2 { font-family: var(--en); font-style: italic; font-weight: 500; font-size: 19px; letter-spacing: 0.04em; color: var(--indigo); margin-top: 1px; }
.gh.on-hero .gh-logo .n1, .gh.on-hero .gh-logo .n2 { color: var(--kinari); }

.gh-menu { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.gh-menu .label { font-family: var(--info); font-size: 11px; letter-spacing: calc(0.24em * var(--ls)); color: var(--ink); }
.gh.on-hero .gh-menu .label { color: var(--kinari); }
.gh-menu .bars { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.gh-menu .bars i { display: block; height: 1px; background: var(--ink); transition: background .4s, margin .3s; }
.gh.on-hero .gh-menu .bars i { background: var(--kinari); }
.gh-menu:hover .bars i:nth-child(2) { margin-left: 6px; }

/* ── ヒーロー ── */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--sky); }
.hero-bg .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-bg .hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,22,30,0.46) 0%, rgba(18,22,30,0.06) 28%,
                    rgba(18,22,30,0.08) 56%, rgba(18,22,30,0.56) 100%),
    radial-gradient(ellipse 74% 54% at 50% 46%,
                    rgba(18,22,30,0.40) 0%, rgba(18,22,30,0) 72%);
}
.hero-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: #14181F; opacity: var(--overlay);
}
.hero-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; transform: translateY(-3vh);
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 5.0vw, 66px);
  line-height: 1.5; letter-spacing: calc(0.12em * var(--ls));
  color: var(--kinari);
  text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
}
.hero-title span { display: block; }
.hero-sub {
  margin-top: 40px;
  font-size: 14.5px; font-weight: 400;
  line-height: 2.0; letter-spacing: calc(0.12em * var(--ls));
  color: rgba(237,231,215,0.96);
  max-width: 34em;
  text-shadow: 0 1px 16px rgba(0,0,0,0.5);
}
.hero-eyebrow {
  font-family: var(--info);
  font-size: 12px; font-weight: 400;
  letter-spacing: calc(0.28em * var(--ls));
  text-transform: uppercase;
  color: rgba(237,231,215,0.9);
  margin-bottom: 34px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
}
.hero-place {
  position: absolute; left: 50px; bottom: 40px; z-index: 3;
  font-family: var(--serif); font-weight: 500; font-size: 14px;
  letter-spacing: calc(0.12em * var(--ls));
  color: rgba(237,231,215,0.94);
  transition: opacity .6s ease;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}
.hero-dots { position: absolute; right: 50px; bottom: 44px; z-index: 4; display: flex; gap: 10px; }
.hero-dots button { width: 30px; height: 2px; background: rgba(237,231,215,0.38); padding: 0; transition: background .4s; }
.hero-dots button.active { background: var(--kinari); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; z-index: 4; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint span { writing-mode: vertical-rl; font-family: var(--info); font-size: 11px; letter-spacing: 0.3em; }

/* ── コンセプトステートメント ── */
.concept { background: var(--washi); text-align: center; overflow: hidden; padding: clamp(96px, 13vw, 150px) 0; }
.concept-inner { position: relative; max-width: 740px; margin: 0 auto; padding: 0 24px; }
.concept .eyebrow { color: var(--ink); }
.concept .concept-text { margin-top: 48px; }
.concept .concept-text p {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(19px, 2.0vw, 25px);
  line-height: 1.8; letter-spacing: calc(0.10em * var(--ls));
  color: var(--ink);
}
.concept .concept-note {
  margin-top: 44px;
  font-family: var(--sans); font-weight: 400;
  font-size: 14px; line-height: 1.7; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink-sub);
}
.concept .mark {
  margin-top: 60px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.concept .mark .n1 { font-family: var(--en); font-weight: 600; font-size: 40px; letter-spacing: 0.12em; color: var(--indigo); }
.concept .mark .n2 { font-family: var(--en); font-style: italic; font-weight: 500; font-size: 28px; letter-spacing: 0.04em; color: var(--indigo); }
.concept .deco-tl { position: absolute; top: -34px; left: -28px; }
.concept .deco-br { position: absolute; bottom: 8px; right: -30px; }

/* ── 写真フルブリード帯 ── */
.band { position: relative; height: 60vh; min-height: 360px; overflow: hidden; background: var(--sky); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 84% 74% at 50% 50%,
              rgba(18,22,30,0.52) 0%, rgba(18,22,30,0.24) 62%, rgba(18,22,30,0.16) 100%);
}
.band-copy {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.7vw, 31px);
  letter-spacing: calc(0.16em * var(--ls)); line-height: 1.7;
  color: var(--kinari); text-align: center;
  text-shadow: 0 2px 30px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
}

/* ── 記事一覧（カードグリッド）── */
.articles { background: var(--washi); padding: clamp(80px, 10vw, 110px) 0 clamp(80px, 11vw, 130px); }
.articles-head { max-width: 720px; }
.articles-head .eyebrow { color: var(--ink); }
.articles-head .h2 {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.5; letter-spacing: calc(0.10em * var(--ls));
  color: var(--ink);
}
.articles-head .ul { margin-top: 18px; }
.articles-head .desc {
  margin-top: 26px;
  font-size: 14px; line-height: 1.9; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink-sub); max-width: 38em;
}
.articles-head .desc p { margin: 0; }

.cardgrid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.acard { display: block; }
.acard .ph { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--sky); }
.acard .ph img, .acard .ph .ph-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.acard .ph .ph-placeholder { display: flex; align-items: center; justify-content: center; color: rgba(237,231,215,0.7); background: var(--sky); }
.acard:hover .ph img, .acard:hover .ph .ph-placeholder { transform: scale(1.02); }
.acard .pills { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.acard .pill {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: calc(0.04em * var(--ls)); color: var(--ink);
  padding: 4px 13px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper);
}
.acard h3 {
  margin-top: 16px;
  font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1.55; letter-spacing: calc(0.04em * var(--ls)); color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s;
}
.acard:hover h3 { color: var(--indigo); }
.acard .person { margin-top: 16px; font-size: 12px; line-height: 1.7; letter-spacing: calc(0.04em * var(--ls)); color: var(--ink-sub); }
.acard .person b { color: var(--ink); font-weight: 700; }
.acard .date {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--info); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-sub);
}
.acard .date svg { transition: transform .3s, color .3s; }
.acard:hover .date svg { transform: translateX(4px); color: var(--indigo); }

.more { margin-top: 64px; text-align: center; }
.more a {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-size: 13px; letter-spacing: calc(0.16em * var(--ls)); color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  transition: color .3s, border-color .3s, gap .3s;
}
.more a:hover { color: var(--indigo-soft); border-color: var(--indigo-soft); gap: 16px; }

/* ── 取材で生まれるもの（コンセプトページ）── */
.brings { background: var(--washi); padding: clamp(96px, 12vw, 130px) 0 clamp(90px, 11vw, 120px); overflow: hidden; }
.brings-head { max-width: 760px; position: relative; }
.brings-head .eyebrow { color: var(--ink); }
.brings-head .h2 {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.5; letter-spacing: calc(0.10em * var(--ls));
  color: var(--ink);
}
.brings-head .ul { margin-top: 20px; }
.brings-head .deco-sprig { position: absolute; top: -30px; right: 0; }

.brings-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.brings-item { padding: 0 44px; }
.brings-item:first-child { padding-left: 0; }
.brings-item:last-child { padding-right: 0; }
.brings-item + .brings-item { border-left: 1px solid var(--rule); }
.brings-item .no {
  font-family: var(--en); font-weight: 600;
  font-size: 58px; line-height: 1; letter-spacing: 0.04em;
  color: var(--indigo); opacity: 0.5;
}
.brings-item h3 {
  margin-top: 26px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 1.9vw, 23px);
  line-height: 1.6; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink);
}
.brings-item .body {
  margin-top: 20px;
  font-family: var(--sans); font-weight: 400;
  font-size: 15px; line-height: 1.95; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink);
}
.brings-item .body p { margin: 0; }

/* ── 取材の流れ（コンセプトページ）── */
.flow { background: var(--paper); padding: clamp(96px, 12vw, 120px) 0; overflow: hidden; }
.flow-head { max-width: 760px; position: relative; }
.flow-head .eyebrow { color: var(--ink); }
.flow-head .h2 {
  margin-top: 22px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.5; letter-spacing: calc(0.10em * var(--ls));
  color: var(--ink);
}
.flow-head .ul { margin-top: 20px; }

.flow-steps { margin-top: 72px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 0; }
.flow-step { padding: 0 12px; }
.flow-step .no {
  font-family: var(--info); font-weight: 400;
  font-size: 12px; letter-spacing: calc(0.22em * var(--ls));
  color: var(--indigo);
}
.flow-step h3 {
  margin-top: 20px;
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; line-height: 1.6; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink);
}
.flow-step .body {
  margin-top: 16px;
  font-family: var(--sans); font-weight: 400;
  font-size: 14px; line-height: 1.9; letter-spacing: calc(0.06em * var(--ls));
  color: var(--ink-sub);
}
.flow-arrow { align-self: center; padding: 0 8px; color: var(--indigo); opacity: 0.8; transform: translateY(-14px); }

.flow-closing {
  margin-top: clamp(72px, 8vw, 96px);
  text-align: center;
  font-family: var(--sans); font-weight: 400;
  font-size: 15px; line-height: 1.9; letter-spacing: calc(0.08em * var(--ls));
  color: var(--ink);
}

/* ── フッター ── */
.gf { background: var(--sky); color: #ffffff; padding: clamp(76px, 9vw, 108px) 0 40px; }
.gf-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.32); }
.gf-top.cols-3 { grid-template-columns: 1.6fr 1fr 1fr; }
.gf-brand .mark { display: flex; flex-direction: column; line-height: 1.05; margin-bottom: 22px; }
.gf-brand .mark .n1 { font-family: var(--en); font-weight: 600; font-size: 30px; letter-spacing: 0.12em; }
.gf-brand .mark .n2 { font-family: var(--en); font-style: italic; font-weight: 500; font-size: 24px; letter-spacing: 0.04em; opacity: 0.92; }
.gf-brand p { font-size: 13px; line-height: 2.0; letter-spacing: calc(0.05em * var(--ls)); color: rgba(255,255,255,0.9); max-width: 26em; }
.gf-brand .about-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.gf-brand .about-links a {
  font-size: 12.5px; letter-spacing: calc(0.05em * var(--ls)); color: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 3px; transition: color .3s, border-color .3s;
}
.gf-brand .about-links a:hover { color: #fff; border-color: #fff; }

.gf-col h4 { font-family: var(--info); font-size: 10.5px; letter-spacing: calc(0.24em * var(--ls)); opacity: 0.62; margin-bottom: 22px; text-transform: uppercase; }
.gf-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; font-size: 13px; letter-spacing: calc(0.05em * var(--ls)); }
.gf-col a { color: rgba(255,255,255,0.92); transition: color .3s; }
.gf-col a:hover { color: #fff; }
.gf-col .company-name { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; color: #fff; margin-bottom: 10px; }
.gf-col .company-desc { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,0.82); margin-bottom: 18px; }
.gf-col .vlink a { color: rgba(255,255,255,0.92); border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.gf-col .vlink a:hover { color: #fff; border-bottom-color: #fff; }

.gf-bot { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gf-bot .copy { font-family: var(--info); font-size: 12px; letter-spacing: calc(0.14em * var(--ls)); color: rgba(255,255,255,0.8); text-align: center; }

/* ── メニューオーバーレイ ── */
body.fj-menu-open { overflow: hidden; }
.fj-menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--washi);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s ease;
}
.fj-menu-overlay.open { opacity: 1; visibility: visible; }
.fj-menu-close {
  position: absolute; top: 30px; right: 50px;
  font-family: var(--en); font-size: 32px; line-height: 1; color: var(--ink);
}
.fj-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.fj-menu-nav a {
  font-family: var(--serif); font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: calc(0.08em * var(--ls)); color: var(--ink);
  transition: color .3s;
}
.fj-menu-nav a:hover { color: var(--indigo); }
@media (max-width: 680px) {
  .fj-menu-close { right: 24px; }
}

/* ── ページネーション ── */
.fj-pagination { margin-top: 72px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fj-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  font-family: var(--info); font-size: 13px; letter-spacing: 0.05em; color: var(--ink-sub);
  border: 1px solid var(--rule); transition: background .3s, color .3s, border-color .3s;
}
.fj-pagination .page-numbers.current { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.fj-pagination a.page-numbers:hover { border-color: var(--indigo); color: var(--indigo); }

/* ── 登場アニメ ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease-out, transform .9s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* ── 手描き装飾 ── */
:root[data-deco="off"] .deco { display: none !important; }

/* ── レスポンシブ（共通） ── */
@media (max-width: 1024px) {
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .gf-top { grid-template-columns: 1fr 1fr; }
  .gf-brand { grid-column: 1 / -1; }
  .brings-grid { grid-template-columns: 1fr; gap: 48px; }
  .brings-item { padding: 0; }
  .brings-item + .brings-item { border-left: 0; border-top: 1px solid var(--rule); padding-top: 48px; }
  .flow-steps { grid-template-columns: 1fr; gap: 44px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; padding: 8px 0; }
  .gf-top.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap, .gh { padding-left: 24px; padding-right: 24px; }
  .cardgrid { grid-template-columns: 1fr; gap: 44px; }
  .hero-place { left: 24px; }
  .hero-dots { right: 24px; }
  .gf-top { grid-template-columns: 1fr; gap: 36px; }
  .gf-top.cols-3 { grid-template-columns: 1fr; }
}
