/* =========================================================
   Cheetah デモ — 全面改善・第2版の部品
   色は生成り・墨・黄色とその濃淡だけ。フォントは tokens.css の変数を使う。
   ========================================================= */

/* ---------- 文字 ---------- */
body { font-size: 16px; line-height: 1.9; word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
.hero-title { font-size: clamp(36px, 6vw, 64px) !important; }
.sec-title { font-size: clamp(26px, 3.4vw, 40px); }
.num, .n b, .pro-facts b, .calc-num { font-family: var(--f-num); }

/* ---------- 涙線（見出し2の左の黄色い縦線） ---------- */
.sec-title, .biz-sec-h { position: relative; padding-left: .6em; }
.sec-title::before, .biz-sec-h::before { content: ""; position: absolute; left: 0; top: .1em; width: 6px; height: 1.15em; background: var(--accent); border-radius: var(--r); transform: rotate(2.5deg); }
.band-ink .sec-title::before { background: var(--accent); }

/* ---------- ヘッダー ---------- */
.site-head { height: 64px; padding-top: 0; padding-bottom: 0; }
.head-right { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 26px); margin-left: auto; }
.logo-img { display: block; height: 30px; width: auto; }
.logo { align-items: flex-end; }
.site-nav .nav-login { border: 2px solid var(--bg); padding: .42em 1em; }
.site-nav .nav-login:hover { border-bottom-color: var(--bg); }
.menu-btn { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: transparent; border: 2px solid var(--bg); color: var(--bg); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 860px) {
  .site-head { height: 56px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .logo-img { height: 25px; }
}
.menu-overlay { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--bg); padding: 18px var(--pad) 32px; overflow-y: auto; }
.menu-overlay[hidden] { display: none; }
.menu-overlay nav { display: flex; flex-direction: column; margin-top: 18px; }
.menu-overlay nav a { color: var(--bg); text-decoration: none; font-family: var(--f-head); font-size: 1.5rem; padding: .55em 0; border-bottom: 1px solid rgba(244, 240, 230, .25); font-weight: 700}
.menu-close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1em; background: transparent; border: 2px solid var(--bg); color: var(--bg); font-weight: 700; cursor: pointer; }

/* ---------- 下部固定バー ---------- */
.sticky-cta { transition: transform .32s var(--ease); }
.sticky-cta.is-hidden { transform: translateY(112%); }
.sticky-cta .sc-text { font-size: 13px; }

/* ---------- 区切り線「街→草」 ---------- */
.divider-cg { display: block; width: 100%; height: 52px; }
.divider-cg .cg-ink { fill: var(--ink); }
.divider-cg .cg-win { fill: var(--bg); }
.divider-cg.inv .cg-ink { fill: var(--bg); }
.divider-cg.inv .cg-win { fill: var(--ink); }

/* ---------- ヒーローの入力カード ---------- */
.hero { padding-bottom: 0; }
.hero-input { position: relative; background: var(--bg); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: none; padding: 1.2em 1.3em 2em; margin-top: clamp(18px, 3vw, 30px); text-align: left; }
.hero-input::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 12px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'><path d='M2 12 L4.5 3 L7 12 M10 12 L12 1 L14.5 12 M18 12 L20 4 L22.5 12 M24.5 12 L26 5 L27.5 12' stroke='%230D0D0B' stroke-width='1.7' fill='none'/></svg>") repeat-x left bottom / auto 12px; opacity: .3; pointer-events: none; }
.field-label { display: block; font-weight: 700; font-size: .92rem; margin-top: 1em; }
.field-label:first-child { margin-top: 0; }
.hero-input textarea, .hero-input select, .txt-input { width: 100%; background: #F4F0E6; border: var(--bw) solid var(--ink); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.7; padding: .6em .8em; margin-top: .4em; }
.hero-input .btn { width: 100%; justify-content: center; margin-top: 1.1em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1em; }
.hero-chips .chip { min-height: 48px; font-size: .88rem; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .85rem; padding: .45em 1em; }

/* ---------- 表（料金・届き方） ---------- */
table.spec-table { width: 100%; border-collapse: collapse; background: #F4F0E6; }
table.spec-table th, table.spec-table td { border: 1px solid var(--hair); padding: .65em .8em; text-align: left; line-height: 1.7; vertical-align: top; }
table.spec-table th { background: var(--bg); font-weight: 700; white-space: nowrap; }
table.spec-table .num { font-weight: 900; font-size: 1.15em; }

/* ---------- 横スクロールのカード ---------- */
.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; margin-top: clamp(18px, 3vw, 30px); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.hscroll > * { flex: 0 0 84%; scroll-snap-align: start; }
@media (min-width: 800px) {
  .hscroll.grid-pc { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .hscroll.grid-pc > * { flex: none; }
  .hscroll.three-pc { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .hscroll.three-pc > * { flex: none; }
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: clamp(18px, 3vw, 30px); border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 1em .2em; min-height: 48px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; font-family: var(--f-num); font-weight: 900; color: var(--accent-text); }
.faq-list details[open ] summary::after { content: "－"; }
.faq-list .faq-a { padding: 0 .2em 1.2em; line-height: 1.9; }

/* ---------- 手取り計算機 ---------- */
.calc { background: #F4F0E6; border: var(--bw) solid var(--ink); box-shadow: none; padding: 1.3em 1.4em 1.5em; margin-top: clamp(18px, 3vw, 30px); }
.calc .calc-num { font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.calc-rows { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 800px) { .calc-rows { grid-template-columns: 1fr 1fr; } }
.calc-box { border: 1px solid var(--hair); padding: 1em 1.1em; }
.calc-box.win { border: var(--bw) solid var(--ink); background: rgba(255,176,0,.18); }
.calc-diff { margin-top: 16px; font-weight: 700; font-size: 1.05rem; }
.calc-warn { display: none; margin-top: 14px; background: var(--accent); color: var(--ink); font-weight: 700; padding: .7em 1em; }
.calc-warn.on { display: block; }

/* ---------- 承認フロー ---------- */
.approve-box { margin-top: 18px; border: var(--bw) solid var(--ink); background: #F4F0E6; padding: 1.2em 1.3em; }
.approve-box h3 { font-family: var(--f-head); font-size: 1.25rem; margin-bottom: .5em; font-weight: 700}
.approve-err { border-color: var(--ink); background: rgba(255,176,0,.18); }
.p-failed { display: inline-block; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .42em .7em; margin-left: .6em; vertical-align: .3em; }

@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* ---------- 第2版：セクションとトップの部品 ---------- */
.sec { padding-block: clamp(48px, 7vw, 96px); }
.hero-media { position: relative; }
.hero-media-cap { position: absolute; right: 10px; bottom: 8px; z-index: 3; color: rgba(244, 240, 230, .9); font-size: .75rem; }
.hero-input { margin-top: -24px; z-index: 3; }
.hero-badge { margin-bottom: 14px; }
.t-more-row { margin-top: 16px; }
.flow-note, .fees-note { margin-top: 20px; line-height: 1.9; }
.fees-table th { width: 9.5em; }
.ex-card { position: relative; display: block; background: #F4F0E6; color: var(--ink); text-decoration: none; border: var(--bw) solid var(--ink); box-shadow: none; padding: 1.1em 1.2em 1.8em; }
.ex-card::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 12px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'><path d='M2 12 L4.5 3 L7 12 M10 12 L12 1 L14.5 12 M18 12 L20 4 L22.5 12 M24.5 12 L26 5 L27.5 12' stroke='%230D0D0B' stroke-width='1.7' fill='none'/></svg>") repeat-x left bottom / auto 12px; opacity: .3; pointer-events: none; }
.ex-card h3 { font-family: var(--f-head); font-size: 1.2rem; line-height: 1.45; font-weight: 700}
.ex-card .ex-meta { margin-top: .5em; font-size: .85rem; color: var(--muted); }
.ex-card .ex-get { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: .8em; align-items: baseline; }
.ex-card .ex-get b { font-family: var(--f-num); }
.ex-card .ex-price { font-weight: 700; }
.ex-free { background: var(--accent); }

/* ---------- ヒーローの高さ（最初の画面に収める） ---------- */
.hero-media { height: 300px; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 861px) {
  .hero-media { height: clamp(320px, 46svh, 480px); }
  .hero-input { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 28px; }
  .hero-input > :nth-child(1) { grid-area: 1 / 1; }
  .hero-input > :nth-child(2) { grid-area: 2 / 1; }
  .hero-input > :nth-child(3) { grid-area: 1 / 2; margin-top: 0; }
  .hero-input > :nth-child(4) { grid-area: 2 / 2; }
  .hero-input > :nth-child(5) { grid-area: 3 / 2; margin-top: 14px; }
  .hero-input > :nth-child(6) { grid-area: 3 / 1; align-self: end; margin-top: 14px; }
  .hero-input > :nth-child(7) { grid-area: 4 / 1 / 5 / 3; }
}
.hero-media { aspect-ratio: auto; }
.hero-overlay { padding-bottom: 46px; }

/* ---------- 利用者トップの圧縮（スマホで約4,500pxを目標） ---------- */
.sec { padding-block: clamp(30px, 6vw, 72px); }
.top .hero { padding-bottom: 30px; }
.hero-input textarea { height: 96px; }
.band-ink { padding-block: 44px; }
@media (max-width: 640px) {
  .hero-chips .chip { min-height: 44px; }
  .faq-list summary { padding: .72em .2em; }
  .sample table.spec-table { font-size: .84rem; }
  .sample table.spec-table th, .sample table.spec-table td { padding: .5em .45em; }
  .sample table.spec-table td small { display: block; color: var(--muted); }
}
@media (max-width: 640px) {
  .flow-list .f-no { font-size: 1.45rem; }
  .flow-list li { padding-block: 10px; }
  .assure-list > div { padding-block: .65em; }
  .assure-list dd { line-height: 1.75; }
}

/* ---------- 事業者ページ ---------- */
.biz-hero .hero-media video { object-position: 78% 50%; }
.big-nums b { font-size: clamp(40px, 6vw, 64px); }
.worry-list { margin-top: 18px; padding-left: 1.3em; line-height: 2; }
.mp-card { position: relative; background: #F4F0E6; border: var(--bw) solid var(--ink); box-shadow: none; padding: 1.1em 1.2em 1.3em; }
.mp-card h3 { font-family: var(--f-head); font-size: 1.15rem; font-weight: 700}
.mp-card p { margin-top: .55em; line-height: 1.8; }
.mp-num { font-family: var(--f-num); font-weight: 900; font-size: 1.7rem; }
.mini-warn { background: var(--accent); color: var(--ink); font-weight: 700; padding: .6em .8em; font-size: .88rem; }
.notice-err { background: rgba(255,176,0,.18); border: 1px solid var(--hair); padding: .9em 1em; margin-top: .8em; }
.notice-err .btn { margin-top: .4em; }
.mail-sample { border: 1px solid var(--hair); padding: .9em 1em; margin-top: .8em; font-size: .9rem; }
.mail-sample .mail-sub { font-weight: 700; }
.calc-note { margin-top: 14px; line-height: 1.9; }
[data-skin="c"] .pro.band-ink { background: var(--ink); color: var(--bg); }
[data-skin="c"] .pro.band-ink .btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.confirm-list { margin-top: 18px; border-top: 1px solid var(--hair); }
.confirm-list > div { display: flex; gap: 1em; padding: .7em 0; border-bottom: 1px solid var(--hair); }
.confirm-list dt { font-weight: 700; min-width: 6.5em; }
.confirm-list dd { line-height: 1.7; }
.approve-ok { background: var(--bg); }
.pay-form { margin-top: 22px; display: grid; gap: 16px; max-width: 520px; }
.mid-cta .mid-cta-h { font-family: var(--f-head); font-size: 1.3rem; margin: 0; line-height: 1.4; font-weight: 700}
