/* ============================================================
   CLEANATE - index.css
   TOPページ固有スタイル
   【修正済】レビュー指摘を全件反映
   ============================================================ */

/* ローディング（.loader）は全ページ共通のため common.css に置いている。
   ここにはTOPページ固有の「ローディング明けのFV入場」だけを書く */

/* ---- TOPページ：body の padding-top を除去してヒーローをヘッダー背面へ ---- */
.page-top {
  padding-top: 0;
}

/* ---- FVの入場（ローディングが明けた直後に続く） ----
   opacity:0 を初期値に書かないのが重要。アニメーションが動かない環境でも
   本文が必ず見えるよう、既定を表示状態にして backwards で待機中だけ隠す */
.hero__content > * {
  animation: hero-rise 0.55s ease-out backwards;
}

.hero__content > *:nth-child(1) { animation-delay: 1.05s; }
.hero__content > *:nth-child(2) { animation-delay: 1.12s; }
.hero__content > *:nth-child(3) { animation-delay: 1.19s; }
.hero__content > *:nth-child(4) { animation-delay: 1.26s; }
.hero__content > *:nth-child(5) { animation-delay: 1.33s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 装飾の入場 ----
   右の写真エリア（.hero__visual）には入場アニメーションを付けない。
   ローディングが明けた時点で、そのまま流れている状態にする。

   fill-mode は backwards のみ。終了後は静的な指定に戻るので、
   アニメーションが走らない環境でも通常表示になる */
.hero__deco-item {
  animation: hero-deco-in 0.6s ease-out backwards;
}

/* 装飾は写真より少し遅れて、順に現れる */
.hero__deco-item--fan    { animation-delay: 1.35s; }
.hero__deco-item--bath   { animation-delay: 1.43s; }
.hero__deco-item--stove  { animation-delay: 1.51s; }
.hero__deco-item--bottle { animation-delay: 1.59s; }
.hero__deco-item--spray  { animation-delay: 1.67s; }
.hero__deco-item--toilet { animation-delay: 1.75s; }
.hero__deco-item--glove  { animation-delay: 1.83s; }
.hero__deco-item--roller { animation-delay: 1.91s; }
.hero__deco-item--sparkle1 { animation-delay: 1.99s; }
.hero__deco-item--sparkle2 { animation-delay: 2.07s; }
.hero__deco-item--sparkle3 { animation-delay: 2.15s; }
.hero__deco-item--sparkle4 { animation-delay: 2.23s; }

/* 終了値の rotate(var(--r)) は静的指定と必ず一致させること。
   ずれると再生後にカクッと飛ぶ */
@keyframes hero-deco-in {
  from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(0.5); }
  to   { opacity: 0.95; transform: rotate(var(--r, 0deg)) scale(1); }
}

/* ローディングを出さない場合（.no-opening）と、動きを減らす設定の場合は
   FVを即座に確定状態にする。.loader 自体の制御は common.css 側。
   スライダーの流れも止める（動きを減らす設定のときのみ） */
.no-opening .hero__content > *,
.no-opening .hero__deco-item {
  opacity: 1;
  animation: none;
}

.no-opening .hero__deco-item {
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > *,
  .hero__deco-item,
  .hero__reel {
    opacity: 1;
    animation: none;
  }

  .hero__deco-item {
    opacity: 0.95;
  }
}

/* ---- TOPページ専用：透明ヘッダー ---- */
.site-header.is-top-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* ロゴはPNG画像のため透明時も変更不要 */

.site-header.is-top-transparent .site-header__nav-item a {
  color: var(--color-text);
}

.site-header.is-top-transparent .hamburger__line {
  background: var(--color-text);
}

/* ---- 共通ユーティリティ（インラインstyle除去用） ---- */
.section-lead {
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 48px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.section-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   HERO SECTION
   【修正】右画像をフルブリード化（ワイヤーフレーム準拠）
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: rgb(var(--hero-blend));
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---- 右：斜めに流れる作業写真 ----
   .hero__visual が切り取り枠、.hero__slider が傾きを担当し、
   .hero__track の縦スクロールで流す。役割を分けているのは、
   傾きとスクロールを同じ要素の transform に同居させられないため */
.hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
  /* 装飾より前面。写真が必ずイラストの上に来る */
  z-index: 2;
}

.hero__slider {
  /* 傾けたぶん四隅が欠けるので、枠より一回り大きく取る */
  position: absolute;
  inset: -18% -12%;
  display: flex;
  justify-content: center;
  transform: rotate(-8deg);
}

/* 2周ぶんを縦に積み、-50% 動かすと継ぎ目なくループする。
   カード間は gap ではなく margin-bottom で空ける。gap だと最後の1枚の
   後ろに間隔が付かず、高さの半分＝ちょうど1周期にならないため */
.hero__reel {
  width: 56%;
  /* stretch されると高さが枠に合ってしまい、-50% が1周期からずれる。
     内容の高さのままにする */
  align-self: flex-start;
  animation: hero-scroll 46s linear infinite;
}

@keyframes hero-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.hero__card {
  margin: 0 0 28px;
  aspect-ratio: 4 / 3;
  border: 4px solid var(--color-primary);
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 18px 36px rgba(26, 122, 69, 0.14);
}

.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 写真が暗く暖色寄りのため、地色との落差を縮める方向に補正 */
  filter: brightness(1.1) saturate(0.97);
}

/* ---- 装飾イラスト ----
   重なり順は 装飾(1) < 写真(2) < 本文(3)。
   写真より奥になるため、カードの走る帯（概ね中央56%〜92%）を避けて配置する。
   本文にも重ならないよう、テキスト帯の外側だけに置いている */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__deco-item {
  position: absolute;
  width: var(--w, 64px);
  height: auto;
  transform: rotate(var(--r, 0deg));
  opacity: 0.95;
}

/* 写真より奥に回ったため、カードの帯（実測 x 709〜1388 / 1440px時）には置けない。
   使えるのは本文の左右にある次の2帯で、ここに4点ずつ振り分けている。
     左の余白      x 0〜10%    （本文の左パディングぶん）
     本文と写真の間 x 40〜49%   （カードの帯が始まる手前まで）
   縦位置・大きさ・角度を互い違いにして、列に見えないようにしている */

/* 大きさは 32〜96px まで開き、大小が隣り合うように並べている
   （帯ごとに 大→小→中→大 の順で、同じ大きさが続かないようにする）*/

/* 左の余白 */
.hero__deco-item--bath   { --w: 96px; --r: 6deg;   top: 17%;    left: 0.5%; }
.hero__deco-item--stove  { --w: 52px; --r: -8deg;  top: 41%;    left: 4.5%; }
.hero__deco-item--spray  { --w: 38px; --r: 11deg;  top: 62%;    left: 1.5%; }
.hero__deco-item--glove  { --w: 76px; --r: -6deg;  bottom: 2%;  left: 2.5%; }

/* 本文と写真の間 */
.hero__deco-item--fan    { --w: 68px; --r: -7deg;  top: 8%;     left: 42%; }
.hero__deco-item--bottle { --w: 32px; --r: 13deg;  top: 31%;    left: 46%; }
.hero__deco-item--toilet { --w: 44px; --r: -12deg; top: 52%;    left: 43.5%; }
.hero__deco-item--roller { --w: 58px; --r: 7deg;   bottom: 5%;  left: 44%; }

/* キラキラ（仮）は道具アイコンに添えるアクセント。
   左の余白と中央帯それぞれで、道具アイコンの隙間の中央に来るよう
   縦位置を実測して置いている（下のコメントの数値は1440px時の実測値）。
   上から順に 道具→キラキラ→道具→… と交互になる並び */

/* 左の余白：隙間 y236-392 と y652-856 の中ほど */
.hero__deco-item--sparkle1 { --w: 44px; --r: -4deg; top: 27%;  left: 5%; }
.hero__deco-item--sparkle2 { --w: 38px; --r: 9deg;  top: 72%;  left: 3%; }

/* 中央帯：隙間 y145-297 と y554-848 の中ほど */
.hero__deco-item--sparkle3 { --w: 40px; --r: 14deg; top: 20%;  left: 44.5%; }
.hero__deco-item--sparkle4 { --w: 34px; --r: -8deg; top: 70%;  left: 42.5%; }

.hero__inner {
  display: grid;
  /* 画像スロットが57%のため、テキスト側を43%より内側に収める比率。
     1fr 1fr だと左パディング140pxのぶんカラム境界が右にずれ、写真に食い込む */
  grid-template-columns: 35fr 65fr;
  align-items: center;
  width: 100%;
  padding: calc(var(--header-height) + 60px) 40px 80px 160px;
  position: relative;
  /* 装飾(1) < 写真(2) < 本文(3)。本文は常に最前面 */
  z-index: 3;
}

/* min-width: auto によるカラムの膨張を止め、画像スロットへの食い込みを防ぐ */
.hero__content {
  min-width: 0;
}


.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

.hero__title {
  font-family: var(--font-base);
  /* ロゴを1行目に独立させ、和文2行が続く3行構成。
     2行目「がキレイと信頼を」8文字が1行に収まる上限としてこのサイズにしている */
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 32px;
}

/* 見出し1行目のロゴ。単独行にするので、和文より大きく使える。
   カラム幅に追従させ、広い画面でも大きくなりすぎないよう上限を設ける */
.hero__title-logo {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin-bottom: 0.2em;
}

.hero__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-sub);
  line-height: 1.9;
  margin-bottom: 40px;
}

.hero__tags {
  display: flex;
  /* 4個を必ず1行に保つ。幅はカラムに合わせて縮む */
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 36px;
}

.hero__tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* 固定140pxをやめ、4等分で縮む。広い画面では従来サイズで頭打ち */
  flex: 1 1 0;
  min-width: 0;
  max-width: 140px;
  padding: 12px 6px;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
}

/* タグが縮んでもはみ出さないよう、アイコンもタグ幅に追従させる */
.hero__tag-icon {
  width: 100%;
  max-width: 56px;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.hero__tag-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__cta .btn--large {
  width: calc(4 * 140px + 3 * 16px);
  max-width: 100%;
  padding: 20px 48px;
  font-size: 1.0625rem;
}

/* ============================================================
   TROUBLES SECTION
   ============================================================ */

/* 背景は上の灰色から薄い緑へ流し、下の solution の上端と同じ色で終える。
   solution 側はこの薄い緑から白へ流すので、2つのセクションの境目が見えなくなる。
   イラストは白地のため、写真の背景だと地が浮いて濁る。単色のグラデーションにしている */
.troubles {
  --troubles-end: var(--color-primary-light);
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-gray) 0%, #f3f8f5 45%, var(--troubles-end) 100%);
  /* solution との間を詰め、1つの流れとして見せる */
  padding-bottom: 40px;
}

.troubles__container {
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.troubles__header {
  text-align: center;
  margin-bottom: 48px;
}

.troubles__eyebrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.troubles__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.troubles__title-underline {
  position: relative;
  display: inline-block;
}

.troubles__title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: rgba(255, 220, 50, 0.5);
  z-index: -1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s ease 0.3s;
}

.troubles__header.is-visible .troubles__title-underline::after {
  clip-path: inset(0 0% 0 0);
}

.troubles__lead {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-sub);
}

.troubles__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- 1行＝イラスト＋吹き出し ----
   イラストの人物がそのまま吹き出しでしゃべっている見せ方にする。
   偶数行（--reverse）は左右を入れ替えてジグザグに並べる */
.trouble-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.trouble-row--reverse {
  flex-direction: row-reverse;
}

.trouble-row__figure {
  width: 300px;
  flex-shrink: 0;
}

/* イラストは外側の白地を透過済み（顔などの内側の白は残している）。
   mix-blend-mode は .fade-in の transform で合成が閉じてしまい効かないため使わない */
.trouble-row__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.trouble-row__bubble {
  position: relative;
  flex: 1;
  max-width: 580px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 28px;
  padding: 32px 36px 30px;
  box-shadow: 0 10px 30px rgba(26, 122, 69, 0.1);
}

/* 吹き出しのしっぽ。枠線ぶんを表現するため、緑の三角（::before）の上に
   白の三角（::after）を2px内側へずらして重ねる。既定はイラストのある左向き */
.trouble-row__bubble::before,
.trouble-row__bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.trouble-row__bubble::before {
  left: -20px;
  border-width: 14px 20px 14px 0;
  border-color: transparent var(--color-primary) transparent transparent;
}

.trouble-row__bubble::after {
  left: -16px;
  border-width: 12px 17px 12px 0;
  border-color: transparent var(--color-white) transparent transparent;
}

/* 反転行はイラストが右にあるので、しっぽも右向きにする */
.trouble-row--reverse .trouble-row__bubble::before {
  left: auto;
  right: -20px;
  border-width: 14px 0 14px 20px;
  border-color: transparent transparent transparent var(--color-primary);
}

.trouble-row--reverse .trouble-row__bubble::after {
  left: auto;
  right: -16px;
  border-width: 12px 0 12px 17px;
  border-color: transparent transparent transparent var(--color-white);
}

.trouble-row__category {
  display: inline-block;
  padding: 8px 36px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.trouble-row__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 先頭に緑の丸チェック。マスクではなく背景SVGにして古いブラウザでも出るようにする */
.trouble-row__item {
  position: relative;
  padding-left: 32px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.7;
}

.trouble-row__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7a45' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17 19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}

/* 入場：行はゆっくり浮かび、吹き出しはイラストより少し遅れて「ぽん」と出る */
.troubles__list .fade-in {
  transition: opacity 1s ease, transform 1s ease;
}

.trouble-row__bubble {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}

.trouble-row.is-visible .trouble-row__bubble {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .trouble-row__bubble {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   SOLUTION SECTION（そのお悩み、Cleanateが対応します）
   ============================================================ */

/* troubles の最下部と同じ薄い緑から始めて白へ流し、境目をなくす */
.solution {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, #f4faf6 35%, var(--color-white) 100%);
  padding-top: 40px;
}

/* Heading image */
.solution__heading {
  text-align: center;
  margin-bottom: 56px;
}

.solution__heading-img {
  max-width: 28%;
  height: auto;
  display: inline-block;
}

/* Solution Cards */
.solution .container {
  max-width: 1440px;
}

/* 4列だと1枚が約340pxしかなく本文が読みにくいので、2列にして1枚を約680pxに広げ、
   写真を左・テキストを右に置いた横組みにしている */
.solution__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.solution-card {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* 左半分の写真。カードの高さいっぱいに伸ばす（高さは右のテキスト量が決める） */
.solution-card__img-wrap {
  flex: 0 0 240px;
  width: 240px;
  min-height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-gray) 100%);
}

.solution-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 下端の文字（Before/After等）を切らないよう、切り取りを下寄りにする */
  object-position: center bottom;
  display: block;
}

/* 分解した部品が写真上部〜中央にあるため、切り取りを上寄りにする */
.solution-card__img-wrap--top img {
  object-position: center 35%;
}

.solution-card__img--fallback img {
  display: none;
}

.solution-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 通し番号と見出しは1行に並べる */
.solution-card__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.solution-card__no {
  flex: 0 0 auto;
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.solution-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.solution-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* Solution CTA */
.solution__cta {
  text-align: center;
}

.solution__cta-btn {
  min-width: 520px;
  padding: 22px 60px;
  font-size: 1.0625rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 680px);
  gap: 60px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 40px;
}

/* スティッキー見出し */
.services__left-inner {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.services__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.services__desc {
  font-size: 0.9375rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* サービス一覧（右カラム） */
.services__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-item__img-wrap {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-gray));
}

.service-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-item__img--fallback img {
  display: none;
}

.service-item__body {
  flex: 1;
}

.service-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.service-item__text {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.75;
}

/* services セクション内 CTA：グリッド外・中央配置 */
.services .section-cta-wrap {
  margin-top: 0;
}

.services .section-cta-wrap .btn--large {
  min-width: 520px;
  padding: 22px 60px;
  font-size: 1.0625rem;
}

/* ============================================================
   CASES セクションタイトル画像・CTA
   ============================================================ */
.cases__heading {
  text-align: center;
  margin-bottom: 48px;
}

.cases__title-img {
  max-width: 30%;
  height: auto;
  display: inline-block;
}

.cases__cta-btn {
  min-width: 520px;
  padding: 22px 60px;
  font-size: 1.0625rem;
}

/* ============================================================
   CASE STUDIES SECTION
   【修正】4件・2×2グリッド
   ============================================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-card__image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.case-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-gray));
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__image-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.case-card__before-after {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.case-card__before-after span {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1.4;
}

.case-card__before-after .before {
  background: var(--color-text);
  color: white;
}

.case-card__before-after .after {
  background: var(--color-primary);
  color: white;
}

.case-card__body {
  padding: 20px 24px;
  flex: 1;
}

.case-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.case-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.case-card__text {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 14px;
}

.case-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.case-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.case-card__meta-item svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-text-light);
  fill: none;
  stroke-width: 1.5;
}

/* ============================================================
   FLOW SECTION
   【修正】SPコネクター線を追加
   ============================================================ */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.flow__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(10% + 12px);
  right: calc(10% + 12px);
  height: 2px;
  background: var(--color-primary);
  opacity: 0.3;
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.flow-step__number {
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.flow-step__num-label {
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.8;
  line-height: 1;
}

.flow-step__num-value {
  font-family: var(--font-logo);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.flow-step__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flow-step__text {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* ============================================================
   AREA SECTION
   ============================================================ */
.area__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.area__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 24px;
}

.area__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.area__text {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: 36px;
}

.area__map-img {
  width: 100%;
  height: auto;
  display: block;
}

.area__cta-btn {
  min-width: 0;
  padding: 16px 40px;
  font-size: 1rem;
}

/* ============================================================
   PROFILE SECTION
   ============================================================ */
.profile__card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.profile__photo {
  width: 200px;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-gray);
  border: 3px solid var(--color-primary);
}

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

.profile__role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.profile__name-en {
  font-family: var(--font-logo);
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.profile__name-ja {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.profile__text {
  font-size: 0.9375rem;
  color: var(--color-text-sub);
  line-height: 1.9;
  margin-bottom: 20px;
}

.profile__sns {
  display: flex;
  gap: 10px;
}

.profile__sns-btn {
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.9375rem;
}

.profile__sns-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--transition);
  user-select: none;
}

.faq-item__question:hover {
  background: var(--color-bg-gray);
}

.faq-item__q-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-logo);
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item__arrow {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  /* パネルの開き（0.75s）に合わせて、矢印も同じ曲線で回す */
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__arrow {
  transform: rotate(-135deg);
}

/* ---- 回答パネルの開閉 ----
   2階建てにしている。
     .faq-item__answer       … 高さ0から伸びる「窓」。はみ出しを隠すだけ
     .faq-item__answer-inner … その中を上から下へ滑り込んでくる中身
   1枚だけで高さを伸ばすと、文字が下から出てくるのではなく
   ただ切り取り線が下がるワイプになるため、役割を分けている。

   高さ（max-height）は index.js が inner の実寸を測って入れる。
   padding を inner 側に持たせているので、窓側は常に padding 0 でよく、
   閉じたときに20pxぶん残ってしまう問題も起きない */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  /* 閉じるとき。開くときより短くして、たたむのはもたつかせない */
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__answer {
  /* 開くとき。ゆっくり動き出してゆっくり止まる曲線にする。
     easeOut系（出だしが速い曲線）だと、時間を延ばしても
     「パッと開いて最後だけ粘る」動きになり、ふんわりしない */
  transition: max-height 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__answer-inner {
  padding: 0 24px 20px 68px;
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  /* 質問の裏に隠れた位置から始めて、開くときに下りてくる */
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.22s ease,
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__answer-inner {
  opacity: 1;
  transform: translateY(0);
  /* 窓が開き始めてから少し遅れて、ふんわり追いかけて下りてくる。
     パネル（0.75s）より長くして、最後にゆっくり収まるようにする */
  transition:
    opacity 0.62s ease 0.14s,
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
}

/* 動きを減らす設定のときは、位置ずらしとフェードだけ外す */
@media (prefers-reduced-motion: reduce) {
  .faq-item__answer-inner,
  .faq-item.is-open .faq-item__answer-inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- 5問目以降と、その開閉トグル ----
   既定は非表示。index.js が .faq__list に .is-expanded を付け外しする */
.faq-item--extra {
  display: none;
}

.faq__list.is-expanded .faq-item--extra {
  display: block;
}

/* 「すべての質問を見る」で出てくる6問の入場。
   共通の .fade-in（0.6s）より長くして、下からゆっくり浮かび上がらせる。
   ずらし幅（transition-delay）は index.js が1件ずつ付ける */
.faq-item--extra.fade-in {
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__more {
  text-align: center;
  margin-top: 28px;
}

.faq__more-btn {
  gap: 10px;
}

/* 矢印はFAQ項目の .faq-item__arrow と同じ作り方・同じ回転角にして、
   セクション内で見た目を揃える */
.faq__more-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
  /* 45度回転で見た目の重心が下がるぶんを戻す */
  margin-top: -3px;
}

.faq__more-btn[aria-expanded="true"] .faq__more-icon {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-accent) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.cta-banner__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE — タブレット（1024px以下）
   ============================================================ */
@media (max-width: 1280px) {
  /* この幅から下はテキストカラムが狭くなりすぎてタグが細長くなるため、
     画像スロットを戻しつつ左パディングを詰めて、タグの幅を確保する */
  .hero__visual {
    width: 48%;
  }

  /* この幅は左パディングが40pxになり「左の余白」の帯が消える。さらに
     本文と写真の間も約60pxまで細るため、無理に8点入れず6点に絞る。
     左にあった4点は本文の下（実測80pxの帯）へ横並びで逃がす。
     一律の縮小率ではなく、帯に収まる範囲で大小差を保った実寸を指定する */
  .hero__deco-item--toilet,
  .hero__deco-item--roller {
    display: none;
  }

  /* 本文と写真の間。1100pxではここが約60pxしかないので、
     テキストから14px以上離しつつ写真に潜らない上限として
     「left 47.5%以上・外接幅46px以下」を満たす値にしている */
  .hero__deco-item--fan    { --w: 38px; left: 47.5%; top: 12%; }
  .hero__deco-item--bottle { --w: 24px; left: 48%;   top: 42%; }

  /* 本文の下の帯（高さ約80px）。大小を交互に並べる */
  .hero__deco-item--bath,
  .hero__deco-item--stove,
  .hero__deco-item--spray,
  .hero__deco-item--glove {
    top: auto;
    bottom: 1%;
  }

  /* 帯の高さが約80pxしかないため、縦長のもの（お風呂・手袋）は
     そのままだと本文の下端に触れる。ここだけ一段小さくしている */
  .hero__deco-item--bath  { --w: 66px; left: 2%; }
  .hero__deco-item--stove { --w: 44px; left: 16%; bottom: 4%; }
  .hero__deco-item--spray { --w: 30px; left: 27%; }
  .hero__deco-item--glove { --w: 48px; left: 35%; }

  /* キラキラは下の帯に2つ（余裕があるので大きめ）、中央帯に2つ（帯の幅なりに控えめ） */
  .hero__deco-item--sparkle1 { --w: 42px; top: auto; bottom: 2%; left: 10%; }
  .hero__deco-item--sparkle2 { --w: 38px; top: auto; bottom: 2%; left: 45%; }
  .hero__deco-item--sparkle3 { --w: 26px; top: 25%;  left: 47.5%; }
  .hero__deco-item--sparkle4 { --w: 24px; top: 56%;  left: 48%; }

  .hero__inner {
    grid-template-columns: 45fr 55fr;
    padding-left: 40px;
    padding-right: 24px;
  }

  /* 2列のまま、写真を少し細くしてテキスト欄を確保する */
  .solution-card__img-wrap {
    flex-basis: 210px;
    width: 210px;
  }

  .solution-card__body {
    padding: 20px 22px;
  }

  .trouble-row {
    gap: 28px;
  }

  .trouble-row__figure {
    width: 240px;
  }

  .solution__cta-btn,
  .services .section-cta-wrap .btn--large,
  .cases__cta-btn {
    min-width: 320px;
  }

  .area__grid {
    gap: 40px;
  }

  .services__grid {
    grid-template-columns: 220px minmax(0, 560px);
    gap: 40px;
  }

  .flow__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 0;
  }

  .flow__steps::before {
    display: none;
  }
}

/* 横流し用。縦マーキーと同じ考え方で、2周ぶんを -50% 動かす */
@keyframes hero-scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE — タブレット以下（1024px以下）
   FVを単段にし、写真は「無料のお見積りはこちら」の下で横に流す
   ============================================================ */
@media (max-width: 1024px) {

  .hero {
    min-height: 0;
    /* row のままだと visual が潰れて width: 0 になり写真が見えなくなる */
    flex-direction: column;
  }

  /* テキストを先に、写真をその下に */
  .hero__inner {
    order: 1;
    grid-template-columns: 1fr;
    padding: calc(var(--header-height) + 48px) 24px 48px;
  }

  .hero__content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }


  /* 単段でカラムが620pxに広がるぶん、和文を大きくして行幅を稼ぐ。
     PC用の clamp(最大3rem) のままだと文字が小さく、
     ロゴの方が行より広くなってバランスが崩れる */
  .hero__title {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
  }

  /* ロゴは文字サイズに連動させる。em 指定にすると、どの幅でも
     「ロゴ幅 ≒ 和文1行の0.7倍」の比率が保たれる */
  .hero__title-logo {
    width: auto;
    height: 1.45em;
    max-width: 100%;
  }

  .hero__visual {
    order: 2;
    position: relative;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
  }

  /* ---- 縦マーキーを横に倒す ----
     枠・傾き・送りの役割分担はPCと同じ。傾きだけ解除して向きを変える */
  .hero__slider {
    inset: 0;
    transform: none;
    align-items: center;
    justify-content: flex-start;
  }

  /* flex-shrink を止めないと、枠幅まで縮められてカードが潰れる */
  .hero__reel {
    display: flex;
    width: auto;
    flex-shrink: 0;
    align-self: center;
    animation-name: hero-scroll-x;
    animation-duration: 44s;
  }

  /* .hero__track は素の div で display 指定が無いため、ここで flex にする */
  .hero__track {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
  }

  /* 間隔は gap ではなく margin-right。gap だと最後の1枚の後ろに間隔が付かず、
     幅の半分がちょうど1周期にならないため（縦マーキーと同じ理由） */
  .hero__card {
    width: 260px;
    flex-shrink: 0;
    margin: 0 16px 0 0;
  }

  /* 装飾イラストは単段レイアウトでは出さない。
     本文が全幅を使うため左右に余白が無く、置くと必ず文字に重なるか、
     幅によって位置がずれて隣の要素へ食い込むため */
  .hero__deco {
    display: none;
  }

  /* 2列のままだと1枚が約460pxになり、写真を引いたテキスト欄が200px弱しか
     残らない。1列に落として横組みを保つ（写真はカード幅に対する比率で持つ） */
  .solution__cards {
    grid-template-columns: 1fr;
  }

  .solution-card__img-wrap {
    flex: 0 0 34%;
    width: 34%;
  }
}

/* タグは4個横並びが基本。ただし1枚が100pxを切ると、56pxのアイコンに対して
   細長くなり読みにくい。実測でそうなるのが520px以下なので、そこから2×2にする
   （768pxで2×2にすると今度は1枚304pxになり間延びする） */
@media (max-width: 520px) {
  .hero__tags {
    flex-wrap: wrap;
  }

  .hero__tag {
    /* gap 12px を2列で分け合うので 50% から 6px 引く */
    flex: 0 0 calc(50% - 6px);
    max-width: none;
  }
}

/* ============================================================
   RESPONSIVE — スマホ（768px以下）
   ============================================================ */
@media (max-width: 768px) {

  /* ヘッダーのロゴは、見出し直下の大きなロゴと重複するため消す。
     769px以上は通常ナビが出る幅で、ロゴを消すとナビが左端に寄って
     ヘッダーが崩れるため、ハンバーガーになるこの幅だけに限定する */
  .site-header__logo {
    display: none;
  }

  /* ロゴが消えるとハンバーガーが唯一の子になり、space-between では
     左端に寄ってしまう。右端に固定する */
  .hamburger {
    margin-left: auto;
  }

  /* ---- Hero SP ---- */
  .hero__inner {
    padding: calc(var(--header-height-sp) + 32px) 20px 40px;
  }

  .hero__visual {
    height: 200px;
  }

  .hero__card {
    width: 200px;
    margin-right: 12px;
    border-width: 3px;
    border-radius: 14px;
  }



  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    text-align: center;
    justify-content: center;
  }

  /* ---- Troubles SP ----
     横並びだとイラストと吹き出しがどちらも細くなるため縦積みにする。
     反転行も含めて「イラスト上・吹き出し下」にそろえ、しっぽは上向きにする */
  .trouble-row,
  .trouble-row--reverse {
    flex-direction: column;
    gap: 22px;
  }

  .trouble-row__figure {
    width: 210px;
  }

  .trouble-row__bubble {
    width: 100%;
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .trouble-row__bubble::before,
  .trouble-row--reverse .trouble-row__bubble::before {
    top: -18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 0 13px 18px 13px;
    border-color: transparent transparent var(--color-primary) transparent;
  }

  .trouble-row__bubble::after,
  .trouble-row--reverse .trouble-row__bubble::after {
    top: -14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-width: 0 11px 15px 11px;
    border-color: transparent transparent var(--color-white) transparent;
  }

  .trouble-row__category {
    font-size: 1rem;
    padding: 7px 28px;
  }

  .trouble-row__item {
    font-size: 0.9375rem;
  }

  .solution__heading-placeholder {
    padding: 32px 40px;
  }

  /* PCの max-width:28% はコンテナが335pxしかないSPだと約94pxになり、
     見出しとして読めない大きさになる。とはいえ100%だと主張が強すぎるので、
     コンテナの7割（375px幅で約235px）に収める */
  .solution__heading-img {
    max-width: 70%;
  }

  .solution__cards {
    grid-template-columns: 1fr;
  }

  /* SPは横組みだと写真もテキストも細くなるため、写真を上に戻して縦積みにする */
  .solution-card {
    flex-direction: column;
  }

  .solution-card__img-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 200px;
    min-height: 0;
  }

  .solution-card__body {
    padding: 20px 18px 24px;
  }

  .solution__cta-btn,
  .cases__cta-btn {
    min-width: 0;
    width: 100%;
  }

  .area__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* 1カラムになるSPでは、見出しと小見出しだけ中央に置く */
  .area__title,
  .area__subtitle {
    text-align: center;
  }

  /* ---- Services SP ---- */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services__left-inner {
    position: static;
    text-align: center;
  }

  /* .services__title は flex-direction:column なので
     text-align ではなく align-items で中央に寄せる */
  .services__title {
    align-items: center;
  }

  .service-item {
    flex-direction: column;
  }

  .service-item__img-wrap {
    width: 100%;
    height: 220px;
  }

  .services .section-cta-wrap .btn--large {
    width: 100%;
  }

  /* ---- Cases SP ---- */
  /* 見出し画像も solution と同じ考え方でコンテナの7割にする */
  .cases__title-img {
    max-width: 70%;
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  /* SPは縦に長くなりすぎるため、事例は先頭2件だけ見せる。
     残りは「お掃除の実績はこちら」から確認してもらう */
  .cases__grid .case-card:nth-child(n + 3) {
    display: none;
  }

  /* ---- FAQ SP ----
     .btn は white-space:nowrap のため、文言が長いと枠からはみ出す。
     このボタンだけ折り返しを許可する */
  .faq__more-btn {
    white-space: normal;
    max-width: 100%;
  }

  /* ---- Flow SP：縦積み＋コネクター線 ---- */
  .flow__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-step {
    padding-bottom: 40px;
  }

  .flow-step:last-child {
    padding-bottom: 0;
  }

  .flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 28px;
    background: var(--color-primary);
    opacity: 0.3;
  }

  /* ---- Profile SP ---- */
  .profile__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 28px;
  }

  .profile__photo {
    width: 160px;
    height: 200px;
  }

  .profile__sns {
    justify-content: center;
  }

  /* ---- CTA SP ---- */
  .btn--large {
    min-width: 0;
    width: 100%;
  }
}

/* fade-in アニメーションは common.css で定義 */


/* ============================================================
   WordPress版で追加：対応事例カードをリンク化（クリックでレポート詳細ページへ）
   画像は .ba-images（common.css）で Before／After の2枚を並べる
   ============================================================ */
.case-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.case-card__link:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}

.case-card__title,
.case-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
