/* =========================================================
   SP FRAME LP — PCでは「中央にスマホ幅の本文＋左右固定パネル」
   スマホではそのまま1カラム。
   色は <html data-skin="pop|mint|berry|navy|night"> で切替。
   ========================================================= */

:root {
  --c-accent: #ff6a1a;            /* 強調色（見出しの一部・数字・CTA） */
  --c-accent-2: #ff3d2e;          /* グラデの終点 */
  --c-ink: #1d1a18;               /* 黒帯・文字 */
  --c-paper: #f7f6f3;             /* 本文カラム背景 */
  --c-outer: #e9e8e5;             /* PCの外側背景 */
  --c-line: rgb(29 26 24 / .08);  /* 方眼の線 */
  --c-hl: #d4ff3a;                /* マーカー色（実績の数字など） */
  --col: 480px;                   /* 中央カラム幅 */
  --f-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --f-en: "Inter", "Noto Sans JP", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
[data-skin="mint"]  { --c-accent: #12b886; --c-accent-2: #0ca678; --c-hl: #ffe066; }
[data-skin="berry"] { --c-accent: #ff4d8d; --c-accent-2: #e8336f; --c-hl: #bff4ff; --c-paper: #fff8fa; }
[data-skin="navy"]  { --c-accent: #b8913f; --c-accent-2: #9a7630; --c-ink: #14213d; --c-paper: #f8f6f0; --c-hl: #f3e3b8; }
[data-skin="night"] { --c-accent: #b6ff3b; --c-accent-2: #3bffd0; --c-ink: #0b0b10; --c-paper: #f4f4f6; --c-hl: #ff4fa3; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--c-ink); font: 400 15px/1.9 var(--f-sans); -webkit-font-smoothing: antialiased;
  background-color: var(--c-outer);
  background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 40px 40px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sf-grid-w { background-color: var(--c-paper); background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px); background-size: 20px 20px; }
.sf-grid-d { background-color: var(--c-ink); color: #fff; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 20px 20px; }
.sf-accent { color: var(--c-accent); }
.sf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- PCレイアウト：左右固定＋中央カラム ---------- */
.sf-shell { display: grid; grid-template-columns: 1fr var(--col) 1fr; min-height: 100vh; }
.sf-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 4vw, 64px); }
.sf-side--l { align-items: flex-end; text-align: right; gap: 24px; }
.sf-side--r { align-items: flex-start; }
.sf-main { background: var(--c-paper); border-inline: 2px solid var(--c-ink); min-width: 0; overflow-x: clip; }
/* タブレット幅：右INDEXを畳み、左パネル＋カラムの2列 */
@media (max-width: 1080px) { .sf-shell { grid-template-columns: 1fr var(--col); } .sf-side--r { display: none; } }
@media (max-width: 760px) { .sf-shell { display: block; } .sf-side { display: none; } .sf-main { border: 0; } }

.sf-side__catch { font: 700 clamp(18px, 1.6vw, 24px)/1.6 var(--f-serif); margin: 0; }
.sf-side__img { width: min(320px, 100%); }
.sf-index__title { font: 900 italic 28px/1 var(--f-en); letter-spacing: -.02em; margin: 0 0 24px; }
.sf-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: idx; }
.sf-index a { display: flex; gap: 14px; align-items: baseline; text-decoration: none; color: rgb(29 26 24 / .45); font-weight: 700; font-size: 14px;
  transition: color .3s, transform .3s var(--ease); }
.sf-index a::before { counter-increment: idx; content: counter(idx, decimal-leading-zero); font: 500 11px/1 var(--f-mono); }
.sf-index a[aria-current="true"] { color: var(--c-ink); transform: translateX(6px); }
.sf-index a[aria-current="true"]::before { color: var(--c-accent); }

/* ---------- ロゴ（黒箱＋2色文字） ---------- */
.sf-logo { display: inline-block; background: var(--c-ink); color: #fff; border: 2px solid var(--c-accent); border-radius: 10px;
  padding: 10px 20px; font: 900 italic clamp(22px, 2.6vw, 40px)/1 var(--f-en); letter-spacing: -.03em; text-decoration: none; }
.sf-logo b { color: var(--c-accent); font-weight: 900; }

/* ---------- ヘッダー（カラム内sticky）＋タグ流し ---------- */
.sf-header { position: sticky; top: 0; z-index: 30; padding: 12px 12px 0; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.sf-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--c-ink); color: #fff;
  border: 2px solid var(--c-accent); border-radius: 16px; padding: 10px 10px 10px 16px; }
.sf-header__logo { font: 900 italic 22px/1 var(--f-en); letter-spacing: -.03em; text-decoration: none; color: #fff; }
.sf-header__logo b { color: var(--c-accent); }
.sf-chips { display: flex; gap: 8px; padding: 12px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sf-chips__track { display: flex; gap: 8px; width: max-content; animation: sf-x 28s linear infinite; }
.sf-chip { flex: none; border: 2px solid var(--c-ink); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 13px; background: #fff; white-space: nowrap; }

/* ---------- ボタン ---------- */
.sf-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; max-width: 440px; margin-inline: auto; padding: 14px 56px; border-radius: 999px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2)); border: 3px solid #fff; outline: 2px solid var(--c-accent);
  box-shadow: 0 10px 30px -8px var(--c-accent); font-weight: 900; font-size: 18px; line-height: 1.3; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s; }
.sf-btn small { font-size: 11px; font-weight: 700; }
.sf-btn::after { content: "›"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: var(--c-accent-2); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.sf-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px var(--c-accent); }
.sf-btn:focus-visible { outline: 3px solid var(--c-ink); }
.sf-btn--sm { width: auto; max-width: none; margin: 0; padding: 8px 16px; font-size: 13px; border-width: 0; outline: 0; box-shadow: none; flex-direction: row; }
.sf-btn--sm::after { display: none; }

/* ---------- セクション共通 ---------- */
.sf-sec { padding: 72px 20px; position: relative; }
.sf-eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; font: 900 italic 12px/1 var(--f-en); letter-spacing: .14em; color: var(--c-accent); margin: 0 0 14px; }
.sf-eyebrow::before, .sf-eyebrow::after { content: ""; width: 18px; height: 2px; background: currentColor; }
.sf-h2 { text-align: center; font-weight: 900; font-size: clamp(22px, 6vw, 28px); line-height: 1.5; margin: 0 0 32px; }
.sf-h2 .sf-en { font: 900 italic 1.1em/1 var(--f-en); letter-spacing: -.02em; }

/* 黒帯見出し（行ごとに帯） */
.sf-bars { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 28px; }
.sf-bars > span { background: var(--c-ink); color: #fff; font-weight: 900; font-size: clamp(18px, 5.6vw, 26px); line-height: 1.35; padding: 6px 14px; }
.sf-bars > span em { font-style: normal; color: var(--c-accent); }
.sf-bars--left { align-items: flex-start; }

/* ---------- FV ---------- */
.sf-fv { padding: 8px 12px 24px; }
.sf-fv__card { position: relative; border: 2px solid var(--c-ink); border-radius: var(--r) var(--r) var(--r) var(--r); overflow: hidden; }
.sf-fv__inner { padding: 28px 18px 0; min-height: 520px; position: relative; }
.sf-fv__lead { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.sf-fv__title { margin: 0; font: 900 clamp(32px, 9.5vw, 44px)/1.25 var(--f-sans); letter-spacing: -.01em; }
.sf-fv__title .sf-big { font-size: 1.45em; color: var(--c-accent); }
.sf-fv__title .sf-serif { font-family: var(--f-serif); }
.sf-fv__visual { position: absolute; right: -6px; bottom: 0; width: 58%; }
.sf-fv__tags { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 140px; padding-bottom: 24px; }
.sf-fv__tags span { background: var(--c-ink); color: #fff; font-weight: 900; font-size: 17px; padding: 4px 10px; }
.sf-fv__tags em { font-style: normal; color: var(--c-accent); }
.sf-fv__foot { display: flex; justify-content: space-between; align-items: center; background: var(--c-ink); color: #fff; padding: 14px 16px; }
.sf-fv__foot .sf-header__logo { font-size: 32px; }
.sf-fv__foot small { font: 500 10px/1.5 var(--f-mono); text-align: right; opacity: .8; }
.sf-fv .sf-btn { margin-top: 20px; }

/* ---------- ウィンドウ風カード（ターミナル／ファイル） ---------- */
.sf-win { border: 2px solid var(--c-ink); border-radius: 14px; overflow: hidden; background: #fff; }
.sf-win__bar { display: flex; align-items: center; gap: 6px; background: var(--c-ink); color: #fff; padding: 8px 12px; font: 500 11px/1 var(--f-mono); }
.sf-win__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.sf-win__bar i:nth-child(2) { background: #febc2e; } .sf-win__bar i:nth-child(3) { background: #28c840; margin-right: 6px; }
.sf-win__body { padding: 14px 16px; position: relative; }
.sf-win--term { background: var(--c-ink); color: #fff; max-width: 250px; position: relative; z-index: 2; margin-top: 20px; }
.sf-win--term .sf-win__body { font: 500 11px/1.8 var(--f-mono); padding-top: 0; }
.sf-win--term .sf-ok { color: var(--c-hl); }
.sf-caret { display: inline-block; width: 7px; height: 12px; background: var(--c-hl); vertical-align: middle; animation: sf-blink 1s steps(1) infinite; }
.sf-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.sf-check li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border: 2px solid var(--c-ink); border-radius: 4px; font-size: 11px; }
.sf-metrics { display: grid; gap: 4px; font-size: 13px; }
.sf-metrics div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--c-line); padding: 4px 0; }
.sf-metrics b { font: 900 16px/1 var(--f-en); }
.sf-metrics s { color: rgb(29 26 24 / .4); font-size: 11px; margin-left: 6px; text-decoration: none; }
.sf-spark { width: 100%; height: 56px; color: var(--c-accent); margin-top: 8px; }

/* ---------- テロップ帯 ---------- */
.sf-ticker { overflow: hidden; background: var(--c-accent); color: #fff; padding: 10px 0; border-block: 2px solid var(--c-ink); }
.sf-ticker--dark { background: var(--c-ink); }
.sf-ticker__track { display: flex; gap: 28px; width: max-content; animation: sf-x 22s linear infinite; font: 900 italic 18px/1 var(--f-en); white-space: nowrap; }
.sf-ticker__track span::after { content: "◆"; margin-left: 28px; font-size: .6em; vertical-align: middle; }

/* ---------- 横スクロールカード（メンバー／お客様の声） ---------- */
.sf-slider { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 6px 20px 10px; scrollbar-width: none; }
.sf-slider::-webkit-scrollbar { display: none; }
.sf-slider > * { flex: 0 0 78%; scroll-snap-align: center; }
.sf-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.sf-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: rgb(29 26 24 / .2); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.sf-dots button[aria-current="true"] { width: 22px; background: var(--c-ink); }
.sf-dots .sf-arrow { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-ink); background: #fff; color: var(--c-ink); cursor: pointer; font-size: 18px; line-height: 1; margin-inline: 8px; }
.sf-member { border: 2px solid var(--c-ink); border-radius: 18px; overflow: hidden; background: var(--c-accent); color: #fff; }
.sf-member__tag { font-weight: 900; font-size: 18px; padding: 14px 16px 0; }
.sf-member__img { aspect-ratio: 1; display: grid; place-items: center; }
.sf-member__foot { background: #fff; color: var(--c-ink); text-align: center; padding: 10px; border-top: 2px solid var(--c-ink); }
.sf-member__foot small { display: block; font: 700 italic 11px/1.4 var(--f-en); }
.sf-member__foot b { color: var(--c-accent); }
.sf-voice { border: 2px solid var(--c-ink); border-radius: 18px; background: #fff; padding: 14px; font-size: 13px; line-height: 1.8; }
.sf-voice__no { font: 700 13px/1 var(--f-en); margin-bottom: 10px; }
.sf-voice__img { aspect-ratio: 4/3; border-radius: 12px; background: var(--c-paper); margin-bottom: 10px; display: grid; place-items: center; }
.sf-voice__co { font-size: 11px; color: rgb(29 26 24 / .6); }
.sf-voice__result { display: inline; background: var(--c-hl); font-weight: 900; font-size: 18px; line-height: 1.7; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; }

/* ---------- 約束ブロック（PROMISE 01 ...） ---------- */
.sf-promise { padding: 56px 20px; border-bottom: 2px dashed var(--c-line); text-align: center; }
.sf-promise__num { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.sf-promise__num span { font: 900 italic 20px/1 var(--f-en); letter-spacing: .1em; padding-bottom: 10px; }
.sf-promise__num b { font: 900 italic 96px/.8 var(--f-en); letter-spacing: -.05em;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-label-box { position: relative; border: 2px solid var(--c-ink); border-radius: 14px; background: #fff; padding: 22px 16px 16px; font-weight: 900; font-size: 18px; line-height: 1.6; max-width: 360px; margin: 0 auto; }
.sf-label-box > small { position: absolute; top: -10px; left: 50%; translate: -50% 0; background: var(--c-paper); padding: 0 10px; font: 700 italic 12px/1.4 var(--f-en); letter-spacing: .14em; color: rgb(29 26 24 / .6); white-space: nowrap; }
.sf-arrow-down { width: 2px; height: 56px; margin: 12px auto 4px; background: repeating-linear-gradient(var(--c-ink) 0 5px, transparent 5px 10px); position: relative; }
.sf-arrow-down::after { content: ""; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; border: 7px solid transparent; border-top: 9px solid var(--c-ink); }
.sf-pill { display: inline-block; margin: 14px 0 16px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2)); color: #fff; font-weight: 900; padding: 4px 22px; border-radius: 999px; }
.sf-promise .sf-win { text-align: left; margin: 8px 0 22px; }
.sf-body { text-align: left; font-size: 14px; line-height: 2; margin: 0; }

/* ---------- ダークの見出しセクション / CTA ---------- */
.sf-dark-head { padding: 64px 20px 40px; text-align: center; }
.sf-dark-head .sf-h2 { color: #fff; margin-bottom: 20px; }
.sf-plate { display: inline-block; background: #fff; color: var(--c-ink); border-radius: 16px; padding: 14px 24px; font-weight: 900; font-size: 20px; }
.sf-plate em { font-style: normal; color: var(--c-accent); font-size: 1.5em; }
.sf-cta { text-align: center; padding: 64px 20px; }
.sf-cta__glow { position: relative; display: grid; place-items: center; min-height: 260px; }
.sf-cta__glow::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(var(--c-accent), transparent 65%); opacity: .55; filter: blur(10px); }
.sf-cta__glow > * { position: relative; }

/* ---------- サービス範囲（チップ並び） ---------- */
.sf-svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sf-svc span { border: 2px solid rgb(255 255 255 / .9); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; background: rgb(255 255 255 / .04); }

/* ---------- 流れ（縦タイムライン） ---------- */
.sf-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: flow; position: relative; }
.sf-flow::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--c-ink) 0 6px, transparent 6px 12px); }
.sf-flow li { position: relative; padding-left: 64px; }
.sf-flow li::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; font: 900 italic 16px/1 var(--f-en); border: 3px solid var(--c-paper); outline: 2px solid var(--c-ink); }
.sf-flow h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 900; }
.sf-flow p { margin: 0; font-size: 14px; color: rgb(29 26 24 / .75); }

/* ---------- フォーム ---------- */
.sf-form-card { border: 2px solid var(--c-ink); border-radius: 28px; overflow: hidden; background: var(--c-paper); }
.sf-form-card__head { aspect-ratio: 4/3; display: grid; place-items: center; }
.sf-form-card__bar { display: flex; justify-content: space-between; align-items: center; background: var(--c-ink); color: #fff; padding: 12px 16px; }
.sf-form { padding: 24px 16px; display: grid; gap: 20px; }
.sf-form label { display: grid; gap: 8px; font-weight: 900; font-size: 16px; }
.sf-form label > span::after { content: "必須"; margin-left: 10px; font-size: 11px; font-weight: 700; color: #fff; background: #e03131; padding: 2px 8px; vertical-align: middle; }
.sf-form label.sf-opt > span::after { content: "任意"; background: #868e96; }
.sf-form input, .sf-form textarea { width: 100%; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; padding: 16px; font: 15px/1.5 var(--f-sans); color: var(--c-ink); }
.sf-form input:focus, .sf-form textarea:focus { outline: 2px solid var(--c-accent); border-color: transparent; }
.sf-form input[aria-invalid="true"] { outline: 2px solid #e03131; }
.sf-form__msg { font-weight: 700; text-align: center; min-height: 1.5em; margin: 0; }
.sf-form__msg[data-state="error"] { color: #e03131; }
.sf-form__msg[data-state="ok"] { color: var(--c-accent-2); }
.sf-footer { background: var(--c-ink); color: #fff; text-align: center; padding: 32px 20px; font-size: 11px; }
.sf-footer nav { display: flex; justify-content: center; gap: 16px; margin: 14px 0; }
.sf-footer a { text-decoration: none; opacity: .85; }

/* ---------- 画像の仮置き枠（差し替え前の目印） ---------- */
.sf-ph { width: 100%; height: 100%; min-height: 120px; border: 2px dashed rgb(29 26 24 / .25); border-radius: 12px; display: grid; place-items: center;
  font: 700 12px/1.5 var(--f-mono); color: rgb(29 26 24 / .45); text-align: center; padding: 8px; }
.sf-grid-d .sf-ph, .sf-member .sf-ph { border-color: rgb(255 255 255 / .4); color: rgb(255 255 255 / .7); }

/* ---------- スマホ用 下部固定CTA ---------- */
.sf-float { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; translate: 0 140%; transition: translate .4s var(--ease); }
.sf-float[data-show="true"] { translate: 0 0; }
@media (max-width: 760px) { .sf-float { display: block; } }

/* ---------- 出現アニメ ---------- */
[data-sf-in] { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
[data-sf-in].is-in { opacity: 1; translate: 0 0; }

@keyframes sf-x { to { transform: translateX(-50%); } }
@keyframes sf-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sf-chips__track, .sf-ticker__track, .sf-caret { animation: none; }
  [data-sf-in] { opacity: 1; translate: none; }
}
