/* =========================================================
   ARK PROMOTION / 元デザインを基にしたスマホ優先LP
   基本ルールを小さな画面向けに定義し、広い画面だけ後半で拡張します。
   本文は1rem（標準16px）。画面の高さに合わせて文字を小さくしません。
   ========================================================= */
:root {
  --pink: #e5758b;
  --pink-deep: #b94861;
  --pink-pale: #fff0f2;
  --mint: #82b09f;
  --mint-deep: #437a66;
  --ink: #423633;
  --muted: #6e605c;
  --paper: #fffdfa;
  --cream: #fbf6f2;
  --border: #efdfdc;
  --line: #087d3c;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  /* LPの中央枠は元デザインと同じ941pxまで広げます。 */
  --content-width: 941px;
  /* JavaScriptが無効な場合も、画像の比率から追従ヘッダーの高さを見積もります。 */
  --header-height: calc(min(100vw, var(--content-width)) * 101 / 941);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.is-dialog-open {
  overflow: hidden;
}

body.is-dialog-open .mobile-line-bar {
  visibility: hidden;
}

/* 外側の背景と本文の背景を分けます。スマホは従来どおり横幅いっぱいです。
   overflowやtransformを付けると、ヘッダーの追従範囲が変わるため指定しません。 */
.lp-shell {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  background: var(--paper);
}

@media (min-width: 768px) {
  /* LPだけに参考サイトと同じ背景を付け、ポリシーページの配色は保ちます。 */
  .lp-page {
    background: radial-gradient(circle at 15% 10%, rgb(255 255 255 / 85%), transparent 28rem), #f8f2ef;
  }

  .lp-shell {
    box-shadow: 0 0 36px rgb(89 58 58 / 10%);
  }
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

button, summary {
  cursor: pointer;
}

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

button {
  color: inherit;
}

a, button, summary {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 5px;
}

section[id], main[id] {
  /* アンカー移動先を追従ヘッダーの下へ出し、さらに20pxの余白を残します。 */
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  color: white;
  background: var(--pink-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* 写真の説明など、画面には重複表示せず読み上げに残すテキストです。 */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 元JPGから書き出したヘッダー101pxと本文1571pxを、別々の枠に表示します。
   同じ横幅と倍率を使い、先頭では1枚の元デザインにつながるようにします。 */
.original-header, .original-top {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

.original-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
}

.original-header-frame {
  --hit-source-h: 101;
  --hit-origin-y: 0;
  position: relative;
  aspect-ratio: 941 / 101;
  overflow: hidden;
}

.original-top {
  --hit-source-h: 1571;
  --hit-origin-y: 101;
  position: relative;
}

.original-top-visual {
  position: relative;
  aspect-ratio: 941 / 1571;
  overflow: hidden;
}

.original-header-image, .original-top-image {
  display: block;
  width: 100%;
  height: auto;
}

/* 元画像での座標を、それぞれの表示枠に対する割合へ変換します。
   通常は透明にし、画像に描かれたボタンの場所だけを操作できるようにします。 */
.original-top-action {
  position: absolute;
  z-index: 1;
  display: block;
  left: calc(var(--hit-x) / 941 * 100%);
  top: calc((var(--hit-y) - var(--hit-origin-y)) / var(--hit-source-h) * 100%);
  width: calc(var(--hit-w) / 941 * 100%);
  height: calc(var(--hit-h) / var(--hit-source-h) * 100%);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
}

.original-top-line {
  border-radius: 999px;
}

/* キーボードで選んだ場所は見えるようにし、画面端でも枠が欠けないよう内側に描きます。 */
.original-top-action:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: -3px;
}

/* PCも中央枠の幅をそのまま使います。ここで32pxを引くと画像の端が本文からずれます。
   JavaScript無効時のヘッダー高も、:rootの共通式で同じ画像比率から計算します。 */

/* ヘッダーは自然な高さを保ち、文字を拡大すると必要に応じて折り返します。 */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #f0e6e1;
  background: white;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: min(calc(100% - 24px), 1240px);
  min-height: 64px;
  margin: auto;
}

.site-brand {
  display: grid;
  padding-block: 7px;
  text-decoration: none;
}

.site-brand > span {
  color: var(--pink-deep);
  font: 500 clamp(1.08rem, 5.1vw, 1.65rem)/1.3 var(--serif);
  letter-spacing: .035em;
}

.site-brand small {
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .07em;
  text-align: center;
}

.header-actions {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  gap: 0;
}

.header-contact {
  display: grid;
  grid-template-rows: 28px auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 56px;
  min-height: 64px;
  padding: 5px 0;
  border-left: 1px solid #f0e6e1;
  text-decoration: none;
}

.menu-toggle {
  display: grid;
  grid-template-rows: 28px auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 56px;
  min-height: 64px;
  padding: 5px 0;
  border: 0;
  border-left: 1px solid #f0e6e1;
  background: transparent;
}

.menu-bars > span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
}


/* 線と文字を別のクラスにすることで、メニューの文字を正しく表示します。 */
.header-action-label {
  display: block;
  font-size: .875rem;
  line-height: 1.4;
  white-space: nowrap;
}

.header-contact-icon {
  align-self: center;
  width: 32px;
}

.menu-bars {
  display: grid;
  align-self: center;
  align-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
}

.desktop-nav {
  display: none;
}

/* 冒頭の上段だけに写真を置きます。説明やボタンは背景画像と重ねません。 */
.hero-section {
  background: linear-gradient(180deg, #fffdfb, #fff8f5 65%, #fffdfa);
}

.hero-stage {
  container-type: inline-size;
  padding-bottom: 20px;
}

.hero-intro {
  position: relative;
  min-height: clamp(194px, 56vw, 242px);
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 68%;
  padding-top: 14px;
  padding-bottom: 8px;
}

.hero-eyebrow {
  position: relative;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  padding-bottom: 10px;
  margin: 0 0 6px 5px;
  font-family: var(--serif);
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .045em;
  text-align: center;
  transform: rotate(-6deg);
  transform-origin: center;
}

/* ピンクの曲線は単純な線の装飾です。文字そのものは画像化しません。 */
.eyebrow-flourish {
  position: absolute;
  bottom: -3px;
  left: -8px;
  width: calc(100% + 16px);
  height: 27px;
  overflow: visible;
  color: var(--pink);
  pointer-events: none;
}

.hero-face-note {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 2px;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 6rem;
  min-height: 6rem;
  aspect-ratio: 1;
  padding: 12px 6px;
  border: 1px solid #efdbdf;
  border-radius: 50%;
  color: var(--pink-deep);
  background: #fffdfb;
  box-shadow: 0 2px 8px rgb(97 61 57 / 6%);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
  transform: rotate(5deg);
}

.hero-face-note::before {
  position: absolute;
  inset: 5px;
  border: 1px dotted var(--pink);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.face-note-heart {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

/* 文字が大きく、丸い案内を写真上へ安全に置けない場合は通常の縦並びに戻します。 */
@container (width < 18rem) {
  .hero-face-note {
    position: relative;
    inset: auto;
    max-width: 100%;
    margin: 12px 0 12px auto;
    transform: none;
  }
}


.hero-section h1 {
  width: max-content;
  max-width: 100%;
  font: 500 clamp(1.52rem, 7.15vw, 2rem)/1.55 var(--serif);
  letter-spacing: -.025em;
}

.hero-section h1 span {
  color: var(--pink-deep);
}

.hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0 -16px 0 auto;
  width: 68%;
  max-height: clamp(194px, 56vw, 242px);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffdfb 0%, rgb(255 253 251 / 75%) 18%, transparent 42%), linear-gradient(0deg, #fffaf7, transparent 18%);
  content: "";
}

.hero-details {
  position: relative;
  z-index: 2;
}

.hero-lead {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  padding: 8px 0;
  margin: 0 0 12px;
  list-style: none;
  border-top: 1px dotted #dea6b1;
  border-bottom: 1px dotted #dea6b1;
  color: var(--pink-deep);
}

.hero-points li {
  font-size: .875rem;
  line-height: 1.55;
}

.hero-points li::before {
  margin-right: 6px;
  color: var(--mint-deep);
  content: "✓";
}

/* 全CTAで同じ文言とリンクを使用します。文字が増えた場合は高さを伸ばします。 */
.primary-cta {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 8px 12px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  background: linear-gradient(110deg, #c94d68, #bc3d59);
  box-shadow: 0 3px 0 #a73e54, 0 7px 16px rgb(164 69 88 / 16%);
  text-decoration: none;
}

.line-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #087837;
  background: white;
  font: 800 .75rem/1 var(--sans);
}

.cta-copy {
  display: grid;
  min-width: 0;
  text-align: center;
}

.cta-label {
  font-size: .875rem;
  line-height: 1.4;
}

.primary-cta strong {
  font-size: clamp(1rem, 4.7vw, 1.35rem);
  line-height: 1.65;
  font-weight: 700;
}

.cta-arrow {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--pink-deep);
  background: white;
  font-size: 1.6rem;
  line-height: 1;
}

.cta-notes {
  margin-top: 12px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
}

.cta-notes span {
  color: #bc8e96;
}

.primary-cta:hover {
  filter: brightness(1.05);
}

.primary-cta:active {
  transform: translateY(1px);
}

/* 元JPGから切り出した画像の表示枠です。幅と高さは書き出した画像の実寸です。
   元画像の拡大・位置移動は不要です。切り出し座標と再作成方法はREADMEを参照してください。 */
.source-crop {
  position: relative;
  display: block;
  aspect-ratio: var(--crop-w) / var(--crop-h);
  overflow: hidden;
}

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

.hero-proof {
  padding: 12px 0 40px;
}

/* スマホでは写真を2列×2段にし、幅を400pxまでに抑えて中央に配置します。 */
.portrait-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 400px;
  gap: 12px;
  margin: 4px auto 10px;
}

.portrait-strip figure {
  position: relative;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.portrait-strip .source-crop {
  border-radius: 7px;
}

.portrait-strip figcaption {
  padding: 5px 1px 2px;
  color: var(--pink-deep);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffdfb;
}

.metric-icon {
  flex: 0 0 64px;
  width: 64px;
}

.metric-card strong {
  display: block;
  font: 500 1.2rem/1.6 var(--serif);
}

.metric-card b {
  margin-right: 4px;
  color: var(--pink-deep);
  font-size: 2.3rem;
  font-weight: 500;
}

.metric-card p, .metric-card > div > span {
  font-size: .875rem;
  line-height: 1.7;
}

/* セクションの見出し・余白を共通化し、長いLPでも読み進めやすくします。 */
.content-section {
  padding-block: 48px;
}

.section-heading {
  position: relative;
  margin-bottom: 28px;
  text-align: center;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: .04em;
}

.section-heading h2, .consultation-card h2, .contact-card h2 {
  font: 500 clamp(1.45rem, 6.5vw, 2.5rem)/1.6 var(--serif);
  overflow-wrap: anywhere;
}

.section-heading h2 span, .consultation-highlight, .subsection-heading h3 span, .support-card h2 span, .contact-card h2 span {
  color: var(--pink-deep);
}

.section-heading > p:last-child:not(.section-kicker) {
  max-width: 660px;
  margin: 16px auto 0;
  text-align: left;
}

.section-heading h2::after {
  display: block;
  width: 30px;
  margin: 12px auto 0;
  border-bottom: 4px dotted var(--pink);
  content: "";
}

.concerns-section {
  background: var(--cream);
}

.concerns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.concerns-grid li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 22px 10px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 3px 8px rgb(77 48 35 / 6%);
}

.concerns-grid li:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-block: 16px;
}

.concern-icon {
  width: 58px;
  flex-shrink: 0;
}

.concerns-grid p {
  font-family: var(--serif);
  text-align: center;
  line-height: 1.7;
}

.consultation-section {
  padding: 40px 0 48px;
}

.consultation-card {
  text-align: center;
}

.consultation-card .section-kicker {
  color: var(--pink-deep);
}

.consultation-highlight {
  border-bottom: 1px solid var(--pink);
}

.consultation-card > p:not(.section-kicker):not(.cta-notes) {
  margin-top: 16px;
}

.consultation-cta {
  max-width: 650px;
  margin: 24px auto 0;
}

/* 元デザイン2枚目の941px幅を基準に、対象部分だけを比例配置します。
   このセクション内の指定に限定し、後続の見出しやカードには影響させません。 */
/* コンテナーの幅を先にpxへ確定し、子要素へ引き継ぎます。
   cqwを三角関数へ直接渡すと、ブラウザーによって計算結果が異なる場合があります。
   この変数は仕事内容セクションだけで使います。 */
@property --ark-work-width {
  syntax: "<length>";
  inherits: true;
  initial-value: 941px;
}

#work {
  /* iPhone Safariの自動文字拡大で、文字だけが写真より大きくなるのを防ぎます。
     100%は通常の倍率です。利用者が行うページズームや文字サイズ変更は妨げません。
     対象セクションだけに適用し、後続本文・固定CTAの表示は変えません。 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  container-type: inline-size;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-block: 0;
  background: #fbf7f3;
}

#work > .section-shell {
  /* 1つ目は余白・画像用の1px、2つ目は文字用の1pxです。
     幅を登録済みの変数へ保存してから、941pxに対する比率を計算します。
     remを残すことで、文字200%拡大時は文字だけが2倍になります。 */
  --ark-work-width: 100cqw;
  --work-unit: calc(100cqw / 941);
  --work-font: calc(.0625rem * tan(atan2(var(--ark-work-width), 941px)));
  --work-pink: #ed7893;
  width: 100%;
  padding: calc(24 * var(--work-unit)) calc(40 * var(--work-unit)) calc(12 * var(--work-unit));
  color: #342e2c;
  font-family: var(--serif);
  font-size: calc(17 * var(--work-font));
  line-height: 1.6;
}

/* 対応ブラウザーでは三角関数を使わず、確定した幅を通常の割り算で求めます。
   長さ同士の割り算に未対応の場合は、上のpx同士の計算を使います。 */
@supports (font-size: calc(1rem * (1px / 1px))) {
  #work > .section-shell {
    --work-font: calc(.0625rem * (var(--ark-work-width) / 941px));
  }
}

#work .work-heading {
  position: relative;
  min-height: calc(174 * var(--work-unit));
  margin-bottom: calc(20 * var(--work-unit));
  text-align: center;
}

/* 共通見出しの葉・下線を解除し、元デザインどおりの葉と説明下の点を表示します。 */
#work .work-heading::before, #work .work-heading::after, #work .work-heading h2::after {
  content: none;
}

#work .work-leaf {
  position: absolute;
  top: calc(47 * var(--work-unit));
  width: calc(94 * var(--work-unit));
  height: auto;
  pointer-events: none;
  mix-blend-mode: darken;
}

#work .work-leaf-left { left: calc(6 * var(--work-unit)); }
#work .work-leaf-right { right: 0; width: calc(102 * var(--work-unit)); }

#work .section-kicker, #work .income-heading > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--work-unit));
  margin: 0 auto calc(16 * var(--work-unit));
  color: inherit;
  font-size: calc(19 * var(--work-font));
  line-height: 1.5;
  letter-spacing: .08em;
}

/* 肩書きの両端にある短いピンクの斜線はCSSで描きます。 */
#work .section-kicker::before, #work .section-kicker::after,
#work .income-heading > p::before, #work .income-heading > p::after {
  flex: 0 0 calc(20 * var(--work-unit));
  height: 1px;
  background: var(--work-pink);
  transform: rotate(40deg);
  content: "";
}

#work .section-kicker::after, #work .income-heading > p::after { transform: rotate(-40deg); }

#work .work-heading h2 {
  max-width: 76%;
  margin-inline: auto;
  font: 500 calc(48 * var(--work-font))/1.35 var(--serif);
  letter-spacing: .1em;
}

#work h2 > span, #work .subsection-heading h3 > span { color: var(--work-pink); }

#work .work-heading > p:last-child {
  max-width: 60%;
  margin: calc(12 * var(--work-unit)) auto 0;
  font-size: calc(17 * var(--work-font));
  line-height: 1.55;
  letter-spacing: .06em;
  text-align: center;
}

#work .work-heading > p:last-child::after {
  display: block;
  width: calc(74 * var(--work-unit));
  margin: calc(7 * var(--work-unit)) 10% 0 auto;
  border-bottom: calc(4 * var(--work-unit)) dotted var(--work-pink);
  content: "";
}

#work .work-intro-line { display: block; }

#work .job-grid {
  display: grid;
  gap: calc(6 * var(--work-unit));
  margin-left: calc(12 * var(--work-unit));
}

#work .job-card {
  display: grid;
  grid-template-columns: calc(155 * var(--work-unit)) minmax(0, 1fr) calc(225 * var(--work-unit));
  align-items: stretch;
  gap: calc(24 * var(--work-unit));
  min-height: calc(174 * var(--work-unit));
  padding: 0 0 0 calc(22 * var(--work-unit));
  border: 0;
  border-radius: calc(26 * var(--work-unit));
  overflow: hidden;
  background: #fff;
  box-shadow: 0 calc(3 * var(--work-unit)) calc(14 * var(--work-unit)) rgb(83 54 42 / 5%);
}

#work .job-symbol {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(22 * var(--work-unit)) calc(8 * var(--work-unit)) calc(8 * var(--work-unit)) 0;
}

@media (min-width: 768px) {
  /* PCでは左右の余白を揃え、幅の異なるアイコンを左側の欄の中央に配置します。 */
  #work .job-symbol {
    justify-content: center;
    padding-inline: 0;
  }
}

#work .card-number {
  position: absolute;
  top: calc(14 * var(--work-unit));
  left: 0;
  display: grid;
  width: calc(58 * var(--work-unit));
  /* 拡大時は数字の実幅まで枠を広げ、01〜04が枠外へはみ出さないようにします。 */
  min-width: max-content;
  min-height: calc(44 * var(--work-unit));
  margin: 0;
  padding-block: calc(3 * var(--work-unit));
  padding-inline: calc(10 * var(--work-unit));
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #f69bb0, #f5688c);
  font: 400 calc(28 * var(--work-font))/1.15 var(--sans);
}

/* PCでは追加した枠をレイアウト上の箱にせず、従来のアイコン配置を維持します。 */
#work .job-icon-frame { display: contents; }

#work .job-icon {
  width: auto;
  height: auto;
  max-width: calc(125 * var(--work-unit));
  max-height: calc(99 * var(--work-unit));
  object-fit: contain;
}

#work .job-copy {
  min-width: 0;
  align-self: center;
  padding-block: calc(18 * var(--work-unit));
}

#work .job-card h3 {
  margin: 0 0 calc(8 * var(--work-unit));
  color: var(--work-pink);
  font: 500 calc(28 * var(--work-font))/1.4 var(--serif);
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}

#work .text-phrase { display: inline; overflow-wrap: anywhere; }

#work .job-card p, #work .job-card strong {
  display: block;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: calc(17 * var(--work-font));
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#work .job-photo {
  align-self: end;
  justify-self: end;
  width: calc(202 * var(--work-unit));
  max-width: 100%;
  margin: 0;
}

#work .job-photo .source-crop { width: 100%; }

/* 既存写真の右端にわずかに残る吹き出しの線だけを表示から外します。
   切り抜く2.5%と同じ分だけ画像を右へ移し、見える写真の右端に空白を残しません。
   外側の.source-cropで端を隠すため、写真の大きさ・縦位置・元ファイルは維持します。 */
#work .job-card:nth-child(2) .job-photo img,
#work .job-card:nth-child(4) .job-photo img {
  clip-path: inset(0 2.5% 0 0);
  transform: translateX(2.5%);
}

#work .income-block { margin-top: calc(26 * var(--work-unit)); }
#work .audience-block { margin-top: calc(24 * var(--work-unit)); }
#work .subsection-heading { margin-bottom: calc(12 * var(--work-unit)); text-align: center; }
#work .income-heading > p { margin-bottom: calc(2 * var(--work-unit)); font-size: calc(16 * var(--work-font)); }

/* 点線は見出しの左右にだけ置き、文字が折り返しても背後へ重なりません。 */
#work .ornament-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--work-unit));
}

#work .ornament-heading::before, #work .ornament-heading::after {
  flex: 1 1 0;
  min-width: calc(12 * var(--work-unit));
  border-top: calc(3 * var(--work-unit)) dotted #ee97aa;
  content: "";
}

#work .subsection-heading h3 {
  min-width: 0;
  max-width: 78%;
  font: 500 calc(36 * var(--work-font))/1.4 var(--serif);
  letter-spacing: .12em;
  overflow-wrap: anywhere;
}

#work .income-heading-icon { flex: 0 0 auto; width: calc(61 * var(--work-unit)); mix-blend-mode: darken; }
#work .audience-heading h3 { font-size: calc(31 * var(--work-font)); letter-spacing: .08em; }

/* 基本は3列です。スマホの収入例だけは後の指定で1列にします。minmaxで列のはみ出しを防ぎます。 */
#work .income-grid, #work .audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#work .income-grid { gap: calc(25 * var(--work-unit)); }

#work .income-card {
  min-width: 0;
  padding: calc(13 * var(--work-unit)) calc(16 * var(--work-unit));
  border: 0;
  border-radius: calc(21 * var(--work-unit));
  background: white;
  box-shadow: 0 calc(3 * var(--work-unit)) calc(12 * var(--work-unit)) rgb(83 54 42 / 5%);
  text-align: center;
}

#work .income-card > span {
  display: inline-block;
  max-width: 100%;
  padding: calc(1 * var(--work-unit)) calc(18 * var(--work-unit));
  border-radius: 999px;
  color: white;
  background: linear-gradient(120deg, #f3a1b5, #f87999);
  font-size: calc(16 * var(--work-font));
  line-height: 1.5;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

#work .income-value { display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--work-unit)); margin-block: calc(8 * var(--work-unit)); }
#work .income-value > img { flex: 0 0 auto; width: calc(43 * var(--work-unit)); }
#work .income-card strong { min-width: 0; margin: 0; color: var(--work-pink); font: 500 calc(40 * var(--work-font))/1.3 var(--serif); overflow-wrap: anywhere; }
#work .income-card small { margin-left: calc(3 * var(--work-unit)); font-size: calc(20 * var(--work-font)); }
#work .income-card .payment-text { font-size: calc(28 * var(--work-font)); }
#work .income-card p { font-size: calc(15 * var(--work-font)); line-height: 1.6; overflow-wrap: anywhere; }
#work .income-note { margin-top: calc(9 * var(--work-unit)); color: inherit; font-size: calc(13 * var(--work-font)); text-align: center; }

#work .audience-grid { gap: calc(14 * var(--work-unit)); }
#work .audience-card {
  display: grid;
  /* PCの横3列でも長い紹介文の幅を確保し、写真は元の比率で表示します。 */
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  /* カードの内側全体を行として使い、画面幅に応じて写真の縦位置を切り替えます。 */
  align-content: stretch;
  gap: 12px;
  min-width: 0;
  /* 上だけ8pxに詰め、左右と下は元の12pxを保ちます。内容は少し上寄りになります。 */
  padding: 8px 12px 12px;
  border: 0;
  border-radius: calc(20 * var(--work-unit));
  background: white;
  box-shadow: 0 calc(3 * var(--work-unit)) calc(12 * var(--work-unit)) rgb(83 54 42 / 5%);
}

/* 写真枠は基本を縦中央とし、後のPC向け指定で上揃えに切り替えます。
   人物PNGは従来の幅と自動の高さで表示し、縦横比を守ります。 */
#work .audience-photo { display: block; align-self: center; width: 100%; margin: 0; border-radius: calc(3 * var(--work-unit)); }
#work .audience-photo-image { width: 100%; height: auto; border-radius: inherit; }
#work .audience-copy { min-width: 0; padding: 0; }
#work .audience-card h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 0; color: var(--work-pink); font: 500 1rem/1.5 var(--serif); overflow-wrap: anywhere; }
#work .audience-card h4 img { flex: 0 0 auto; width: 18px; }
/* 本文は全段落を通常の太さにし、冒頭だけの強調を設けません。
   remの下限で読みやすさを保ち、文字拡大時はカードが自然に縦へ伸びます。 */
/* 見出し下と段落間には余白を足さず、通常の改行と同じ行間（1.5）でつなぎます。
   pは読み上げや編集のために分けたまま、スマホ・PC共通で追加の空きをなくします。 */
#work .audience-copy p { font-size: max(.875rem, calc(13 * var(--work-font))); font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
#work .audience-copy p + p { margin-top: 0; }

/* 横3列のPC表示では写真も上揃えにし、右列の見出し・本文と開始位置を揃えます。 */
@media (min-width: 768px) {
  #work .audience-photo { grid-column: 1; grid-row: 1; align-self: start; }
  #work .audience-copy { grid-column: 2; grid-row: 1; }
}

#work .beginner-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--work-unit));
  width: 80%;
  margin: calc(10 * var(--work-unit)) auto 0;
  padding: calc(2 * var(--work-unit)) calc(20 * var(--work-unit));
  border-radius: 999px;
  color: inherit;
  background: #fff0f1;
  font-size: calc(14 * var(--work-font));
  line-height: 1.5;
  text-align: center;
}

#work .beginner-note > img { flex: 0 0 auto; width: calc(35 * var(--work-unit)); mix-blend-mode: darken; }
#work .beginner-note > img:last-child { width: calc(42 * var(--work-unit)); }
#work .beginner-note > span { min-width: 0; overflow-wrap: anywhere; }
#work .beginner-note .beginner-emphasis { color: var(--work-pink); font-size: calc(16 * var(--work-font)); }
#work .beginner-note .beginner-copy { color: inherit; }

/* スマホでは、元の比例サイズとremの下限の大きい方を使います。
   remを使うことで利用者の文字拡大を保ち、768px以上の表示には影響させません。 */
@media (max-width: 767px) {
  /* 葉と見出しを別の列にし、肩書き・導入文は全列を使って読みやすくします。 */
  #work .work-heading {
    display: grid;
    grid-template-columns: clamp(28px, 9vw, 64px) minmax(0, 1fr) clamp(28px, 9vw, 64px);
    align-items: center;
    gap: 12px 8px;
    min-height: 0;
    margin-bottom: 16px;
  }

  #work .work-leaf {
    position: static;
    grid-row: 2;
    width: 100%;
  }

  #work .work-leaf-left { grid-column: 1; }
  #work .work-leaf-right { grid-column: 3; }
  #work .work-heading .section-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    font-size: max(.6875rem, calc(19 * var(--work-font)));
  }

  #work .work-heading h2 {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
    font-size: max(1.5rem, calc(48 * var(--work-font)));
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }

  #work .work-heading > p:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
    max-width: 100%;
    margin: 0;
    font-size: max(.75rem, calc(17 * var(--work-font)));
    line-height: 1.65;
  }

  /* 本文は中央列、女性写真は右列でカード全体の縦中央に置きます。
     見出しだけは写真の上まで広げ、アイコンと文章の間を2pxに詰めます。 */
  #work .job-grid { gap: 10px; margin-left: 0; }
  #work .job-card {
    /* 番号の高さは「文字の行高＋上下の余白」と従来の最小高さから求めます。
       見出しの1行目をこれ以上の高さにし、文字拡大時も番号を中央に揃えます。 */
    --job-number-font: max(.9375rem, calc(28 * var(--work-font)));
    --job-title-font: max(1rem, calc(28 * var(--work-font)));
    --job-number-height: max(1.25rem, calc(var(--job-number-font) * 1.15 + 4px));
    --job-title-line: max(calc(var(--job-title-font) * 1.4), var(--job-number-height));
    /* 間隔を専用の列にし、アイコンと文章の間は2px、本文と写真の間は8pxにします。
       左余白を10pxから2pxに詰めた差の8pxを引き、従来の写真幅を保ちます。 */
    grid-template-columns: max-content 2px minmax(0, 1fr) 8px calc((100% - 8px) * .24);
    grid-template-rows: auto 1fr;
    /* 番号とアイコンの間を最低8px空け、文字拡大時には行間も広げます。
       カードの上下余白を揃えることで、写真が白いカード全体の中央に来ます。 */
    gap: max(.5rem, 8px) 0;
    padding-block: 12px;
    padding-left: 2px;
  }

  /* 番号は見出し行、アイコンは本文行に置くため、外側の枠は箱として扱いません。 */
  #work .job-symbol { display: contents; }

  /* 数字2文字分と左右4pxずつの余白から、従来の番号バッジ幅を求めます。
     アイコンの高さもこの幅が基準なので、chを計算するフォントを揃えます。 */
  #work .card-number, #work .job-icon-frame {
    --job-badge-width: calc(2ch + 8px);
    width: var(--job-badge-width);
    font: 400 var(--job-number-font)/1.15 var(--sans);
    font-variant-numeric: tabular-nums;
    justify-self: center;
  }

  #work .card-number {
    position: static;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-height: var(--job-number-height);
    margin-top: calc((var(--job-title-line) - var(--job-number-height)) / 2);
    padding: 2px 4px;
  }

  /* 04の椅子（88×92px）を基準にした高さを維持し、03だけ画像を75%にします。
     縮小後も最も横長の03（125×65px）の幅に左右2pxずつを足した共通枠で、
     番号・アイコンの中心と全カードの文章開始位置を揃えます。 */
  #work .job-icon-frame {
    --job-icon-height: calc(var(--job-badge-width) * 92 / 88);
    display: grid;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    width: calc(var(--job-icon-height) * 125 / 65 * .75 + 4px);
    height: var(--job-icon-height);
    padding-inline: 2px;
    place-items: center;
  }

  /* 01・02・04は従来の大きさを保ち、03だけ縦横を75%にします。
     共通枠の中央に置き、横幅は元画像の縦横比から決めます。 */
  #work .job-icon { width: auto; height: var(--job-icon-height); max-width: none; max-height: none; }
  #work .job-card:nth-child(3) .job-icon { height: calc(var(--job-icon-height) * .75); }

  /* HTMLの読み順を保ち、見出しと段落をカードのグリッドへ直接配置します。 */
  #work .job-copy { display: contents; }
  #work .job-card h3 {
    /* 見出しは写真の上まで広げ、重なる部分では文字を前面に表示します。
       本文は写真の左側に収めるため、この指定は見出しだけに付けます。 */
    grid-column: 3 / -1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 8px 0 0;
    font-size: var(--job-title-font);
    line-height: var(--job-title-line);
    /* 狭い画面で見出し末尾の1文字だけが次の行に残るのを抑えます。 */
    text-wrap: balance;
  }
  /* 04の長い見出しは本文と同じ列で折り返し、右側の写真に重ならないようにします。 */
  #work .job-card .job-title-remote {
    grid-column: 3;
    padding-right: 0;
    /* 字間の追加分をなくし、文字サイズを保ったままiPhone 16相当の幅で1行に収めます。 */
    letter-spacing: 0;
  }
  #work .job-card p, #work .job-card strong {
    font-size: max(.75rem, calc(17 * var(--work-font)));
    line-height: 1.65;
  }

  #work .job-card p {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    /* 下余白はカード側に持たせ、写真の中央を計算する上下の条件を揃えます。 */
    padding-bottom: 0;
  }

  /* 強調文を使う場合も本文に続け、カード末尾だけの特別な書式は設けません。 */
  #work .job-card strong { display: inline; }
  /* 見出し行と本文行をまたぐ右列の中央へ、元の比率のまま配置します。 */
  #work .job-photo { grid-column: 5; grid-row: 1 / -1; align-self: center; width: 100%; }

  #work .income-block, #work .audience-block { margin-top: 24px; }
  #work .subsection-heading { margin-bottom: 12px; }
  #work .income-heading > p { font-size: max(.6875rem, calc(16 * var(--work-font))); }
  #work .subsection-heading h3 { font-size: max(1.25rem, calc(36 * var(--work-font))); }
  #work .audience-heading h3 { font-size: max(1.25rem, calc(31 * var(--work-font))); }

  /* 金額と説明を大きく読めるよう、スマホの収入例は縦1列にします。 */
  #work .income-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #work .income-card { padding: 14px 16px; }
  #work .income-card > span {
    padding: 2px 12px;
    font-size: max(.75rem, calc(16 * var(--work-font)));
  }

  #work .income-value { gap: 8px; margin-block: 8px; }
  #work .income-value > img { width: max(24px, calc(43 * var(--work-unit))); }
  #work .income-card strong { font-size: max(1.75rem, calc(40 * var(--work-font))); }
  #work .income-card small { font-size: max(1rem, calc(20 * var(--work-font))); }
  #work .income-card .payment-text { font-size: max(1.25rem, calc(28 * var(--work-font))); }
  #work .income-card p { font-size: max(.75rem, calc(15 * var(--work-font))); }
  #work .income-note { font-size: max(.6875rem, calc(13 * var(--work-font))); }

  /* 登録女性の見出しは、左右の点線より文字の幅を優先します。
     393px幅では文字サイズを下げずに1行へ収め、狭い画面・文字拡大時は折り返します。 */
  #work .audience-heading { gap: 4px; }
  #work .audience-heading::before,
  #work .audience-heading::after { min-width: 2px; }
  #work .audience-heading h3 { max-width: 100%; }

  /* スマホは本文幅いっぱいのカードを縦に3枚並べます。
     カードの左列を写真、右列を見出し・紹介文にし、長い文章には高さで対応します。 */
  #work .audience-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #work .audience-card {
    display: grid;
    /* 写真を80%からさらに80%（最初の64%）にし、列幅も写真に合わせます。
       列間12pxを保つことで、右の文章も小さくなった写真のすぐ隣から始まります。 */
    grid-template-columns: calc(clamp(80px, 24vw, 112px) * .64) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    padding: 8px 12px 12px;
  }

  #work .audience-photo {
    grid-column: 1;
    grid-row: 1;
    display: block;
    position: relative;
    /* 白い外周を除いた写真部分は3枚とも112×176pxです。
       同じ比率の枠で隠すことで、元PNGを加工せず表示寸法を揃えます。 */
    width: 100%;
    height: auto;
    aspect-ratio: 112 / 176;
    overflow: hidden;
  }

  /* 写真部分の幅112pxが枠いっぱいになるよう元画像を等倍比率で拡大します。
     左の余白は各画像の値、上の余白は共通の3pxだけ枠の外へ移します。
     顔や目隠しはそのまま残し、はみ出した白い余白だけを親の枠で隠します。 */
  #work .audience-photo-image {
    position: absolute;
    left: calc(-100% * var(--audience-crop-left) / 112);
    top: calc(-100% * 3 / 176);
    width: calc(100% * var(--audience-source-width) / 112);
    height: auto;
    max-width: none;
    max-height: none;
  }

  /* 写真の順序を変えても同じ切り抜きになるよう、画像ファイル名に対応させます。 */
  #work .audience-photo-image[src$="audience-hairdresser.png"] { --audience-source-width: 131; --audience-crop-left: 7; }
  #work .audience-photo-image[src$="audience-nailist.png"] { --audience-source-width: 129; --audience-crop-left: 6; }
  #work .audience-photo-image[src$="audience-mother.png"] { --audience-source-width: 133; --audience-crop-left: 9; }
  /* 横幅いっぱいの縦1列表示では、右の見出し・本文も写真と同じ縦中央に揃えます。 */
  #work .audience-copy { grid-column: 2; grid-row: 1; align-self: center; width: 100%; padding: 0; }
  #work .audience-card h4 {
    justify-content: flex-start;
    gap: 4px;
    font-size: max(1rem, calc(20 * var(--work-font)));
  }

  #work .audience-card h4 img { width: max(14px, calc(31 * var(--work-unit))); }

  /* ハートを左右の専用列に置き、2つの文章は中央で自由に折り返します。 */
  #work .beginner-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: max(.75rem, calc(14 * var(--work-font)));
  }

  #work .beginner-note > img { grid-row: 1 / 3; grid-column: 1; }
  #work .beginner-note > img:last-child { grid-column: 3; }
  #work .beginner-note .beginner-emphasis {
    grid-row: 1;
    grid-column: 2;
    font-size: max(.875rem, calc(16 * var(--work-font)));
  }

  #work .beginner-note .beginner-copy { grid-row: 2; grid-column: 2; }
}

/* 仕事内容も中央枠いっぱいに表示し、内側の余白は既存のsection-shellに任せます。 */

.reasons-section {
  background: white;
}

.reasons-grid {
  display: grid;
  gap: 12px;
}

.reasons-grid article {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 18px;
  border: 1px solid #e7e7df;
  border-radius: 18px;
}

.reason-icon {
  flex: 0 0 58px;
  width: 58px;
}

.reasons-grid h3 {
  margin-bottom: 7px;
  font: 500 1.15rem/1.5 var(--serif);
}

.reasons-grid p {
  font-size: 1rem;
}

.flow-section {
  background: var(--cream);
}

.flow-list {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.flow-list li:not(:last-child)::after {
  position: absolute;
  /* 22pxのカード間隔の中央に、回転後の矢印の線を置きます。
     10px角・線幅1pxの矢印は上下の見える余白が約7.1pxになります。
     1024px以上では後半のPC用指定がbottomをautoに戻します。 */
  bottom: -13.82px;
  left: 35px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
  transform: rotate(45deg);
  content: "";
}

.flow-list li > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #c75370;
  font-family: var(--serif);
}

.flow-list h3 {
  margin-bottom: 6px;
  font: 500 1.2rem/1.6 var(--serif);
}

.flow-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: .875rem;
}

/* 理由と流れの見出しだけ、元デザイン3枚目の「葉・明朝体・淡いピンク」に合わせます。
   固定高さを使わず、文字を拡大したときは中央の見出しが折り返せる配置です。 */
#reasons .original-detail-heading, #flow .original-detail-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, auto) 28px;
  align-items: center;
  column-gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* PC用の共通装飾と二重にならないよう、この2見出しの葉はHTML画像だけにします。 */
#reasons .original-detail-heading::before, #reasons .original-detail-heading::after,
#flow .original-detail-heading::before, #flow .original-detail-heading::after {
  content: none;
}

#reasons .detail-heading-leaf, #flow .detail-heading-leaf {
  width: 100%;
  height: auto;
  mix-blend-mode: darken;
  pointer-events: none;
}

#reasons .original-detail-heading h2, #flow .original-detail-heading h2 {
  min-width: 0;
  font: 400 1.25rem/1.5 var(--serif);
  letter-spacing: .04em;
}

#reasons .detail-heading-emphasis, #flow .detail-heading-emphasis {
  color: #ed7893;
  font-size: 1.18em;
}

#reasons .detail-heading-emphasis {
  font-size: 1.35em;
  letter-spacing: .06em;
}

/* 共通の「h2内のspanをピンクにする」指定を、濃色部分には適用しません。 */
#reasons .detail-heading-rest, #flow .detail-heading-rest {
  color: #342e2c;
}

#reasons .original-detail-heading h2::after {
  width: 3px;
  height: 3px;
  margin: 5px auto 0;
  border: 0;
  border-radius: 50%;
  background: #ed7893;
  box-shadow: 18px 0 0 #ed7893;
  transform: translateX(-9px);
}

#flow .original-detail-heading h2::after {
  content: none;
}

/* 理由カードの列数と配置は保ち、見出し・本文の書体と数字の強調だけを寄せます。 */
#reasons .reasons-grid {
  color: #342e2c;
  font-family: var(--serif);
}

#reasons .reasons-grid h3 {
  font-weight: 400;
  letter-spacing: .035em;
}

#reasons .reasons-grid p {
  letter-spacing: .025em;
}

#reasons .reason-years {
  color: #ed7893;
  font-size: 1.4em;
  line-height: 1;
}

#reasons .reason-years small {
  font-size: .65em;
}

/* 新しい流れのアイコンは、原本の縦横比を保って番号の次に表示します。 */
#flow .flow-step-icon {
  flex: 0 0 48px;
  align-self: center;
  width: 48px;
  height: auto;
  mix-blend-mode: darken;
}

/* 文字200%でも番号が円からはみ出さないよう、円の寸法もremで指定します。 */
#flow .flow-step-number {
  flex-basis: 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  background: #ed7893;
  font: 400 1rem/1 var(--serif);
}

@media (max-width: 767px) {
  #flow .flow-list li {
    grid-template-columns: 2.25rem 48px minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  #reasons .original-detail-heading, #flow .original-detail-heading {
    grid-template-columns: 24px minmax(0, auto) 24px;
    column-gap: 10px;
  }
  #reasons .original-detail-heading h2, #flow .original-detail-heading h2 {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  #reasons .original-detail-heading, #flow .original-detail-heading {
    grid-template-columns: 48px minmax(0, auto) 48px;
    column-gap: 48px;
  }
  #reasons .original-detail-heading h2, #flow .original-detail-heading h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  #flow .flow-step-icon {
    width: 64px;
    margin: 0 auto 16px;
  }
}

.faq-section {
  background: var(--cream);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-grid details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}

.faq-grid summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 38px 18px 16px;
  list-style: none;
  font-size: 1rem;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  position: absolute;
  top: 18px;
  right: 15px;
  color: var(--pink-deep);
  content: "+";
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid .faq-mark {
  color: var(--pink-deep);
  font: 500 1.5rem/1 var(--serif);
}

.faq-grid p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 16px;
  border-top: 1px dotted #d7abb5;
}

.faq-grid p .faq-mark {
  flex-shrink: 0;
}

.faq-question {
  min-width: 0;
  overflow-wrap: anywhere;
}

.support-section {
  background: var(--cream);
}

.support-card {
  display: grid;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
}

.support-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.support-card h2 {
  margin-bottom: 14px;
  font: 500 1.6rem/1.6 var(--serif);
}

.support-card .section-kicker {
  color: var(--pink-deep);
  font-family: var(--serif);
  font-style: italic;
}

/* 最終相談エリアと、画面下に現れる補助CTAです。 */
.contact-section {
  padding: 32px 0 0;
  background: linear-gradient(180deg, #fbf6f2, #fff0f1);
}

.contact-card {
  padding: 26px 16px;
  border: 7px solid #f3a1ad;
  border-radius: 24px;
  background: #fffdfa;
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 22px;
}

.final-cta {
  max-width: 650px;
  margin-inline: auto;
  background: linear-gradient(110deg, #0c8244, #076e36);
  box-shadow: 0 3px 0 #06542b, 0 7px 16px rgb(10 100 46 / 13%);
}

.final-cta .cta-arrow {
  color: var(--line);
}

/* フッターは資料の内容をコンパクトにまとめ、文字拡大時にはリンクを折り返します。 */
.site-footer {
  /* 背景を中央コンテンツの端まで広げるため、左右の余白は内枠に持たせます。
     固定CTA用の下余白はコピーライト内に移し、帯の下に別色の空白を作りません。 */
  padding: 24px 0 0;
  color: var(--ink);
  background: var(--cream);
}

.footer-inner {
  /* 運営会社とSNSは、従来の最大680px・左右16pxの余白を保ちます。 */
  width: min(calc(100% - 32px), 680px);
  margin-inline: auto;
  text-align: center;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

/* コピーライトを内枠の外に置き、中央コンテンツの幅いっぱいに背景を付けます。
   スマホでは固定CTA用の領域まで同じ背景にし、全文がボタンの上までスクロールできます。
   JavaScript無効時の7remと安全領域も残し、文字拡大時は高さを自動で広げます。 */
.footer-copyright {
  margin-top: 16px;
  padding: 12px 16px calc(12px + var(--sticky-space, 7rem) + env(safe-area-inset-bottom));
  color: #fff;
  background: var(--ink);
  text-align: center;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.footer-links,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a,
.footer-socials a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-company {
  margin-block: 16px;
  padding-block: 16px;
  border-block: 1px solid var(--pink);
}

.footer-company-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .8125rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.footer-socials span {
  min-width: 0;
}

.footer-socials svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.mobile-line-bar {
  /* 読み込み直後は隠します。visibilityなら非表示中も高さを計測でき、Tab移動の対象にもなりません。 */
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid #dbe7de;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 -4px 20px rgb(52 40 37 / 9%);
}

/* 表示条件はJavaScriptで判定します。メニュー表示中の非表示ルールを優先させます。 */
.mobile-line-bar.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.mobile-line-bar a {
  display: grid;
  align-content: center;
  min-height: 60px;
  padding: 7px 16px;
  border-radius: 999px;
  color: white;
  background: #087d3c;
  text-decoration: none;
  text-align: center;
}

.mobile-line-bar span {
  font-size: .875rem;
  line-height: 1.5;
}

.mobile-line-bar strong {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* dialogは閉じるボタン、Esc、背景クリックで閉じられます。 */
dialog {
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100dvh - 32px);
  padding: 26px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--ink);
  background: white;
  overflow-y: auto;
}

dialog::backdrop {
  background: rgb(45 33 34 / 48%);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.dialog-title {
  font: 500 1.5rem/1.6 var(--serif);
}

/* 44pxの操作領域の中央にSVGを置き、字体による×の位置のずれを防ぎます。 */
.dialog-close svg {
  display: block;
  width: 20px;
  height: 20px;
}

.dialog-close {
  display: grid;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  font-size: 1.65rem;
}

.menu-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-list a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.menu-list .menu-contact {
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--pink-deep);
  text-align: center;
}

/* 本文のスマホ用レイアウトです。冒頭とPCの配置には影響させません。 */
@media (max-width: 767px) {
  /* 普段は言葉のまとまりを保ち、文字拡大で入りきらないときだけ内部も折り返します。 */
  .text-phrase, .consultation-highlight {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .consultation-line {
    display: block;
  }
  .concern-icon {
    /* 元画像の縦横比から幅を計算し、切り抜き位置を変えずに高さを60pxにそろえます。 */
    width: calc(60px * var(--crop-w) / var(--crop-h));
  }
  .concerns-grid p {
    min-width: 0;
  }


  /* アイコン・番号と見出しを上段にまとめ、説明文は左端から読めるようにします。 */
  .reasons-grid article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }
  .reason-icon {
    width: min(44px, calc(44px * var(--crop-w) / var(--crop-h)));
    justify-self: center;
  }
  .reasons-grid article > div, .flow-list li > div {
    display: contents;
  }
  .reasons-grid h3, .flow-list h3 {
    min-width: 0;
    margin-bottom: 0;
  }
  .reasons-grid p, .flow-list p {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .flow-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  /* 開閉記号の場所を確保し、長い質問や文字拡大でも文章と重ならないようにします。 */
  .faq-grid summary, .faq-grid p {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
  }
  .faq-grid summary {
    padding-right: calc(1.5rem + 20px);
  }
  .faq-grid summary::after {
    top: 50%;
    width: 1rem;
    line-height: 1;
    text-align: center;
    transform: translateY(-50%);
  }

  /* 同じ背景が続く境界は32pxずつにして、合計64pxの間隔にそろえます。 */
  .flow-section, .faq-section {
    padding-bottom: 32px;
  }
  .faq-section, .support-section {
    padding-top: 32px;
  }
}

/* 小型端末では写真と余白だけをコンパクトにし、本文サイズは維持します。 */
@media (max-width: 359px) {
  .header-inner {
    min-height: 58px;
  }
  .hero-copy {
    padding-top: 8px;
    padding-bottom: 4px;
  }
  .hero-eyebrow {
    margin-bottom: 4px;
  }
  .hero-intro {
    min-height: 182px;
  }
  .hero-stage {
    padding-bottom: 14px;
  }
  .hero-lead {
    margin-bottom: 8px;
  }
  .hero-points {
    margin-bottom: 9px;
    padding-block: 6px;
  }
  .primary-cta {
    gap: 6px;
    padding-inline: 8px;
  }
  .line-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
  .cta-arrow {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }
  .hero-details .cta-notes {
    margin-top: 10px;
  }
}

/* タブレットでは本文の行長を抑えつつ、元デザインの横並びを取り入れます。 */
@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 84px;
    gap: 8px 20px;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .desktop-nav {
    grid-column: 1 / -1;
    padding-bottom: 10px;
  }
  .site-brand > span {
    font-size: 1.85rem;
  }
  .site-brand small {
    font-size: .875rem;
  }
  .header-contact {
    min-width: 78px;
    padding: 8px 12px;
    border-left: 1px solid #f0e6e1;
  }
  .menu-toggle {
    display: none;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
  }
  .desktop-nav a {
    padding-block: 10px;
    font-size: .875rem;
    text-decoration: none;
  }
  .hero-stage {
    position: relative;
    min-height: 595px;
    padding-top: 34px;
    padding-bottom: 44px;
  }
  .hero-intro {
    position: static;
    min-height: 0;
  }
  .hero-copy {
    width: 60%;
    padding-top: 16px;
    padding-bottom: 0;
  }
  .hero-eyebrow {
    padding-bottom: 14px;
    margin-bottom: 14px;
    font-size: 1rem;
  }
  .eyebrow-flourish {
    height: 31px;
  }
  .hero-face-note {
    top: 420px;
    right: 20px;
    bottom: auto;
    width: 8rem;
    min-height: 8rem;
    padding: 16px 10px;
    font-size: 1rem;
  }
  .face-note-heart {
    font-size: 1.7rem;
  }
  .hero-section h1 {
    font-size: clamp(2.45rem, 4.5vw, 3.75rem);
    line-height: 1.5;
  }
  .hero-visual {
    inset: 0 -16px 0 auto;
    width: 62%;
    max-height: 720px;
  }
  .hero-visual img {
    object-position: 72% center;
  }
  .hero-visual::after {
    background: linear-gradient(90deg, #fffdfb, rgb(255 253 251 / 65%) 22%, transparent 44%), linear-gradient(0deg, #fffaf7, transparent 15%);
  }
  .hero-details {
    width: 54%;
    max-width: 545px;
    margin-top: 22px;
  }
  .hero-lead {
    line-height: 1.8;
  }
  .hero-points {
    gap: 6px 12px;
    padding-block: 12px;
    margin-bottom: 20px;
  }
  .hero-points li {
    font-size: 1rem;
  }
  .hero-details .primary-cta {
    min-height: 76px;
  }
  .hero-proof {
    position: relative;
    padding-bottom: 56px;
  }
  .portrait-strip {
    /* タブレット・PCでは幅の制限を外し、これまでの4列表示に戻します。 */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    gap: 10px;
    margin-block: 8px 16px;
  }
  .portrait-strip figure {
    padding: 4px;
  }
  .portrait-strip figcaption {
    padding: 8px 0 3px;
    font-size: 1rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .metric-card {
    gap: 20px;
    padding: 26px 20px;
  }
  .metric-card p {
    font-size: 1rem;
  }
  .metric-card b {
    font-size: 3rem;
  }
  .metric-icon {
    flex-basis: 78px;
    width: 78px;
  }
  .content-section {
    padding-block: 64px;
  }
  .section-heading {
    margin-bottom: 36px;
  }
  .section-heading > p:last-child:not(.section-kicker) {
    text-align: center;
  }
  .concerns-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .concerns-grid li, .concerns-grid li:last-child {
    display: grid;
    grid-column: auto;
    align-items: start;
    justify-content: center;
    align-content: start;
    gap: 18px;
    padding: 24px 10px;
  }
  .consultation-section {
    padding-block: 52px 64px;
  }
  .consultation-card h2 {
    font-size: 2.1rem;
  }
  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .reasons-grid article:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .support-card {
    grid-template-columns: 38% minmax(0, 1fr);
    align-items: center;
    padding: 24px;
    gap: 28px;
  }
  .contact-card {
    padding: 40px 36px;
    border-width: 10px;
  }
  .footer-copyright {
    /* PCには固定CTAがないため、文字の下は通常の内余白12pxだけにします。 */
    padding-bottom: 12px;
  }
  .mobile-line-bar {
    display: none;
  }
}

/* PCでは説明文を詰めず、元画像と同様の横長カードを中央に配置します。 */
@media (min-width: 1024px) {
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
  }
  .desktop-nav {
    padding-bottom: 0;
  }
  .hero-stage {
    min-height: 690px;
    padding-top: 42px;
  }
  .hero-details {
    margin-top: 24px;
  }
  .hero-visual {
    width: 66%;
  }
  .hero-visual img {
    object-position: 70% center;
  }
  .hero-copy {
    padding-top: 22px;
  }
  .hero-lead br {
    display: none;
  }
  .hero-details .cta-notes {
    text-align: center;
  }
  .section-heading::before, .section-heading::after {
    position: absolute;
    top: 0;
    width: 64px;
    height: 88px;
    /* 元JPGから切り出した葉を枠全体に表示し、左右で同じ画像を共有します。 */
    background: url("assets/decoration-leaf.webp") center / 100% 100% no-repeat;
    opacity: .65;
    content: "";
    pointer-events: none;
  }
  .section-heading::before {
    left: 8%;
  }
  .section-heading::after {
    right: 8%;
    transform: scaleX(-1);
  }
  .reasons-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .reasons-grid article, .reasons-grid article:last-child {
    display: grid;
    grid-column: auto;
    grid-template-rows: 72px auto;
    justify-content: stretch;
    justify-items: center;
    align-content: start;
    gap: 24px;
    padding: 26px 16px;
    text-align: center;
  }
  /* アイコンを縦に引き伸ばさないよう、切り出し画像の比率から自然な高さを保ちます。 */
  .reason-icon {
    align-self: center;
    width: 64px;
  }
  .flow-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .flow-list li {
    display: block;
    padding: 24px 16px;
    text-align: center;
  }
  .flow-list li > span {
    margin: 0 auto 16px;
  }
  .flow-list li:not(:last-child)::after {
    top: 50%;
    right: -12px;
    left: auto;
    bottom: auto;
    transform: rotate(-45deg);
  }
  .support-card h2 {
    font-size: 2rem;
  }
}

/* 動きを減らす設定では、ページ内移動も即時にします。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
