/* 公開LP(/lp・/lp/:slug)専用。
 *
 * 業務画面(application.css)とは見せ方が別物なので、ここに閉じて書く。
 * すべてのセレクタを .lp(body のクラス)配下にして、運営画面・企業ポータルには一切効かせない。
 *
 * サービスごとの色は --lp-accent ただ 1 つ。body に敷いて、カード単位で上書きする。 */

.lp {
  --lp-accent: #2563eb;
  --lp-ink: #16202e;
  --lp-muted: #5a6779;
  --lp-line: #e3e8ef;
  --lp-tint: #f6f8fb;
  margin: 0;
  background: #fff;
  color: var(--lp-ink);
  font-family: var(--font-body, system-ui, sans-serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3 { font-family: var(--font-display, var(--font-body, system-ui, sans-serif)); line-height: 1.4; }

.lp-wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.lp-wrap--narrow { width: min(760px, calc(100% - 48px)); }
.lp-center { text-align: center; margin-top: 28px; }

/* ---- ヘッダー ---- */
.lp-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lp-line);
}
.lp-header__inner {
  width: min(1080px, calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.lp-header__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-header__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.lp-header__brand b { display: block; font-size: 1rem; letter-spacing: .04em; }
.lp-header__brand small { display: block; font-size: .68rem; color: var(--lp-muted); }
.lp-header__nav { display: flex; align-items: center; gap: 20px; font-size: .86rem; }
/* ボタン(.lp-btn)は自前の色を持っているので、ここの文字色では塗り替えない
   (a だけのセレクタのほうが .lp-btn--primary より強く、白抜きの文字が負けるため) */
.lp-header__nav a:not(.lp-btn) { text-decoration: none; color: var(--lp-muted); }
.lp-header__nav a:not(.lp-btn):hover { color: var(--lp-accent); }
.lp-header__login { font-weight: 700; }
.lp-header__nav a.lp-header__login:not(.lp-btn) { color: var(--lp-ink); }

/* ---- ボタン ---- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid var(--lp-line); background: #fff; color: var(--lp-ink);
  font-size: .95rem; font-weight: 700; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16, 32, 56, .12); }
.lp-btn--primary { background: var(--lp-accent); border-color: var(--lp-accent); color: #fff; }
.lp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.lp-btn--sm { min-height: 38px; padding: 0 16px; font-size: .84rem; }

/* ---- ヒーロー ---- */
.lp-hero { padding: 72px 0 64px; background:
  radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--lp-accent) 16%, transparent), transparent),
  linear-gradient(180deg, #fff, var(--lp-tint)); }
.lp-hero__eyebrow {
  margin: 0 0 12px; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  color: var(--lp-accent); text-transform: uppercase;
}
.lp-hero__title { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: .01em; }
.lp-hero__subtitle { margin: 6px 0 0; color: var(--lp-muted); }
.lp-hero__catch { margin: 20px 0 0; font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 800; color: var(--lp-accent); }
.lp-hero__lead { margin: 16px 0 0; max-width: 62ch; font-size: 1.02rem; color: var(--lp-muted); }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lp-hero__head { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.lp-hero__head .product-logo { border-radius: 16px; }
.lp-breadcrumb { display: flex; gap: 8px; font-size: .8rem; color: var(--lp-muted); margin-bottom: 20px; }
.lp-breadcrumb a { color: var(--lp-muted); }

/* ---- セクション ---- */
.lp-section { padding: 72px 0; }
.lp-section--tint { background: var(--lp-tint); }
.lp-h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.lp-h2::after {
  content: ""; display: block; width: 44px; height: 4px; margin-top: 12px;
  border-radius: 999px; background: var(--lp-accent);
}
.lp-section__lead { margin: 20px 0 36px; max-width: 62ch; color: var(--lp-muted); }
.lp-prose { margin: 20px 0 0; color: var(--lp-muted); }
.lp-group-title { margin: 44px 0 16px; font-size: 1rem; color: var(--lp-muted); letter-spacing: .06em; }

/* ---- カード ---- */
.lp-cards { display: grid; gap: 20px; }
.lp-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lp-cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.lp-card {
  background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 24px;
  box-shadow: 0 2px 10px rgba(16, 32, 56, .04);
}
.lp-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.lp-card p { margin: 0; color: var(--lp-muted); font-size: .94rem; }
.lp-card--numbered { display: flex; gap: 14px; align-items: flex-start; }
.lp-card__num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 900;
  background: color-mix(in srgb, var(--lp-accent) 14%, #fff); color: var(--lp-accent);
}

/* サービスのカード(一覧・ほかのサービス) */
.lp-service-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--lp-line); border-top: 4px solid var(--lp-accent);
  border-radius: 18px; padding: 22px; text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.lp-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lp-accent) 18%, transparent);
}
.lp-service-card__head { display: flex; align-items: center; gap: 12px; }
.lp-service-card__head .product-logo { border-radius: 12px; }
.lp-service-card__name b { display: block; font-size: 1.05rem; letter-spacing: .04em; }
.lp-service-card__name small { display: block; font-size: .74rem; color: var(--lp-muted); }
.lp-service-card__catch { display: block; margin: 0; color: var(--lp-muted); font-size: .92rem; }
.lp-service-card__more { margin-top: auto; font-size: .84rem; font-weight: 800; color: var(--lp-accent); }
.lp-service-card__more::after { content: " →"; }

.lp-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--lp-line); background: #fff;
  font-size: .72rem; font-weight: 800; color: var(--lp-muted);
}
.lp-pill--category { border-color: color-mix(in srgb, var(--lp-accent) 40%, var(--lp-line)); color: var(--lp-accent); }

/* ---- こんな課題に ---- */
.lp-checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-checklist li {
  position: relative; padding: 16px 20px 16px 52px;
  background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; font-weight: 700;
}
.lp-checklist li::before {
  content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lp-accent); color: #fff; font-size: .72rem;
}

/* ---- 使い方の流れ / 導入の流れ ---- */
.lp-scenes, .lp-steps {
  display: grid; gap: 20px; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  counter-reset: lp-scene;
}
.lp-scenes li, .lp-steps li {
  position: relative; background: #fff; border: 1px solid var(--lp-line);
  border-radius: 18px; padding: 24px;
}
.lp-scenes li { counter-increment: lp-scene; padding-top: 44px; }
.lp-scenes li::before {
  content: counter(lp-scene); position: absolute; top: 18px; left: 24px;
  font-size: 1.6rem; font-weight: 900; color: color-mix(in srgb, var(--lp-accent) 35%, #fff);
}
.lp-scenes h3, .lp-steps h3 { margin: 0 0 8px; font-size: 1rem; }
.lp-scenes p, .lp-steps p { margin: 0; color: var(--lp-muted); font-size: .92rem; }
.lp-steps__num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px;
  border-radius: 50%; background: var(--lp-accent); color: #fff; font-size: .8rem; font-weight: 900;
}

/* ---- よくある質問 ---- */
.lp-faq { display: grid; gap: 12px; }
.lp-faq__item { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 4px 20px; }
.lp-faq__item summary {
  cursor: pointer; padding: 16px 0; font-weight: 800; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; color: var(--lp-accent); font-size: 1.2rem; font-weight: 900; }
.lp-faq__item[open] summary::after { content: "−"; }
.lp-faq__item p { margin: 0 0 18px; color: var(--lp-muted); font-size: .94rem; }

/* ---- 最後の一押し ---- */
.lp-cta {
  padding: 72px 0; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--lp-accent), color-mix(in srgb, var(--lp-accent) 55%, #111827));
}
.lp-cta h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.lp-cta p { margin: 0 auto; max-width: 54ch; opacity: .92; }
.lp-cta .lp-hero__cta { justify-content: center; }
.lp-cta .lp-btn--primary { background: #fff; border-color: #fff; color: var(--lp-accent); }

/* ---- フッター ---- */
.lp-footer { background: #101a28; color: #d6dde8; padding: 48px 0 40px; }
.lp-footer__inner { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.lp-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0; font-size: .86rem; }
.lp-footer__links a { color: #aab6c6; text-decoration: none; }
.lp-footer__links a:hover { color: #fff; }
.lp-footer__copy { margin: 0; font-size: .78rem; color: #76839a; }

/* ---- スマホ(〜720px) ---- */
@media (max-width: 720px) {
  .lp-wrap, .lp-wrap--narrow, .lp-header__inner, .lp-footer__inner { width: calc(100% - 32px); }
  .lp-hero { padding: 48px 0 44px; }
  .lp-section, .lp-cta { padding: 48px 0; }
  /* ヘッダーは「ログイン」と「相談する」だけ残す(横に溢れさせない) */
  .lp-header__nav { gap: 12px; }
  .lp-header__nav a:not(.lp-header__login):not(.lp-btn) { display: none; }
  .lp-header__brand small { display: none; }
  .lp-hero__cta .lp-btn { width: 100%; }
  .lp-cards { grid-template-columns: minmax(0, 1fr); }
  .lp-scenes, .lp-steps { grid-template-columns: minmax(0, 1fr); }
  .lp-hero__head { gap: 12px; }
}

/* =====================================================================
 * 作り込んだ LP(landing_pages/_rich)。config/landing_pages.yml に problems と
 * solutions を書いたサービスだけがここを通る。
 *
 * 色はサービスのブランド 3 色(--lp-brand / --lp-brand-deep / --lp-brand-accent)を
 * .lp-rich のインラインスタイルで受け取る。共通部分(導入の流れ・FAQ・CTA)は
 * 従来どおり --lp-accent なので、ここでは --lp-accent を上書きしない。
 * ===================================================================== */
.lp-rich {
  --lp-brand: var(--lp-accent);
  --lp-brand-deep: var(--lp-accent);
  --lp-brand-accent: #ffd95c;
  --lp-brand-tint: color-mix(in srgb, var(--lp-brand) 8%, #fff);
  --lp-rainbow: linear-gradient(90deg, #ff5f6d, #ffa94d, #ffd95c, #7ed957, #5cc9ff, #7b8cff, #c77dff);
}
.lp-rich-eyebrow {
  margin: 0 0 6px; font-size: .74rem; font-weight: 900; letter-spacing: .22em;
  text-transform: uppercase; color: var(--lp-brand-deep);
}
.lp-rich-btn { background: var(--lp-brand); border-color: var(--lp-brand); }
.lp-rich-btn:hover { background: var(--lp-brand-deep); border-color: var(--lp-brand-deep); }

/* ---- ヒーロー: 左に文言、右にキャプチャを浮かせる ---- */
.lp-rich-hero {
  position: relative; overflow: hidden; padding: 56px 0 72px;
  background:
    radial-gradient(760px 420px at 85% 10%, color-mix(in srgb, var(--lp-brand) 18%, transparent), transparent 70%),
    radial-gradient(520px 320px at 5% 90%, color-mix(in srgb, var(--lp-brand-accent) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #fff, var(--lp-brand-tint));
}
.lp-rich-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--lp-rainbow); z-index: 1; }
/* 薄い点のテクスチャ。右上から左下へ消えていく(文言の上には載せない) */
.lp-rich-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--lp-brand) 26%, transparent) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(640px 480px at 80% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(640px 480px at 80% 30%, #000 0%, transparent 70%);
}
.lp-rich-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-rich-hero__title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); letter-spacing: .02em; }
.lp-rich-hero__catch {
  margin: 24px 0 0; font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; line-height: 1.5; color: var(--lp-brand-deep);
}
/* キャッチはブランド 2 色のグラデーション文字(切り抜きが効かない環境は上の単色のまま) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lp-rich-hero__catch {
    display: inline-block; /* 行末の余白まで塗らない */
    background: linear-gradient(100deg, var(--lp-brand-deep) 0%, var(--lp-brand) 55%, color-mix(in srgb, var(--lp-brand) 60%, var(--lp-brand-accent)) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.lp-rich-hero__fits { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-rich-hero__fits li {
  padding: 6px 12px 6px 30px; position: relative; border-radius: 999px;
  background: #fff; border: 1px solid color-mix(in srgb, var(--lp-brand) 30%, var(--lp-line));
  font-size: .8rem; font-weight: 700; color: var(--lp-ink);
}
.lp-rich-hero__fits li::before {
  content: "✓"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lp-brand); color: #fff; font-size: .6rem;
}
.lp-rich-hero__shot {
  margin: 0; padding: 4px; border-radius: 22px; background: var(--lp-rainbow);
  box-shadow: 0 30px 60px color-mix(in srgb, var(--lp-brand) 28%, transparent), 0 8px 20px rgba(16, 32, 56, .12);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  animation: lp-rich-float 7s ease-in-out infinite;
}
.lp-rich-hero__shot img { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; }
@keyframes lp-rich-float {
  0%, 100% { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .lp-rich-hero__shot { animation: none; } }

/* ---- 主な機能(service_intros.yml の features)を 4 本の柱として ---- */
.lp-rich-pillars { padding: 0 0 56px; background: var(--lp-brand-tint); }
.lp-rich-pillars__list {
  display: grid; gap: 16px; margin: -36px 0 0; padding: 0; list-style: none; position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
/* 色つきの帯の上に置くので、半透明の白にぼかし(ガラス)で浮かせる */
.lp-rich-pillars__list li {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85); border-radius: 16px; padding: 20px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--lp-brand) 12%, transparent), inset 0 1px 0 #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.lp-rich-pillars__list p { margin: 0; font-size: .92rem; font-weight: 700; line-height: 1.6; }
.lp-rich-pillars__num {
  font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
  font-size: 1.1rem; font-weight: 900; color: var(--lp-brand);
}
.lp-rich-pillars__summary { margin: 32px auto 0; max-width: 70ch; color: var(--lp-muted); font-size: .98rem; }

/* ---- 課題 ---- */
.lp-rich-problem { position: relative; padding-top: 28px; }
.lp-rich-problem__num {
  display: block; margin-bottom: 8px; font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
  font-size: 2rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--lp-brand) 30%, #fff);
}
.lp-rich-problem h3 { font-size: 1.1rem; line-height: 1.5; }

/* ---- 解決: 文言と画面を交互に ---- */
.lp-rich-solutions { background: linear-gradient(180deg, #fff, var(--lp-brand-tint) 30%, var(--lp-brand-tint) 70%, #fff); }
.lp-rich-solutions__list { display: grid; gap: 72px; margin-top: 44px; }
.lp-rich-solution { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
/* 記事と記事のあいだ(gap の 72px)を、ブランド色の細い縦線でつなぐ */
.lp-rich-solution + .lp-rich-solution::before {
  content: ""; position: absolute; left: 50%; top: -72px; width: 2px; height: 72px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--lp-brand) 45%, transparent) 30%, color-mix(in srgb, var(--lp-brand) 45%, transparent) 70%, transparent);
}
.lp-rich-solution--flip .lp-rich-solution__text { order: 2; }
.lp-rich-solution--flip .lp-rich-solution__shot { order: 1; }
/* スマホ画面(screen.frame: phone)は文言を広く、画面は狭く中央に */
.lp-rich-solution--phone { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.lp-rich-solution--phone .lp-rich-solution__shot .lp-phone { max-width: 320px; }
.lp-rich-solution__num {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--lp-brand-accent); color: #5c4a00; font-weight: 900; letter-spacing: .06em;
  font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
}
.lp-rich-solution__text h3 { margin: 16px 0 10px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; }
.lp-rich-solution__text p { margin: 0; color: var(--lp-muted); }
.lp-rich-solution__shot { margin: 0; }
.lp-rich-solution__shot img {
  display: block; width: 100%; height: auto; border-radius: 18px; background: #fff;
  border: 1px solid color-mix(in srgb, var(--lp-brand) 22%, var(--lp-line));
  box-shadow: 0 24px 48px color-mix(in srgb, var(--lp-brand) 18%, transparent), 0 4px 12px rgba(16, 32, 56, .08);
}
.lp-rich-solution__shot figcaption { margin: 12px 0 0; text-align: center; font-size: .8rem; font-weight: 700; color: var(--lp-muted); }
/* スマホ枠の中の img は枠が飾るので、横長用の縁と影は外す */
.lp-rich-solution__shot .lp-phone img { border: 0; box-shadow: none; }

/* ---- 導入後の変化 ---- */
.lp-rich-after__item { position: relative; padding-left: 64px; }
.lp-rich-after__item::before {
  content: "✓"; position: absolute; left: 22px; top: 24px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lp-brand), var(--lp-brand-deep)); color: #fff; font-size: .8rem; font-weight: 900;
}

/* ---- ほかの機能 ---- */
.lp-rich-extras { display: grid; gap: 14px; margin: 24px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.lp-rich-extras__item { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 16px 18px; }
.lp-rich-extras__item dt { font-weight: 800; font-size: .95rem; }
.lp-rich-extras__item dt::before { content: "●"; margin-right: 8px; font-size: .6rem; color: var(--lp-brand); vertical-align: middle; }
.lp-rich-extras__item dd { margin: 4px 0 0; color: var(--lp-muted); font-size: .88rem; }

/* icon を持つカードが 1 つでもあれば、ベント型(大小のカードを敷き詰める)に。
   列数はメディアクエリで固定する(auto-fit だと span 2 が列数を超えてはみ出すため) */
.lp-rich-extras--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-rich-extras--bento .lp-rich-extras__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px;
  box-shadow: 0 2px 10px rgba(16, 32, 56, .04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.lp-rich-extras--bento .lp-rich-extras__item:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--lp-brand) 35%, var(--lp-line));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--lp-brand) 14%, transparent);
}
.lp-rich-extras__item--wide { grid-column: span 2; }
.lp-rich-extras__item--icon dt::before { content: none; }
.lp-rich-extras__body { min-width: 0; }
.lp-rich-extras__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
  background: color-mix(in srgb, var(--lp-brand) 14%, #fff); color: var(--lp-brand-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lp-brand) 22%, transparent);
}
/* 絵文字ではなく 1〜2 文字(英字や漢字)のときの見た目 */
.lp-rich-extras__icon { font-family: var(--font-display, var(--font-body, system-ui, sans-serif)); font-weight: 900; }

/* ---- 数字の帯(stats) ---- */
.lp-rich-stats { padding: 40px 0 8px; }
.lp-rich-stats__list {
  display: grid; margin: 0; padding: 8px 0; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line);
}
.lp-rich-stats__item { padding: 20px 24px; border-left: 1px solid var(--lp-line); }
.lp-rich-stats__item:first-child { border-left: 0; }
.lp-rich-stats__item dt { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lp-rich-stats__value {
  font-family: var(--font-display, var(--font-body, system-ui, sans-serif));
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1; letter-spacing: -.01em;
  color: var(--lp-brand);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lp-rich-stats__value {
    background: linear-gradient(135deg, var(--lp-brand-deep), var(--lp-brand));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.lp-rich-stats__label { font-weight: 800; font-size: .95rem; color: var(--lp-ink); }
.lp-rich-stats__item dd { margin: 6px 0 0; font-size: .82rem; color: var(--lp-muted); }

/* ---- スマホの枠(frame: phone)。CSS だけで、画像は使わない ----
   縦長キャプチャ(780x1688)を黒い縁・角丸・ダイナミックアイランドで囲む。
   幅は置く場所(ヒーロー・解決・扇)が決め、ここでは「幅いっぱい」にしておく。 */
.lp-phone {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto; padding: 11px;
  border-radius: 46px; background: #15181f;
  box-shadow:
    inset 0 0 0 1.5px #3b404c,                                       /* 縁のハイライト */
    0 0 0 1px rgba(0, 0, 0, .35),
    0 30px 60px color-mix(in srgb, var(--lp-brand) 28%, transparent),
    0 8px 20px rgba(16, 32, 56, .18);
}
/* 側面のボタン(右に電源、左に音量) */
.lp-phone::before, .lp-phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2e38;
}
.lp-phone::before { right: -3px; top: 22%; height: 13%; }
.lp-phone::after { left: -3px; top: 18%; height: 7%; box-shadow: 0 calc(100% + 10px) 0 0 #2a2e38, 0 calc(200% + 20px) 0 0 #2a2e38; }
.lp-phone__island {
  position: absolute; z-index: 2; left: 50%; top: 24px; transform: translateX(-50%);
  width: 27%; height: 24px; border-radius: 999px; background: #15181f;
}
.lp-phone img { display: block; width: 100%; height: auto; border-radius: 36px; background: #fff; }

/* ヒーローの 1 枚がスマホのとき: 虹の縁と影は枠に任せ、幅を絞って傾ける */
.lp-rich-hero__shot--phone {
  padding: 0; background: none; box-shadow: none; border-radius: 0;
  width: min(100%, 320px); margin: 0 auto;
  transform: perspective(1400px) rotateY(-10deg) rotateX(3deg) rotate(-2deg);
  animation-name: lp-rich-float-phone;
}
.lp-rich-hero__shot--phone img { border-radius: 36px; }
@keyframes lp-rich-float-phone {
  0%, 100% { transform: perspective(1400px) rotateY(-10deg) rotateX(3deg) rotate(-2deg) translateY(0); }
  50% { transform: perspective(1400px) rotateY(-10deg) rotateX(3deg) rotate(-2deg) translateY(-12px); }
}

/* ヒーローに 2〜3 枚(hero_shots): 同じマスに重ね、1 枚目を手前・大きく、残りを左右の後ろへ。
   figure 側で位置を決め、浮く動きは中の .lp-phone に付ける(transform がぶつからないように) */
.lp-rich-hero__fan { display: grid; justify-items: center; padding: 12px 0; }
.lp-rich-hero__fan .lp-rich-hero__shot {
  grid-area: 1 / 1; width: min(100%, 300px); margin: 0; animation: none;
  transform: none; transition: transform .3s ease;
}
.lp-rich-hero__fan .lp-rich-hero__shot:nth-child(1) { z-index: 3; }
.lp-rich-hero__fan .lp-rich-hero__shot:nth-child(2) { z-index: 2; transform: translateX(-44%) translateY(6%) rotate(-8deg) scale(.82); filter: brightness(.96); }
.lp-rich-hero__fan .lp-rich-hero__shot:nth-child(3) { z-index: 1; transform: translateX(44%) translateY(6%) rotate(8deg) scale(.82); filter: brightness(.96); }
/* 2 枚のときは全体が中央に来るよう、1 枚目を少し右、2 枚目を左へ */
.lp-rich-hero__fan--2 .lp-rich-hero__shot:nth-child(1) { transform: translateX(16%) rotate(2deg); }
.lp-rich-hero__fan--2 .lp-rich-hero__shot:nth-child(2) { transform: translateX(-34%) translateY(6%) rotate(-8deg) scale(.82); }
.lp-rich-hero__fan .lp-phone { animation: lp-rich-float-y 7s ease-in-out infinite; }
.lp-rich-hero__fan .lp-rich-hero__shot:nth-child(2) .lp-phone { animation-delay: -2.3s; }
.lp-rich-hero__fan .lp-rich-hero__shot:nth-child(3) .lp-phone { animation-delay: -4.6s; }
/* 後ろの 2 枚は影を軽く(重なると濁るため) */
.lp-rich-hero__fan .lp-rich-hero__shot:not(:nth-child(1)) .lp-phone { box-shadow: inset 0 0 0 1.5px #3b404c, 0 0 0 1px rgba(0, 0, 0, .35), 0 16px 36px rgba(16, 32, 56, .22); }
@keyframes lp-rich-float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .lp-rich-hero__fan .lp-phone { animation: none; } }

/* ---- スクロールで現れる(landing.js が <html> に lp-js、要素に is-in を付ける) ----
   JS が無い・動きを減らす設定のときはこの塊が効かないので、最初から全部見える。 */
@media (prefers-reduced-motion: no-preference) {
  html.lp-js .lp [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.lp-js .lp [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---- スマホ幅だけの固定 CTA(ヒーローを過ぎたら landing.js が is-visible を付ける) ---- */
.lp-rich-stickycta { display: none; }
@media (max-width: 860px) {
  .lp-rich-stickycta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--lp-line); box-shadow: 0 -8px 24px rgba(16, 32, 56, .08);
    transform: translateY(110%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .lp-rich-stickycta.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
  .lp-rich-stickycta .lp-btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: .9rem; }
  .lp-rich-stickycta .lp-btn:not(.lp-btn--primary) { flex: 0 0 auto; padding: 0 18px; }
  /* バーの分だけ本文の下に余白を足し、フッターが隠れないように(JS があるときだけ出るバーなので同じ条件で) */
  html.lp-js body.lp:has(.lp-rich-stickycta) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- スマホ(〜860px): 画面は文言の下に 1 列で ---- */
@media (max-width: 860px) {
  .lp-rich-hero { padding: 40px 0 48px; }
  /* 1 列になると文言の上に点が載るので、点は下(画面のあたり)だけに */
  .lp-rich-hero::after {
    -webkit-mask-image: radial-gradient(360px 320px at 50% 100%, #000 0%, transparent 70%);
    mask-image: radial-gradient(360px 320px at 50% 100%, #000 0%, transparent 70%);
  }
  .lp-rich-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lp-rich-hero__shot { transform: none; animation: none; }
  .lp-rich-hero__shot--phone { width: min(100%, 250px); transform: none; }
  .lp-rich-hero__fan .lp-rich-hero__shot { width: min(100%, 220px); }
  .lp-rich-hero__fan .lp-rich-hero__shot:nth-child(2) { transform: translateX(-35%) translateY(6%) rotate(-8deg) scale(.8); }
  .lp-rich-hero__fan .lp-rich-hero__shot:nth-child(3) { transform: translateX(35%) translateY(6%) rotate(8deg) scale(.8); }
  .lp-rich-hero__fan--2 .lp-rich-hero__shot:nth-child(1) { transform: translateX(14%) rotate(2deg); }
  .lp-rich-hero__fan--2 .lp-rich-hero__shot:nth-child(2) { transform: translateX(-30%) translateY(6%) rotate(-8deg) scale(.8); }
  .lp-phone { padding: 9px; border-radius: 38px; }
  .lp-phone img { border-radius: 30px; }
  .lp-phone__island { top: 18px; height: 20px; }
  .lp-rich-pillars__list { margin-top: 0; }
  .lp-rich-pillars { padding-top: 24px; }
  .lp-rich-stats { padding-top: 32px; }
  .lp-rich-stats__item { padding: 16px 18px; }
  .lp-rich-solutions__list { gap: 48px; }
  .lp-rich-solution, .lp-rich-solution--phone { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-rich-solution + .lp-rich-solution::before { content: none; }
  .lp-rich-solution--flip .lp-rich-solution__text { order: 1; }
  .lp-rich-solution--flip .lp-rich-solution__shot { order: 2; }
  .lp-rich-solution--phone .lp-rich-solution__shot .lp-phone { max-width: 250px; }
  .lp-rich-extras--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .lp-rich-extras--bento { grid-template-columns: minmax(0, 1fr); }
  .lp-rich-extras__item--wide { grid-column: auto; }
  .lp-rich-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-rich-stats__item:nth-child(odd) { border-left: 0; }
  .lp-rich-stats__item:nth-child(n + 3) { border-top: 1px solid var(--lp-line); }
}
