/* page-case.css - 解決事例（一覧・個別ページ）　2026年10月13日作成
   ヘッダー・パンくず・固定CTA・ミニCTAの指定は page-column.css と同じ（複製）。
   コラム側を変更した場合はこちらも合わせて直すこと */

h2{font-size:clamp(1.05rem, 0.85rem + 2.2vw, 1.9rem);}

/* Header hamburger: square button, dark purple background, white lines */
  .c-hamburger--header{
    width:2.5rem; height:2.5rem;
    background:var(--purple-900);
    border-radius:8px;
  }

.c-hamburger--header span{
    left:0.625rem; right:0.625rem;
    background:#fff;
  }

.c-hamburger--header span:nth-child(1){top:0.8125rem;}

.c-hamburger--header span:nth-child(2){top:1.1875rem;}

.c-hamburger--header span:nth-child(3){top:1.5625rem;}

.c-hamburger--header.is-open span:nth-child(1){top:1.1875rem; transform:rotate(45deg);}

.c-hamburger--header.is-open span:nth-child(3){top:1.1875rem; transform:rotate(-45deg);}

@media(max-width:768px){
    .l-submenu__inner{display:none;}
    .c-hamburger--header{display:flex; align-items:center; justify-content:center;}
    .l-submenu{background:transparent; border-bottom:none;}
    .l-submenu.is-menu-open{background:var(--purple-900); border-bottom:1px solid rgba(255,255,255,.08);}
  }

.c-mini-cta .c-btn-group{max-width:40rem; margin:0 auto;}

/* ---------- Anchor offset for sticky header ---------- */
  section[id]{scroll-margin-top:118px;}

/* ----------------------------------------------------------------------
   下部固定CTAの余白について

   他のページCSSには body{padding-bottom:8.25rem;} が入っているが、
   common.css の 14rem（PC）／25rem（SP）を打ち消してしまうため
   このページでは意図的に指定していない。
   他ページと揃える必要が出た場合はここに1行足せば切り替わる。
   ---------------------------------------------------------------------- */

/* ---------- Fixed bottom CTA（写真とキャプションの位置） ---------- */
  .c-fixed-cta__photo{display:none;}

.c-fixed-cta__caption{display:none;}

@media(min-width:1100px){
    .c-fixed-cta__buttons{max-width:37.5rem; margin:0 auto;}
    .c-fixed-cta__photo{
      display:block;
      position:absolute;
      left:calc(50% + 18.75rem - 1rem); bottom:-0.625rem;
      pointer-events:none;
    }
    .c-fixed-cta__photo img{width:9.375rem; height:auto; display:block;}
    .c-fixed-cta__caption{
      display:block;
      position:absolute;
      left:calc(50% + 18.75rem - 1rem + 9.875rem);
      bottom:1.25rem;
      width:6.625rem;
      margin:0;
      font-size:.6rem;
      font-weight:700;
      color:var(--ink-soft);
      line-height:1.5;
      text-align:left;
      white-space:nowrap;
      pointer-events:none;
    }
  }

/* ----------------------------------------------------------------------
   パンくずリスト（page-faq.css と同じ指定）

   PC   … 1行に収め、入り切らない記事タイトルは末尾を省略記号にする
   SP   … 折り返さず、パンくずの帯だけ横スクロールで全文を読めるようにする
          （overflow-x は帯の内側だけに付けるため、ページ全体は横に動かない）
   ---------------------------------------------------------------------- */
.c-breadcrumb__inner{
    flex-wrap:nowrap;
  }

/* リンクと区切り記号は縮めない */
.c-breadcrumb__inner a,
.c-breadcrumb__sep{
    flex:none;
    white-space:nowrap;
  }

/* 現在位置（記事タイトル）だけを縮める。min-width:0 がないと省略が効かない */
.c-breadcrumb__current{
    flex:0 1 auto;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

@media(max-width:900px){
  /* 帯の内側だけ横スクロール。記事タイトルは省略せず全文を残す */
  .c-breadcrumb__inner{
    overflow-x:auto;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }

  .c-breadcrumb__current{
    flex:none;
    overflow:visible;
    text-overflow:clip;
    padding-right:1.5rem;
  }
}

/* ----------------------------------------------------------------------
   ページタイトルの強調語
   費用ページ・流れページ（page-fee.css / page-flow.css）と同じ指定。
   黄色の下線ではなく赤字＋1.25emで、タイトルの見た目が3ページで揃う
   ---------------------------------------------------------------------- */
.c-hero h1 .c-highlight{
    background:none;
    color:#B31F31;
    font-size:1em;   /* h1本体を大きくしたため、強調語は同サイズにする */
  }


/* ----------------------------------------------------------------------
   ミニCTA
   page-top.css の「Mini CTA band」と同じ指定。
   コラムページは page-top.css を読み込まないため、ここに複製している。
   TOP側を変更した場合はこちらも合わせて直すこと
   ---------------------------------------------------------------------- */
.c-mini-cta{
    background:var(--purple-900);
    padding:2.75rem 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    text-align:center;
  }

.c-mini-cta p{
    font-family:"Noto Sans JP",sans-serif;
    font-weight:700;
    color:#fff;
    font-size:1.2rem;
    margin:0 0 1.375rem;
  }

.c-mini-cta__note{
    margin:-0.75rem 0 1.375rem;
    color:#fff;
    font-family:"Noto Sans JP",sans-serif;
    font-weight:700;
  }


/* ======================================================================
   ケース番号「ケース①」（一覧・個別ページ共通）
   数字を丸で囲む。2桁（10〜）でも丸の中に収まるよう min-width で横に伸ばす
   ====================================================================== */
.p-case-no{
    display:inline-flex;
    align-items:center;
    gap:0.25em;
    font-weight:700;
    color:var(--purple-900);
    white-space:nowrap;
  }

.p-case-no__num{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:1.6em;
    height:1.6em;
    padding:0 0.35em;
    border-radius:999px;
    background:var(--purple);
    color:#fff;
    font-size:.9em;
    line-height:1;
  }

/* ======================================================================
   一覧ページ（/case/）　2026-10-14 FAQ一覧（page-faq.css の .p-faq-list）と同じ見せ方に変更
   行頭に「ケース①」、タイトル、右端に丸い矢印。区切りの線だけで行を分ける
   ====================================================================== */
.p-case-list-section{padding-top:3rem;}

.p-case-list{
    list-style:none;
    max-width:56.25rem;
    margin:0 auto;
    padding:0;
    border-top:1px solid var(--line);
  }

.p-case-list__item{border-bottom:1px solid var(--line);}

.p-case-list__link{
    display:flex;
    align-items:center;
    gap:1rem;
    padding:1.375rem 1.5rem;
    transition:background .2s ease;
  }

.p-case-list__link:hover{background:var(--purple-050);}

.p-case-list__link:focus-visible{outline:3px solid var(--yellow-dark); outline-offset:2px;}

/* 行頭の「ケース①」（FAQの「Q.」の位置）。2026-10-14 小さくし、「ケース」の下に番号を中央揃えで置く2段組みに */
.p-case-list__mark{
    flex:none;
    align-self:center;
    flex-direction:column;
    gap:0.2rem;
    font-size:.8rem;
    line-height:1.2;
  }

.p-case-list__mark .p-case-no__num{font-size:1em;}

/* タイトル。FAQの質問文と同じ1.25rem */
.p-case-list__text{
    flex:1 1 auto;
    min-width:0;
    font-size:1.25rem;
    line-height:1.7;
    color:var(--ink);
  }

/* タイトルの上の「相談時状況」ラベルと「60代・男性」。2026-10-14 追加 */
.p-case-list__body{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:0.375rem;}

.p-case-list__meta{display:flex; flex-wrap:wrap; align-items:center; gap:0.375rem 0.75rem;}

.p-case-list__tag{
    display:inline-block;
    padding:0.125rem 0.625rem;
    border-radius:4px;
    background:var(--purple);
    color:#fff;
    font-size:.9rem;
    font-weight:700;
    line-height:1.6;
  }

.p-case-list__person{font-size:.95rem; font-weight:700; color:var(--purple-900);}

.p-case-list__item--draft .p-case-list__tag{background:var(--purple-300);}

.p-case-list__item--draft .p-case-list__person{color:var(--purple-300);}

/* 右端の丸い矢印（FAQと同じ） */
.p-case-list__arrow{
    flex:none;
    width:1.75rem; height:1.75rem;
    border-radius:50%;
    background:var(--purple-900);
    display:flex; align-items:center; justify-content:center;
    transition:background .2s ease;
  }

.p-case-list__arrow svg{
    width:0.8125rem; height:0.8125rem;
    stroke:#fff; fill:none;
    stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round;
  }

.p-case-list__link:hover .p-case-list__arrow{background:var(--yellow-dark);}

/* 原稿未確定の行。公開前に必ず解消する */
.p-case-list__item--draft .p-case-list__mark,
.p-case-list__item--draft .p-case-list__text{color:var(--purple-300);}

.p-case-list__item--draft .p-case-no__num,
.p-case-list__item--draft .p-case-list__arrow{background:var(--purple-300);}

/* ======================================================================
   個別ページ（/case/001 〜）
   ====================================================================== */
.p-case-detail{padding-top:3rem;}

.p-case-detail__article{max-width:53.75rem; margin:0 auto;}

/* h1：コラム個別ページ（.c-hero--column）と同じ帯・大きさ・左寄せ。2026-10-14
   1行目「ケース①」、2行目タイトル。公開日・更新日は出さない */
.c-hero--case{padding:3.25rem 0 3rem;}

.c-hero--case h1.p-case-detail__title{
    max-width:53.75rem;
    margin:0 auto;
    font-size:min(2.1rem, 6vw);
    line-height:1.6;
    text-align:left;
  }

.p-case-detail__title .p-case-no{font-size:.65em; gap:0.3em; vertical-align:baseline;}   /* 2026-10-14 「ケース①」はタイトルより小さく（PC・SP共通） */

.p-case-detail__title .p-case-no__num{font-size:.8em;}

.p-case-detail__title-text{
    text-wrap:balance;         /* 2行以上になるときは行の長さをそろえる */
    word-break:auto-phrase;    /* 言葉の途中で改行しない（対応ブラウザのみ） */
  }

/* プロフィール：左に画像、右に名前と表 */
.p-case-profile{
    display:flex;
    align-items:flex-start;
    gap:2rem;
    margin:0 0 3rem;
  }

.p-case-profile__photo{
    flex:none;
    width:10.5rem;
    aspect-ratio:3 / 4;   /* 2026-10-23 枠の内側の白い余白をなくし、画像を枠いっぱいに表示。画像は横450×縦600px（3:4）で用意する */
    padding:0;   /* 2026-10-23 内側の白い余白（旧：0.375rem 0.375rem 0）を削除 */
    overflow:hidden;
    border:4px solid var(--purple-100);
    background:#fff;
  }

.p-case-profile__photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
  }

.p-case-profile__body{flex:1 1 auto; min-width:0;}

.p-case-profile__name{
    margin:0;
    padding-bottom:0.625rem;
    border-bottom:1px solid var(--line);
    font-size:1.15rem;
    font-weight:700;
    color:var(--purple-900);
  }

.p-case-profile__rows{margin:0;}

.p-case-profile__row{
    display:grid;
    grid-template-columns:9rem minmax(0,1fr);
    gap:1rem;
    padding:0.625rem 0.25rem;
    border-bottom:1px solid var(--line);
  }

.p-case-profile__row dt{font-weight:700; color:var(--purple-900);}

.p-case-profile__row dd{margin:0;}

/* 本文：h2＞段落。h2はコラムの大見出し（.p-column-detail__body h2）と同じデザイン。2026-10-14 */
.p-case-detail__body h2{
    margin:3rem 0 1.25rem;
    padding:0.75rem 1rem;
    background:var(--purple-900);
    color:#fff;
    border-radius:6px;
    font-size:1.6rem;
    line-height:1.6;
    scroll-margin-top:1.5rem;
  }

.p-case-detail__body h2:first-child{margin-top:0;}

.p-case-detail__body p{
    margin:0;
    font-size:1.25rem;   /* 2026-10-23 FAQ個別ページの本文と同じサイズに（旧：1.2rem） */
    line-height:1.95;    /* 2026-10-23 FAQ個別ページの本文と同じ（旧：1.9） */
  }

.p-case-detail__body p + p{margin-top:1.25rem;}
.p-case-detail__body p.p-case-detail__note{margin-top:2rem; font-size:.95rem; line-height:1.75; color:var(--ink-soft);}   /* 2026-10-23 本文末尾の注記（コラムの注記と同じ文字サイズ・色） */

.p-case-detail__body strong{font-weight:700; background:linear-gradient(transparent 60%, var(--yellow-050) 60%);}

/* PCのときだけ改行する（データの title_html で使う）。SPは画面幅で自然に折り返す。2026-10-14 */
.p-case-br-pc{display:inline;}
@media(max-width:900px){ .p-case-br-pc{display:none;} }

/* ---------- ほかの解決事例・一覧へ戻る ---------- */
.p-case-foot{padding-top:3.5rem; padding-bottom:4.5rem;}

.p-case-others{max-width:53.75rem; margin:0 auto;}

.p-case-others__title{
    font-size:1.45rem;
    line-height:1.6;
    padding-bottom:0.75rem;
    border-bottom:2px solid var(--purple-100);
  }

.p-case-others__list{list-style:none; margin:0; padding:0;}

.p-case-others__item{border-bottom:1px solid var(--line);}

.p-case-others__link{
    display:flex;
    align-items:baseline;
    gap:0.75rem;
    padding:1.125rem 0.25rem;
    font-size:1.2rem;
    line-height:1.7;
    border-radius:8px;
    transition:background .2s ease;
  }

.p-case-others__link:hover{background:var(--purple-050);}

.p-case-no--sm{font-size:.9rem;}

/* 一覧へ戻るボタン（コラムと同じ） */
.p-case-back{
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:26.25rem;
    margin:3rem auto 0;
    padding:1.125rem 1.5rem;
    border:2px solid var(--purple-900);
    border-radius:999px;
    background:#fff;
    color:var(--purple-900);
    font-size:1.25rem;
    font-weight:700;
    line-height:1.6;
    text-align:center;
    transition:background .2s ease, color .2s ease;
  }

.p-case-back:hover{background:var(--purple-900); color:#fff;}

/* ======================================================================
   SP表示（判定は900px以下でサイト共通に揃える）
   ====================================================================== */
@media(max-width:900px){

  /* 一覧（FAQのSPと同じ） */
  .p-case-list__link{gap:0.75rem; padding:1.25rem 1rem;}

  .p-case-list__arrow{width:1.5rem; height:1.5rem;}

  .p-case-list__arrow svg{width:0.75rem; height:0.75rem;}




  .c-hero--case h1.p-case-detail__title{font-size:min(5.2vw, 1.75rem);}

  /* プロフィール：SPも画像を左に置き、表は画像の下に回り込まない */
  .p-case-profile{gap:1rem; margin:0 0 2.5rem;}

  .p-case-profile__photo{width:6.5rem; padding:0; border-width:3px;}   /* 2026-10-23 内側の白い余白を削除 */


  /* 2026-10-14 SPも項目名と内容を横に並べる（参考画像の配置） */
  .p-case-profile__row{grid-template-columns:7.5em minmax(0,1fr); gap:0.5rem; padding:0.5rem 0.125rem 0.5rem 0.375rem; font-size:.9rem; line-height:1.6;}

  .p-case-profile__name{padding-bottom:0.5rem; font-size:.95rem;}

  .p-case-detail__body h2{font-size:1.5rem;}   /* コラムのSPと同じ */

  /* 2026-10-23 SPの本文サイズ指定（1.1rem）を削除。FAQ個別ページと同じくPC・SPとも1.25rem */

  .p-case-others__link{flex-direction:column; gap:0.25rem; font-size:1.1rem;}

  .p-case-back{max-width:100%; font-size:1.35rem;}

}



/* ---------- Utility classes ---------- */
.u-br-sp{display:none;}

@media(max-width:768px){.u-br-sp{display:inline;}}

.c-eyebrow--center{justify-content:center;}
/* =========================================================
   解決事例のタイトル：決めた位置で改行（2026-10-28）
   各行は折り返さない。入りきらないときは、行の文字数（--pc-len / --sp-len）から文字を縮める
   ========================================================= */
.c-ttl{display:block; container-type:inline-size;}
.c-ttl__line{display:block; white-space:nowrap; font-size:min(1em, calc(100cqi / (var(--pc-len) + 0.6)));}
.c-ttl__br-sp{display:none;}
@media(max-width:768px){
  .c-ttl__line{font-size:min(1em, calc(100cqi / (var(--sp-len) + 0.6)));}
  .c-ttl__br-sp{display:inline;}
}
/* 2026-10-28 SPの一覧：タイトルを横幅いっぱいに使えるよう、「ケース1」を上の行（横並び）に、矢印を右上に移す */
@media(max-width:768px){
  .p-case-list__link{position:relative; flex-wrap:wrap; row-gap:0.5rem; padding:1.25rem 1rem;}
  .p-case-list__mark{flex:0 0 100%; flex-direction:row; justify-content:flex-start; align-items:center; gap:0.4rem;}
  .p-case-list__body{flex:0 0 100%;}
  .p-case-list__arrow{position:absolute; top:1.1rem; right:1rem;}
}
/* 2026-10-29 一覧ページの導入文：PC（769px以上）は1行に収める。
   他の下層ページと同じ幅（41.25rem＝660px）のまま、文字を1.25rem→1.1875rem（20px→19px）に下げて収める。
   34文字×19px＝646px。導入文を長くすると2行になるため、そのときは文字数か大きさを見直す */
@media(min-width:769px){
  .c-hero--caselist p{font-size:1.1875rem; text-align:center;}
}
