/* ============================================================
   すくすく ご家庭向けアプリ — 家庭向けページの追加スタイル
   共通の骨格・部品は css/style.css を再利用し、
   このファイルには家庭向けページ固有の差分のみを置く。
   ============================================================ */

/* ---- ヘッダー：学校関係者向けページへの補助リンク ----
   家庭向けページでは主役ではないため、少し弱めて置く。
   色は style.css 側（通常時 / スクロール時 / モバイル）の
   指定に従わせ、ここでは不透明度だけを触る。 */
.nav a.nav-school {
  opacity: 0.82;
}

.nav a.nav-school:hover {
  opacity: 1;
}

/* ============================================================
   日本語の折り返し
   ------------------------------------------------------------
   既定では「積み重なっ／ています」のように語の途中で行が割れる。
   対応ブラウザでは文節単位で折り返し、非対応環境では
   宣言が無視されて従来どおりの挙動に戻る（実害はない）。
   ============================================================ */
.hero-lead,
.hero-note,
.hero-points li,
.sec-lead,
.card p,
.feature p,
.feature-tag,
.faq-answer,
.cta-school p,
.table-note,
.site-footer p {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* 見出しは行数のばらつきを抑える */
.sec-title,
.card h3,
.feature h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3.5vh, 36px);
}

.hero-stores img {
  height: 54px;
  width: auto;
}

/* 招待コードが必要である旨の注記。見落とされない程度に留める */
.hero-note {
  max-width: 62ch;
  margin-top: clamp(20px, 3vh, 28px);
  font-size: 0.74rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   できること：デイリー1問の質問例
   ------------------------------------------------------------
   この機能の画面画像はまだ無いため、実際にお届けしている質問を
   並べて、図版の位置に置く。
   ============================================================ */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa {
  margin: 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--sky-rule);
  border-left: 3px solid var(--sky);
  font-size: 0.87rem;
  line-height: 1.95;
  color: var(--ink-2);
  word-break: auto-phrase;
}

/* 交互レイアウトの図版と同じ寄り方をさせる */
.feature .qa-list {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity var(--dur-reveal) var(--ease-soft) 0.1s, transform var(--dur-reveal) var(--ease-soft) 0.1s;
}

.feature:nth-child(even) .qa-list {
  transform: translateX(-28px);
}

.feature.is-in .qa-list {
  opacity: 1;
  transform: none;
}

:root[data-motion="reduce"] .feature .qa-list {
  transform: none;
}

/* できること：交互レイアウトに続く補足カード */
.cards-plus {
  margin-top: clamp(48px, 6vw, 80px);
}

/* ============================================================
   2つのはじめかた / 料金
   ------------------------------------------------------------
   style.css の 3 列グリッド（.pilot-grid / .plan-grid）を
   2 枚並べに変える。
   ============================================================ */
.pilot-grid.is-two,
.plan-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* カード見出しの直後に置く、対象となる状況の説明 */
.way-lead {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 18px;
}

.pilot-card.is-accent .way-lead {
  color: rgba(255, 255, 255, 0.9);
}

/* style.css の強調カードは「参加の流れ」用に連番が付く。
   ここは手順ではなく特徴の列挙なので、隣のカードと同じダッシュに戻す。 */
.pilot-grid.is-two .pilot-card.is-accent .pilot-list li {
  padding-left: 20px;
}

.pilot-grid.is-two .pilot-card.is-accent .pilot-list li::before {
  content: '';
  top: 0.95em;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

/* 家庭プランは料金が主役になるため、金額を大きく見せる */
.plan.is-highlight {
  border-color: var(--sky);
}

.plan.is-highlight .plan-mode {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

/* 税別であることは、金額と同じ視線の流れの中で読ませる */
.plan.is-highlight .plan-mode small {
  font-size: 0.6em;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

/* 4 枚のカードは 3 列だと 1 枚だけ余るため、2 列で組む */
.cards-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ============================================================
   ダウンロード：学校関係者向けページへの誘導
   ============================================================ */
.cta-school {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--sky-rule);
  text-align: center;
}

.cta-school p {
  max-width: 58ch;
  margin: 0 auto clamp(24px, 3vw, 32px);
  font-size: 0.86rem;
  line-height: 2.1;
  color: var(--ink-2);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .pilot-grid.is-two,
  .plan-grid.is-two,
  .cards-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-stores img {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature .qa-list {
    transform: none;
  }
}
