/* =========================================================
   A案+B案を合わせる検討用(index-merge.html 専用)
   ヒーロー:PCはB案の「写真を全面に敷いて白カードを重ねる」形、
            タブレット・スマホはA案どおり「写真が上・カードが下」
   カードの中身はA案の確定ルール(見出し1行・電話CTAが画面の約1/4・CTAは3要素)を維持
   ========================================================= */

/* ヒーロー直後の紹介文(PCではカードに入れるとCTAが下がるため外に出した) */
.hero-lead { background: var(--white); padding: 0 0 48px; }
.hero-lead__text {
  font-size: 24px;
  color: var(--text);
  line-height: 1.8;
  max-width: 45em;
}

/* 重ねる形は画面幅1260px以上だけ。これより狭いと写真の切り抜きが進み、
   スタッフがカードの後ろに隠れる(実測:1100pxで約110px重なる)。
   1025〜1259pxはA案どおり「左に文字・右に写真」の2列で見せる */
@media (min-width: 1260px) {
  .hero--overlay {
    padding: 48px 0;
    /* 写真の切り抜き(左側の壁)を最小にするため、高さは中身に任せて伸ばしすぎない */
  }
  .hero--overlay .hero__decoration { display: none; }
  /* 写真をセクション全体に敷くため、コンテナを基準にしない */
  .hero--overlay .container { display: block; position: static; }
  .hero--overlay .hero__photo.sample-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
    /* 人物は写真の右側にいるので、右端を基準に切り抜く(左の壁から削れる) */
    object-position: right center;
    z-index: 0;
  }
  .hero--overlay .hero__content {
    position: relative;
    z-index: 1;
    /* スタッフが隠れないよう、カードは写真の空いている壁の範囲に収める */
    width: 520px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 32px 36px 28px;
    box-shadow: 0 12px 40px rgba(14,63,71,0.18);
  }
  .hero--overlay .hero-call { max-width: none; }
  .hero-lead { padding-top: 48px; }
  .hero-lead__text { margin: 0 auto; text-align: center; }
}

/* キャッチコピーは画面幅を問わず文節で4行に分ける。
   A案は1025px前後でも「も。」だけ次の行に落ちていたため、スマホ専用だった改行を全幅で使う */
.hero--overlay .br-sp { display: inline; }

/* 受付時間の( )内を途中で折り返さない。入りきらないときは( )ごと次の行へ送る */
.nobreak { display: inline-block; }

/* =========================================================
   こんなとき、お手伝いします(2026-10-02 案2を採用)
   文言はB案、レイアウトはA案のアイコンに合わせた横長カード。
   アイコンを左・文字を右に置き、スマホでも1枚が低く収まるようにする
   ========================================================= */
.worry-section { background: var(--tint); padding: 64px 0; }
.worry-lead { text-align: center; font-size: 22px; color: var(--text); margin: -24px auto 36px; }
.worry-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px;
  max-width: 1000px; margin: 0 auto;
}
.worry-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border-radius: 14px; padding: 22px 24px;
  border-left: 6px solid var(--sky);
  box-shadow: 0 2px 10px rgba(42,122,134,0.06);
}
.worry-item__icon {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--sky); background: var(--white); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.worry-item__icon .icon { width: 38px; height: 38px; }
.worry-item__text { font-family: var(--font-heading); font-size: 23px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.worry-item__note { font-size: 19px; color: var(--text-light); line-height: 1.6; margin-top: 4px; }
/* まとめは白地+水色の枠。上向きの三角で4つのお困りごとを受け止める形にする。
   料金は色を変えず文章になじませる(価格だけを前面に出さない) */
.worry-answer {
  position: relative;
  max-width: 1000px; margin: 32px auto 0;
  background: var(--white); border: 2px solid var(--sky); border-radius: 14px;
  padding: 26px 24px;
  text-align: center; font-family: var(--font-heading);
  font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.7;
}
.worry-answer::before {
  content: ""; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 18px solid var(--sky);
}

@media (max-width: 768px) {
  .worry-section { padding: 48px 0; }
  .worry-lead { font-size: 20px; margin: -20px auto 24px; }
  .worry-grid { grid-template-columns: 1fr; gap: 12px; }
  .worry-item { padding: 16px; gap: 14px; }
  .worry-item__icon { width: 56px; height: 56px; }
  .worry-item__icon .icon { width: 30px; height: 30px; }
  .worry-item__text { font-size: 20px; }
  .worry-item__note { font-size: 18px; }
  .worry-answer { font-size: 20px; padding: 22px 18px; }
}

/* =========================================================
   料金(2026-10-02)
   こんなとき欄の次に置く(B案の「料金を前に出す」構成)。
   ・パソコンで料金欄全体がスクロールせずに1画面に収まる高さにする
     (目安:1280×800で固定ヘッダーを除いた約720px以内)
   ・かんたんサポートは「20分1,000円〜」と同じ枠に内容をまとめる
   ・料金の数字はUDフォントのまま(読み間違いを防ぐ)。安売りに見えないよう、数字は電話番号より大きくしない
   ========================================================= */
.price-section { background: var(--white); padding: 36px 0 28px; }
.price-section .section-header { margin-bottom: 14px; }
.price-lead { text-align: center; font-size: 20px; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
.price-card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(42,122,134,0.06);
}
.price-card__head {
  font-family: var(--font-heading); font-size: 21px; font-weight: 700; text-align: center;
  padding: 6px 16px; color: var(--navy);
}
.price-card__head--blue { background: var(--tint-strong); border-bottom: 3px solid var(--sky); }
.price-card__head--tint { background: var(--tint); border-bottom: 3px solid var(--hairline); }
.price-card__head--grey { background: var(--grey-bg); border-bottom: 3px solid var(--line); }
.price-card__body { padding: 10px 22px 12px; }
.price-card__note { font-size: 18px; color: var(--text-light); line-height: 1.5; margin-top: 6px; }

/* 20分1,000円〜(かんたんサポートの枠の中) */
.price-figure { text-align: center; line-height: 1.1; margin: 4px 0 6px; white-space: nowrap; }
.price-figure__time { font-size: 26px; font-weight: 700; color: var(--navy); margin-right: 8px; }
.price-figure__yen { font-size: 52px; font-weight: 700; color: var(--orange-text); letter-spacing: 1px; }
.price-figure__unit { font-size: 24px; font-weight: 700; color: var(--orange-text); margin-left: 2px; }
.price-figure__note {
  text-align: center; font-size: 18px; font-weight: 700; color: var(--navy);
  background: var(--tint); border-radius: 999px; padding: 4px 14px; margin: 0 auto 10px; width: fit-content;
}

.price-list { list-style: none; padding: 0; }
.price-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; color: var(--text); padding: 4px 0; line-height: 1.5; border-bottom: 1px solid var(--line-soft);
}
.price-list li::before { content: '✓'; color: var(--navy); font-weight: 700; font-size: 18px; flex-shrink: 0; }

.price-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.price-tags > span {
  background: var(--grey-bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; font-size: 18px; font-weight: 700; color: var(--text);
}

@media (max-width: 768px) {
  .price-section { padding: 40px 0 36px; }
  .price-lead { font-size: 19px; text-align: left; }
  .price-card__body { padding: 14px 16px 16px; }
  .price-figure__yen { font-size: 44px; }
  .price-list li { font-size: 19px; }
}
@media (max-width: 768px) {
  .price-figure__note { border-radius: 14px; }
  .price-list li { align-items: flex-start; }
  .price-list li::before { margin-top: 2px; }
}

/* =========================================================
   料金・かんたんサポートを1画面ぶん使う形(2026-10-02 改訂)
   ・実績帯と「サービス内容」欄を廃止し、その文言(5項目+ひとこと)をかんたんサポートの枠へ移した
   ・「20分1,000円〜」を枠の中でいちばん大きく見せる(囲みは付けない)
   ・プロ/ご紹介は次の画面に2列
   確認画像:docs/mock/price-easy-*.png / 組み版:src/_mock/price-easy.html
   ========================================================= */
/* ===== かんたんサポート:1画面ぶんを使う ===== */
  .easy-section {
    background: var(--white);
    /* 固定ヘッダーを除いた1画面ぶんの高さ。中身は上下中央にそろえる */
    min-height: calc(100vh - 83px);
    display: flex; align-items: center;
    padding: 20px 0;
  }
  .easy-section .container { width: 100%; }
  .easy-section .section-header { margin-bottom: 12px; }
  .easy-lead { text-align: center; font-size: 20px; color: var(--text); margin-bottom: 16px; line-height: 1.6; }
  .easy-panel {
    max-width: 1080px; margin: 0 auto;
    border: 2px solid var(--sky); border-radius: 16px; overflow: hidden; background: var(--white);
    box-shadow: 0 4px 18px rgba(42,122,134,0.08);
  }
  .easy-panel__head {
    background: var(--tint-strong); border-bottom: 3px solid var(--sky);
    font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--navy);
    text-align: center; padding: 8px 16px;
  }
  .easy-panel__body { padding: 16px 32px 16px; }
  /* 20分1,000円〜を強調:枠の中でいちばん目に入る位置・大きさにする(囲みは付けない・オーナー指定) */
  .easy-price {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 4px 20px 8px; margin-bottom: 16px;
  }
  .easy-price .price-figure { margin: 0; display: flex; align-items: center; gap: 14px; }
  .easy-price .price-figure__time {
    font-size: 30px; color: var(--white); background: var(--navy);
    border-radius: 10px; padding: 4px 14px; margin: 0; line-height: 1.3;
  }
  .easy-price .price-figure__yen { font-size: 72px; line-height: 1; }
  .easy-price .price-figure__unit { font-size: 34px; }
  .easy-price .price-figure__note { margin: 0; font-size: 19px; }
  .easy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .easy-card {
    background: var(--tint); border-radius: 12px; padding: 14px 10px 12px; text-align: center;
  }
  .easy-card__icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--sky);
    color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
  }
  .easy-card__icon .icon { width: 34px; height: 34px; }
  .easy-card__title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--navy); }
  .easy-card__desc { font-size: 19px; color: var(--text-light); margin-top: 4px; line-height: 1.6; }
  .easy-note {
    margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--hairline);
    text-align: center; font-size: 20px; color: var(--text); line-height: 1.7;
  }

  /* ===== プロ・ご紹介(次の画面) ===== */
  .other-section { background: var(--tint); padding: 40px 0 44px; }
  .other-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1080px; margin: 0 auto; }

  @media (max-width: 768px) {
    .easy-section { min-height: 0; padding: 40px 0 36px; }
    .easy-lead { font-size: 19px; text-align: center; } /* スマホも中央そろえ(2026-10-07 オーナー指定) */
    .easy-panel__body { padding: 16px 16px 18px; }
    .easy-price { gap: 8px; margin-bottom: 16px; padding: 0 0 4px; }
    .easy-price .price-figure { flex-direction: column; gap: 6px; }
    .easy-price .price-figure__time { font-size: 24px; padding: 2px 10px; }
    .easy-price .price-figure__yen { font-size: 56px; }
    .easy-price .price-figure__unit { font-size: 26px; }
    .easy-grid { grid-template-columns: 1fr; gap: 10px; }
    .easy-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; }
    .easy-card__icon { width: 52px; height: 52px; margin: 0; flex: none; }
    .easy-card__icon .icon { width: 28px; height: 28px; }
    .easy-card__title { font-size: 20px; }
    .easy-card__desc { font-size: 18px; margin-top: 0; }
    .easy-note { font-size: 19px; text-align: left; }
    .other-section { padding: 36px 0; }
    .other-grid { grid-template-columns: 1fr; }
  }
/* タブレット幅では5列だと説明文が語の途中で折り返すため、3列(3+2)にする */
@media (min-width: 769px) and (max-width: 1100px) {
  .easy-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   ご利用の流れ(2026-10-02 B案を採用)
   料金のすぐ後に置く。4ステップのカードの上に画像(Geminiのイラストが届くまでは見本イラスト)。
   STEP01のフリーダイヤルはボタンにする(オーナー指定)。文言は指示書p.17の確定文言どおり
   ========================================================= */
/* ステップだけで1画面を使う(2026-10-02 改訂:電話の案内まで1画面に詰めると狭苦しかったため戻した)。
   固定ヘッダーを除いた画面の高さを確保し、中身は上下中央にそろえる */
.flow-b-section {
  background: var(--tint); padding: 40px 0;
  min-height: calc(100vh - 83px); display: flex; align-items: center;
}
.flow-b-section .container { width: 100%; }
.flow-b-section .section-header { margin-bottom: 32px; }
.flow-b-lead { text-align: center; font-size: 22px; color: var(--text); margin: -24px auto 32px; }
.flow-b-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: none;
}
.flow-card {
  position: relative; background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(14,63,71,0.08);
  display: flex; flex-direction: column;
}
.flow-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--navy); color: var(--white);
  font-size: 17px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 14px; border-radius: 999px;
}
.flow-card__img.sample-img { aspect-ratio: 4 / 3; border-bottom: 2px solid var(--hairline); }
.flow-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.flow-card__title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.flow-card__desc { font-size: 19px; color: var(--text); line-height: 1.7; }
/* フリーダイヤルのボタン(オレンジ=電話のボタンという決まりに合わせる) */
.flow-call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--orange-cta); color: var(--white); text-decoration: none;
  border-radius: 10px; padding: 10px 12px; min-height: 64px;
  box-shadow: 0 4px 14px rgba(179,92,0,0.25);
}
.flow-call-btn__label { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 700; }
.flow-call-btn__label .icon { width: 20px; height: 20px; }
.flow-call-btn__num { font-size: 26px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; line-height: 1.2; }

@media (max-width: 1024px) {
  .flow-b-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .flow-b-lead { font-size: 20px; margin: -20px auto 24px; }
  .flow-b-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-card__img.sample-img { aspect-ratio: 16 / 9; }
  .flow-card__title { font-size: 21px; }
  .flow-card__desc { font-size: 19px; }
}

@media (max-width: 768px) {
  .flow-b-section { padding: 44px 0; min-height: 0; }
}

/* スマホではヒーローの写真を出さない(2026-10-02 オーナー指定)。
   電話CTAをファーストビューの上のほうに上げるため */
@media (max-width: 768px) {
  .hero--overlay .hero__photo { display: none; }
}

/* =========================================================
   統合版レビュー(docs/02_統合版レビュー.md)の判断不要分の修正(2026-10-02)
   ========================================================= */
/* A5 地域切替:タップ領域を48px以上に。今いるページの表示はHTMLの aria-current="page" に合わせる */
.region-switch { padding: 0; }
.region-switch a { display: inline-block; padding: 13px 12px; margin: 0 2px; }
.region-switch a[aria-current="page"] { color: var(--text-light); font-weight: 400; text-decoration: underline; }
/* A6 最終CTAの電話番号リンク:押しやすい高さを確保 */
.b-cta__phone-link { display: inline-flex; align-items: center; min-height: 56px; padding: 8px 12px; }
/* A7 フッターのTELリンクは周りの文字と同じ見た目にする */
.corp-footer__company-addr a { color: inherit; }
/* A8 日本語の文節で折り返す(対応ブラウザのみ。非対応でも通常の折り返しになるだけ) */
.hero-lead__text, .flow-card__desc, .b-voice__text, .b-cta__code, .inline-cta__note,
.worry-item__note, .easy-card__desc, .faq-item__a {
  word-break: auto-phrase;
  text-wrap: pretty;
}
/* A10 文字サイズをシニア向けの基準(本文20px・注記18px以上)にそろえる */
.easy-lead, .easy-note, .flow-card__desc, .price-list li { font-size: 20px; }
.flow-card__badge { font-size: 18px; }
@media (max-width: 768px) {
  .easy-lead, .easy-note, .flow-card__desc, .price-list li { font-size: 20px; }
  .price-figure__note { font-size: 19px; }
  /* A9 よくあるご質問の回答:字下げをやめて1行の文字数を戻す */
  .faq-item { padding: 20px; }
  .faq-item__a { padding-left: 0; }
}
/* A11 タブレット(769〜1024px):見出しと電話CTAを先に見せ、写真は後ろに低めに置く */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero--overlay .hero__photo { order: 1; max-height: 360px; }
}
/* 320px級の画面 */
@media (max-width: 374px) {
  /* A1 見出し「まごころサポート」を1行に保つ(36px×8字が入らない) */
  .hero__main-title { font-size: 32px; }
  /* A12 電話ボタンを追従ボタンより上に収めるため、ヒーローの余白と行間を詰める */
  .hero--overlay { padding-top: 8px; }
  .hero__subtitle { font-size: 21px; line-height: 1.5; margin-bottom: 8px; }
  .hero-call { padding: 12px 14px; }
  .hero-call__lead { margin-bottom: 6px; }
  /* A8 アイコンを小さくして文字の幅を確保し、1字だけの行を防ぐ */
  .worry-item { padding: 12px; gap: 10px; }
  .worry-item__icon { width: 44px; height: 44px; }
  .worry-item__icon .icon { width: 24px; height: 24px; }
  .easy-panel__body { padding: 12px; }
  .easy-card { padding: 10px; gap: 10px; }
  .easy-card__icon { width: 44px; height: 44px; }
  .easy-card__icon .icon { width: 24px; height: 24px; }
  .b-recruit__title { font-size: 28px; }
}

/* =========================================================
   県別ページ(2026-10-07):ヒーローに対応エリアの市名を明記
   ========================================================= */
.hero__area {
  order: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0 0 14px;
  padding: 8px 22px 8px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}
.hero__area-icon { width: 26px; height: 26px; stroke: #fff; flex: none; }
.hero__area-pref { font-size: 20px; }
.hero__area-city { font-size: 30px; letter-spacing: .02em; }
.hero__area-to { font-size: 20px; }
/* 紹介文の市名:白地のオレンジ文字(4.73:1)で拾い読みでも目に入るように */
.area-name { color: var(--orange-text); font-weight: 700; font-size: 1.1em; }
@media (max-width: 768px) {
  .hero__area { padding: 4px 18px 4px 12px; margin-bottom: 10px; }
  .hero__area-icon { width: 22px; height: 22px; }
  .hero__area-pref { font-size: 17px; }
  /* スマホは札を1行に収めるため「のみなさまへ」を省く(2行だと電話CTAが追従ボタンに隠れる) */
  .hero__area-to { display: none; }
  .hero__area-city { font-size: 24px; }
}
/* 県の切り替えリンクはスマホでも1行に収める(2段になると電話CTAがファーストビューから下がるため) */
@media (max-width: 768px) {
  .region-switch { white-space: nowrap; }
  .region-switch a { font-size: 15px; padding: 13px 4px; margin: 0; }
}
/* 地名の札を1行に収める(重ねるヒーローのカード幅520pxで「のみなさまへ」が2行目に落ちていたため) */
.hero__area-pref, .hero__area-city, .hero__area-to { white-space: nowrap; }
.hero__area { gap: 2px 6px; }
.hero__area-city { font-size: 26px; }
.hero__area-pref, .hero__area-to { font-size: 18px; }
@media (max-width: 768px) {
  .hero__area-pref { font-size: 17px; }
  .hero__area-city { font-size: 24px; }
}
@media (max-width: 360px) {
  .hero__area { padding: 4px 14px 4px 10px; }
  .hero__area-pref { font-size: 15px; }
  .hero__area-city { font-size: 20px; }
}

/* =========================================================
   スマホのヒーローにも写真を出す(2026-10-07 上司指定)
   枠に差し込むのではなく背景に敷く(オーナー指定)。人物は写真の右側にいるので右寄せで敷き、
   文字が載る左側には白のグラデーションをかけて読みやすさを保つ
   ========================================================= */
@media (max-width: 768px) {
  .hero--overlay {
    background:
      linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.2) 75%, rgba(255,255,255,0) 100%),
      linear-gradient(180deg, rgba(255,255,255,0) 300px, #fff 440px),
      url("assets/photos/01.jpg") right -40px top 10px / auto 430px no-repeat,
      #fff;
  }
  .hero--overlay .hero__decoration { display: none; }
  .hero-call { background: #fff; }
}
/* 追従電話バーを1行に保つ(421〜480px前後で「タップして電話をかける」が2行に折れていた) */
@media (max-width: 520px) {
  .floating-call__text { display: none; }
  .floating-call { gap: 12px; }
}
