/* ==========================================================================
   TOP ページ（front-page.php）
   仕様: docs/design-spec/01_top.md
   座標はすべて Zeplin アートボード実測（PC 1920 / SP 375）を基準に換算している。

   画像のコピー元（design/assets/ → images/front/）は各 template-parts/front-*.php
   の冒頭 docblock に記載。波形の背景だけは下記のとおり書き出しが壊れていたため
   画面 PNG から切り出している（詳細は docs/design-spec/REQUESTS_front.md）。

     波形は画像を持たない。components.css の [data-wave] + --wave-a/--wave-b（マスク）。
   ========================================================================== */

.p-front {
  --lead-sp-shape: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 350' preserveAspectRatio='none'><path d='M0,0L5,1L10,1L15,2L20,2L25,3L30,3L35,4L40,4L45,5L50,5L55,6L60,6L65,7L70,7L75,8L80,8L85,9L90,9L95,10L100,10L105,11L110,11L115,12L120,12L125,13L130,13L135,13L140,14L145,14L150,15L155,15L160,15L165,16L170,16L175,16L180,17L185,17L190,17L195,17L200,17L205,17L210,17L215,17L220,17L225,17L230,16L235,16L240,16L245,16L250,15L255,15L260,14L265,14L270,13L275,13L280,12L285,11L290,11L295,10L300,10L305,9L310,8L315,8L320,7L325,7L330,6L335,6L340,6L345,5L350,5L355,5L360,5L365,5L370,5L374,5L375,5L375,323L374,323L370,324L365,325L360,326L355,327L350,328L345,329L340,329L335,330L330,330L325,330L320,330L315,330L310,330L305,330L300,330L295,330L290,330L285,331L280,331L275,331L270,331L265,332L260,332L255,332L250,333L245,333L240,333L235,334L230,334L225,334L220,335L215,335L210,335L205,335L200,335L195,335L190,335L185,335L180,335L175,336L170,336L165,336L160,336L155,336L150,336L145,336L140,337L135,337L130,338L125,339L120,340L115,341L110,341L105,343L100,344L95,345L90,346L85,346L80,347L75,348L70,348L65,349L60,349L55,349L50,349L45,350L40,350L35,350L30,350L25,350L20,350L15,350L10,350L5,350L0,350L0,350Z' fill='%23000'/></svg>");
  overflow-x: clip;   /* ヒーローと帯の全幅要素がはみ出しても横スクロールさせない */
}

/* --------------------------------------------------------------------
   ページ内の PC / SP 出し分け
   共通の .u-pc-only / .u-sp-only はブレークポイントが 768px で、
   本サイトの 1079px と違うためページ内専用のものを用意する。
   -------------------------------------------------------------------- */
@media (max-width: 1079px) {
  .p-front .p-front__pc { display: none !important; }
}
@media (min-width: 1080px) {
  .p-front .p-front__sp { display: none !important; }
}

/* --------------------------------------------------------------------
   背景の帯と波形（セクション背景として帯の上端へ絶対配置する）
   -------------------------------------------------------------------- */
.p-front__band {
  position: relative;
}
.p-front__band--white,
.p-front__band--white2 { background: var(--c-white); }
.p-front__band--cream  { background: var(--c-cream); }
.p-front__band--green  { background: var(--c-green-light); }  /* #CCDFA2 */

.p-front__band--white  { padding-bottom: 110px; }             /* 次の帯の波が重なる余白 */
.p-front__band--cream  { padding-block: 73px 150px; }   /* 下 150px は市川様の指定（2026-09-15 / 元 60px） */
.p-front__band--green  { padding-block: 82px 174px; }    /* 市川様の指定（2026-09-15 / 元 151px 130px） */
.p-front__band--white2 { padding-block: 103px 120px; }

/* 波形は components.css の [data-wave] が描く（画像なし・マスク）。
   帯は「ひとつ前の帯の下端に食い込ませる」ので top ではなく bottom:100% に置く。
   色はその帯自身の背景色。 */
.p-front__band[data-wave] {
  --wave-top: auto;
  --wave-bottom: 100%;
  --wave-z: 1;
}
.p-front__band--cream  { --wave-fill: var(--c-cream); }        /* 白 → クリーム（y=2110 / 形B） */
.p-front__band--green  { --wave-fill: var(--c-green-light); }  /* クリーム → 緑（y=4738 / 形A） */
.p-front__band--white2 { --wave-fill: var(--c-white); }        /* 緑 → 白（y=5490 / 形B） */

/* --------------------------------------------------------------------
   セクション共通（見出し・本文）
   -------------------------------------------------------------------- */
.p-front__section {
  position: relative;
  z-index: 2;            /* 波形より前面 */
}

.p-front__head { margin-bottom: 0; }
.p-front__head--pc-center { text-align: center; }
.p-front__head--pc-left   { text-align: left; }

.p-front__title {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--c-text);
}
/* 旗リボンは見出しの左に下端を揃えてぶら下げる（PC: 98×93） */
/* 🚨 旗は bottom ではなく top で置く。
   見出しが 2 行に折り返したとき bottom 基準だと旗が 1 行目に乗り上げて
   文字を隠す（SP「ご利用を検討されてる方へ」/ 2026-09-16 市川様のご指摘）。
   デザインは折り返しても**1 行目の下端**に旗の下端を合わせている。
   line-height:1 なので 1 行の高さ = 1em。 */
.p-front__flag {
  position: absolute;
  right: calc(100% + 1px);
  top: calc(1em + 4px - 93px);
  bottom: auto;
  width: 98px;
  height: 93px;
}
/* 左揃えの見出しは旗のぶんだけ本文カラムから右へ寄る（PC x=380 → 479） */
.p-front__head--pc-left .p-front__title { margin-left: 99px; }

.p-front__text {
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 40px;
  color: var(--c-text);
  text-align: justify;
}
.p-front__text--center { text-align: center; }

/* --------------------------------------------------------------------
   セクション 1 — ヒーロー
   PC: 1920×1080 の背景イラストの上にキャッチ（x=954 y=205）と
       訴求バッジ 3 点（y=945 / x=380・588・794）を % 指定で重ねる。
   -------------------------------------------------------------------- */
/* 🚨 デザインは 1920×1080。高解像度ディスプレイでそのまま比例拡大すると
   2560px では 2560×1440 になり、画面に収まらないほど大きくなる
   （2026-09-16 市川様のご指摘）。
   ・枠の高さは 1920:1080 の比率で伸ばしつつ **1080px で頭打ち**
   ・背景イラストは全幅のまま object-fit: cover で上下を少しトリミング
     （空と手前の草地なので欠けても構図は崩れない）
   ・キャッチとバッジは中央寄せの内枠（最大 1920px）基準にしたのでデザイン実寸で止まる */
.p-front__hero {
  position: relative;
  /* 🚨 width を明示する。省略（auto）のままだと max-height に引っぱられて
     **幅まで 1920px に縮み**、2560px 画面で左右に地色が出る。 */
  width: 100%;
  aspect-ratio: 1920 / 1080;
  max-height: 1080px;
  overflow: clip;
}
.p-front__hero-inner {
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: min(100%, 1920px);
  pointer-events: none;     /* 背景側のクリックを塞がない */
}
.p-front__hero-inner > * { pointer-events: auto; }

/* ヒーロー下端の白い波。Zeplin の形状 `layer__7203`(1920×1230 / y=1020) の
   アルファ上端を 20px 刻みで実測して SVG パスに起こしたもの。画像は使わない。
   ヒーロー全体が width:100% / height:auto で比例縮小するので、% 指定にしておけば
   どの画面幅でも波の形が崩れない（縦横とも同じ率で伸びるため）。
   波 y=1020〜1104、ヒーロー下端 y=1200。基準はヒーロー枠 y=120〜1200。 */
.p-front__hero::after {
  content: "";
  position: absolute;
  top: 83.33%;         /* (1020 - 120) / 1080 */
  left: 0;
  right: 0;
  bottom: 0;           /* 高さ 16.67% = 1920 幅で 180px */
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201920%20180'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,1.3L20,0L40,1L60,2.3L80,3.7L100,5.3L120,7L140,8.7L160,10.7L180,12.3L200,14.3L220,16.7L240,18.7L260,21.3L280,24.7L300,28L320,31.7L340,35L360,38.7L380,42.3L400,46L420,49.7L440,53.3L460,57L480,60.3L500,63.7L520,66.7L540,69.7L560,72.3L580,74.7L600,76.7L620,78.3L640,80L660,81.3L680,82.3L700,83.3L720,84L740,84.3L760,84.3L780,84.3L800,84L820,83.7L840,82.7L860,81.7L880,80.7L900,79.3L920,77.7L940,75.7L960,73.7L980,71.7L1000,69L1020,66.3L1040,63.7L1060,60.3L1080,57.3L1100,54L1120,51L1140,47.7L1160,44L1180,40.7L1200,37.3L1220,34L1240,30.7L1260,27.7L1280,24.3L1300,21.3L1320,18.3L1340,15.7L1360,13L1380,10.7L1400,8.7L1420,6.7L1440,5L1460,3.3L1480,2.3L1500,1.3L1520,0.7L1540,0.7L1560,0.7L1580,1L1600,1.7L1620,2.7L1640,3.7L1660,5L1680,6.3L1700,8.3L1720,10.3L1740,12.3L1760,15L1780,17.7L1800,20.3L1820,23.3L1840,26.7L1860,30L1880,33.7L1900,37.7L1920,41.3L1920,180L0,180Z'%20fill='%23fff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}
/* バッジとキャッチコピーは波より前面に出す（デザインでは白波の上に乗っている） */
.p-front__hero-catch,
.p-front__hero-badges,
.p-front__hero-badges-sp { z-index: 2; }


.p-front__hero-bg { position: absolute; inset: 0; display: block; }
.p-front__hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 1920 超では上下がトリミングされる */
  object-position: center;
}

.p-front__hero-catch {
  position: absolute;
  top: 7.87%;          /* (205 - 120) / 1080 */
  left: 49.69%;        /* 954 / 1920 */
  width: 35.36%;       /* 679 / 1920 */
  margin: 0;
}
.p-front__hero-catch picture,
.p-front__hero-catch img { display: block; width: 100%; height: auto; }

.p-front__hero-badges {
  position: absolute;
  top: 76.39%;         /* (945 - 120) / 1080 */
  left: 19.79%;        /* 380 / 1920 */
  display: flex;
  gap: 2.65%;          /* 16px / 605px */
  width: 31.51%;       /* (191 × 3 + 32) / 1920 */
}
.p-front__hero-badges li { flex: 1 1 0; }
.p-front__hero-badges img { display: block; width: 100%; height: auto; }

.p-front__hero-badges-sp {
  position: absolute;
  top: 81.03%;         /* (611 - 60) / 680 */
  left: 6.13%;         /* 23 / 375 */
  width: 88.27%;       /* 331 / 375 */
}
.p-front__hero-badges-sp img { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------
   ヒーローの出現アニメーション（2026-09-16）

   キャッチコピーは**1枚の画像**なので行ごとには分けられない。かわりに
   やわらかいグラデーションのマスクを**上から下へ**走らせ、
   筆で書き足されていくように見せる。PC は2行・SP は4行だが、
   行数に関係なく同じ仕掛けで自然に見える。

   仕組み: 要素の 2.5 倍の高さのマスクを敷き、
     mask-position 0 100%（＝透明な下半分が要素に重なる）… 隠れている
     mask-position 0 0  （＝不透明な上半分が要素に重なる）… 出ている
   mask-position は普通に transition できるので @property は要らない。

   🚨 mask 非対応のブラウザでは mask-image ごと無視され、画像がそのまま
      見えるだけになる（消えない）。初期状態は html.js の下だけに書く。
   -------------------------------------------------------------------- */
.js .p-front__hero-catch[data-anim] {
  opacity: 0;
  transform: translateY(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 42%, transparent 52% 100%);
          mask-image: linear-gradient(to bottom, #000 0 42%, transparent 52% 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 250%;
          mask-size: 100% 250%;
  -webkit-mask-position: 0 100%;
          mask-position: 0 100%;
  transition:
    opacity .5s var(--ease) .15s,
    transform .9s var(--ease) .15s,
    -webkit-mask-position 1.15s var(--ease) .15s,
    mask-position 1.15s var(--ease) .15s;
}
.js .p-front__hero-catch[data-anim].is-inview {
  opacity: 1;
  transform: none;
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
}

/* バッジはキャッチを書き終えたころに、判子を押すように1つずつ */
.js .p-front__hero-badges[data-anim="stagger"] > * {
  transform: translateY(10px) scale(.88);
  transition-delay: calc(.9s + var(--anim-i, 0) * 130ms);
  transition-timing-function: cubic-bezier(.34, 1.5, .64, 1);
}
.js .p-front__hero-badges[data-anim="stagger"].is-inview > * { transform: none; }

/* SP はバッジが1枚の画像に統合されているので、まとめて1回 */
.js .p-front__hero-badges-sp[data-anim] {
  transform: translateY(10px) scale(.92);
  transition-delay: .9s;
  transition-timing-function: cubic-bezier(.34, 1.5, .64, 1);
}
.js .p-front__hero-badges-sp[data-anim].is-inview { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .p-front__hero-catch[data-anim] {
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }
}

/* --------------------------------------------------------------------
   セクション 2 — こんなお悩みありませんか？
   -------------------------------------------------------------------- */
.p-front__section--worries { padding-top: 40px; }

.p-front__cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 29px;
  max-width: 1048px;          /* 330 × 3 + 29 × 2 */
  margin: 39px auto 0;
}
.p-front__case-img { display: block; width: 100%; height: auto; }
.p-front__case-caption {
  margin-top: 26px;
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 28px;
  text-align: center;
}

/* リード文。素材が届くまでは淡グリーンの吹き出し風ブロックで代替する（指示書 p06） */
.p-front__lead {
  width: min(100% - var(--gutter) * 2, 884px);
  margin: 96px auto 17px;   /* 下 17px は市川様の指定（2026-09-15） */
  padding: 56px 40px;
  /* 手描き風の緑ブロブ（指示書 p06 / PC=Zeplin `3` 884x275）。
     文量で高さが変わるため 100% 100% で追従させる。 */
  background: url(../images/front/lead-bg-pc.webp) center / 100% 100% no-repeat;
}
.p-front__lead-text {
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 40px;
  color: var(--c-text);
  text-align: center;
}

/* --------------------------------------------------------------------
   セクション 3 — 大切にしていること
   -------------------------------------------------------------------- */
.p-front__values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 69px;
}
.p-front__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 270px;          /* デザインのカードは 270×270。狭い幅では縦に伸びる */
  padding: 4px 22px 12px;
  background: var(--c-white);
  border: 3px solid var(--c-text-sub);
  border-radius: 16px;
  box-shadow: 3px 5.196px 0 0 var(--c-text-sub);   /* ぼかしなしのハードシャドウ */
}
.p-front__value-icon {
  width: 61.1%;        /* 165 / 270 */
  height: auto;
}
.p-front__value-title {
  margin-top: 4px;
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-align: center;
}
.p-front__value-body {
  margin-top: 8px;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 24px;
  color: #000;
  text-align: justify;
}

/* --------------------------------------------------------------------
   セクション 4 — 私たちのしごと
   PC: 左テキスト（560）/ 右画像（583）。SP: 上画像 / 下テキスト。
   -------------------------------------------------------------------- */
.p-front__section--work { margin-top: 118px; }

.p-front__work {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 583fr);
  gap: 17px;
  align-items: start;
}
.p-front__work-photo { order: 2; }
.p-front__work-photo img { display: block; width: 100%; height: auto; }
.p-front__work-body   { order: 1; padding-top: 56px; }   /* 旗 2775 → 本文列の頭 2831 */
.p-front__work-body .p-front__text { margin-top: 56px; }
.p-front__work-action { margin-top: 24px; }

/* --------------------------------------------------------------------
   セクション 5 — サポート体制
   -------------------------------------------------------------------- */
.p-front__section--support { margin-top: 175px; }   /* 市川様の指定（2026-09-15 / 元 125px） */

.p-front__section--support .p-front__text { margin-top: 36px; }

.p-front__supports {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 62px;   /* 市川様の指定（2026-09-15 / 元 86px） */
}
.p-front__support {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 216px;          /* デザインのカードは 216×216 */
  padding: 16px 10px;
  background: var(--c-white);
  border-radius: 12px;
}
.p-front__support-icon {
  width: auto;
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
}
.p-front__support-label {
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  text-align: center;
  color: var(--c-text);
}

/* --------------------------------------------------------------------
   セクション 6 — ご利用を検討されてる方へ
   PC: 左画像（520）/ 右テキスト（580）。SP: 上テキスト / 下画像。
   -------------------------------------------------------------------- */
.p-front__section--consider { margin-top: 125px; }

.p-front__consider {
  display: grid;
  grid-template-columns: minmax(0, 520fr) minmax(0, 580fr);
  gap: 60px;
  align-items: start;
}
.p-front__consider-photo { order: 1; padding-top: 16px; }   /* 旗 4262 / 写真 4278 */
.p-front__consider-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.p-front__consider-body { order: 2; padding-top: 54px; }   /* 市川様の指定（2026-09-15 / 元 0） */
.p-front__consider-body .p-front__text { margin-top: 55px; }
.p-front__consider-action { margin-top: 24px; }

/* --------------------------------------------------------------------
   セクション 7 — クレープおくるみ亭とは?
   -------------------------------------------------------------------- */
/* 見出しはコンテナ直下（2カラムの外）。ここは本文と写真の 2 カラムだけ。 */
.p-front__okurumi {
  display: grid;
  grid-template-columns: minmax(0, 580fr) minmax(0, 520fr);
  gap: 60px;
  align-items: start;
  margin-top: 58px;          /* 見出し下端 4940 → 本文・写真 4998 */
}
.p-front__okurumi-body  { order: 1; }
.p-front__okurumi-photo { order: 2; }
.p-front__okurumi-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* 「What is...?」ラベル。旗リボンと同じく見出しの左にぶら下げる（PC 153×50）。
   🚨 .p-front__head--pc-left .p-front__title（99px / 詳細度 0,2,0）に勝つ必要がある。
      クラス1つだけだと負けて 99px になり、ラベルがコンテナの外へはみ出す
      （2026-09-15 まで実際にそうなっていた）。 */
.p-front__head--pc-left .p-front__title--whatis { margin-left: 174px; }   /* 153 + 21 → ラベル左端 = コンテナ左端 */
.p-front__whatis {
  position: absolute;
  right: calc(100% + 21px);
  bottom: -6px;
  width: 153px;
  height: 50px;
}

.p-front__okurumi-more {
  margin-top: 30px;
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.p-front__okurumi-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.p-front__okurumi-actions .c-btn { min-width: 230px; justify-content: flex-start; gap: 16px; }

/* --------------------------------------------------------------------
   セクション 8 — お知らせ（WordPress の投稿ループ 5 件）
   -------------------------------------------------------------------- */
.p-front__news { margin-top: 66px; }

.p-front__news-link {
  display: grid;
  grid-template-columns: 98px 156px minmax(0, 1fr);
  grid-template-areas: "date cat title";
  align-items: center;
  min-height: 83px;
  padding: 16px 0 16px 30px;                    /* 本文左端 380 → 日付 410 */
  border-bottom: 1px solid var(--c-text-sub);
  color: var(--c-text);
}
.p-front__news-link:hover { color: var(--c-text-hover); }   /* 指示書 p04 */

.p-front__news-date {
  grid-area: date;
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 30px;
}
.p-front__news-cat { grid-area: cat; }
.p-front__news-title {
  grid-area: title;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 30px;
  text-align: justify;
}

.p-front__news-action {
  margin-top: 61px;
  text-align: right;
}

/* --------------------------------------------------------------------
   セクション 9 — 活動の様子（Instagram）
   -------------------------------------------------------------------- */
.p-front__section--instagram { margin-top: 160px; }   /* 市川様の指定（2026-09-15 / 元 125px） */

.p-front__insta-feed {
  /* Elfsight の埋め込み枠。並び・枚数はウィジェット側の設定に従う。
     読み込み前に高さが 0 になって下の文字が飛び上がらないよう最小高さを持たせる。 */
  margin-top: 60px;
  min-height: 216px;
}

.p-front__insta-name {
  margin-top: 40px;
  font-size: 18px;
  font-weight: var(--fw-bold);
  text-align: center;
}
.p-front__insta-copy {
  margin-top: 8px;
  font-size: 20px;
  font-weight: var(--fw-black);
  line-height: 28px;
  text-align: center;
}
.p-front__insta-link { margin-top: 12px; text-align: center; }
.p-front__insta-link img { display: inline-block; width: 38px; height: 38px; }

/* --------------------------------------------------------------------
   セクション 10 — 利用者・ご家族の声
   吹き出しは本文量で高さが変わるため CSS で描く（書き出しは固定サイズのみ）。
   -------------------------------------------------------------------- */
.p-front__section--voice { margin-top: 170px; }   /* 市川様の指定（2026-09-15 / 元 114px） */

.p-front__voices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 68px;   /* 市川様の指定（2026-09-15 / 元 99px） */
}
.p-front__voice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.p-front__voice-person { flex: none; width: 120px; }
.p-front__voice-person img { display: block; width: 120px; height: auto; }
.p-front__voice-label {
  margin-top: 9px;
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-align: center;
  color: var(--c-text);
}

/*
 * 吹き出しはデザインでは画像だが、本文量で高さが変わるので CSS で描く。
 * 寸法は 01_top_pc.png の実測（2026-09-15）:
 *   人物アイコン 380〜500 / しっぽ 506〜526（20×18・先端 y=7306）/ 枠 526〜740（214px）
 *   本文 561〜707（148px）・16px lh24 両端揃え / 角丸 12px
 *   → 枠の内側余白 上下 23px・左右 32px、しっぽは枠上端から 59px
 * しっぽは枠の外に出るので、その 20px を margin-left で確保しておく
 * （確保しないと枠が 20px 太って 1件目が 6 行 → 5 行になる）。
 */
.p-front__voice-bubble {
  position: relative;
  flex: 1 1 auto;
  margin-left: 20px;          /* しっぽの幅 */
  padding: 23px 32px;
  background: var(--c-white);
  border: 1px solid var(--c-text-sub);
  border-radius: 12px;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 24px;
  color: #000;
  text-align: justify;
}
/* 左向きのしっぽ（外枠 + 内側の白）。20 × 18px。 */
.p-front__voice-bubble::before,
.p-front__voice-bubble::after {
  content: "";
  position: absolute;
  top: 59px;                  /* 枠上端 7238 → しっぽ上端 7297 */
  width: 0;
  height: 0;
  border-style: solid;
}
.p-front__voice-bubble::before {
  right: 100%;
  border-width: 9px 20px 9px 0;
  border-color: transparent var(--c-text-sub) transparent transparent;
}
.p-front__voice-bubble::after {
  right: calc(100% - 1px);
  border-width: 8px 19px 8px 0;
  border-color: transparent var(--c-white) transparent transparent;
}

/* --------------------------------------------------------------------
   セクション 11 — オンラインショップ帯
   -------------------------------------------------------------------- */
.p-front__shop {
  padding-block: 80px;
  background-color: var(--c-orange);
  background-image: url(../images/front/shop-band-pc.webp);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}
.p-front__shop-banner { display: block; }
.p-front__shop-banner img { display: block; width: 100%; height: auto; }
a.p-front__shop-banner { transition: opacity .2s var(--ease); }
.p-front__shop-banner:hover { opacity: .85; }   /* <span> でも効かせる（リンク先未設定でも見た目の確認ができるように） */

/* ==========================================================================
   SP（デザインは 375 幅。ブレークポイントは 1079px の 1 本だけ）
   ========================================================================== */
@media (max-width: 1079px) {

  /* --- 帯と波形 ---------------------------------------------------- */
  .p-front__band--white  { padding-bottom: 60px; }
  .p-front__band--cream  { padding-block: 58px 82px; }   /* 市川様の指定（2026-09-16 / 元 31px 60px） */
  .p-front__band--green  { padding-block: 40px 74px; }   /* 市川様の指定（2026-09-16 / 元 70px 60px） */
  .p-front__band--white2 { padding-block: 78px 61px; }   /* 上 78px は市川様の指定（2026-09-16 / 元 66px） */

  /* 深さ 30px は components.css が持つ。
     **緑→白だけ SP は PC と向きが違う**（デザインどおり / SP は形A）。 */
  .p-front__band--white2::before { --wave-shape: var(--wave-a); }

  /* --- 見出し ------------------------------------------------------- */
  .p-front__head--sp-center { text-align: center; }
  .p-front__head--sp-left   { text-align: left; }

  .p-front__title { font-size: 26px; }
  /* 🚨 SP は旗を見出しの「完全に左」に置かない。
     69px ぶん外へ出すと左端 x=1 になり、左揃えの見出し（コンテナ左端 23px）では
     旗とポールが画面外へはみ出して切れる（2026-09-16 市川様のご指摘）。
     デザイン実測（01_top_sp.png）では旗の緑の先端が見出し 1 文字目に 19px 重なる:
       大切にしていること … 旗 x35..90 / 文字 x72   （+18）
       お知らせ           … 旗 x100..155 / 文字 x139（+16）
     縦は旗の下端＝見出しの文字の下端（枠の下端より 2px 上）。 */
  .p-front__flag  { width: 69px; height: 65px; right: calc(100% - 19px); top: calc(1em - 2px - 65px); }
  .p-front__head--pc-left .p-front__title   { margin-left: 0; }
  .p-front__head--sp-left .p-front__title   { margin-left: 48px; }
  .p-front__head--sp-center .p-front__title { margin-left: 0; }

  .p-front__text { font-size: 18px; line-height: 36px; }

  /* --- セクション 1 ヒーロー ---------------------------------------- */
  /* SP は 375×680 の比率で、画面幅がデザインを超えることは無い。
     PC の「1080px で頭打ち＋cover」は不要なので戻す。 */
  .p-front__hero { aspect-ratio: auto; max-height: none; overflow: visible; }
  .p-front__hero-inner { position: static; transform: none; width: auto; }
  .p-front__hero-bg { position: static; }
  .p-front__hero-bg img { height: auto; object-fit: fill; }

  /* SP は形状 `layer__6410`(375×1840 / y=640)。ヒーロー枠 y=60〜740。 */
  .p-front__hero::after {
    top: 85.29%;       /* (640 - 60) / 680 */
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20375%20100'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0,0.3L5,0L10,0.7L15,1.3L20,2L25,2.7L30,3.7L35,4.7L40,5.3L45,6.3L50,7.7L55,9L60,10.7L65,12.3L70,14L75,15.7L80,17.3L85,19L90,20.7L95,22.3L100,23.7L105,25L110,26.3L115,27.3L120,28.3L125,29L130,29.7L135,30L140,30.3L145,30.3L150,30.7L155,30.3L160,30.3L165,30L170,29.3L175,28.7L180,28L185,27L190,26L195,25L200,23.7L205,22.3L210,21L215,19.3L220,18L225,16.3L230,15L235,13.3L240,11.7L245,10.3L250,8.7L255,7.3L260,6L265,5L270,3.7L275,2.7L280,2L285,1.3L290,0.7L295,0.3L300,0.3L305,0.3L310,0.3L315,0.7L320,1.3L325,2L330,2.7L335,3.7L340,4.7L345,5.7L350,7L355,8.3L360,10L365,11.7L370,13.3L375,15L375,100L0,100Z'%20fill='%23fff'/%3E%3C/svg%3E");
  }

  .p-front__hero-catch {
    top: 4.41%;        /* (90 - 60) / 680 */
    left: 10.40%;      /* 39 / 375 */
    width: 80.53%;     /* 302 / 375 */
  }

  /* --- セクション 2 ------------------------------------------------- */
  .p-front__section--worries { padding-top: 14px; }
  /* 「こんなお悩みありませんか？」は 26px × 13 字で 330px のコンテンツ幅に収まらないため、
     この見出しだけ画面幅いっぱいを使って 1 行に保つ（デザインも 1 行）。 */
  .p-front__section--worries .p-front__head {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .p-front__cases {
    grid-template-columns: minmax(0, 1fr);
    gap: 33px;                   /* 市川様の指定（2026-09-16） */
    max-width: 330px;
    margin-top: 27px;
  }
  .p-front__case-caption { margin-top: 17px; }

  /* SP は全幅の緑ブロブ（x=0 w=375） */
  /* 🚨 SP は支給の back_sp.png（882×355 の横長）を使わない。
     375×350 に引き伸ばすと山の形がデザインと変わる（2026-09-16 市川様のご指摘）。
     デザイン（01_top_sp.png y=2017..2366）は左右フルブリードの帯で、
     上下だけが緩い波。その輪郭を design/gen-lead-sp.cjs で SVG マスクに起こした。
     余白はデザイン実測: 上 42px（帯上端 2017 → 1 行目の行ボックス 2059）
                        下 55px（7 行目の行ボックス 2311 → 帯下端 2366）
                        左右 24px（本文の最長行 324px を 1 行に収める。27px だと
                                   321px になり 1 文字あふれて 8 行になっていた） */
  .p-front__lead {
    width: auto;
    max-width: none;
    margin: 18px calc(50% - 50vw) 0;
    padding: 42px 24px 55px;
    background: var(--c-green-pale);
    -webkit-mask-image: var(--lead-sp-shape);
            mask-image: var(--lead-sp-shape);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
  }
  .p-front__lead-text { font-size: 18px; line-height: 36px; }

  /* --- セクション 3 ------------------------------------------------- */
  .p-front__values {
    grid-template-columns: minmax(0, 270px);
    justify-content: center;
    gap: 30px;
    margin-top: 30px;   /* 市川様の指定（2026-09-16 / 元 54px） */
  }

  /* --- セクション 4 ------------------------------------------------- */
  .p-front__section--work { margin-top: 60px; }

  .p-front__work {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .p-front__work-photo { order: 1; }          /* SP は 写真 → テキスト の順 */
  .p-front__work-body  { order: 2; }
  /* 🚨 SP は専用の書き出し（331×273）をそのまま敷く。
     PC 版を object-fit: cover で切ると合成された円が右で欠ける（2026-09-16 指摘）。
     素材は透過 PNG 由来なので border-radius も要らない。 */
  /* 🚨 レスポンシブでは PC 表示時より画像を大きくしない（2026-09-16 市川様の方針）。
     SP レイアウトは 1079px まで効くので、width:100% のままだと 1024px 幅などで
     PC の固定サイズを超えて巨大化する。PC の実寸を max-width で上限にし、
     余った幅は左右の auto マージンで振り分ける。 */
  .p-front__work-photo img { width: 100%; max-width: 583px; height: auto; margin-inline: auto; }   /* 583 = PC の実寸 */

  /* デザイン（01_top_sp.png）実測:
       写真 23..353 / 3763..4036
       見出し枠 4098（文字 4100..4121）・枠の左 96（＝コンテナ 23 + 73）
       本文 1 行目の行ボックス 4140.5（文字 4151..4166） */
  .p-front__work-body { padding-top: 0; margin-top: 62px; }
  .p-front__work-body .p-front__head .p-front__title { margin-left: 73px; }
  .p-front__work-body .p-front__text { margin-top: 11px; }
  .p-front__work-action { margin-top: 20px; text-align: center; }   /* 本文 8 行目の下 4429 → ボタン上端 4449 */

  /* --- セクション 5 ------------------------------------------------- */
  .p-front__section--support { margin-top: 100px; }   /* 市川様の指定（2026-09-16 / 元 64px） */
  .p-front__section--support .p-front__text { margin-top: 15px; }   /* 市川様の指定（2026-09-16 / 元 22px） */

  .p-front__supports {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 25px;   /* 市川様の指定（2026-09-16 / 元 60px） */
  }
  .p-front__support { min-height: 158px; gap: 8px; padding: 12px 8px; }
  .p-front__support-icon { max-width: 79px; max-height: 79px; }
  .p-front__support-label { font-size: 14px; }

  /* --- セクション 6 ------------------------------------------------- */
  .p-front__section--consider { margin-top: 54px; }

  .p-front__consider {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .p-front__consider-photo { order: 2; padding-top: 0; margin-top: 30px; }
  .p-front__consider-photo img { aspect-ratio: 330 / 254; object-fit: cover; max-width: 520px; margin-inline: auto; }   /* 520 = PC の実寸 */
  .p-front__consider-body  { order: 1; padding-top: 0; }   /* PC の 54px は SP には効かせない */
  .p-front__consider-body .p-front__text { margin-top: 24px; }
  .p-front__consider-action { margin-top: 28px; text-align: center; }

  /* --- セクション 7 ------------------------------------------------- */
  .p-front__okurumi {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    /* 見出しの字上端 → 本文の字上端を 52px にする（デザイン SP の実測値）。
       本文側の mt は 0 にして、この 13px だけで間隔を決める。 */
    margin-top: 13px;
  }
  .p-front__okurumi-photo { margin-top: 30px; }
  .p-front__okurumi-photo img { aspect-ratio: 330 / 254; object-fit: cover; max-width: 520px; margin-inline: auto; }   /* 520 = PC の実寸 */

  /* 「What is...?」ラベルは SP では見出しの上にブロックで置く。
     見出しごとセンター寄せなので（front-okurumi.php の --sp-center）、
     ラベルも margin-inline:auto で中央に置く（2026-09-16 市川様のご指摘）。 */
  .p-front__whatis {
    position: static;
    display: block;
    width: 153px;
    height: 50px;
    margin-inline: auto;
    margin-bottom: 12px;
  }
  .p-front__okurumi-body .p-front__text { margin-top: 0; }   /* 間隔は .p-front__okurumi の margin-top で決める */

  .p-front__okurumi-more { margin-top: 26px; text-align: center; }
  .p-front__okurumi-actions { align-items: center; margin-top: 8px; }

  /* --- セクション 8 ------------------------------------------------- */
  .p-front__news { margin-top: 2px; }   /* 市川様の指定（2026-09-16 / 元 44px） */

  .p-front__news-link {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "date  cat"
      "title title";
    align-items: center;
    gap: 6px 14px;
    min-height: 0;
    padding: 30px 0 22px;
  }
  .p-front__news-cat { justify-self: start; }
  .p-front__news-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 16px;
  }
  .p-front__news-action { margin-top: 31px; text-align: center; }

  /* --- セクション 9 ------------------------------------------------- */
  .p-front__section--instagram { margin-top: 105px; }   /* 市川様の指定（2026-09-16 / 元 64px） */

  .p-front__insta-feed { margin-top: 26px; min-height: 158px; }   /* 上 26px は市川様の指定（2026-09-16 / 元 55px） */
  /* 5 枚目は SP では出さない（指示書 p05）。
     共通の .u-pc-only は 768px 基準のため 768〜1079px を本ルールで塞ぐ。 */

  .p-front__insta-name { margin-top: 30px; }
  .p-front__insta-copy { margin-top: 6px; }
  .p-front__insta-link { margin-top: 10px; }

  /* --- セクション 10 ------------------------------------------------ */
  .p-front__section--voice { margin-top: 88px; }   /* 市川様の指定（2026-09-16 / 元 56px） */

  .p-front__voices {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 26px;   /* 市川様の指定（2026-09-16 / 元 40px） */
  }
  .p-front__voice { gap: 6px; }
  /* SP デザイン実測: アイコン 23〜143 / 枠 159〜353（194px）/ 本文 130px */
  .p-front__voice-bubble { margin-left: 10px; padding: 18px 22px; }
  .p-front__voice-bubble::before,
  .p-front__voice-bubble::after { top: 40px; }
  .p-front__voice-bubble::before { border-width: 8px 10px 8px 0; }
  .p-front__voice-bubble::after  { border-width: 7px 9px 7px 0; }

  /* --- セクション 11 ------------------------------------------------ */
  .p-front__shop {
    padding-block: 40px;
    background-image: url(../images/front/shop-band-sp.webp);
  }
}
