/* 共通スタイル v2（2026-10-10）
   生成りの地＋墨藍の文字。虹は細い線だけ、行動のボタンはハイビスカスの赤。
   絵（キービジュアル）が水彩でにぎやかなので、ページ側は静かにする。濃色のベタ塗りは使わない。 */
:root {
  --bg: #fdf8ec;          /* 生成り（キービジュアルの地と同じ） */
  --bg-deep: #f6efdf;     /* フッター・淡い面 */
  --paper: #ffffff;
  --ink: #13224f;         /* 本文（墨藍） */
  --ink-sub: #4a5672;
  --navy: #0e1d4c;        /* 見出し・主ボタン */
  --red: #c8322a;         /* 行動のボタン（白文字で AA） */
  --red-bright: #e2453c;  /* 装飾 */
  --teal: #17696f;        /* リンク */
  --line: #e6dfd0;
  --field: #b9b2a3;
  --rainbow: linear-gradient(90deg, #e2453c, #f08a2b, #f2c230, #4fae6a, #1e9aa0, #2e6fb7, #7a55a8);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --radius: 14px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 17px; line-height: 1.85; letter-spacing: .02em;
}
img, canvas { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red-bright); outline-offset: 2px;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.rainbow-line { height: 4px; background: var(--rainbow); border: 0; margin: 0; }

/* デモ表示 */
.demo-bar { background: #fff4e5; color: #8a4b12; text-align: center; font-size: 13px; line-height: 1.4; padding: 4px 8px; border-bottom: 1px solid #f0d9b8; }

/* ヘッダー */
.site-header { background: rgba(253, 248, 236, .96); position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rainbow); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding-top: 8px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); min-height: 48px; }
.brand .mark { width: 40px; height: auto; flex: none; }
.brand .word { height: 30px; width: auto; display: block; }
.brand small { display: block; color: var(--ink-sub); font-size: 11.5px; line-height: 1.2; letter-spacing: .08em; margin-top: 2px; }
.nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0 2px; width: 100%; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red-bright); font-weight: 700; }
.nav a:hover { color: var(--red); }
.nav a.nav-cta { color: var(--red); font-weight: 700; }
@media (min-width: 900px) { .nav { width: auto; } }

/* フッター */
.site-footer { margin-top: 72px; background: var(--bg-deep); padding: 30px 0 110px; font-size: 15px; line-height: 1.8; color: var(--ink-sub); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow); }
.site-footer a { color: var(--teal); }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-footer .foot-brand img { height: 34px; width: auto; }
.site-footer .foot-nav { display: flex; flex-wrap: wrap; gap: 0 14px; margin-bottom: 8px; }
.site-footer .foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer strong { color: var(--ink); }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* 見出し・本文 */
h1, h2, h3 { line-height: 1.5; color: var(--navy); margin: 0 0 .5em; font-weight: 700; }
h1, h2 { font-family: var(--serif); letter-spacing: .04em; }
h1 { font-size: 28px; }
h2 { font-size: 24px; margin-top: 2.2em; padding-bottom: 10px; position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px; background: var(--rainbow); }
h2.center { text-align: center; }
h2.center::after { left: 50%; transform: translateX(-50%); }
h3 { font-size: 19px; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.lead { font-size: 18px; color: var(--ink-sub); }
.small { font-size: 15px; color: var(--ink-sub); }
.page-head { padding: 40px 0 14px; }
.page-head h1 { margin: 0 0 4px; }
.page-head p { margin: 0; color: var(--ink-sub); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #1b2d66; transform: translateY(-1px); }
.btn.sub { background: transparent; color: var(--navy); }
.btn.sub:hover { background: rgba(14, 29, 76, .06); }
.btn.warm { background: var(--red); border-color: var(--red); box-shadow: 0 6px 18px rgba(200, 50, 42, .22); }
.btn.warm:hover { background: #ad271f; }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .9; }
.btn.small-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

/* ===== トップ ===== */
.hero2 { padding: 26px 0 10px; }
.hero2 .wrap { display: grid; gap: 8px; align-items: center; }
.hero2 .copy { text-align: center; }
.hero2 .tagline { font-family: var(--serif); font-size: 17px; letter-spacing: .14em; color: var(--ink); margin: 6px 0 2px; }
.hero2 .wordmark { width: min(88%, 460px); height: auto; display: block; margin: 0 auto; }
.hero2 .project { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: .08em; margin: 0; }
.hero2 .verbs { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .16em; margin-top: 6px; padding-bottom: 7px; position: relative; }
.hero2 .verbs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--rainbow); }
.hero2 .btn-row { justify-content: center; margin-top: 22px; }
.hero2 .art img { width: 100%; height: auto; display: block; border-radius: 18px; }
@media (min-width: 900px) {
  .hero2 { padding: 40px 0 16px; }
  .hero2 .wrap { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .hero2 .copy { text-align: left; }
  .hero2 .wordmark { margin: 0; width: 100%; max-width: 500px; }
  .hero2 .btn-row { justify-content: flex-start; }
  .hero2 .tagline { font-size: 19px; }
  .hero2 .project { font-size: 27px; }
}

/* カウンター（人数だけ。減らない累計） */
.counter2 { margin: 18px auto 0; background: var(--paper); border-radius: 22px; box-shadow: 0 10px 30px rgba(19, 34, 79, .07); padding: 22px 20px 20px; text-align: center; position: relative; overflow: hidden; }
.counter2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rainbow); }
.counter2 .label { font-size: 15px; color: var(--ink-sub); letter-spacing: .1em; }
.counter2 .num { font-family: var(--serif); font-size: clamp(48px, 15vw, 92px); font-weight: 700; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.counter2 .num small { font-size: .32em; margin-left: 4px; letter-spacing: .1em; }
.counter2 .goal { font-size: 15px; color: var(--ink-sub); }
.bar { height: 12px; background: #f1ece1; border-radius: 999px; overflow: hidden; margin: 14px auto 6px; max-width: 640px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--rainbow); border-radius: 999px; transition: width 1.2s ease-out; }
.pct { font-size: 14px; color: var(--ink-sub); }

/* ただいま／おかえり */
.callres { text-align: center; padding: 18px 0 4px; }
.callres .pair { display: flex; justify-content: center; gap: 14px 28px; flex-wrap: wrap; font-family: var(--serif); font-weight: 700; color: var(--navy); }
.callres .pair span { font-size: clamp(28px, 7vw, 44px); letter-spacing: .06em; }
.callres .pair .b { color: var(--red); }
.callres p { color: var(--ink-sub); margin-top: 8px; }

/* 3ステップ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 20px 18px 18px 76px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 4px 16px rgba(19, 34, 79, .05); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); color: var(--navy); border: 2px solid var(--navy); font-family: var(--serif); font-weight: 700; font-size: 21px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; color: var(--navy); font-size: 18px; margin-bottom: 2px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* 団体で参加 */
.group-box { display: grid; gap: 18px; background: var(--paper); border-radius: 20px; padding: 22px 20px; box-shadow: 0 6px 22px rgba(19, 34, 79, .06); }
.group-box ul { margin: 0; padding-left: 1.2em; }
.group-box li { margin-bottom: .45em; }
.cert-sample { aspect-ratio: 210 / 297; max-width: 240px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.08); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px 14px; position: relative; overflow: hidden; }
.cert-sample::before, .cert-sample::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: var(--rainbow); }
.cert-sample::before { top: 0; } .cert-sample::after { bottom: 0; }
.cert-sample img { width: 70%; height: auto; }
.cert-sample .t { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 18px; letter-spacing: .3em; margin: 6px 0; }
.cert-sample .o { font-weight: 700; font-size: 14px; }
.cert-sample .r { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 6px; }
@media (min-width: 760px) { .group-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 30px; } }

/* 見本動画の枠 */
.video-frame { max-width: 760px; margin: 0 auto; aspect-ratio: 16 / 9; border: 2px dashed var(--field); border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--navy); font-weight: 700; }
.video-frame .date { font-family: var(--serif); font-size: 26px; color: var(--red); }

/* FAQ */
.faq details { background: var(--paper); border-radius: 12px; padding: 4px 18px; margin: 10px 0; box-shadow: 0 2px 10px rgba(19, 34, 79, .04); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 48px; display: flex; align-items: center; }
.faq details p { margin: 0 0 14px; color: var(--ink-sub); }

/* スマホ下部の固定ボタン */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(253, 248, 236, .96); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: 15px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* カード・ボックス */
.card { border-radius: var(--radius); padding: 18px 20px; background: var(--paper); margin: 14px 0; box-shadow: 0 3px 14px rgba(19, 34, 79, .05); }
.card h3 { margin-top: 0; }
.note { border-left: 4px solid var(--red-bright); background: #fff7ef; padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.note.sea { border-left-color: #1e9aa0; background: #eef7f6; }
.grid3 { display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } .grid2 { grid-template-columns: repeat(2, 1fr); } }
.tag { display: inline-block; padding: 0 10px; border-radius: 999px; background: #eef1f8; color: var(--navy); font-size: 14px; font-weight: 700; }
.tag.warm { background: #fdecea; color: var(--red); }
ul.dots { padding-left: 1.3em; } ul.dots li { margin-bottom: .4em; }

/* キャプション例 */
.caption-box { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 16px; line-height: 1.8; margin: 10px 0; }

/* 素材 */
.mat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mat-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--radius); padding: 12px 16px; min-height: 58px; box-shadow: 0 2px 10px rgba(19, 34, 79, .04); }
.mat-list .t b { display: block; color: var(--navy); }
.mat-list .t span { font-size: 14px; color: var(--ink-sub); line-height: 1.5; display: block; }
.badge-wait { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-sub); background: #f1ece1; border-radius: 999px; padding: 2px 12px; }

/* フォーム */
form .field { margin: 0 0 22px; }
label, .lbl { display: block; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.req { display: inline-block; background: var(--red); color: #fff; font-size: 12px; padding: 0 7px; border-radius: 4px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
.opt { display: inline-block; background: #ece6d9; color: var(--ink-sub); font-size: 12px; padding: 0 7px; border-radius: 4px; margin-left: 6px; font-weight: 500; vertical-align: 1px; }
.hint { font-size: 14px; color: var(--ink-sub); line-height: 1.6; margin: 2px 0 6px; font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=url], select, textarea {
  width: 100%; min-height: 50px; padding: 8px 12px; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--field); border-radius: 10px;
}
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 15px; font-weight: 700; margin-top: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; font-weight: 500; color: var(--ink); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--field); border-radius: 999px; cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--red-bright); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 8px 0; min-height: 44px; cursor: pointer; color: var(--ink); }
.check input { width: 24px; height: 24px; flex: none; margin-top: 4px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; font-weight: 700; }
.status.error { color: var(--red); }

/* ダイアログ */
.modal { position: fixed; inset: 0; background: rgba(19, 34, 79, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal[hidden] { display: none; }
.modal .box { background: #fff; border-radius: 18px; padding: 22px; max-width: 460px; width: 100%; position: relative; overflow: hidden; }
.modal .box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rainbow); }
.modal h3 { margin-top: 4px; color: var(--red); }

/* 完了・参加証 */
.done { text-align: center; }
.done .big { font-size: 24px; font-weight: 800; color: var(--navy); }
.done .range { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--red); line-height: 1.4; }
.cert-wrap { margin: 18px auto; max-width: 420px; }
.cert-wrap canvas, .cert-wrap img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); display: block; }
#certImg { display: none; }
.is-ios #certImg { display: block; }
.is-ios #certCanvas { display: none; }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; z-index: 60; }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .bar > i { transition: none; } .btn { transition: none; } * { scroll-behavior: auto !important; } }
@media (min-width: 900px) { body { font-size: 18px; } h1 { font-size: 34px; } }
