/* ファミリティーフェスティバル 案内サイト
   ビルドツールなしの素のHTML/CSS。外部依存は Google Fonts のみ。
   参考デザイン（写真＋イラスト＋手書き風のポップな募集ページ）に合わせている。

   【スマポンシブ】PCでもスマホのデザインをそのまま中央の帯（.page、最大430px）に表示し、
   左右の余白には背景と案内（ロゴ・メニュー・申込ボタン）を出す。
   帯の中のレイアウト切り替えは画面幅ではなく帯の幅で行う（@container page）。

   画像素材（img/*.png, img/fv.jpg）は family-festival-sp-assets から持ってきたもの。
   参考デザインから切り出した素材で解像度が小さいため、原寸以上に引き伸ばさないようにしている。 */

:root {
  --stall-photo: url(img/photo_fleamarket.png); /* 「出店について」の写真 */

  /* 文字・地 */
  --navy:   #1f3a6d;
  --text:   #2b3550;
  --muted:  #5d6680;
  --bg:     #fffdf8;
  --line:   #e4e9f1;

  /* 面 */
  --sky:        #eaf5fc;
  --sky-line:   #cfe6f5;
  --cream:      #fff8e6;
  --cream-line: #f3e2b3;
  --red:        #c92a2a;
  --red-bg:     #fdeef0;
  --red-line:   #f6cdd3;

  /* ボタン */
  --blue:        #2a6cbf;
  --blue-dark:   #1f579e;
  --blue-shadow: #17457f;
  --orange:      #c84f08;   /* 白文字が読める濃さにしている */

  /* ポップな5色（見出し文字・旗・番号） */
  --pink:   #f2609a;
  --yellow: #ffd23f;
  --yellow-ink: #f0a800;    /* 白地に置く黄色の文字用 */
  --sky-pop: #2fa3dd;
  --green:  #4cb84a;
  --tangerine: #f7931e;

  --page-w: 430px;     /* 中央の帯の幅（スマホ1台分） */
  --footer: #0e5587;   /* フッター素材（ロゴ・校舎・木）の地の色と同じにしている */

  --f-pop:  "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Zen Maru Gothic", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-hand: "Yomogi", "Zen Maru Gothic", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
b, strong { font-weight: 900; }
small { font-size: 0.82em; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }
[id] { scroll-margin-top: 76px; }

/* ───────── スマポンシブ（中央の帯と左右の余白） ───────── */
.page {
  container: page / inline-size;   /* 中のレイアウトはこの帯の幅で切り替える */
  position: relative;
  max-width: var(--page-w); margin: 0 auto;
  background: var(--bg);
}
.side { display: none; }

/* 画面が帯より広いとき：まわりを空色の背景にして、帯を浮かせる */
@media (min-width: 480px) {
  body { background: #dff1fb; }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      url(img/bunting.svg) top center / auto 96px repeat-x,
      url(img/trees.svg) left 2% bottom 70px / 220px auto no-repeat,
      url(img/trees.svg) right 2% bottom 64px / 240px auto no-repeat,
      url(img/hills.svg) bottom center / 100% 150px no-repeat;
  }
  .page {
    min-height: 100vh;
    box-shadow: 0 0 0 1px rgba(31, 58, 109, 0.06), 0 12px 48px rgba(31, 58, 109, 0.18);
  }
}

/* 左右の余白に案内を出せる広さのとき（PC）。それより狭いときは空色の背景だけ */
@media (min-width: 1100px) {
  /* 案内と重ならないよう、背景の木は外して丘だけにする */
  body::before {
    background:
      url(img/bunting.svg) top center / auto 96px repeat-x,
      url(img/hills.svg) bottom center / 100% 120px no-repeat;
  }
  .side {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; bottom: 0; z-index: 1;
    width: calc((100vw - var(--page-w)) / 2);
    padding: 104px 28px 48px; overflow-y: auto;   /* 画面の高さが低いときは案内の中だけスクロール */
  }
  .side-l { left: 0; }
  .side-r { right: 0; }
  .side-inner { width: 100%; max-width: 280px; }
  .side-logo { display: block; line-height: 0; }
  .side-logo img { width: 100%; height: auto; }
  .side-catch {
    margin: 16px 0 18px; color: var(--navy);
    font-family: var(--f-pop); font-size: 26px; line-height: 1.35;
  }
  .side-catch span {
    display: block; width: fit-content; margin-bottom: 8px; padding: 1px 18px;
    background: var(--yellow); font-size: 17px;
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
  }
  .side-nav {
    display: flex; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, 0.9); border-radius: 18px; padding: 10px;
  }
  .side-nav a {
    display: block; padding: 7px 12px; border-radius: 10px;
    color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  }
  .side-nav a::before { content: "›"; color: var(--sky-pop); font-weight: 900; margin-right: 8px; }
  .side-nav a:hover { background: var(--sky); }
  .side-card {
    background: #fff; border-radius: 22px; padding: 24px 20px;
    text-align: center; box-shadow: 0 10px 28px rgba(31, 58, 109, 0.14);
  }
  .side-card p { margin: 0; }
  .side-status { color: var(--navy); font-weight: 900; font-size: 18px; line-height: 1.6; }
  .side-status b { color: var(--orange); font-size: 1.25em; }
  .side-sub { margin: 8px 0 16px !important; font-size: 13px; color: var(--muted); }
  .side-btn { width: 100%; padding: 12px 16px; font-size: 16px; }
  .side-kids { display: block; width: 100%; max-width: 202px; height: auto; margin: 22px auto 0; }
}

/* ───────── ヘッダー ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 0 rgba(31, 58, 109, 0.06);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  height: 60px; padding: 0 12px 0 16px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 30px; width: auto; }

.sp-menu { margin-left: auto; position: relative; }
.sp-menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--navy); border-radius: 12px;
}
.sp-menu summary::-webkit-details-marker { display: none; }
.sp-menu summary img { width: 32px; height: auto; }
.sp-menu[open] summary { background: var(--sky); }
.sp-menu-panel {
  position: absolute; right: 0; top: 52px; width: 250px;
  background: #fff; border-radius: 18px; padding: 10px;
  box-shadow: 0 12px 32px rgba(31, 58, 109, 0.18);
  display: flex; flex-direction: column;
}
.sp-menu-panel a {
  padding: 10px 14px; border-radius: 10px;
  color: var(--navy); font-weight: 700; text-decoration: none;
}
.sp-menu-panel a:hover { background: var(--sky); }
.sp-menu-panel .sp-menu-cta {
  margin-top: 6px; background: var(--orange); color: #fff; text-align: center; border-radius: 999px;
}

/* ───────── ヒーロー（素材の画像。文字は画像に描き込まれている） ───────── */
.hero { background: #d5edfb; }
.hero-fv { display: block; width: 100%; height: auto; }
/* 見た目には出さず、読み上げソフトと検索エンジン向けに見出しの文字を残す */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────── 開催概要 ───────── */
.intro {
  position: relative; z-index: 3;
  max-width: 1100px; margin: 10px auto 0; padding: 0 12px;   /* スマホはヒーロー画像のステッカーを隠さない */
}
.info-bar {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  background: var(--sky); border: 2px solid var(--sky-line); border-radius: 22px;
  padding: 18px 18px;
}
.info-item p { margin: 0; }
.info-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--navy); font-weight: 900; font-size: 15px;
}
.info-label img { width: 26px; height: auto; }
.info-value { color: var(--navy); font-weight: 900; font-size: 18px; line-height: 1.5; margin-top: 4px !important; }
.info-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px !important; }
.info-item + .info-item:not(.info-text) { border-top: 2px solid var(--sky-line); padding-top: 12px; }
.tbd { white-space: nowrap; }
.info-text { grid-column: 1 / -1; border-top: 2px solid var(--sky-line); padding-top: 12px; }
.info-text p { color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.9; text-align: center; }
/* 子どものイラスト：スマホは文の下に左右2枚、PCは文の右に1枚 */
.kids { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.kids img { width: 48%; max-width: 195px; height: auto; }
.tbd {
  display: inline-block; background: #fff; color: #a24406;
  border: 2px dashed var(--tangerine); border-radius: 999px;
  padding: 0 12px; font-size: 12.5px; font-weight: 900; line-height: 1.8;
}
.status {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 0; padding: 12px 16px;
  background: var(--cream); border: 2px solid var(--cream-line); border-radius: 18px;
  font-size: 15px; line-height: 1.75;
}
.status .ic { width: 26px; height: 26px; color: var(--orange); margin-top: 1px; }
.status strong { color: var(--navy); }

/* ───────── セクション共通 ───────── */
.sec { max-width: 1100px; margin: 0 auto; padding: 60px 12px 0; }
.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 26px;
  color: var(--navy); font-weight: 900; font-size: 20px; line-height: 1.4; text-align: center;
}
/* 見出しの左に小さな旗、右にキラキラ */
.sec-title::before, .sec-title::after { content: ""; flex: none; background-repeat: no-repeat; background-size: contain; }
.sec-title::before {
  width: 50px; height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 26'%3E%3Cpath d='M1 3 Q27 16 53 3' fill='none' stroke='%239a8a78' stroke-width='1.6'/%3E%3Cpolygon points='6,7 18,8.6 11,22' fill='%2333a8e0'/%3E%3Cpolygon points='21,9.2 33,9.2 27,23' fill='%23ffd23f'/%3E%3Cpolygon points='36,8.6 48,7 43,22' fill='%23f2609a'/%3E%3C/svg%3E");
}
.sec-title::after {
  width: 26px; height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg stroke='%23f5b300' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 21 9 7'/%3E%3Cpath d='M13 23l8-10'/%3E%3Cpath d='M17 27l9-3'/%3E%3C/g%3E%3C/svg%3E");
}
.sec-title-plain::before, .sec-title-plain::after { display: none; }
/* スマホでは左の旗を省き、見出しが1行に収まるようにする */
  .sec-title { font-size: 20px; gap: 6px; }
  .sec-title::before { width: 22px; height: 24px; background-image: url(img/icon_flag.png); }
  .sec-title::after { width: 18px; height: 18px; }

.sec-title-plain img { width: 40px; height: auto; }

/* ───────── できること ───────── */
.can-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px;
  background: var(--sky); border-radius: 22px; padding: 22px 12px;
}
.can { text-align: center; }
.can-img { display: block; width: 114px; height: 96px; object-fit: contain; margin: 0 auto 10px; }
.can h3 {
  margin: 0 0 6px; color: var(--navy); font-weight: 900; font-size: 14px; line-height: 1.5;
  white-space: nowrap;   /* 改行は <br> の位置だけで行う（語の途中で折れないように） */
}
.can p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ───────── 出店について ───────── */
.about { display: grid; gap: 18px; }
.about-photo {
  aspect-ratio: 267 / 249; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 22px;
  background-color: #d9effb;
  background-image: var(--stall-photo), url(img/stall-illust.svg);
  background-size: cover, cover;
  background-position: center, 12% bottom;   /* 縦長でも看板とテントが残る位置 */
  background-repeat: no-repeat;
  box-shadow: 0 8px 22px rgba(31, 58, 109, 0.12);
}
.about-panel {
  background: var(--cream); border: 2px solid var(--cream-line); border-radius: 22px;
  padding: 20px 14px 16px;
}
.panel-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px 4px; color: var(--navy); font-weight: 900; font-size: 21px;
}
.panel-title img { width: 40px; height: auto; }
.rows { margin: 0; display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  background: #fff; border-radius: 14px; padding: 11px 14px;
}
.row dt {
  display: flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 900; font-size: 15px;
}
.row dt .ic { width: 24px; height: 24px; color: var(--navy); }
.row dt img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.row dd { margin: 0 0 0 32px; font-size: 15px; line-height: 1.7; }
.row dd small { display: block; color: var(--muted); }
.bring {
  padding: 14px 18px;
  background: #fff; border: 2px dashed var(--sky-line); border-radius: 18px;
  font-size: 15px;
}
.bring p { margin: 0; }
.bring-title { color: var(--navy); font-weight: 900; margin-bottom: 4px !important; }

/* ───────── 2カラムの箱（参加費・当日の流れ） ───────── */
.two { display: grid; gap: 18px; }
.box {
  background: #fff; border: 2px solid var(--line); border-radius: 22px;
  padding: 20px 18px;
}
.box p { margin: 0 0 12px; }
.box-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; color: var(--navy); font-weight: 900; font-size: 18px;
}
.box-title .ic { width: 26px; height: 26px; color: var(--blue); }
.box-title img { width: 26px; height: auto; }
.box-title:not(:first-child) { margin-top: 24px; }
.small { font-size: 14px; color: var(--muted); }
.pay-note { margin: -4px 0 12px !important; padding: 6px 10px; font-size: 13px; font-weight: 700; color: #8a4a06; background: var(--cream); border-radius: 8px; }

.table-scroll { overflow-x: auto; margin: 0 0 14px; }
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 2px solid var(--line); border-radius: 14px; overflow: hidden;
  font-size: 15px; background: #fff;
}
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: none; }
th { background: var(--sky); color: var(--navy); font-weight: 900; white-space: nowrap; }
td small { display: block; color: var(--muted); }
td.price { color: var(--blue-dark); font-weight: 900; white-space: nowrap; }
.example {
  background: var(--sky); border-radius: 14px; padding: 10px 14px; font-size: 15px;
}
.example strong { color: var(--blue-dark); font-size: 1.15em; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.checks .ic { color: var(--green); width: 22px; height: 22px; margin-top: 3px; }
.checks .ic-x { color: var(--red); }
.dots { margin: 0 0 8px; padding-left: 1.3em; }
.dots li { margin-bottom: 6px; }
.dots li::marker { color: var(--sky-pop); }
.timeline { list-style: none; padding: 0; margin: 6px 0 0; }
.timeline li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 2px dotted var(--line); }
.timeline li:last-child { border-bottom: none; }
.timeline .t { flex: 0 0 100px; color: var(--blue-dark); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ───────── 注意事項 ───────── */
.caution {
  background: var(--red-bg); border: 2px solid var(--red-line); border-radius: 22px;
  padding: 22px 16px;
}
.caution-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; color: var(--red); font-weight: 900; font-size: 19px;
}
.caution-title img { width: 34px; height: auto; }
.ng-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px;
}
.ng-grid li { text-align: center; }
.ng-grid svg, .ng-grid img { display: block; width: 66px; height: 66px; margin: 0 auto; }
.ng-grid p { margin: 6px 0 0; color: var(--red); font-size: 13.5px; line-height: 1.6; }
.caution-more {
  margin: 20px 0 0; padding: 12px 16px;
  background: #fff; border-radius: 14px; font-size: 14.5px;
}
.caution-other { margin-top: 16px; font-size: 15px; }
.caution-other ul { margin: 0 0 10px; padding-left: 1.3em; }
.caution-other li { margin-bottom: 4px; }
.caution-other li::marker { color: var(--red); }
.caution-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.caution-foot img { width: 96px; height: auto; margin-bottom: -8px; }
.link-arrow { font-weight: 900; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ───────── 申込から当日までの流れ ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.step-no {
  grid-row: span 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-pop); font-size: 19px; color: #fff; background: var(--pink);
}
.steps li:nth-child(2) .step-no { background: var(--tangerine); }
.steps li:nth-child(3) .step-no { background: var(--yellow); color: var(--navy); }
.steps li:nth-child(4) .step-no { background: var(--green); }
.steps li:nth-child(5) .step-no { background: var(--sky-pop); }
.steps p { margin: 0; }
.step-h { color: var(--navy); font-weight: 900; font-size: 16px; }
.steps .step-h + p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ───────── 出店申し込み（空と丘） ───────── */
.apply {
  position: relative; overflow: hidden;
  margin-top: 72px; padding: 52px 12px 150px;
  background:
    url(img/trees.svg) left -20px bottom 66px / 150px auto no-repeat,
    url(img/trees.svg) right -30px bottom 60px / 170px auto no-repeat,
    url(img/clouds.svg) top 10px center / max(900px, 100%) auto no-repeat,
    #e3f3fc;
}
.apply::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
  background: url(img/hills.svg) bottom / 100% 100% no-repeat;
}
.apply-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.apply .sec-title { margin-bottom: 8px; }
.apply-lead { margin: 0 0 18px; text-align: center; color: var(--navy); font-weight: 700; }
.apply-card {
  background: #fff; border-radius: 22px; padding: 22px 18px;
  box-shadow: 0 12px 30px rgba(31, 58, 109, 0.12);
}
.cta { text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 40px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 18px;
  box-shadow: 0 5px 0 var(--blue-shadow);
}
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--blue-shadow); }
.btn .ic, .btn-ic { width: 24px; height: auto; }
.btn:disabled, .btn:disabled:hover { background: #8a93a6; box-shadow: 0 5px 0 #6b7387; cursor: not-allowed; }
.btn:disabled:active { transform: none; box-shadow: 0 5px 0 #6b7387; }
  .btn { padding: 14px 24px; font-size: 16px; white-space: nowrap; }
  .apply-lead { font-size: 14px; }

.apply-note { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ───────── 申込フォーム ───────── */
.form-closed {
  margin: 0 0 18px; padding: 12px 14px; font-size: 14px; line-height: 1.7;
  background: var(--cream); border: 2px solid var(--cream-line); border-radius: 14px;
}
.form-closed b { color: var(--navy); }
.aform fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.aform legend {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--line);
  color: var(--navy); font-weight: 900; font-size: 17px;
}
.aform legend::before { content: ""; width: 8px; height: 20px; border-radius: 4px; background: var(--pink); }
.aform fieldset:nth-of-type(2) legend::before { background: var(--tangerine); }
.aform fieldset:nth-of-type(3) legend::before { background: var(--green); }
.aform fieldset:nth-of-type(4) legend::before { background: var(--sky-pop); }

.f { margin: 0 0 16px; }
.f > label, .f-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 6px;
  color: var(--navy); font-weight: 900; font-size: 15px;
}
.req, .opt { font-size: 11px; font-weight: 900; line-height: 1.7; border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.req { color: #fff; background: #d6336c; }   /* 白文字が読める濃さのピンク */
.opt { color: var(--muted); border: 1px solid var(--line); background: #fff; }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea {
  display: block; width: 100%; min-height: 48px; padding: 11px 13px;
  font: inherit; font-size: 16px;   /* 16px 未満だと、iPhone で入力欄を押したときに画面が拡大される */
  color: var(--text); background: #fbfcfe; border: 2px solid #d9e1ec; border-radius: 12px;
}
.f textarea { min-height: 84px; line-height: 1.6; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: #9aa3b5; }
.f input:focus, .f textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 108, 191, 0.2); }
.f-hint { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.f-err { margin: 5px 0 0; font-size: 13px; font-weight: 700; color: var(--red); line-height: 1.6; }
.f-err:empty { display: none; }
.f.is-error input[type="text"], .f.is-error input[type="email"], .f.is-error input[type="tel"], .f.is-error textarea { border-color: var(--red); background: #fff7f7; }
.f.is-error .choice, .f.is-error .agree { border-color: #f0b4b4; }

/* 選択肢（押しやすいよう高さ44px以上） */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices-col { flex-direction: column; }
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 2px solid #d9e1ec; border-radius: 999px; background: #fbfcfe;
  font-size: 14.5px; font-weight: 700; line-height: 1.4; cursor: pointer;
}
.choices-col .choice { border-radius: 14px; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.choice small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(42, 108, 191, 0.25); }
.choice:has(input:disabled) { opacity: 0.4; cursor: not-allowed; }

.agree {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border: 2px solid #d9e1ec; border-radius: 14px; background: #fbfcfe;
  font-size: 14.5px; font-weight: 700; line-height: 1.6; cursor: pointer;
}
.agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.agree .req { margin-left: 6px; vertical-align: 1px; }
.agree:has(input:checked) { border-color: var(--green); background: #f1faee; }
/* 入力欄の見出し用の指定（.f > label）が効かないよう、同意の行は横並びのまま折り返さない */
.f > label.agree { flex-wrap: nowrap; align-items: flex-start; margin: 0; color: var(--text); font-size: 14.5px; font-weight: 700; }

/* 金額の目安 */
.fee-box {
  margin: 0 0 26px; padding: 14px 16px;
  background: var(--sky); border: 2px solid var(--sky-line); border-radius: 16px;
}
.fee-box p { margin: 0; }
.fee-title { margin-bottom: 6px !important; color: var(--navy); font-weight: 900; font-size: 15px; }
.fee-empty { font-size: 14px; color: var(--muted); }
.fee-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fee-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px !important; padding-top: 8px; border-top: 2px dashed var(--sky-line);
  color: var(--navy); font-weight: 900;
}
.fee-total strong { font-size: 24px; color: var(--blue-dark); }

/* 個人情報の取り扱い */
.privacy { margin: 0 0 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; }
.privacy summary { padding: 10px 14px; color: var(--navy); font-weight: 900; font-size: 14px; cursor: pointer; }
.privacy-body { margin: 0; padding: 0 14px 12px; font-size: 13px; line-height: 1.75; }
.privacy-body dt { margin-top: 8px; color: var(--navy); font-weight: 900; }
.privacy-body dd { margin: 0; }

/* ロボット対策 */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { display: flex; justify-content: center; margin: 0 0 14px; }
.turnstile:empty { display: none; }

.form-error {
  margin: 0 0 14px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--red);
  background: var(--red-bg); border: 2px solid var(--red-line); border-radius: 12px;
}

/* 送信完了 */
.apply-done { text-align: center; padding: 8px 4px; outline: none; }
.apply-done p { margin: 0 0 10px; }
.done-icon {
  display: block; width: 56px; height: 56px; margin: 0 auto 8px; padding: 12px;
  border-radius: 50%; background: var(--green); color: #fff;
}
.done-title { font-family: var(--f-pop); color: var(--navy); font-size: 22px; line-height: 1.4; }

/* ───────── よくある質問 ───────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 2px solid var(--line); border-radius: 16px; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--sky-line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 13px 44px 13px 54px; color: var(--navy); font-weight: 900; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq details p::before {
  position: absolute; left: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-pop); font-size: 14px; color: #fff;
}
.faq summary::before { content: "Q"; top: 12px; background: var(--blue); }
.faq summary::after {
  content: "＋"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-weight: 900;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { position: relative; margin: 0; padding: 0 18px 16px 54px; }
.faq details p::before { content: "A"; top: 0; background: var(--tangerine); }

/* ───────── お問い合わせ ───────── */
.contact {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: var(--sky); border: 2px solid var(--sky-line); border-radius: 22px; padding: 22px 18px;
}
.contact p { margin: 0; }
.contact-org { color: var(--navy); }
.contact-tbd { margin-top: 12px !important; font-size: 14px; color: var(--muted); }
/* 名前の途中で改行しないよう、ひとかたまりごとに折り返す（「実行委／員会」のような字落ちを防ぐ） */
.nb { display: inline-block; }
.contact-org b { font-size: 16px; }

/* ───────── フッター ───────── */
.site-footer {
  margin-top: 72px; padding: 26px 12px 30px;
  background: var(--footer); color: #fff; text-align: center;
}
.footer-inner { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.footer-logo { width: 220px; height: auto; flex: 0 1 auto; min-width: 0; }
.footer-school { width: 66px; height: auto; flex: none; }
.footer-tree { width: 30px; height: auto; flex: none; }
.footer-host { margin: 14px 0 0; font-size: 12px; opacity: 0.8; }

/* ───────── 下層ページ（出店規約） ───────── */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 92px 16px 40px;
  background: #d9effb;
  color: var(--navy);
}
.page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 58px;
  background: url(img/bunting.svg) top center / auto 100% repeat-x;
}
.page-hero h1 { position: relative; margin: 0; font-family: var(--f-pop); font-weight: 400; font-size: min(30px, 7.4cqi); line-height: 1.35; }  /* cqi = 帯の幅の1% */
.page-hero p { position: relative; margin: 6px 0 0; font-weight: 900; }
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px 0; }
.chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: block; padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line);
  color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none;
}
.chips a:hover { border-color: var(--sky-pop); }
.wrap h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 40px 0 12px; color: var(--navy); font-weight: 900; font-size: 21px;
}
.wrap h2::before { content: ""; width: 10px; height: 26px; border-radius: 6px; background: var(--pink); flex: none; }
.wrap h2:nth-of-type(5n+2)::before { background: var(--tangerine); }
.wrap h2:nth-of-type(5n+3)::before { background: var(--yellow); }
.wrap h2:nth-of-type(5n+4)::before { background: var(--green); }
.wrap h2:nth-of-type(5n+5)::before { background: var(--sky-pop); }
.wrap h3 { margin: 22px 0 8px; color: var(--navy); font-weight: 900; font-size: 17px; }
.wrap ul { padding-left: 1.3em; }
.wrap li { margin-bottom: 6px; }
.note, .warn, .card { border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }
.note { background: var(--cream); border: 2px solid var(--cream-line); }
.warn { background: var(--red-bg); border: 2px solid var(--red-line); }
.card { background: var(--sky); border: 2px solid var(--sky-line); }
.note p, .warn p, .card p { margin: 0 0 8px; }
.note p:last-child, .warn p:last-child, .card p:last-child,
.note ul:last-child, .warn ul:last-child { margin-bottom: 0; }
.wrap .cta { margin: 32px 0 0; }


