/* 子どもの権利と性暴力防止を学ぶ LP（A案「公民館の学びノート」（背景は生成りから青灰に変更）＋B案のイラストの見せ方） */
:root{
  --bg:#EEF2F6;      /* 紺に寄せた薄い青灰（写真の窓・カーテンの青緑とつながる） */
  --paper:#FFFFFF;   /* 白 */
  --ink:#1F2A44;     /* 紺（チラシのタイトルの色） */
  --sub:#465066;
  --accent:#A24A31;  /* 申込の赤茶 */
  --accent-dark:#7E3622;
  --line:#067A37;    /* LINEの緑より暗く（白文字のコントラスト確保） */
  --rule:#CBD3DF;
  --mark:#F6DE7A;
  --ease:cubic-bezier(.33,1,.68,1);
  /* 受付状況の部品の色を合わせる */
  --lpst-ink:#1F2A44; --lpst-waitlist:#1F2A44; --lpst-link:#1F5FA8;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--ink);
  font:400 18px/1.9 "BIZ UDPGothic",sans-serif;
  word-break:keep-all;overflow-wrap:anywhere;line-break:strict;text-wrap:pretty; /* 改行は句読点と <wbr> の位置だけ（iPhoneのSafariでも同じ）。入りきらないときだけ文字で折る */
  -webkit-text-size-adjust:100%;
  padding-bottom:84px; /* 画面下の固定ボタンの分 */
}
img{max-width:100%;height:auto;display:block}
a{color:#1F5FA8}
a:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
h1,h2{font-family:"BIZ UDPMincho",serif;font-weight:700;letter-spacing:.02em}

/* ---------- 1. はじめの画面 ---------- */
.hero-img img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:100% 50%;border-radius:0 0 36px 36px}
.hero-text{padding:24px 22px 8px}
.kicker{font-weight:700;font-size:16px;color:var(--sub);letter-spacing:.06em}
h1{font-size:34px;line-height:1.42;margin:8px 0 12px}
.lead{font-size:18px;color:var(--sub)}

/* ---------- 2. 開催概要 ---------- */
.facts{background:var(--paper);margin:20px 0 0;padding:20px 22px 26px}
.facts dl{display:grid;grid-template-columns:4.6em 1fr}
.facts dt,.facts dd{padding:13px 0;border-bottom:1px solid var(--rule)}
.facts dt{font-size:16px;color:var(--sub);font-weight:700;padding-top:15px}
.facts dd{font-weight:700}
.date{font-size:23px;line-height:1.5}

.btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:60px;margin-top:22px;padding:10px 16px;
  background:var(--accent);color:#fff;border-radius:8px;
  font-weight:700;font-size:19px;line-height:1.4;text-decoration:none;text-align:center;
  box-shadow:0 3px 0 var(--accent-dark);
}
.btn small{font-size:16px;font-weight:400;opacity:.95}
.btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--accent-dark)}
.btn-line{background:var(--line);box-shadow:0 3px 0 #04592A}

/* ---------- 3. 大切なお知らせ ---------- */
.notice{
  margin:28px 22px 0;padding:20px 22px;
  background:var(--ink);color:#fff;border-radius:6px;
  font-size:18px;font-weight:700;line-height:1.85;
}

/* ---------- 共通のセクション ---------- */
.sec{padding:0 22px;margin-top:52px}
.sec h2{font-size:26px;line-height:1.5;margin-bottom:16px}
.sec p+p{margin-top:14px}
.src{font-size:16px;color:var(--sub);margin-top:20px!important;padding-top:14px;border-top:1px solid var(--rule)}
.mk{background:linear-gradient(transparent 60%,var(--mark) 60%) no-repeat 0 0/0% 100%;font-weight:700}
.mk.on{background-size:100% 100%;transition:background-size .8s var(--ease)}

/* 学習の内容：番号つきの縦リスト */
.learn{list-style:none;counter-reset:n;background:var(--paper);padding:6px 20px;border-radius:6px}
.learn li{counter-increment:n;display:flex;gap:14px;padding:15px 0;font-weight:700}
.learn li+li{border-top:1px solid var(--rule)}
.learn li::before{content:counter(n);font-family:"BIZ UDPMincho",serif;font-size:24px;color:var(--accent);min-width:1.1em;line-height:1.35}

/* こんな方に：2列のリスト */
.who{list-style:none;display:grid;grid-template-columns:1fr;gap:0}
.who li{padding:12px 0 12px 1.4em;border-bottom:1px solid var(--rule);font-weight:700;position:relative}
.who li::before{content:"・";position:absolute;left:0;color:var(--accent)}

/* 講師 */
.lecturer{display:flex;gap:16px;align-items:center}
.lecturer img{width:104px;height:104px;border-radius:50%;flex:none}
.name{font-weight:700;font-size:18px}
.role{font-size:16px;color:var(--sub);line-height:1.7}
.need{margin-top:16px;padding:16px 18px;background:#FFF4D6;border:2px dashed #C9A23A;border-radius:6px;font-size:16px}

/* よくある質問（アコーディオン） */
.faq details{background:var(--paper);border-radius:6px;margin-bottom:10px}
.faq summary{
  list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;
  min-height:60px;padding:14px 18px;font-weight:700;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"開く";flex:none;font-size:14px;color:var(--accent);border:1px solid currentColor;border-radius:999px;padding:2px 12px}
.faq details[open] summary::after{content:"閉じる"}
.faq .ans{padding:0 18px 16px;overflow:hidden}

/* 申込・問い合わせ */
.apply .line-lead{margin-top:32px}
.apply .btn-line{margin-top:14px}

.foot{margin-top:64px;padding:28px 22px;text-align:center;font-size:16px;color:var(--sub);border-top:1px solid var(--rule)}

/* 画面下の固定ボタン */
.fixed{
  position:fixed;left:0;right:0;bottom:0;z-index:10;
  display:grid;grid-template-columns:1.3fr 1fr;gap:8px;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(238,242,246,.96);border-top:1px solid var(--rule);
  transform:translateY(110%);transition:transform .35s var(--ease);
}
.fixed.show{transform:none}
.fixed a{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:8px;font-weight:700;font-size:17px;text-decoration:none;color:#fff;text-align:center;line-height:1.3}
.fixed-cta{background:var(--accent)}
.fixed-line{background:var(--line)}

/* ---------- 動き ---------- */
/* はじめの画面：イラストと文字がふわっと出る */
.hero-img img{animation:heroIn .9s var(--ease) both}
.hero-text{animation:rise .8s .25s var(--ease) both}
@keyframes heroIn{from{opacity:0;transform:scale(1.03)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
/* Motion Prompt #074：スクロールでフェードイン（0.7秒・下から28px） */
.js .fade{opacity:0;transform:translateY(28px)}
.js .fade.in{opacity:1;transform:none;transition:opacity .7s var(--ease),transform .7s var(--ease)}
/* Motion Prompt #002：スタガー（学習内容を0.12秒ずつずらして0.5秒で） */
.js .learn li{opacity:0;transform:translateY(12px)}
.js .in .learn li{opacity:1;transform:none;transition:opacity .5s var(--ease),transform .5s var(--ease)}
.js .in .learn li:nth-child(1){transition-delay:.15s}
.js .in .learn li:nth-child(2){transition-delay:.27s}
.js .in .learn li:nth-child(3){transition-delay:.39s}
.js .in .learn li:nth-child(4){transition-delay:.51s}
.js .in .learn li:nth-child(5){transition-delay:.63s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-img img,.hero-text{animation:none}
  .js .fade,.js .learn li{opacity:1;transform:none;transition:none}
  .mk{background-size:100% 100%}
  .fixed{transition:none}
}

/* ---------- タブレット・PC ---------- */
.pc-none{display:inline}
.pc-only{display:none}
@media (min-width:600px){
  .who{grid-template-columns:1fr 1fr;column-gap:28px}
}
@media (min-width:900px){
  body{font-size:18px;padding-bottom:110px} /* 右下の追従ボタンが最後の文字に重ならないように */
  .pc-none{display:none}
  /* PC：写真を画面いっぱいに敷き、左側の明るい壁の上にタイトルを置く */
  .hero{position:relative;height:clamp(520px,70vh,720px);overflow:hidden}
  .hero .hero-img{position:absolute;inset:0} /* 下の「写真はイメージです」用の position:relative より優先させる */
  .hero-img img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:right center;border-radius:0}
  .hero-img::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.7) 0%,rgba(255,255,255,.35) 32%,rgba(255,255,255,0) 50%)} /* 壁の木漏れ日の上でも文字が読めるように */
  .hero-img figcaption{z-index:1}
  .hero-text{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:center;padding:0 0 0 4vw}
  .hero-text > *{max-width:27vw} /* 写真の左の壁（幅の約3分の1）に収め、人に重ねない */
  .hero-text h1{font-size:clamp(28px,2.8vw,44px)} /* 「性暴力防止を学ぶ」が1行に収まり、人に重ならない大きさ */
  .pc-only{display:inline}
  h1{font-size:48px}
  .lead{font-size:20px}
  main{max-width:760px;margin:0 auto}
  .facts{margin-top:48px;border-radius:8px;padding:28px 36px 32px}
  .facts dl{grid-template-columns:6em 1fr}
  .notice{margin:28px 0 0;text-align:center}
  .sec{padding:0;margin-top:72px}
  .sec h2{font-size:32px}
  .btn{max-width:420px;margin-left:auto;margin-right:auto}
  /* PC：申込ボタンを右下に追従させる（最初の申込ボタンを過ぎたら下から出る） */
  .fixed{left:auto;right:28px;bottom:28px;display:flex;gap:12px;padding:0;background:none;border-top:0;transform:translateY(calc(100% + 40px))}
  .fixed.show{transform:none}
  .fixed a{min-height:60px;padding:0 32px;font-size:18px;border-radius:999px;box-shadow:0 8px 24px rgba(31,42,68,.22)}
  .fixed a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
  .fixed .fixed-cta{min-width:240px;font-size:19px} /* 目的は申込なので、LINEより大きく */
}

/* 出典リンクを押しやすく（高さ44px以上） */
.src a{display:inline-block;min-height:44px;line-height:44px}

/* 「写真はイメージです」：写真の右下に重ねる */
.hero-img{position:relative}
.hero-img figcaption{
  position:absolute;right:24px;bottom:12px;
  padding:2px 10px;border-radius:4px;
  background:rgba(31,42,68,.72);color:#fff;font-size:14px;line-height:1.6;
  animation:heroIn .9s var(--ease) both;
}
@media (prefers-reduced-motion:reduce){.hero-img figcaption{animation:none}}

/* 受付状況の部品のボタンの影を、このLPのボタン（3pxの影）に合わせる。押せない状態は影なしの平らな灰色に */
a[data-apply].is-closed{box-shadow:none}
a[data-apply].is-waitlist{box-shadow:0 3px 0 #111A2E}

/* 法律の正式名称は、意味の切れ目（<wbr>）でだけ改行する */
.name-law{word-break:keep-all}

/* ひとまとまりの言葉を途中で改行しない */
.nb{white-space:nowrap}

/* 画面下のボタンの文字は折り返さない。狭い画面（375px未満）では2つを同じ幅に */
.fixed a{white-space:nowrap}
@media (max-width:374px){
  .fixed{grid-template-columns:1fr 1fr}
  .fixed a{font-size:16px}
}

/* 受付状況が「受付中」以外（キャンセル待ち・満員・締切・終了）は文字が長くなるので、スマホでは縦に並べる */
@media (max-width:899px){
  html[data-lp-status] .fixed{grid-template-columns:1fr;gap:6px}
  html[data-lp-status] .fixed a{min-height:48px}
  html[data-lp-status] body{padding-bottom:132px}
}

/* 関係者確認用の表示（本番公開の時は index.html の行と一緒に消す） */
.review-note{margin:0;background:var(--ink);color:#fff;font-size:14px;font-weight:700;text-align:center;line-height:1.6;padding:6px 16px;letter-spacing:.04em}
