/* 農業遺産フォーラム2027 LP
   フライヤーのトーン：白地・制服の紺・みかんのオレンジ・明朝の見出し */

:root {
  --navy: #1F2C4E;
  --navy-deep: #16203A;
  --orange: #EE8A12;
  --orange-ink: #B9600A;
  --cta: #E07B00;         /* 申込みボタン。白文字は19px太字（大きい文字）で3:1を確保 */
  --cta-hover: #C86D00;
  --mikan-wash: #FFF6DC;
  --themes-wash: #FFFCF2;   /* 研究テーマ用のさらに淡いみかん色 */
  --sea-mist: #EAF3F5;
  --stone: #F6F4EF;        /* 石垣のようなごく薄いベージュグレー（スケジュール・会場） */
  --ink: #22262E;
  --ink-soft: #545B66;
  --line: #E3DCCB;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: min(1120px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ───────── Hero（パララックス） ───────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--sea-mist);
}
.hero__stage {
  position: absolute; inset: 0;
  container-type: size;
  --sw: min(76cqh, 128cqw);          /* 高校生レイヤーの幅 */
  --head: 35cqh;                     /* 頭の高さ */
}
.hero__layer { position: absolute; will-change: transform; }

.hero__bg { inset: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  transform-origin: 62% 58%;          /* 湾と町のあたりへ寄っていく */
  will-change: transform;
  animation: landscape-drift 42s ease-in-out infinite alternate;
}
/* 空撮のカメラがゆっくり前進しながら横へ流れるような動き。
   拡大率は常に横移動量の2倍以上にして、画像の端が見えないようにする */
@keyframes landscape-drift {
  from { transform: scale(1.05) translate3d(1.4%, 0.4%, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -0.8%, 0); }
}
.hero.is-offscreen .hero__bg img { animation-play-state: paused; }

.hero__students {
  width: var(--sw);
  left: calc(50% - var(--sw) * 0.47);
  top: calc(var(--head) - var(--sw) * 0.05);
}
.hero__students svg { display: block; width: 100%; height: auto; overflow: visible; }

.hero__copy {
  top: 7cqh; right: max(24px, 6cqw);
  writing-mode: vertical-rl;
  color: var(--navy);
  font-family: var(--serif);
}
.hero__title {
  font-size: clamp(34px, 5.4cqh, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-shadow: 0 0 24px rgb(255 255 255 / .55);
}
.hero__lead {
  margin: 4.2em 0.9em 0 0;
  font-size: clamp(17px, 2.3cqh, 26px);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-shadow: 0 0 18px rgb(255 255 255 / .7);
}

.hero__words {
  top: 27cqh;
  left: max(16px, calc(50% - var(--sw) * 0.66));
  writing-mode: vertical-rl;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(16px, 2.4cqh, 26px);
  letter-spacing: 0.14em;
  color: var(--navy);
}
.hero__words span { display: block; height: fit-content; background: #FFFFFF; padding: 0.55em 0.4em; }
.hero__words span + span { margin-right: 10px; }
.hero__words span:nth-child(2) { margin-top: 2.2em; }
.hero__words span:nth-child(3) { margin-top: 4.4em; }

.hero__mikan { pointer-events: none; }
/* 素材の下端は直線で切れているため、スクロールで持ち上がっても見えないよう溶かす */
.hero__mikan img {
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%);
          mask-image: linear-gradient(to top, transparent 0, #000 20%);
}
.hero__mikan--left  { left: -2cqw; bottom: -2cqh; width: clamp(150px, 26cqw, 420px); }
.hero__mikan--right { right: -2cqw; bottom: -4cqh; width: clamp(140px, 24cqw, 380px); }

.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 9cqh, 110px);
  fill: #FFFFFF;
}

/* 読み込み時の一度きりの演出：コピーがゆっくり現れる */
.js .hero__copy, .js .hero__words { opacity: 0; transition: opacity 1.4s ease .5s; }
.js .hero__words { transition-delay: 1.1s; }
.is-loaded .hero__copy, .is-loaded .hero__words { opacity: 1; }

/* ───────── 開催概要 ───────── */
.event { padding: 24px 0 88px; }
.event__inner {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 40px; row-gap: 40px;
  align-items: center;
}
.event__logo { width: 148px; mix-blend-mode: multiply; }
.event__kicker { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); }
.event__title {
  margin-top: 4px;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(36px, 6vw, 68px); line-height: 1.15; letter-spacing: 0.06em;
  color: var(--navy);
}
.event__year { margin-left: 0.25em; font-weight: 700; }
.event__sub {
  margin-top: 10px; font-family: var(--serif); font-size: 18px; color: var(--ink-soft);
}
.event__sub::before, .event__sub::after { content: "〜"; margin: 0 0.6em; }
.event__sub::before { margin-left: 0; }

.event__facts { grid-column: 1 / -1; border-top: 1px solid var(--navy); }
.event__fact {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px;
  padding: 18px 0; border-bottom: 1px dashed #B9BFCC; align-items: baseline;
}
.event__fact dt { font-weight: 700; color: var(--navy); letter-spacing: 0.3em; }
.event__fact dd { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.event__date { font-size: clamp(30px, 4.6vw, 44px); letter-spacing: 0.04em; color: var(--navy); }
.event__dow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6em; height: 1.6em; margin: 0 0.6em 0 0.35em;
  border-radius: 50%; background: var(--orange); color: #FFFFFF;
  font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1;
  vertical-align: 0.3em; letter-spacing: 0;
}
.event__time { display: inline-block; font-size: 20px; }

.event__cta {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
}
.event__radio {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 700; color: var(--navy);
}
.event__radio img { width: 96px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 44px; border-radius: 999px;
  background: var(--cta); color: #FFFFFF;
  font-weight: 700; font-size: 19px; letter-spacing: 0.12em; text-decoration: none;
  transition: background-color .2s;
}
.button:hover { background: var(--cta-hover); }
.button--light { background: #FFFFFF; color: var(--navy); }
.button--light:hover { background: var(--mikan-wash); }

/* ───────── ストーリー（知る・めざす・つなぐ） ───────── */
.story { --wave-above: var(--themes-wash); padding: calc(80px + var(--wave-h)) 0 88px; }
.story__intro { width: var(--wrap); margin: 0 auto 48px; }
.story__title span { display: inline-block; }
.story__title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.4; letter-spacing: 0.1em; color: var(--navy);
}
.story__lead { margin-top: 12px; max-width: 48em; color: var(--ink-soft); }

.chapter {
  width: var(--wrap); margin: 0 auto; padding: 40px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 48px; align-items: start;
}
.chapter--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.chapter--reverse .chapter__photo { order: 2; }
.chapter__photo { margin: 0; }
.chapter__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.chapter__body {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: start;
  font-size: 15px;
}
.chapter__text { max-width: 36em; padding-left: 28px; border-left: 1px solid var(--line); }
.chapter__text > p + p { margin-top: 1.1em; }
.chapter__body .button { margin-top: 24px; }
.link--small { font-size: 14px; font-weight: 500; }
.chapter__title {
  /* ヒーローと同じ縦組みの見出し。本文（横組み）の左に立てる */
  writing-mode: vertical-rl;
  margin: 0;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.55; letter-spacing: 0.16em; color: var(--navy);
}
.chapter__note { font-size: 13px; color: var(--ink-soft); }

.suns { margin-top: 20px; padding: 16px 20px; background: #F8F8F8; border-radius: 4px; }
.suns__title span { display: inline-block; }
.suns__title { font-family: var(--serif); font-weight: 800; font-size: 16px; color: var(--navy); }
.suns__list { margin-top: 12px; display: grid; gap: 10px; font-size: 14px; line-height: 1.7; }
.suns__list li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.suns__list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--orange);
}
.suns__list b { display: block; color: var(--ink); }


/* ───────── 研究テーマ ───────── */
/* セクション全体で白→淡いみかん色。白を長めに保ち、後半でゆっくり色づく。
   下端は --themes-wash で終わり、次のストーリーの波とつながる */
.themes {
  background: linear-gradient(180deg, #FFFFFF 0, #FFFFFF 50%, var(--themes-wash) 100%);
}
.themes__list { margin-top: 40px; padding-bottom: 96px; }
.themes__photo {
  height: clamp(260px, 40vw, 520px);
  background: url("../assets/stonewall.jpg") center 40% / cover no-repeat;
}
.themes__inner { width: var(--wrap); margin: 0 auto; padding-top: 56px; }
.section-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.1em; line-height: 1.4;
  color: var(--navy);
}
.section-lead { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.themes__lead {
  margin-top: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start;
}
.questions { display: grid; gap: 10px; }
.questions li {
  position: relative;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.6; letter-spacing: 0.06em; color: var(--navy);
  padding-left: 1.7em;
}
/* チラシと同じみかんのイラスト */
.questions li::before {
  content: ""; position: absolute; left: 0; top: 0.22em;
  width: 1.25em; height: 1.25em;
  background: url("../assets/icon-mikan.png") center / contain no-repeat;
}
/* 細い破線の下線（線の長さ・間隔を調整できるよう背景で描く）。
   1pxの線が端数の座標に乗ると薄くにじむため、行の高さと余白を整数pxに揃える */
.questions li { line-height: round(1.6em, 1px); }
.questions span {
  display: inline-block;
  vertical-align: top;
  padding-bottom: 3px;
  background: linear-gradient(to right, var(--orange) 0 2px, transparent 2px 4px) left bottom / 4px 1px repeat-x;
}
.themes__text { color: var(--ink); max-width: 36em; }
.themes__text p + p { margin-top: 1em; }

.schools { border-top: 2px solid var(--navy); }
.school {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.school__name {
  display: flex; align-items: center; gap: 12px; align-self: start;
  font-family: var(--serif); font-weight: 800; font-size: 21px; color: var(--navy);
}
.school__name::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--school); flex: none;
}
.school__teams { display: grid; gap: 22px; }
.team__name { font-family: var(--serif); font-weight: 800; font-size: 21px; line-height: 1.6; }
.team__name rt { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-soft); }
.team__theme { margin-top: 2px; color: var(--ink-soft); }

/* ───────── ラジオ ───────── */
.radio { padding: 88px 0; }
.radio__inner {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; column-gap: 40px; align-items: center;
}
.radio__logo { width: 220px; }
.radio__title {
  font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.8vw, 28px);
  color: var(--navy); margin-bottom: 10px; letter-spacing: 0.08em;
}
.radio__body p { max-width: 36em; }
.radio__people { display: flex; gap: 20px; }
.radio__people li { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.radio__people img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* ───────── スケジュール・会場 ───────── */
.schedule { background: var(--stone); padding: 96px 0; }
.schedule__inner {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px;
}
.timeline { margin-top: 32px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: #F3C38A;
}
.timeline li {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr);
  padding: 0 0 22px 36px;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--orange);
}
.timeline time { font-weight: 700; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.timeline p { font-family: var(--serif); font-weight: 800; font-size: 19px; color: var(--navy); line-height: 1.6; }
.timeline span { display: block; font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--ink-soft); }
/* 講演者：他の項目と同じ「見出し＋補足」の並びを保ち、写真は右に添える */
.speaker { display: flex; align-items: flex-start; gap: 20px; }
.speaker__photo {
  flex: none; width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px #F3C38A;
}
.speaker p span { margin-top: 10px; }   /* 写真の高さに合わせて肩書を少し下げる */
.speaker b { display: block; font-family: var(--serif); font-weight: 800; font-size: 17px; color: var(--navy); }
@media (min-width: 761px) {
  .speaker b { display: inline; margin-left: 0.6em; }   /* PCは肩書と氏名を1行に */
}
.notes { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.notes li { padding-left: 1.2em; text-indent: -1.2em; }
.notes li::before { content: "※"; }

.venue__name {
  margin-top: 32px; font-family: var(--serif); font-weight: 800; font-size: 21px; color: var(--navy); line-height: 1.5;
}
.venue__name span { display: block; }
.venue__address { margin-top: 8px; }
.venue__access { margin-top: 18px; display: grid; gap: 6px; font-size: 15px; }
.venue__access div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; border-bottom: 1px dotted #AEB8C2; padding-bottom: 6px; }
.venue__access dd { font-weight: 700; }
.venue__map { margin-top: 24px; border-radius: 8px; }
.link { display: inline-block; margin-top: 12px; font-weight: 700; padding: 10px 0; }

/* ───────── クロージング・フッター ───────── */
.closing {
  background: linear-gradient(rgb(22 32 58 / .55), rgb(22 32 58 / .55)), url("../assets/coast.jpg") center / cover no-repeat;
  color: #FFFFFF; padding: 120px 0;
}
.closing__inner { width: var(--wrap); margin: 0 auto; display: grid; justify-items: center; gap: 32px; text-align: center; }
.closing__title { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 3.6vw, 38px); letter-spacing: 0.1em; line-height: 1.5; }
.footer {
  background: var(--navy-deep); color: #DDE3EE; text-align: center;
  padding: 28px 20px 100px; font-size: 14px;
}
.footer a { color: #FFFFFF; font-weight: 700; }

.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 28px; border-radius: 999px;
  background: var(--cta); color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: 0.1em;
  box-shadow: 0 6px 20px rgb(22 32 58 / .25);
  transition: background-color .2s;
}
.sticky-cta span { font-size: 12px; font-weight: 700; padding: 2px 10px; background: #FFFFFF; color: var(--navy); border-radius: 999px; letter-spacing: 0.06em; }
.sticky-cta:hover { background: var(--cta-hover); }

/* ページ先頭に戻るボタン：申込みボタンの上に置き、ファーストビューを過ぎたら表示 */
.to-top {
  position: fixed; right: 30px; bottom: 100px; z-index: 10;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #FFFFFF; color: var(--navy); border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgb(22 32 58 / .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mikan-wash); }

/* ───────── 波の切り替え（チラシと同じ曲線） ─────────
   .wave-in  ：要素の上端に、上のセクションの色を波形で垂らす
   .wave-out ：要素の下端に、下のセクションの色を波形でせり上げる
   色は --wave-above / --wave-below で指定。写真の境目は wave-out を使う */
.wave-in, .wave-out { position: relative; --wave-h: clamp(36px, 6vw, 96px); }
.wave-in::before, .wave-out::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1;
  height: var(--wave-h); pointer-events: none;
  -webkit-mask: var(--wave-shape) center / 100% 100% no-repeat;
          mask: var(--wave-shape) center / 100% 100% no-repeat;
}
.wave-in::before {
  top: -1px; background: var(--wave-above);
  --wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,40 C1200,104 1020,94 720,52 C420,10 240,10 0,64 Z'/%3E%3C/svg%3E");
}
.wave-out::after {
  bottom: -1px; background: var(--wave-below);
  --wave-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C240,10 420,10 720,52 C1020,94 1200,104 1440,40 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
}

.themes__photo { --wave-above: #FFFFFF; --wave-below: #FFFFFF; }
.schedule { --wave-above: #FFFFFF; padding-top: calc(96px + var(--wave-h)); }
.closing  { --wave-above: var(--stone); --wave-below: var(--navy-deep);
            padding: calc(120px + var(--wave-h)) 0 calc(120px + var(--wave-h)); }

/* ───────── スクロールで表示（js/reveal.js が .reveal を付ける） ───────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-shown { opacity: 1; transform: none; }

/* ───────── スマートフォン ───────── */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { max-height: none; }
  .hero__stage { --sw: min(76cqh, 132cqw); --head: 55cqh; }
  .hero__students { left: calc(50% - var(--sw) * 0.5); }
  .hero__copy { top: 5cqh; right: 16px; }
  .hero__title { font-size: clamp(30px, 4.6cqh, 44px); }
  .hero__words { top: 17cqh; left: 16px; }
  .hero__mikan--left { width: 34cqw; bottom: 4cqh; }
  .hero__mikan--right { width: 32cqw; bottom: 2cqh; }
  .hero__wave { height: clamp(22px, 3.6cqh, 34px); }   /* スマホは横幅が狭いので波を浅く */
  .wave-in, .wave-out { --wave-h: 26px; }

  .event { padding: 8px 0 64px; }
  .event__inner { grid-template-columns: 1fr; row-gap: 28px; }
  .event__logo { width: 104px; }
  .event__fact { grid-template-columns: 1fr; row-gap: 4px; }
  .event__fact dd { font-size: 18px; }
  .event__cta .button { width: 100%; }

  .school { grid-template-columns: 1fr; row-gap: 14px; }
  .themes__lead { grid-template-columns: 1fr; row-gap: 20px; }
  .story { padding-bottom: 64px; }
  .story__intro { margin-bottom: 32px; }
  .chapter, .chapter--reverse { grid-template-columns: 1fr; row-gap: 20px; }
  .chapter__body .button { width: 100%; }
  .chapter__body { column-gap: 16px; }
  .chapter__text { padding-left: 16px; }
  .chapter__title { font-size: 21px; }
  .chapter--reverse .chapter__photo { order: 0; }
  .chapter__photo img { aspect-ratio: 16 / 9; }
  .radio__inner { grid-template-columns: 1fr; row-gap: 24px; }
  .radio__logo { width: 180px; }
  .schedule { padding: calc(72px + var(--wave-h)) 0 72px; }
  .schedule__inner { grid-template-columns: 1fr; gap: 64px; }
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; min-height: 56px; }
  .to-top { right: 14px; bottom: 80px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img, .hero__copy, .hero__words, .sticky-cta, .to-top { transition: none; }
  .hero__bg img { animation: none; transform: none; }
}
