/* ============================================================
   機能の一覧（/features/）と、機能の個別ページ（/features/<機能>/）。

   このファイルを読むのは機能まわりのページだけ（css: features.css）。
   共通の site.css に入れないのは、ほかのページに要らない指定を
   配らないため。トークンと基本部品は site.css のものを使う。
   ============================================================ */

/* ── 章立て（プランの段ごと） ── */
.feat-group { margin-top: 56px; }
.feat-group:first-of-type { margin-top: 0; }
.feat-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-bg); }
.feat-group-head h2 { font-size: 26px; font-weight: 900; line-height: 1.4; }
.feat-plan { font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-deep); white-space: nowrap; }
.feat-plan.all { background: var(--line-bg); color: #0B7A3B; }

/* ── タイル。一覧は「入口」に徹するので、説明は1〜2行まで ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 20px; border-radius: 18px;
  background: #fff; border: 1px solid var(--rule); color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.feat h3 { font-size: 19px; font-weight: 900; line-height: 1.45; display: flex; align-items: center; gap: 8px; }
.feat p { font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.feat .ic { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #FDE9F0, #FFF4F7); color: var(--brand-dark); }
.feat .ic svg { width: 21px; height: 21px; }

/* 個別ページがあるものはリンクにする。無いものは <div> のまま置く
   （行き先の無いリンクを作らない。お知らせ一覧と同じ考え方）。 */
a.feat:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(178,56,97,.14); border-color: var(--brand); color: var(--ink); }
a.feat h3::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid var(--brand); border-right: 2px solid var(--brand); transform: rotate(45deg); flex-shrink: 0; }
.feat.soon { background: var(--wash); }
.feat.soon h3 { color: var(--ink-2); }

/* ── 個別ページ ── */
.feat-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.feat-hero .lead-big { font-size: 22px; font-weight: 700; color: var(--ink-2); line-height: 1.8; }
.feat-points { display: flex; flex-direction: column; gap: 18px; }
.feat-point { display: flex; gap: 16px; align-items: flex-start; }
.feat-point .no { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 900; font-size: 15px; font-family: "Zen Kaku Gothic New", sans-serif; }
.feat-point h3 { font-size: 20px; font-weight: 900; line-height: 1.5; margin-bottom: 4px; }
.feat-point p { font-size: 16.5px; color: var(--ink-2); line-height: 1.85; }

/* 前後の機能へ ── ページの終わりに、次に見るものを置く */
.feat-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.feat-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--rule); background: #fff; color: var(--ink); }
.feat-nav a:hover { border-color: var(--brand); color: var(--ink); }
.feat-nav small { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brand-dark); }
.feat-nav b { font-size: 17px; font-weight: 900; }
.feat-nav .next { text-align: right; }

@media (min-width: 761px) and (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat-group { margin-top: 40px; }
  .feat-group-head h2 { font-size: 22px; }
  .feat-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat-hero .lead-big { font-size: 18px; }
  .feat-nav { grid-template-columns: minmax(0, 1fr); }
  .feat-nav .next { text-align: left; }
}
