/* ================================================================
   トップページ専用スタイル（index.html だけが読み込む）
   方向A（親しみLP）。配色は tokens.css の紺/赤/クリームを継承。
   見出しは tokens の --f-serif（= 2026-06 以降ゴシック）。最小フォント14px。
   ================================================================ */

.home a { color: inherit; text-decoration: none; }
.home .wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; display: block; }
.bg-navy { background: var(--c-navy); } .bg-navyl { background: var(--c-navy-l); }
.bg-blue { background: var(--c-blue); } .bg-red { background: var(--c-red); }

/* ---- hero ---- */
.hero { text-align: center; padding: 56px 0 36px; position: relative; overflow: hidden; }
.hero__blob { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__blob i { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; }
.hero > * { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--c-navy);
  background: var(--c-surface); border: 1px solid var(--c-line);
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 18px -12px var(--shadow); }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); line-height: 1.16; margin: 22px 0 0; letter-spacing: .01em; }
.hero h1 .a { color: var(--c-navy); } .hero h1 .b { color: var(--c-red); }
.hero__lead { max-width: 40ch; margin: 18px auto 0; color: var(--c-ink-soft); font-size: 17px; line-height: 1.95; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px auto 0; max-width: 820px; }
.pill { display: flex; align-items: center; gap: 12px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: 999px; padding: 9px 20px 9px 11px;
  box-shadow: 0 6px 18px -12px var(--shadow); }
.pill__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.pill__ic .ic { width: 21px; height: 21px; }
.pill__t { text-align: left; line-height: 1.3; }
.pill__lab { font-size: 14px; color: var(--c-ink-mute); display: block; }
.pill__num { font-weight: 900; font-size: 20px; display: block; }
.pill .navy { background: var(--c-navy); } .pill .blue { background: var(--c-blue); } .pill .red { background: var(--c-red); }
.num-red { color: var(--c-red); } .num-navy { color: var(--c-navy); }

.hero__cta { margin-top: 32px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { font-weight: 700; font-size: 15px; border-radius: 999px; padding: 14px 28px;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s; }
.btn--p { background: var(--c-navy); color: #fff; box-shadow: 0 6px 18px -12px var(--shadow); }
.btn--g { background: var(--c-surface); color: var(--c-navy); border-color: var(--c-line); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* .home a{color:inherit} に勝たせるためボタンの文字色を明示（詳細度を上げる） */
.home a.btn--p { color: #fff; }
.home a.btn--g { color: var(--c-navy); }

/* ---- section / 見出し ---- */
.sec { padding-top: 28px; padding-bottom: 28px; }   /* 横余白は .wrap に任せる（.sec.wrap で横0にしない） */
.sec__head { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; }
.sec__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; flex: 0 0 auto; box-shadow: 0 6px 18px -12px var(--shadow); }
.sec__icon .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.sec__title { font-size: 1.5rem; letter-spacing: .02em; margin: 0; }
.sec__sub { font-size: 14px; color: var(--c-ink-soft); margin: 2px 0 0; }

/* テーマ一覧は特集との間に余白を広めに取る */
#themes { margin-top: 32px; }

/* ---- category bands ---- */
.theme-cats { display: block; }
.band { border-radius: 26px; padding: 28px; margin: 16px 0; }
.band__title { font-size: 1.25rem; }
.band--navy { background: #e8eef6; } .band--blue { background: #e6f0f8; }
.band--warm { background: #f6efe2; } .band--rose { background: #f7ecec; }

/* ---- topics（特集）compact 横型 ---- */
.topics { display: grid; grid-template-columns: 1fr; gap: 14px; }
.topic { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 22px; row-gap: 6px;
  grid-template-areas: "ic head fig" "ic tag fig" "ic chips fig";
  background: linear-gradient(135deg, #fff, #fbfaf5); border: 2px solid var(--c-navy);
  border-radius: 20px; padding: 18px 24px; box-shadow: 0 6px 18px -12px var(--shadow);
  cursor: pointer; transition: transform .16s, box-shadow .16s; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.topic__ic { grid-area: ic; width: 58px; height: 58px; border-radius: 17px; background: var(--c-navy);
  color: #fff; display: grid; place-items: center; }
.topic__ic .ic { width: 30px; height: 30px; stroke-width: 1.7; }
.topic__head { grid-area: head; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topic__badge { font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--c-navy);
  border: 1px solid var(--c-navy); border-radius: 999px; padding: 1px 11px; }
.topic__title { font-weight: 900; font-size: 1.3rem; line-height: 1.2; }
.topic__title a:hover { color: var(--c-brand); text-decoration: underline; }
.topic__tag { grid-area: tag; font-size: 15px; color: var(--c-ink-soft); line-height: 1.5; }
.topic__chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.topic__fig { grid-area: fig; text-align: right; padding-left: 18px; border-left: 1px solid var(--c-line); min-width: 150px; }
.topic__numlab { display: block; font-size: 14px; color: var(--c-ink-mute); margin-bottom: 3px; line-height: 1.4; }
.topic__num { display: block; font-weight: 900; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.05; color: var(--c-navy); }
.chip { font-size: 14px; font-weight: 500; padding: 5px 15px; border-radius: 999px; background: var(--c-paper-2); color: var(--c-ink-soft); }
.chip:hover { background: var(--c-navy); color: #fff; }

/* ---- tiles（テーマ） ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile { background: var(--c-surface); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 11px;
  border: 1px solid rgba(216, 210, 196, .7); box-shadow: 0 6px 18px -12px var(--shadow);
  transition: transform .16s, box-shadow .16s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.tile__ic .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.tile__title { font-weight: 800; font-size: 1.08rem; line-height: 1.4; }
.tile__tag { font-size: 14px; color: var(--c-ink-soft); line-height: 1.55; flex: 1; }
.tile__num { font-weight: 900; font-size: clamp(1.9rem, 2.8vw, 2.25rem); line-height: 1.04; letter-spacing: -.01em; margin-top: 2px; }
.tile__num.minus, .tile__num.neutral { color: var(--c-red); }
.tile__numlab { font-size: 14px; color: var(--c-ink-mute); line-height: 1.45; min-height: 2.9em; }

/* ---- このサイトについて ---- */
.home-about { background: var(--c-navy); color: #fff; border-radius: 26px; padding: 40px; text-align: center; margin: 28px 0; }
.home-about h2 { color: #fff; font-size: 1.5rem; margin: 0; }
.home-about p { max-width: 54ch; margin: 14px auto 22px; color: #dbe3ee; font-size: 15px; }
.home-about a.btn--g { background: #fff; border-color: #fff; color: var(--c-ink); }

/* ---- 非公開（dev のみ表示） ---- */
.tile--hidden, .topic--hidden {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, var(--c-surface), var(--c-surface) 10px,
    rgba(26,54,93,.05) 10px, rgba(26,54,93,.05) 20px);
}
.corner-card__badge { display: inline-block; margin-left: 8px; font-size: 14px; font-weight: 700;
  color: #fff; background: var(--c-brand); border-radius: 6px; padding: 1px 8px; vertical-align: middle; white-space: nowrap; }

@media (max-width: 600px) {
  .hero { padding: 42px 0 26px; }
  .band { padding: 22px 16px; border-radius: 22px; }
  .topic { grid-template-columns: auto 1fr; grid-template-areas: "ic head" "ic tag" "chips chips" "fig fig"; }
  .topic__fig { text-align: left; padding-left: 0; border-left: none; border-top: 1px solid var(--c-line);
    padding-top: 12px; margin-top: 4px; min-width: 0; }
}
