/* poitto 日本語トップ（LP）専用のスタイル。index.html だけが読み込む（他のページは style.css）。
   デザインは Figma「poitto デザイン」（ヒーロー PC 46:49 / SP 47:59、ヘッダー 91:149 / 91:178、本文 PC 77:75 / SP 84:94）。
   数値は Figma の値をそのまま使う。ヒーローと図は --u（デザイン上の 1px）で全体を拡縮する。
   フォントは Figma では Noto Sans JP だが、ブランド定義どおりシステムフォント（Hiragino Sans）。Black=900・Bold=700。 */

:root {
  --orange: #ff7a1a;
  --orange-text: #c2540a; /* 白地の本文中のリンク用（コントラスト確保） */
  --pale: #ffdbb8;
  --ink: #2b1a0e;
  --muted: #5a4a3e;
  --gray: #8a7c70;
  --cream: #fff6ee;
  --paper: #f9f9fa;
  --line: #eadfd6;
  --pad: clamp(24px, 7.64vw, 110px); /* PC の左右の余白（1440 幅で 110） */
  /* 見出しだけ Zen Kaku Gothic New（Black 900。index.html で見出しの文字だけ読み込む）。読み込めないときは本文と同じシステムフォント */
  --font-head: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.lp {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:where(.lp) img { max-width: 100%; height: auto; }
:where(.lp) a { color: var(--orange-text); text-underline-offset: 3px; }
:where(.lp) :is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.lp) :is(ul, ol) { list-style: none; }
:where(.lp) :is(i, em, b, s) { font-style: normal; text-decoration: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-orange :focus-visible, .lp-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }
.lp-footer :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

/* ---------- App Store バッジ（仮）。--bh（高さ）だけで全体を決める：PC 48・ヘッダー 40・SP 42 ---------- */
.badge {
  --bh: 48px;
  display: inline-flex; align-items: center; flex: none;
  height: var(--bh); padding: 0 calc(var(--bh) / 3) 0 calc(var(--bh) / 4); gap: calc(var(--bh) / 6);
  background: #000; color: #fff; border-radius: 10px; text-decoration: none;
  font-family: Inter, -apple-system, "Helvetica Neue", sans-serif;
}
:where(.lp) a.badge { color: #fff; }
.badge svg { width: calc(var(--bh) / 2); height: calc(var(--bh) / 2); fill: #fff; flex: none; }
.badge span { display: flex; flex-direction: column; font-size: calc(var(--bh) * 20 / 48); font-weight: 600; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.badge small { font-size: calc(var(--bh) * 10 / 48); font-weight: 500; line-height: 1; margin-bottom: calc(var(--bh) / 24); letter-spacing: 0; }
.hero-cta { display: flex; align-items: center; gap: 14px; }
.hero-note { font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }

/* ---------- ヘッダー（固定・2 状態）Figma 91:149 / 91:178 ---------- */
.lp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 72px; padding: 0 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 4px rgba(43, 26, 13, .06);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.lp-brand { display: block; line-height: 0; }
.lp-brand img { height: 28px; width: auto; }
.lp-brand-white { display: none; }
.header-badge { --bh: 40px; }
.header-dl { display: none; }
/* JS があるとき、ヒーローの上では透明（ヒーローのオレンジと円が透ける）に白（JS が無ければ常に白地で読める） */
.js .lp-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.js .lp-header:not(.is-scrolled) .lp-brand-white { display: block; }
.js .lp-header:not(.is-scrolled) .lp-brand-dark { display: none; }
@media (prefers-reduced-motion: reduce) { .lp-header { transition: none; } }

/* ---------- 共通 ---------- */
.lp-section { padding-block: 120px; }
/* アンカーで飛んだとき、固定ヘッダー（PC 72・SP 56）の下に見出しが隠れないようにする */
.lp-section, .lp-h2 { scroll-margin-top: 88px; }
.lp-inner { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.lp-h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.0556vw, 44px); line-height: 1.4; font-weight: 900; letter-spacing: .03em;
}
.lp-h2.two span { display: block; }
.lp-h2.center { text-align: center; }
.lp-body { margin-top: 28px; font-size: 17px; line-height: 1.85; letter-spacing: .02em; color: var(--muted); }

/* ---------- スマホの枠（Figma「スマホの枠」28:44）。--pw（幅）だけで決める ----------
   角丸 幅×16.6%、ふち（黒＋外周の #3a3a3a の線）幅×3.25%。画面の角丸は中身の縁の曲線で自然に 13.35% になる */
.lp-phone {
  --pw: 250px; --ps: 24px;
  /* 高さは幅と画像の縦横比（実機の画面 1206×2622）から決まる。flex の中で伸ばされないよう flex: none・align-self: flex-start */
  display: block; width: var(--pw); height: auto; max-width: none; flex: none; align-self: flex-start;
  padding: calc(var(--pw) * .025); border: calc(var(--pw) * .0075) solid #3a3a3a;
  border-radius: calc(var(--pw) * .166); background: #141414;
  box-shadow: 0 var(--ps) var(--ps) rgba(43, 26, 14, .22);
}

/* ---------- ヒーロー（Figma 46:49：1440×900、SP 47:59：390×844） ---------- */
/* 右と下にはみ出す紙片・円を切る。スマホは 2 台ともヒーローの中に収まる（手前のスマホの下端は 900 の手前 64） */
.lp-hero { background: var(--orange); color: #fff; position: relative; z-index: 2; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-frame { position: relative; height: 100%; max-width: 1440px; margin: 0 auto; container-type: inline-size; }
.hero-circle {
  --u: calc(100cqw / 1440);
  position: absolute; border-radius: 50%; background: rgba(255, 219, 184, .25);
  left: calc(var(--u) * 700); top: calc(var(--u) * 20); width: calc(var(--u) * 940); aspect-ratio: 1;
}
.hero-frame { position: relative; max-width: 1440px; margin: 0 auto; container-type: inline-size; }
.hero-stage { --u: calc(100cqw / 1440); position: relative; aspect-ratio: 1440 / 900; }
.hero-copy { position: absolute; z-index: 3; left: calc(var(--u) * 110); top: calc(var(--u) * 196); }
.hero-title {
  font-family: var(--font-head);
  font-size: calc(var(--u) * 68); line-height: 1.22; font-weight: 900; letter-spacing: .02em;
  white-space: nowrap;
}
.hero-title span span, .hero-sub span { display: block; }
.hero-title .t-short { display: none; }
.hero-sub {
  margin-top: calc(var(--u) * 26.5); font-size: calc(var(--u) * 22); line-height: 1.55; font-weight: 700;
  letter-spacing: .03em; white-space: nowrap;
}
.hero-copy .hero-cta { margin-top: calc(var(--u) * 94.8); }
.hero-copy .hero-note { opacity: .9; letter-spacing: -.051em; }
/* ぱくぱくは手前のスマホ（左 870・下端 779）の左下に立たせ、右 70 ほどをスマホに重ねる（190 幅・高さ約 174、足元 808） */
.hero-goat {
  position: absolute; z-index: 8; left: calc(var(--u) * 750); top: calc(var(--u) * 634); width: calc(var(--u) * 190);
  transform: scaleX(-1); filter: drop-shadow(0 calc(var(--u) * 13) calc(var(--u) * 16) rgba(120, 40, 0, .3));
}

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art .lp-phone { position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); z-index: var(--z); }
/* 手前のスマホ（250 幅・高さ約 525）と奥のスマホ（234 幅・高さ約 491）は、2 台で上下 164〜779、ヒーローの縦の中央付近に置く。
   奥は手前より 90 上・196 右。見出し（右端 770 付近）とのすき間は 100 ほど */
.phone-home { --pw: calc(var(--u) * 250); --ps: calc(var(--u) * 28); --x: 870; --y: 254; --z: 7; }
.phone-card { --pw: calc(var(--u) * 234); --ps: calc(var(--u) * 26); --x: 1066; --y: 164; --z: 6; }

/* ---------- 困りごと ---------- */
/* 傾いた通知のカードが画面の右端をわずかに越える幅があるので、横スクロールが出ないよう切る */
.lp-trouble { background: var(--cream); padding-block: 120px; overflow: hidden; }
.trouble-grid {
  display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 540fr);
  gap: clamp(40px, 6.94vw, 100px); align-items: center;
}
.trouble-text .lp-h2 span { display: block; white-space: nowrap; }
.trouble-text .lp-body { max-width: 520px; }
/* 通知が積もる図（580×360）。カードは 360 幅、角丸 16、回転の中心はカードの中心 */
.notif-stack { position: relative; container-type: inline-size; }
.notif-stack::before { content: ""; display: block; aspect-ratio: 580 / 360; }
.notif-stack { --nu: calc(100cqw / 580); }
.notif {
  --u: var(--nu);
  position: absolute; left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y)); width: calc(var(--u) * 360);
  transform: rotate(var(--r)); z-index: var(--z);
  display: flex; align-items: flex-start; gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  background: #fff; border-radius: calc(var(--u) * 16);
  box-shadow: 0 calc(var(--u) * 16) calc(var(--u) * 32) rgba(120, 60, 0, .16), 0 calc(var(--u) * 2) calc(var(--u) * 4) rgba(43, 26, 14, .08);
}
.notif > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 2); }
.n-icon { flex: none; width: calc(var(--u) * 34); height: calc(var(--u) * 34); border-radius: calc(var(--u) * 9); background: var(--c); }
.n-top { display: flex; justify-content: space-between; font-size: calc(var(--u) * 11); line-height: 1.6; white-space: nowrap; }
.n-app { font-weight: 700; color: var(--t, var(--c)); }
.n-top time { color: var(--gray); }
.notif b { font-size: calc(var(--u) * 14); line-height: 1.5; font-weight: 700; }
.n-sub { font-size: calc(var(--u) * 12); line-height: 1.5; color: var(--gray); }
.c-green { --c: #06c755; } .c-blue { --c: #3b82f6; } .c-yellow { --c: #f4b000; --t: #b07f00; } .c-red { --c: #ff5a4e; }
.n1 { --x: 39.35; --y: 6.26; --r: 2deg; --z: 1; } .n2 { --x: 171.44; --y: 55.7; --r: -2deg; --z: 2; }
.n3 { --x: 9.7; --y: 127.13; --r: 1deg; --z: 3; } .n4 { --x: 191.77; --y: 178.1; --r: -2.5deg; --z: 4; }
.n5 { --x: 69.53; --y: 252.7; --r: 1.5deg; --z: 5; }

/* ---------- 使い方 ---------- */
.lp-steps-section { background: var(--paper); }
.lp-steps {
  --sg: clamp(40px, 6.25vw, 90px);
  max-width: calc(1140px + var(--pad) * 2); margin: 56px auto 0; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sg);
}
.lp-step { --pw: min(250px, 78cqw); position: relative; container-type: inline-size; text-align: center; }
.step-shot { position: relative; display: flex; justify-content: center; padding-bottom: calc(var(--pw) * .0424); }
.step-shot .lp-phone { --pw: inherit; --ps: 24px; }
/* 画面の間の矢印（Figma では幅 90 の列、スマホの中ほどに 40px の →） */
.lp-step:not(:last-child)::after {
  content: "→"; position: absolute; right: calc(var(--sg) / -2); top: calc(var(--pw) * 1.0493 - 20px);
  transform: translateX(50%); font-size: 40px; font-weight: 900; line-height: 1; color: var(--orange);
}
.step-goat {
  position: absolute; z-index: 2; left: calc(50% - var(--pw) * .6); bottom: calc(var(--pw) * .0863);
  width: calc(var(--pw) * .44); filter: drop-shadow(0 6px 10px rgba(43, 26, 14, .22));
}
.step-body { margin-top: 20px; }
.step-body h3 {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 22px; line-height: 1.5; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.step-t { font-family: var(--font-head); font-weight: 900; letter-spacing: .02em; }
.num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: 0;
}
.step-body p { margin: 20px auto 0; max-width: 320px; font-size: 17px; line-height: 1.85; letter-spacing: .02em; color: var(--muted); }
/* 折り返しは意味の区切り（.ph の間）だけにする。Safari は word-break: auto-phrase に未対応で、字の途中で折り返すため */
.step-body .ph { white-space: nowrap; }
.step-body h3 wbr { display: none; } /* PC は見出しを 1 行に保つ（SP でだけ折り返す） */
.lp-dots { display: none; }

/* ---------- 4 つのマス ---------- */
.matrix-grid { display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 600fr); gap: 40px; align-items: center; }
/* 「優先順位が／ひと目でわかる。」の 2 行に分ける（PC・SP とも） */
.matrix-h2 span { display: block; white-space: nowrap; }
.matrix-text .lp-body { max-width: 440px; }
.legend { margin-top: 28px; display: grid; gap: 14px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.5; }
.legend li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.legend b { flex: none; width: 120px; font-weight: 700; color: var(--c); }
.legend span { color: var(--muted); white-space: nowrap; }
.lg-red { --c: #ff5a4e; } .lg-orange { --c: #ff7a1a; } .lg-yellow { --c: #f4b000; } .lg-gray { --c: #86909e; }

/* 図：4 つのマス（600×434.245。マスの面は上から 50） */
.matrix-art { position: relative; container-type: inline-size; }
.matrix-art::before { content: ""; display: block; aspect-ratio: 600 / 434.245; }
.matrix {
  --u: calc(100cqw / 600);
  position: absolute; left: 0; top: calc(var(--u) * 50); width: calc(var(--u) * 594); height: calc(var(--u) * 364.245);
  background: var(--paper); border-radius: calc(var(--u) * 22.415);
  filter: drop-shadow(0 calc(var(--u) * 16.8) calc(var(--u) * 16.8) rgba(43, 26, 14, .3));
}
.mq {
  position: absolute; overflow: hidden;
  left: calc(var(--u) * var(--x)); top: calc(var(--u) * var(--y));
  width: calc(var(--u) * 286.073); height: calc(var(--u) * 171.195);
  padding: calc(var(--u) * 33.06) calc(var(--u) * 8.97) 0;
  border-radius: calc(var(--u) * 13.449); background: var(--bg);
}
.mq h3 {
  position: absolute; left: calc(var(--u) * 8.97); top: calc(var(--u) * 8.41); height: calc(var(--u) * 17.93);
  display: flex; align-items: center; gap: calc(var(--u) * 3.923);
  font-size: calc(var(--u) * 11.768); line-height: 1; font-weight: 900; letter-spacing: -.08em; color: var(--c);
}
.mq h3 img { width: calc(var(--u) * 12.328); height: calc(var(--u) * 12.328); }
.mq .chev { font-size: calc(var(--u) * 8.406); letter-spacing: 0; }
.mq em {
  position: absolute; left: calc(var(--u) * 261.98); top: calc(var(--u) * 6.16);
  display: grid; place-items: center; width: calc(var(--u) * 17.372); height: calc(var(--u) * 17.372); border-radius: 50%;
  background: #fff; color: #1c1c1e; font-size: calc(var(--u) * 12.889); line-height: 1; font-weight: 700;
}
.mq p {
  position: relative; padding-left: calc(var(--u) * 18.49); margin-bottom: calc(var(--u) * 6.73);
  display: flex; flex-direction: column;
}
.mq p i {
  position: absolute; left: 0; top: calc(var(--u) * 1.68); width: calc(var(--u) * 12.328); height: calc(var(--u) * 12.328);
  border: calc(var(--u) * 1.121) solid #c7c7cc; border-radius: 50%;
}
.mq p span { font-size: calc(var(--u) * 12.328); line-height: calc(var(--u) * 16.027); font-weight: 500; letter-spacing: -.04em; color: #1c1c1e; white-space: nowrap; }
.mq small { font-size: calc(var(--u) * 9.526); line-height: calc(var(--u) * 12.384); color: #8e8e93; }
.mq small.hot { color: #ff3b30; }
.q-red { --x: 7.28; --y: 7.28; --c: #ff5a4e; --bg: rgba(255, 90, 78, .1); }
.q-orange { --x: 300.64; --y: 7.28; --c: #ff7a1a; --bg: rgba(255, 122, 26, .1); }
.q-yellow { --x: 7.28; --y: 185.77; --c: #f4b000; --bg: rgba(244, 176, 0, .1); }
.q-gray { --x: 300.64; --y: 185.77; --c: #86909e; --bg: rgba(134, 144, 158, .1); }
.matrix-goat {
  --u: calc(100cqw / 600);
  position: absolute; left: calc(var(--u) * 470); top: calc(var(--u) * -50); width: calc(var(--u) * 150);
  filter: drop-shadow(0 6px 10px rgba(43, 26, 14, .22));
}
.matrix-phone { display: none; }

/* ---------- 料金 ---------- */
/* 薄いベージュのパネル（クリームの地より一段濃い）に 2 枚のカード。枠線は使わず、色の差と Pro の影で分ける。
   カードの中は subgrid で「名前・値段・機能」の 3 段を 2 枚でそろえる（機能の区切り線が同じ高さに来る） */
.lp-price { background: var(--cream); }
.plans {
  --panel: #f9ebde;
  max-width: 952px; margin: 56px auto 0; padding: 12px; border-radius: 40px; background: var(--panel);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px;
}
.plan {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 20px; align-content: start; min-width: 0;
  border-radius: 30px; padding: 36px 36px 40px;
}
.plan-free { background: var(--panel); }
.plan-pro { background: #fff; box-shadow: 0 18px 40px rgba(194, 84, 10, .12), 0 2px 6px rgba(43, 26, 14, .05); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; line-height: 1.4; }
.plan-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); }
.plan-icon svg { width: 18px; height: 18px; fill: #fff; }
.plan-price { display: grid; align-content: start; gap: 4px; }
/* 大きいのは数字だけ。「約」「円」「/月」は小さく、下（ベースライン）でそろえる */
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.price-main strong { font-size: 64px; font-weight: 900; letter-spacing: -.02em; }
.price-main .unit { font-size: 22px; margin-left: 2px; }
.price-main .pre { font-size: 20px; margin-right: 4px; }
.price-main .per { font-size: 18px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.price-plan {
  align-self: center; margin-left: 12px; padding: 4px 12px; border-radius: 999px;
  background: #ffe8d2; color: var(--orange-text); font-size: 13px; font-weight: 700; line-height: 1.5;
}
/* 年額の総額（2,800円）は、月あたりの値段のすぐ下に本文に近い大きさ・濃さで書く */
.price-sub { font-size: 15px; line-height: 1.6; color: var(--muted); }
.price-sub b { font-weight: 700; color: var(--ink); }
.price-sub .nw { white-space: nowrap; } /* かっこの中は途中で折り返さない（狭い幅では丸ごと次の行へ） */
.price-main + .price-sub { margin-top: 8px; }
.checks { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(43, 26, 14, .1); }
.checks li { display: flex; gap: 10px; font-size: 16px; line-height: 1.7; }
.checks li::before { content: "✓"; flex: none; color: var(--orange); font-weight: 900; }
.price-note { margin-top: 56px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--gray); }

/* ---------- よくある質問 ---------- */
.faq-inner { max-width: calc(880px + var(--pad) * 2); }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer;
  padding: 26px 0; font-size: 18px; line-height: 1.5; font-weight: 700; list-style: none;
}
.faq-list details[open] summary { padding-bottom: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--orange);
  background:
    linear-gradient(currentColor, currentColor) center / 13px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 13px no-repeat,
    #fff1e4;
}
.faq-list details[open] summary::after {
  color: #fff; background: linear-gradient(#fff, #fff) center / 13px 2.5px no-repeat, var(--orange);
}
.faq-list details p { padding: 0 56px 26px 0; font-size: 16px; line-height: 1.85; color: var(--muted); }

/* ---------- 締め ---------- */
.lp-closing { position: relative; overflow: hidden; background: var(--orange); color: #fff; text-align: center; }
.closing-circle {
  position: absolute; left: 50%; top: 60px; width: 820px; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 219, 184, .25); transform: translateX(-50%);
}
.closing-inner { position: relative; padding: 110px 24px 120px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.closing-goat { width: 240px; filter: drop-shadow(0 14px 20px rgba(120, 41, 0, .3)); }
.closing-title { font-family: var(--font-head); font-size: 60px; line-height: 1.3; font-weight: 900; letter-spacing: .03em; }
.closing-title span { display: block; }
.closing-cta { justify-content: center; }
.closing-mark { width: auto; height: 40px; }

/* ---------- フッター ---------- */
.lp-footer { background: var(--ink); color: #fff; line-height: 1.5; }
.lp-footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 36px var(--pad) 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lp-footer ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.lp-footer a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; }
.lp-footer a:hover { text-decoration: underline; }
.lang-switch ul { gap: 6px 18px; }
.lang-switch a { color: #cdbfb4; font-size: 12px; font-weight: 400; }
.lang-switch a[aria-current="page"] { color: #fff; font-weight: 700; }
.copy { font-size: 12px; color: #a89a8e; }

/* ---------- タブレット・スマホ（Figma SP 390 幅） ---------- */
@media (max-width: 1023.98px) {
  .lp-header { height: 56px; padding: 0 20px; }
  .lp-brand img { height: 22px; }
  .header-badge { display: none; }
  .header-dl {
    display: block; padding: 7px 14px; border-radius: 999px; background: var(--orange);
    font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none;
  }
  :where(.lp) a.header-dl { color: #fff; }
  .js .lp-header:not(.is-scrolled) a.header-dl { background: #fff; color: var(--orange); }

  /* ヒーロー：縦横の切り取りは PC と同じ（ぱくぱくが 844 の下へ 9px 出るのも切れる） */
  .hero-frame, .hero-bg-frame { max-width: 560px; }
  .hero-stage { --u: calc(100cqw / 390); aspect-ratio: 390 / 844; }
  .hero-circle { --u: calc(100cqw / 390); left: calc(var(--u) * 40); top: calc(var(--u) * 330); width: calc(var(--u) * 560); }
  .hero-copy { left: max(24px, calc(var(--u) * 24)); top: calc(var(--u) * 84); }
  .hero-title .t-long { display: none; }
  .hero-title .t-short { display: block; }
  /* 字間は詰めすぎず自然に（見出しは 2 行、サブは 2 行のまま収まる範囲） */
  .hero-title { font-size: calc(var(--u) * 36); letter-spacing: .04em; }
  .hero-sub { margin-top: calc(var(--u) * 17); font-size: calc(var(--u) * 15); letter-spacing: .05em; }
  .hero-copy .hero-cta { margin-top: calc(var(--u) * 19.5); gap: 8px; }
  .hero-cta .badge { --bh: 42px; }
  .hero-cta .hero-note { font-size: 11px; letter-spacing: -.05em; }
  /* スマホは PC と同じ 2 台（手前＝マトリクス 196 幅・高さ約 411、奥＝「4件見つけたよ」180 幅・高さ約 378）。
     奥は手前より 60 上・144 右。2 台で左右 34〜358（ほぼ中央）、上下 352〜823。
     ぱくぱくは手前のスマホの右下の角に重ね、奥のスマホの下（730 より下）に立たせる */
  .hero-goat {
    z-index: 8; left: calc(var(--u) * 176); top: calc(var(--u) * 726); width: calc(var(--u) * 120); transform: none;
    filter: drop-shadow(0 calc(var(--u) * 10) calc(var(--u) * 14) rgba(120, 40, 0, .3));
  }
  .phone-home { --pw: calc(var(--u) * 196); --ps: calc(var(--u) * 26); --x: 34; --y: 412; }
  .phone-card { --pw: calc(var(--u) * 180); --ps: calc(var(--u) * 24); --x: 178; --y: 352; }


  /* 本文：SP は左右 24・上下 64、見出しは中央揃え */
  .lp-section, .lp-trouble { padding-block: 64px; }
  .lp-inner { padding-inline: 24px; }
  /* 見出しは「／」の位置でだけ改行する（1 行は最長 12 字）。342 より狭い画面では、12 字が 1 行に入るよう字を幅に合わせて縮める */
  .lp-h2 { font-size: min(28px, calc((100vw - 48px) / 12.3)); line-height: 1.4; letter-spacing: .02em; text-align: center; }
  .lp-h2 span { display: block; white-space: nowrap; }
  .lp-body { font-size: 15px; letter-spacing: .02em; }

  /* 中身は 342 幅（400 以上は 460 幅）。左右の余白 24 は .lp-inner のまま残し、狭い画面でも端にくっつかないようにする */
  .trouble-grid { display: flex; flex-direction: column; align-items: stretch; gap: 32px; max-width: calc(342px + 48px); margin: 0 auto; }
  @media (min-width: 400px) { .trouble-grid { max-width: calc(460px + 48px); } }
  .trouble-text { order: -1; }
  .trouble-text .lp-body { margin-top: 18px; max-width: none; }
  /* SP の図は 342×406、カードは 290 幅 */
  .notif-stack { --nu: calc(100cqw / 342); }
  .notif-stack::before { aspect-ratio: 342 / 406; }
  .notif { width: calc(var(--u) * 290); }
  .n1 { --x: -1.95; --y: 11.03; } .n2 { --x: 51.46; --y: 74.91; } .n3 { --x: 5.2; --y: 156.52; }
  .n4 { --x: 45.8; --y: 221.63; } .n5 { --x: 12.55; --y: 305.78; }

  /* 使い方：横スワイプのカード（290 幅。高さは中身に合わせ、3 枚とも一番高いカードにそろう） */
  .lp-steps-section .lp-h2 { line-height: 1.45; }
  .lp-steps {
    display: flex; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; max-width: none;
    margin-top: 28px; padding: 0 24px 14px; margin-bottom: -14px; scroll-padding-inline: 24px; scrollbar-width: none;
  }
  .lp-steps::-webkit-scrollbar { display: none; }
  .lp-step {
    --pw: 200px; container-type: normal;
    flex: 0 0 290px; min-height: 0; scroll-snap-align: start; text-align: left;
    background: #fff; border-radius: 20px; padding: 16px 16px 24px;
    box-shadow: 0 6px 9px rgba(43, 26, 14, .06);
  }
  .lp-step:not(:last-child)::after { display: none; }
  /* 画像の枠は Figma どおり 300 の高さ。スマホは縦横比を保ったまま、枠の下端で下を切る */
  .step-shot { height: 300px; overflow: hidden; border-radius: 14px; background: var(--cream); padding: 20px 0 0; align-items: flex-start; }
  .step-goat { left: 6px; top: 196px; bottom: auto; width: 90px; }
  .step-body { margin-top: 18px; }
  /* 番号と見出しは上をそろえる（2 行になる見出しでも番号が真ん中に浮かない） */
  .step-body h3 {
    justify-content: flex-start; align-items: flex-start; font-size: 17px; line-height: 1.45; gap: 10px;
    letter-spacing: .01em; white-space: normal;
  }
  .step-t { flex: 1; min-width: 0; padding-top: calc((32px - 17px * 1.45) / 2); }
  .step-body h3 wbr { display: inline; }
  .num { width: 32px; height: 32px; font-size: 15px; }
  .step-body p { margin: 12px 0 0; max-width: none; font-size: 15px; line-height: 1.8; }
  .lp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
  .lp-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9cfc7; }
  .lp-dots span.on { background: var(--orange); }

  /* 4 つのマス：見出し → 本文 → 図（スマホ）→ 説明 */
  .matrix-grid { display: flex; flex-direction: column; gap: 32px; max-width: calc(342px + 48px); margin: 0 auto; }
  @media (min-width: 400px) { .matrix-grid { max-width: calc(460px + 48px); } }
  .matrix-text { display: contents; }
  .matrix-h2 { order: 1; white-space: normal; }
  .matrix-text .lp-body { order: 2; margin-top: 0; max-width: none; }
  .matrix-art { order: 3; width: 342px; max-width: 100%; margin: 0 auto; container-type: normal; }
  .matrix-art::before { display: none; }
  .matrix-text .legend { order: 4; margin-top: 0; gap: 12px; }
  .matrix { display: none; }
  .matrix-phone { display: block; position: relative; height: 440px; overflow: hidden; border-radius: 20px; background: var(--cream); padding: 24px 0 0 61px; }
  .matrix-phone .lp-phone { --pw: 220px; --ps: 24px; }
  .matrix-goat { left: 214px; top: 310px; width: 120px; }
  .legend li { gap: 10px; font-size: 14px; }
  .legend li::before { width: 10px; height: 10px; }
  .legend b { width: 96px; font-size: 15px; }
  /* 狭い画面で説明が画面の外へ出ないよう、入らないときは折り返す */
  .legend span { flex: 1; min-width: 0; white-space: normal; }

  /* 料金：縦に並べる（subgrid はやめ、カードごとに高さを決める） */
  .plans { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 8px; margin-top: 32px; max-width: 460px; padding: 8px; border-radius: 32px; }
  .plan { display: flex; flex-direction: column; grid-row: auto; gap: 16px; padding: 28px 22px 30px; border-radius: 26px; }
  .plan h3 { font-size: 19px; gap: 8px; }
  .plan-icon { width: 24px; height: 24px; }
  .plan-icon svg { width: 15px; height: 15px; }
  .price-main strong { font-size: 52px; }
  .price-main .unit { font-size: 19px; }
  .price-main .pre { font-size: 17px; }
  .price-main .per { font-size: 16px; }
  .plan-pro { box-shadow: 0 10px 24px rgba(194, 84, 10, .1), 0 1px 4px rgba(43, 26, 14, .05); }
  /* 狭い幅では「年額プラン」を値段の上の行に出す（横に置くと 342 幅で入らない）。::before が改行の役 */
  .price-main::before { content: ""; order: -1; flex-basis: 100%; }
  .price-plan { order: -2; margin: 0 0 8px; font-size: 12px; padding: 3px 10px; }
  .price-sub { font-size: 14px; }
  .checks { gap: 8px; padding-top: 16px; }
  .checks li { gap: 8px; font-size: 14px; }
  .checks li::before { font-size: 15px; line-height: calc(14px * 1.7); }
  .price-note { margin-top: 32px; font-size: 12px; }

  /* よくある質問 */
  .faq-list { margin-top: 32px; }
  .faq-list summary { font-size: 15px; padding: 20px 0; gap: 16px; }
  .faq-list details[open] summary { padding-bottom: 10px; }
  .faq-list summary::after { width: 28px; height: 28px; }
  .faq-list details p { padding: 0 0 20px; font-size: 14px; }

  /* 締め */
  .closing-inner { padding: 72px 24px; gap: 20px; }
  .closing-circle { top: 40px; width: 520px; }
  .closing-goat { width: 170px; filter: drop-shadow(0 12px 16px rgba(120, 41, 0, .3)); }
  .closing-title { font-size: 34px; }
  .closing-cta { gap: 10px; }
  .closing-cta .badge { --bh: 42px; }
  .closing-cta .hero-note { font-size: 11px; }
  .closing-mark { height: 30px; }

  /* フッター */
  .lp-footer-inner { padding: 32px 24px 36px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .lp-footer-links { gap: 14px; }
  .lp-footer ul { gap: 6px 18px; }
  .lang-switch ul { gap: 6px 12px; }
}
