/* CUTTO 共通スタイル
 * 色は LP (10_CUTTO_LP) に合わせる: 生成りの白地 #FAFAF7・墨色の文字・朱色 #FF5A1F は「主役のボタン」と小さな印だけ。
 * 作りは控えめに: 本文 15px・補足 13px・細い線 1 本・角丸 10〜12px・影はほぼ無し・主役のボタンは 1 画面に 1 つ。
 * スマホを基準に作り、広い画面で広げる。 */
:root {
  --paper: #FAFAF7; --card: #FFFFFF; --soft: #F4F3EF; --soft2: #EFEDE8;
  --ink: #111113; --ink2: #45454C; --ink3: #86868E; --line: #E6E4DE; --line2: #EFEDE8;
  --accent: #FF5A1F; --accent-d: #E64A12; --accent-ink: #FFFFFF; --tint: #FFF3EC;
  --ok: #1F9D55; --warn: #D93A2B;
  --r: 12px; --r-sm: 10px; --gut: 16px;
  --font: "Inter", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --num: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "palt"; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: -.01em; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.num { font-family: var(--num); font-feature-settings: "tnum"; letter-spacing: -.01em; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); } .small { font-size: 13px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.hide { display: none !important; }

/* ---- ロゴ (LP と同じ) ---- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--num); font-weight: 800; font-size: 17px; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.logo img, .logo .mk { width: 22px; height: 22px; flex: none; }

/* ---- ボタン (高さ 42・丸) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: background .2s, border-color .2s, transform .12s; white-space: nowrap; touch-action: manipulation; }
.btn:hover { border-color: #D3D0C8; }
.btn:active { transform: scale(.98); }
.btn.primary, .btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover, .btn.accent:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 20px; height: 20px; }
.btn svg { width: 17px; height: 17px; }
.link { color: var(--ink2); font-size: 13px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.link:hover { color: var(--ink); }

/* ---- 入力 ---- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--card); font-size: 16px; outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--ink2); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.7; }
/* 切り替え (薄い台の中で、選んだものだけ反転) */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; }
.seg button { flex: 1; min-height: 34px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 13.5px; cursor: pointer;
  line-height: 1.2; padding: 6px 14px; color: var(--ink2); white-space: nowrap; transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: #fff; }
.seg.full { display: flex; width: 100%; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line2); cursor: pointer; font-size: 14px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: #DCD9D2; position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); } .switch input:checked::after { transform: translateX(18px); }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }

/* ---- カード ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--ink2); }
.bar { height: 4px; border-radius: 9px; background: var(--soft2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 9px; transition: width .4s; }

/* ---- トースト ---- */
#toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; pointer-events: none;
  transition: .25s; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }

/* ---- 下から出るシート (スマホ) / PC は中央の小窓 ---- */
.sheet-bg { position: fixed; inset: 0; background: rgba(17,17,19,.32); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; background: var(--card); border-radius: 18px 18px 0 0; max-height: 86vh; overflow: auto;
  padding: 10px 20px calc(22px + var(--safe-b)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.sheet.on { transform: none; }
.sheet .grip { width: 36px; height: 4px; border-radius: 9px; background: var(--line); margin: 2px auto 14px; }
.sheet h3 { font-size: 17px; margin-bottom: 6px; }
@media (min-width: 900px) {
  .sheet { left: 50%; right: auto; width: 480px; bottom: auto; top: 50%; border-radius: 14px; transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: .2s; padding-bottom: 22px; border: 1px solid var(--line); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet .grip { display: none; }
}
.seg.wrap button { white-space: normal; padding: 6px 10px; }
