/* ============================================================
   CoreShift 新サイト共通スタイル
   イメージカラーはロゴの空色（#29abe2）。白と淡い空色のセクションを交互に置き、文字は紺（ロゴの紺に寄せた色）。
   空色は白い文字や白地の文字には薄すぎる（コントラスト 2.6）ので、ボタン・リンク・小さい文字には深い空色（--accent）を使い、
   空色そのものは帯・面・バッジ（紺の文字をのせる）に使う。（#70 黒基調をやめる。代表の決定 2026-11-25）
   保護者向けページ（for children）は、さらにやわらかい空色の配色（theme-sky）。
   ブレークポイント: サイズ3(PC) 1301px〜 / サイズ2 〜1300px / サイズ1(スマホ) 〜768px
============================================================ */
:root {
  --sky: #29abe2;        /* ロゴの空色（面・帯・バッジ用） */
  --sky-pale: #eef8fd;   /* 淡い空色のセクション */
  --navy: #1b2a5e;       /* 文字・フッター */
  --bg: #ffffff;
  --bg2: #f4fafd;
  --surface: #f4fafd;
  --text: #1b2a5e;
  --muted: #4f5a75;
  --border: #d6eaf5;
  --accent: #0a74b0;     /* 深い空色（白地で 5.1、白い文字をのせて 5.1） */
  --accent-strong: #085d8e;
  --link: #0a6aa3;
  --head-bg: #ffffff;
  --font: 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1360px;   /* 本文の最大幅（左右の余白込み）。PCで空白が大きいとの指摘で 1120→1360px（2026-11-25） */
  --gutter: 40px;
}

/* 淡い空色のセクション（白いセクションと交互に置く） */
.sec--light {
  --bg: var(--sky-pale);
  --bg2: #ffffff;
  --surface: #ffffff;
  --border: #cfe6f3;
}

/* 保護者向け: 空色の明るい配色（旧 child.css） */
.theme-sky {
  --bg: #e5f3fc;
  --bg2: #e5f3fc;
  --surface: #ffffff;
  --text: #3a3a4a;
  --muted: #55607a;
  --border: #c9e1f0;
  --accent: #0a74b0;     /* サイト全体と同じ深い空色にそろえる */
  --accent-strong: #085d8e;
  --link: #0a6aa3;
  --head-bg: #ffffff;
}
.theme-sky .sec--light { --bg: #ffffff; --surface: #f3f9fd; --text: #3a3a4a; --muted: #55607a; --border: #d7e8f3; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-feature-settings: "palt";
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
/* グリッドの子が写真の元の幅に引っぱられて画面からはみ出さないように */
.hero .wrap > *, .media > *, .about > *, .cards > *, .steps > *, .features > *, .doors > * { min-width: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header（2段: 上=読む方別、下=ジャンル。BBC・Raspberry Pi Foundation などを参考に） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg); /* 後ろをぼかす効果は、スクロールのたびに計算し直して重くなるので使わない */
  border-bottom: 1px solid var(--border);
}
/* 読む方別の帯もヘッダーの中に置き、常に表示する（代表の希望 2026-11-25） */
.head-util { background: var(--sky-pale); border-top: 4px solid var(--sky); border-bottom: 1px solid var(--border); }
.unav { display: flex; justify-content: flex-end; gap: 24px; font-size: 0.8rem; font-weight: 700; }
.unav a { color: var(--muted); text-decoration: none; padding: 10px 0; white-space: nowrap; } /* 上の帯は押しやすい高さにする（代表の指摘 2026-11-25） */
.unav a:hover, .unav a[aria-current="page"] { color: var(--accent); }
.head-main .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo small { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-left: 6px; letter-spacing: 0.06em; }
.gnav { display: flex; gap: 28px; margin-left: auto; font-size: 0.92rem; font-weight: 700; }
.gnav a { color: var(--text); text-decoration: none; padding: 21px 0 19px; border-bottom: 3px solid transparent; white-space: nowrap; }
.gnav a:hover { color: var(--accent); }
.gnav a[aria-current="page"] { border-bottom-color: var(--sky); }
.l-short { display: none; }
.head-cta { padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.head-cta:hover { background: var(--accent-strong); color: #fff; }
@media (max-width: 1300px) {
  .head-main .wrap { gap: 20px; }
  .gnav { gap: 18px; font-size: 0.86rem; }
}

/* ---------- section ---------- */
.sec { background: var(--bg); color: var(--text); padding: 112px 0; }
.sec + .sec:not(.sec--light) { border-top: 1px solid var(--border); }
.sec-head { margin-bottom: 48px; }
.eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow b { color: var(--muted); font-weight: 700; margin-right: 10px; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.3; font-weight: 900; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.4; font-weight: 900; }
h3 { font-size: 1.15rem; line-height: 1.5; font-weight: 900; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 32px;
  background: var(--accent); color: #fff;
  font-weight: 700; letter-spacing: 0.06em; line-height: 1.5;
  text-decoration: none; border: 2px solid var(--accent);
  transition: background 0.2s, border-color 0.2s, gap 0.2s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
/* ホバーで大きさを変えない（スナップスクロールが位置を合わせ直して、画面がずれるため）。矢印だけ動かす */
.btn > [aria-hidden="true"] { transition: transform 0.2s; }
.btn:hover > [aria-hidden="true"] { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; }
.text-link:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 104px; background: linear-gradient(180deg, #d6effb 0%, #eaf7fd 55%, #ffffff 100%); }
.hero .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.hero-copy > * + * { margin-top: 24px; }
.hero-copy .lead { color: var(--text); opacity: 0.86; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.theme-sky .hero { background: linear-gradient(180deg, #68b4d8 0%, #96cee8 30%, #c2e6f5 65%, #e5f3fc 100%); }
.theme-sky .hero h1, .theme-sky .hero .lead { color: #23324a; }
.theme-sky .hero .eyebrow { color: #0f3f8a; }
.theme-sky .hero-photo img { border-radius: 16px; box-shadow: 0 20px 40px rgba(35, 50, 74, 0.18); }

/* 入口カード（トップ） */
.project-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 16px; padding: 36px 32px;
  border: 1px solid var(--accent); background: linear-gradient(120deg, rgba(41, 171, 226, 0.18), rgba(41, 171, 226, 0.03));
  color: var(--text); text-decoration: none;
}
.project-card:hover { color: var(--text); background: rgba(41, 171, 226, 0.22); }
.project-body { flex: 1 1 420px; display: grid; gap: 8px; }
.project-body .eyebrow { margin-bottom: 0; }
.project-name { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.3; }
.project-desc { color: var(--muted); }
.project-for { font-weight: 700; }
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 72px; }
.door {
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px 28px; background: var(--bg2);
  color: var(--text); text-decoration: none;
  transition: background 0.2s;
}
.door:hover { background: var(--surface); color: var(--text); }
.door .eyebrow { margin-bottom: 4px; }
.door h3 { font-size: 1.3rem; display: flex; justify-content: space-between; gap: 12px; }
.door h3 span { color: var(--accent); transition: transform 0.2s; }
.door:hover h3 span { transform: translateX(6px); }
.door p { color: var(--muted); font-size: 0.92rem; }

/* ---------- features ---------- */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: f; }
.features li { counter-increment: f; padding: 32px 28px; border: 1px solid var(--border); background: var(--surface); }
.features li::before { content: "0" counter(f); display: block; font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 20px; }
.features h3 { margin-bottom: 10px; }
.features p { color: var(--muted); font-size: 0.95rem; }

/* ---------- media（写真＋文） ---------- */
.media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.theme-sky .media img, .theme-sky .cards img, .theme-sky .steps img { border-radius: 12px; }

/* ---------- cards（内容の2枚） ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { border: 1px solid var(--border); background: var(--surface); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.95rem; }

/* ---------- steps（体験会の様子） ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.steps p::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: 0.85rem; vertical-align: 2px; }

/* ---------- spec（目安の表・団体概要） ---------- */
.spec { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--border); }
.spec dt, .spec dd { padding: 18px 0; border-bottom: 1px solid var(--border); }
.spec dt { font-weight: 700; color: var(--muted); padding-right: 24px; }
.spec dd { margin: 0; }
.spec small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.facts { margin-top: 32px; display: grid; gap: 12px; }
.facts p { padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); }

/* ---------- 団体概要 ---------- */
.about { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px; align-items: start; }
/* 代表の写真が届くまで枠を隠している間は1列に */
.about:has(> .placeholder[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* ---------- note / placeholder ---------- */
.note { padding: 24px 28px; border: 1px solid var(--accent); background: var(--surface); }
.note strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.placeholder {
  display: grid; place-items: center; text-align: center;
  padding: 20px; border: 2px dashed var(--border);
  color: var(--muted); font-size: 0.85rem;
}
.placeholder--round { width: 160px; aspect-ratio: 1; border-radius: 50%; }
/* 代表の写真の場所（写真が届くまでは団体のロゴを入れておく。届いたら src を差し替える） */
.about-avatar { width: 160px; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--border); }
.slots { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.slots li { padding: 16px; border: 2px dashed var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: center; }
.plain-list { padding-left: 1.2em; }
.plain-list li + li { margin-top: 10px; }
.labeled { list-style: none; padding: 0; }
.labeled li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.labeled li:first-child { border-top: 1px solid var(--border); }
.labeled li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr); gap: 16px; }
.labeled b { color: var(--accent); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .wrap > * + * { margin-top: 20px; }
.cta .btn-row { justify-content: center; }
.cta .muted { font-size: 0.9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c5d3e8; border-top: 4px solid var(--sky); padding: 64px 0 40px; font-size: 0.88rem; }
.site-footer .wrap > * + * { margin-top: 40px; }
.site-footer .logo { color: #ffffff; }

/* ---------- contact form ---------- */
.form { display: grid; gap: 24px; max-width: 760px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; margin-bottom: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-opt { position: relative; display: flex; align-items: center; min-height: 60px; padding: 0 20px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.type-opt:hover { border-color: var(--accent); }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.type-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.hint { padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); }
.hint strong { display: block; color: var(--accent); margin-bottom: 4px; }
.field { display: grid; gap: 8px; font-weight: 700; }
.field[hidden] { display: none; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-weight: 400; color: var(--text);
  background: #ffffff; border: 1px solid #b9d6e8;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field ::placeholder { color: #8a94a8; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.form .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.notice { padding: 20px 24px; border: 1px solid; }
.notice--ok { border-color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.notice--ng { border-color: #ef4444; background: rgba(239, 68, 68, 0.08); }

/* ============================================================
   サイズ2（タブレット）
============================================================ */
@media (max-width: 1300px) {
  :root { --gutter: 32px; }
  .sec { padding: 88px 0; }
  .hero .wrap:first-child { gap: 40px; }
  .gnav { gap: 20px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   サイズ1（スマホ）
============================================================ */
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  body { line-height: 1.75; }
  .site-header { position: static; }
  /* スマホ: 1段目＝ロゴと相談ボタン、2段目＝ジャンル（横にスクロール）、上の帯＝読む方別（横にスクロール） */
  /* スマホ: 横スクロールにせず、短い表記で全部見せる（上の帯は4等分、ジャンルは1行に均等割り） */
  .l-long { display: none; }
  .l-short { display: inline; }
  .unav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; font-size: 0.72rem; }
  .unav a { padding: 12px 0; text-align: center; } /* 指で押せる高さ（約44px）にする */
  .unav a + a { border-left: 1px solid var(--border); }
  .head-main .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .head-cta { margin-left: auto; padding: 6px 14px; font-size: 0.8rem; }
  .gnav { order: 3; flex: 1 0 100%; justify-content: space-between; margin: 2px 0 0; gap: 4px; font-size: 0.8rem; letter-spacing: -0.01em; }
  .gnav a { padding: 10px 0 8px; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap:first-child, .media, .about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-photo { order: -1; }
  .doors, .features, .cards, .steps, .type-grid { grid-template-columns: 1fr; }
  .doors { margin-top: 48px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding: 16px 0 0; border-bottom: 0; }
  .spec dd { padding: 4px 0 16px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .placeholder--round { width: 120px; }
  .about-avatar { width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   #9 施設・学校向け: 開催の目安をまとまりごとのカードに
============================================================ */
.guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.guide-group { border: 1px solid var(--border); background: var(--surface); padding: 28px 28px 12px; }
.guide-group h3 { font-size: 1.05rem; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--accent); }
.spec--compact { grid-template-columns: 9.5em minmax(0, 1fr); border-top: 0; }
.spec--compact dt, .spec--compact dd { padding: 12px 0; font-size: 0.95rem; }
.spec--compact dt { padding-right: 16px; }
.spec--compact dt:last-of-type, .spec--compact dd:last-of-type { border-bottom: 0; }
.check-list { list-style: none; padding: 8px 0 16px; }
.check-list li { position: relative; padding: 8px 0 8px 1.8em; font-size: 0.95rem; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 768px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-group { padding: 22px 18px 6px; }
  .spec--compact { grid-template-columns: minmax(0, 1fr); }
  .spec--compact dt { padding: 12px 0 0; border-bottom: 0; }
  .spec--compact dd { padding: 2px 0 12px; }
}

/* ============================================================
   #10 保護者向け: 次回の体験会のカードと、体験会の様子の手順
============================================================ */
.next-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px; background: var(--surface);
  border: 2px solid var(--accent); border-radius: 16px;
  box-shadow: 0 16px 32px rgba(35, 50, 74, 0.10);
}
.next-icon { flex: none; color: var(--accent); }
.next-body { display: grid; gap: 8px; }
.next-body strong { font-size: 1.3rem; line-height: 1.5; }
.next-body p { color: var(--muted); }
.badge {
  justify-self: start; padding: 2px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
}
.slots { margin-top: 20px; }

.steps li { position: relative; }
.steps li::before {
  content: "STEP " counter(s);
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em;
}
.steps p { font-weight: 700; }
.steps p::before { content: none; }
@media (min-width: 769px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: calc((100% - 3em) * 0.5 - 30px); right: -22px; z-index: 1;
    width: 20px; height: 20px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent);
    transform: rotate(45deg);
  }
}
@media (max-width: 768px) {
  .next-card { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .next-icon { width: 32px; height: 32px; }
}

/* ============================================================
   #11 企業・個人向け: ご支援の使い道をカードに
============================================================ */
.funds { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.funds li { padding: 28px 24px; border: 1px solid var(--border); background: var(--surface); display: grid; align-content: start; gap: 10px; }
.funds svg { color: var(--accent); margin-bottom: 6px; }
.funds h3 { font-size: 1.02rem; }
.funds p { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
@media (max-width: 1300px) { .funds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .funds { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .funds li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding: 20px 18px; }
  .funds svg { grid-row: span 2; margin: 0; }
}

/* ============================================================
   #12 お問い合わせ: 必須の札、入力漏れ、送信中
============================================================ */
.req { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: rgba(239, 68, 68, 0.12); color: #b91c1c; font-size: 0.72rem; font-weight: 700; vertical-align: 2px; }
.err { color: #b91c1c; font-size: 0.88rem; font-weight: 700; }
.err::before { content: "！"; margin-right: 4px; }
.field-group .err { margin-top: 10px; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ef4444; background: rgba(239, 68, 68, 0.06); }
.field-group.is-invalid .type-opt { border-color: #ef4444; }
.form .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ============================================================
   #27 活動レポート
============================================================ */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.crumbs a { color: inherit; }
.theme-sky .hero .crumbs { color: #23324a; }
.report-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.report-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-weight: 700; }
.report-meta dt { color: var(--accent); }
.theme-sky .hero .report-meta { color: #23324a; }
.theme-sky .hero .report-meta dt { color: #0f3f8a; }
.report-meta dd { margin: 0; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #23324a; font-size: 0.82rem; font-weight: 700; }
.report-step + .report-step { margin-top: 72px; }
.report-step > .badge { display: inline-block; margin-bottom: 12px; }
.report-step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.report-step > p { max-width: 50em; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.models img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.models .eyebrow { margin-bottom: 4px; }
@media (max-width: 1300px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .report-step + .report-step { margin-top: 48px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .models { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   日本語の折り返し
   見出し・ボタンは <wbr> を入れた言葉の切れ目だけで折り返す（Safari でも効く）。
   本文は対応ブラウザ（Chrome・Edge）で言葉のまとまりごとに折り返す。
   見出しを足すときは、言葉の切れ目に <wbr> を入れる。
============================================================ */
body { line-break: strict; }
h1, h2, h3, .btn, .next-body strong, .project-name, .door h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
p, li, dd, dt, figcaption, .lead, .project-desc, .project-for {
  word-break: auto-phrase;
  text-wrap: pretty;
}
.nw { white-space: nowrap; }

/* ============================================================
   保護者向けまわり（theme-sky）を旧版のやさしい印象に寄せる
   空と雲／ポラロイド風の写真／名札風のカード／淡い色の帯／丸いボタン
============================================================ */
.theme-sky {
  --text: #252535;
  --muted: #4a5568;
  --gold: #c0922e;
  --cream: #fffbf2;
  --mint: #e4f8ee;
  --peach: #fff2ee;
}
.theme-sky .sec { background: #eaf6fd; }
.theme-sky .sec--light { background: var(--cream); }
.theme-sky .sec + .sec:not(.sec--light) { border-top: 0; }
.theme-sky h1, .theme-sky h2, .theme-sky h3 { color: #252535; }

/* 空と雲 */
.theme-sky .hero { position: relative; overflow: hidden; }
.theme-sky .hero > .wrap { position: relative; z-index: 1; }
.theme-sky .hero::before, .theme-sky .hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 260px; height: 70px; border-radius: 100px; background: rgba(255, 255, 255, 0.85);
  box-shadow: 40px -40px 0 10px rgba(255, 255, 255, 0.9), 120px -24px 0 0 rgba(255, 255, 255, 0.85);
  animation: sky-cloud 60s linear infinite;
}
.theme-sky .hero::before { top: 18%; left: -320px; }
.theme-sky .hero::after { top: 70%; left: -420px; transform: scale(0.6); opacity: 0.7; animation-duration: 90s; animation-delay: -40s; }
@keyframes sky-cloud { from { translate: 0 0; } to { translate: calc(100vw + 600px) 0; } }

/* ポラロイド風の写真 */
.theme-sky .hero-photo img {
  border-radius: 6px; border: 10px solid #fff; border-bottom-width: 34px;
  box-shadow: 0 18px 36px rgba(35, 50, 74, 0.18); rotate: 2deg;
}
.theme-sky .steps img, .theme-sky .gallery img {
  border-radius: 6px; border: 8px solid #fff; border-bottom-width: 24px;
  box-shadow: 0 10px 22px rgba(35, 50, 74, 0.12);
}
.theme-sky .steps li:nth-child(odd) img, .theme-sky .gallery figure:nth-child(odd) img { rotate: -1.5deg; }
.theme-sky .steps li:nth-child(even) img, .theme-sky .gallery figure:nth-child(even) img { rotate: 1.5deg; }
.theme-sky .steps li::before { top: 18px; left: 18px; }

/* 名札風のカード（次回の体験会） */
.theme-sky .next-card { background: var(--cream); border: 2px solid var(--gold); border-radius: 14px; }
.theme-sky .next-icon { color: var(--gold); }
.theme-sky .next-card .badge { background: var(--gold); }

/* 丸いボタンと、やわらかいカード */
.theme-sky .btn { border-radius: 999px; }
.theme-sky .card, .theme-sky .features li, .theme-sky .guide-group, .theme-sky .note, .theme-sky .facts p { border-radius: 14px; }
.theme-sky .card, .theme-sky .features li { background: #fff; border-color: #d7e8f3; }
.theme-sky .facts p { background: var(--mint); border-left-color: #2f9e6e; }
.theme-sky .placeholder { border-radius: 14px; }

@media (max-width: 768px) {
  .theme-sky .hero-photo img { rotate: 0deg; border-width: 8px; border-bottom-width: 24px; }
  .theme-sky .hero::before, .theme-sky .hero::after { width: 160px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-sky .hero::before, .theme-sky .hero::after { animation: none; left: 8%; }
  .theme-sky .hero::after { left: 60%; }
}

/* #14 ロゴにアイコン（CS のマーク）を並べる */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: auto; height: 24px; flex: none; }
.logo small { margin-left: -2px; }
.site-footer .logo-mark { height: 20px; }
@media (max-width: 768px) { .logo-mark { height: 20px; } }

/* ============================================================
   #13 スクロールで現れる動き
   JS が html に .reveal-on を付けたときだけ隠す（JS なし・動きを減らす設定では最初から表示）
============================================================ */
.reveal-on .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--rv-delay, 0s); }
.reveal-on .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .rv { opacity: 1; transform: none; transition: none; }
}

/* トップ: 使う技術（3Dプリンター・AI・プログラミングのページへ） */
.tech-title { margin: 56px 0 16px; font-size: 1.1rem; }
.doors--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.sec--light .door { background: var(--bg); }
.sec--light .door:hover { background: var(--surface); }

@media (max-width: 768px) { .doors--3 { grid-template-columns: 1fr; margin-top: 0; } .tech-title { margin-top: 40px; } }

/* ---------- footer（見出しつきの4列: 活動内容・CoreShiftについて・ご案内・お問い合わせ） ---------- */
.fcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fcols nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fcols h2 { font-size: 0.95rem; font-weight: 900; color: #ffffff; margin-bottom: 6px; }
.fcols h2 span { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin-bottom: 2px; }
.fcols a { color: #dbe6f5; text-decoration: none; overflow-wrap: anywhere; }
.fcols a:hover { color: #ffffff; text-decoration: underline; }
.fcopy { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.8rem; }

/* ============================================================
   テクノロジーを強調する部分だけ、旧サイトの黒×青にする（.is-tech）
   使う場所: 技術ページ（3Dプリンター・AI・プログラミング）のヒーローと、3Dプリンターのしくみ
============================================================ */
.is-tech {
  --bg: #060606;
  --bg2: #0d0d0d;
  --surface: #111111;
  --text: #e8e8e8;
  --muted: #a3a3a3;
  --border: #262626;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --link: #93c5fd;
  background: var(--bg);
  color: var(--text);
}
.hero.is-tech { background: radial-gradient(ellipse at 80% 20%, rgba(41, 171, 226, 0.18), rgba(41, 171, 226, 0) 60%), #060606; }
.is-tech .eyebrow { color: var(--sky); }
.is-tech + .sec { border-top: 0; }

/* ============================================================
   #71 ひとまとまりの内容が1画面に収まるように詰める
   基準: PC 1440×900（上に残るヘッダー約72px を除いて約830px）。ノートPC 1366×768 もなるべく
============================================================ */
.sec { padding: 80px 0; }
.hero { padding: 64px 0 72px; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sec-head { margin-bottom: 32px; }
.stack > * + * { margin-top: 16px; }
.hero-copy > * + * { margin-top: 20px; }
.features { gap: 20px; }
.features li { padding: 24px 24px; }
.features li::before { font-size: 1.5rem; margin-bottom: 12px; }
.spec dt, .spec dd { padding: 13px 0; }
.doors { margin-top: 40px; }
.door { padding: 24px 24px; }
.project-card { padding: 24px 28px; }
.media { gap: 48px; }
.guide { gap: 20px; }
.guide-group { padding: 22px 24px 8px; }
.card-body { padding: 20px 20px 22px; }
.facts { margin-top: 24px; }
@media (max-width: 1300px) {
  .sec { padding: 64px 0; }
}
@media (max-width: 768px) {
  .sec { padding: 52px 0; }
  .hero { padding: 28px 0 44px; }
  .sec-head { margin-bottom: 24px; }
  .doors { margin-top: 32px; }
}
/* 施設・学校向け「体験会の内容」: A・B・C を3枚横に並べる（C は写真の代わりにAIへのお願いの例） */
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--3 img { aspect-ratio: 16 / 10; }
.card-prompt {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; justify-content: center;
  padding: 16px 20px; background: #060606; color: #e8e8e8; border-left: 3px solid #3b82f6;
  font-size: 0.85rem; line-height: 1.9;
}
@media (max-width: 1300px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .cards--3 { grid-template-columns: minmax(0, 1fr); } }
/* トップの冒頭: 入口（施設・学校／企業・個人）の下に、CoreShift for children を横いっぱいに置く（代表の希望 2026-11-25） */
.entry { margin-top: 40px; }
.entry .doors { margin-top: 0; }
.cards--3 .card-body p { font-size: 0.9rem; }
.hero { padding: 56px 0 64px; }
/* 高さの低い画面（ノートPC 1366×768 など）では、さらに余白を詰める */
@media (min-width: 1301px) and (max-height: 820px) {
  .sec { padding: 60px 0; }
  .hero { padding: 40px 0 48px; }
  .sec-head { margin-bottom: 24px; }
}
.cards--3 img, .cards--3 .card-prompt { aspect-ratio: 5 / 2; }
.cards--3 .card-body { padding: 18px 20px 20px; }
/* 施設・学校向けの冒頭: 開催できる場面 */
.scenes { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scenes li { padding: 4px 14px; border: 1px solid var(--border); border-radius: 999px; background: #ffffff; color: var(--text); font-size: 0.82rem; font-weight: 700; }

/* ヘッダーのジャンル（3Dプリンター〜CoreShiftについて）を同じ幅にそろえる（PC幅のみ。狭い幅では文字が収まらないため今のまま） */
@media (min-width: 1301px) {
  .gnav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .gnav a { text-align: center; padding-left: 14px; padding-right: 14px; }
}

/* ---------- process（文章ではなく図で手順・できることを見せる。3Dプリンター・プログラミングのページ） ---------- */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; counter-reset: pr; }
.process li { counter-increment: pr; position: relative; text-align: center; }
.process figure { margin: 0 0 16px; padding: 16px; background: #ffffff; border: 1px solid var(--border); border-radius: 16px; }
.process svg { display: block; width: 100%; height: auto; }
.process h3::before { content: counter(pr); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.85rem; vertical-align: 2px; }
.process p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.process li:not(:last-child)::after {
  content: ""; position: absolute; top: calc(50% - 40px); right: -32px; width: 16px; height: 16px;
  border-top: 3px solid var(--sky); border-right: 3px solid var(--sky); transform: rotate(45deg);
}
@media (max-width: 768px) {
  .process { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .process figure { max-width: 320px; margin-left: auto; margin-right: auto; }
  .process li:not(:last-child)::after { top: auto; bottom: -26px; right: calc(50% - 8px); transform: rotate(135deg); }
}
/* 手順ではない並び（できることの例）は、番号と矢印を付けない */
.process--steps-free h3::before, .process--steps-free li::after { content: none !important; }

/* ============================================================
   ページごとの目印の色（どこにいるか分かるように。BBC のジャンル色と同じ考え方）
   --page: 目印の色（線・面）  --page-ink: 白地の文字用に濃くした色  --page-tint: 冒頭の背景のうすい色
   ページ先頭の page_theme で決める（_layouts/default.html が body に付ける）
============================================================ */
.t-3d       { --page: #29abe2; --page-ink: #0a74b0; --page-tint: #d6effb; }
.t-ai       { --page: #ff8a3d; --page-ink: #c2410c; --page-tint: #ffe8d6; }
.t-prog     { --page: #2f9e6e; --page-ink: #1f7a52; --page-tint: #dcf3e8; }
.t-programs { --page: #0a74b0; --page-ink: #085d8e; --page-tint: #dcecf7; }
.t-orgs     { --page: #5b5bd6; --page-ink: #4338ca; --page-tint: #e6e6fb; }
.t-children { --page: #c0922e; --page-ink: #8a6516; --page-tint: #fff3d6; }
.t-support  { --page: #e8735a; --page-ink: #b5452c; --page-tint: #fde9e4; }
.t-contact  { --page: #0a74b0; --page-ink: #085d8e; --page-tint: #e3f4fc; }

/* ヘッダーの下の線を目印の色に。今いるメニューも同じ色 */
body[class*=" t-"] .site-header { border-bottom: 3px solid var(--page); }
body[class*=" t-"] .gnav a[aria-current="page"] { border-bottom-color: var(--page); color: var(--page-ink); }
body[class*=" t-"] .unav a[aria-current="page"] { color: var(--page-ink); box-shadow: inset 0 -3px 0 var(--page); }

/* 冒頭の背景: 明るいページは目印の色のうすいグラデーション、技術ページ（黒地）は目印の色の光 */
body[class*=" t-"]:not(.theme-sky) .hero:not(.is-tech) { background: linear-gradient(180deg, var(--page-tint) 0%, #ffffff 100%); }
body[class*=" t-"] .hero.is-tech { background: radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--page) 30%, transparent), transparent 60%), #060606; }
body[class*=" t-"] .hero .eyebrow { color: var(--page-ink); }
body[class*=" t-"] .hero.is-tech .eyebrow { color: var(--page); }

/* パンくず: 今いるページを目印の色の札で */
.crumbs { margin-bottom: 4px; }
body[class*=" t-"] .crumbs [aria-current="page"] { padding: 1px 12px; border-radius: 999px; background: var(--page); color: #ffffff; }
.t-ai .crumbs [aria-current="page"] { color: #1b2a5e; }
.is-tech .crumbs { color: #a3a3a3; }
.is-tech .crumbs a { color: #e8e8e8; }
.type-opt small { display: block; font-size: 0.78rem; font-weight: 400; opacity: 0.85; }

/* ページ内リンク（例: トップの団体概要）で止まる位置を、上に残るヘッダー（113px）の下にそろえる（PC）
   スナップスクロールは使わない（代表の判断 2026-11-25） */
@media (min-width: 1301px) {
  html { scroll-padding-top: 113px; }
  [id] { scroll-margin-top: 0; }
}

/* ============================================================
   #71 画面の高さに合わせて、ひとまとまりを1画面に収める（PC）
   1) 余白を画面の高さに合わせて伸び縮みさせる（vh。上限・下限つき）
   2) それでも入らないまとまりは、_layouts/default.html の script が中身を縮める（最小 85%）
   下限: 幅 1301px 以上・高さ 600px 以上の画面だけ。これより小さい画面はふだんの流れで表示する
============================================================ */
@media (min-width: 1301px) and (min-height: 600px) {
  .sec { padding-top: clamp(32px, 7vh, 80px); padding-bottom: clamp(32px, 7vh, 80px); }
  .hero { padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(28px, 5.5vh, 64px); }
  .sec-head { margin-bottom: clamp(18px, 3.2vh, 32px); }
  /* 見出し・写真・図も、画面の高さに合わせて縮める */
  h1 { font-size: clamp(1.7rem, min(3.4vw, 5.4vh), 2.7rem); }
  h2 { font-size: clamp(1.35rem, min(2.6vw, 3.8vh), 2rem); }
  .hero-copy > * + * { margin-top: clamp(12px, 2.2vh, 20px); }
  .hero-photo img { max-height: 40vh; object-fit: cover; }
  .media img { max-height: 56vh; }
  .process { gap: clamp(28px, 4vh, 48px); }
  .process figure { padding: clamp(8px, 1.6vh, 16px); margin-bottom: clamp(8px, 1.4vh, 16px); }
  .process svg { max-height: 26vh; width: auto; margin: 0 auto; }
  .models img { max-height: 24vh; }
  .entry { margin-top: clamp(20px, 3.5vh, 40px); }
  .door { padding-top: clamp(14px, 2.4vh, 24px); padding-bottom: clamp(14px, 2.4vh, 24px); }
  .project-card { padding-top: clamp(14px, 2.4vh, 24px); padding-bottom: clamp(14px, 2.4vh, 24px); }
  .features li { padding-top: clamp(16px, 2.6vh, 24px); padding-bottom: clamp(16px, 2.6vh, 24px); }
}

/* #71 つづき: 各まとまりを、ちょうど1画面（ヘッダーの下）の高さにし、中身を上下の真ん中に置く。
   となりのまとまりが同じ画面に映り込まないように。--avail は script が測って入れる（画面の高さ − ヘッダー）
   入力フォームのあるまとまり（お問い合わせ）は対象外 */
html.fit-on:not(.fit-measuring) main > section:not(:has(form)) {
  min-height: var(--avail);
  display: flex; flex-direction: column; justify-content: center;
}
html.fit-on:not(.fit-measuring) main > section:not(:has(form)) > .wrap { width: 100%; }

/* 中身が少ないまとまり（script が .sec-sparse を付ける）: 幅を狭めて真ん中に寄せ、script が文字と画像を大きくする */
html.fit-on .sec-sparse > .wrap { max-width: 1040px; }
html.fit-on .sec-sparse .sec-head,
html.fit-on .sec-sparse > .wrap.stack,
html.fit-on .sec-sparse > .wrap > .stack:only-child { text-align: center; }
html.fit-on .sec-sparse .sec-head .lead,
html.fit-on .sec-sparse > .wrap.stack .lead { margin-left: auto; margin-right: auto; }
html.fit-on .sec-sparse .btn-row { justify-content: center; }

/* トップ「これまでの活動」: 活動レポートのカード（サムネイル＋短い文）。3つ並ぶ幅。4つ目からは「もっと見る」 */
.rcards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rcards:not(.rcards--all) > li:nth-child(n+4) { display: none; } /* トップは3つまで。活動レポート一覧（.rcards--all）は全部 */
.rcard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #ffffff; color: var(--text); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.rcard:hover { color: var(--text); border-color: var(--accent); box-shadow: 0 10px 24px rgba(27, 42, 94, 0.10); }
.rcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rcard-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.rcard-date { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.rcard-body strong { font-size: 1.05rem; line-height: 1.5; }
.rcard-text { font-size: 0.88rem; color: var(--muted); }
.rcard-more { margin-top: auto; padding-top: 6px; font-size: 0.88rem; font-weight: 700; color: var(--accent); }
.rcard:hover .rcard-more span { display: inline-block; transform: translateX(4px); transition: transform 0.2s; }
.rcards-more { margin-top: 28px; text-align: center; }
@media (max-width: 1300px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .rcards { grid-template-columns: minmax(0, 1fr); }
  /* スマホ（トップと活動レポート一覧）: カード3つで画面の高さを三等分する横長のカード（左に写真、右に文。代表の希望 2026-11-25） */
  .rcards { gap: 12px; }
  .rcards .rcard { flex-direction: row; height: clamp(128px, calc((100svh - 190px) / 3), 200px); }
  .rcards .rcard img { width: 40%; height: 100%; aspect-ratio: auto; flex-shrink: 0; }
  .rcards .rcard-body { gap: 2px; padding: 10px 12px; min-width: 0; overflow: hidden; }
  .rcards .rcard-date { font-size: 0.7rem; line-height: 1.5; }
  .rcards .rcard-body strong { font-size: 0.92rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .rcards .rcard-text { font-size: 0.78rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .rcards .rcard-more { padding-top: 2px; font-size: 0.78rem; }
}
/* 背の低いスマホでは、カードに収まるよう短い文を省く（題とリンクは残す） */
@media (max-width: 768px) and (max-height: 760px) { .rcards .rcard-text { display: none; } }

/* 施設・学校向け「体験会の内容」: カード全体を押すと各プログラムのページへ（見出しのリンクをカード全体に広げる）
   カードの中のほかのリンク（例: なまえプレートのデモ）は、その上で押せるようにする */
.cards--3 .card { position: relative; transition: border-color 0.2s, box-shadow 0.2s; }
.cards--3 .card-link { color: inherit; text-decoration: none; }
.cards--3 .card-link::after { content: ""; position: absolute; inset: 0; }
.cards--3 .card p a { position: relative; z-index: 1; }
.cards--3 .card:hover { border-color: var(--accent); box-shadow: 0 10px 24px rgba(27, 42, 94, 0.10); }
.cards--3 .card-more { white-space: nowrap; font-weight: 700; color: var(--accent); }
.cards--3 .card:hover .card-more span { display: inline-block; transform: translateX(4px); transition: transform 0.2s; }
.cards--3 .card-link:focus-visible { outline: none; }
.cards--3 .card:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* #104 各ページ最後の「開催のご相談」など（.cta）: 体験会の写真を紺で覆った背景にして、1画面でも間が持つように */
.sec.cta {
  --text: #ffffff; --muted: #dbe6f5; --link: #bfe6f7; --border: rgba(255, 255, 255, 0.3);
  color: var(--text);
  background: linear-gradient(rgba(27, 42, 94, 0.84), rgba(27, 42, 94, 0.84)), url(/coreshift-for-children/photos/event01_takamiya/S__2965520_0-1200.webp) center / cover no-repeat;
}
.sec.cta h2, .theme-sky .sec.cta h2 { color: #ffffff; }
.sec.cta .eyebrow { color: #7fd3f5; }
.sec.cta a:not(.btn):not(.door) { color: var(--link); }
.sec.cta .btn--ghost { color: #ffffff; border-color: #ffffff; }
.sec.cta .btn--ghost:hover { background: #ffffff; color: var(--navy); }
.sec.cta .door { --text: #1b2a5e; --muted: #4f5a75; background: #ffffff; color: var(--text); }
.sec.cta + .site-footer, main:has(> .sec.cta:last-child) + .site-footer { border-top-color: var(--sky); }

/* プログラムのページ: 役割と留意事項を1つのまとまりに */
.notes-title { margin: 32px 0 4px; font-size: 1.05rem; }
/* 企業・個人向け: 応援のしかた（個人／企業・団体を左右に） */
.support-text { padding: 12px 0 16px; font-size: 0.95rem; }
.guide-group .btn-row { padding-bottom: 20px; }
