/* =====================================================================
   店舗向け画面の共通スタイル
   ===================================================================== */

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-alt: #f1eee8;
  --text: #25221f;
  --muted: #6b655e;
  --line: #e3ded6;

  --primary: #1f6f5c;
  --primary-hover: #185a4a;
  --primary-weak: #e3f1ec;
  --star: #f0a818;
  --line-green: #06c755;
  --accent: #c0672c;
  --accent-weak: #f8eadf;
  --danger: #b3261e;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(37, 34, 31, .06), 0 8px 24px rgba(37, 34, 31, .08);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); }
img, svg { display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- ヘッダー・フッター ---------- */

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.logo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo__mark { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 16px; }
.site-header__nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-header__text { font-size: 13px; color: var(--muted); }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__copy { font-size: 12px; color: var(--muted); }

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; font-size: 17px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--google { border-color: var(--line); background: var(--surface); color: var(--text); min-height: 50px; }
.btn--google:hover { background: var(--surface-alt); }
.btn__icon { width: 20px; height: 20px; }

/* ---------- 登録ページのレイアウト ---------- */

.register { display: grid; gap: 24px; padding-top: 32px; }

@media (min-width: 960px) {
  .register {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "hero signup" "details signup";
    column-gap: 56px;
    row-gap: 40px;
    padding-top: 56px;
  }
  .hero { grid-area: hero; }
  .signup { grid-area: signup; }
  .details { grid-area: details; }
  .signup__card { position: sticky; top: 24px; }
}

/* ---------- ヒーロー ---------- */

.eyebrow { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; margin-bottom: 12px; }
.hero__title { font-size: clamp(24px, 7vw, 42px); line-height: 1.35; letter-spacing: .01em; }
.hero__title span { display: inline-block; }
.hero__lead { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 36em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.badges li { padding: 4px 12px; border-radius: 999px; background: var(--primary-weak); color: var(--primary); font-size: 14px; font-weight: 700; }

/* ---------- 登録カード ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.signup__card { padding: 24px 20px; }
@media (min-width: 480px) { .signup__card { padding: 28px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: none; }
.steps__item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-align: center; position: relative; }
.steps__item span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-alt); color: var(--muted); font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.steps__item:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--line); }
.steps__item.is-current { color: var(--text); font-weight: 700; }
.steps__item.is-current span { background: var(--primary); color: #fff; }

.signup__title { font-size: 22px; line-height: 1.4; }
.signup__sub { margin: 4px 0 20px; font-size: 14px; color: var(--muted); }

.signup__legal { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.signup__assure { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 6px; }
.signup__assure li { position: relative; padding-left: 22px; font-size: 13px; color: var(--muted); }
.signup__assure li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- フォーム ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; }
.field__input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font: inherit; color: var(--text);
}
.field__input::placeholder { color: #a9a39b; }
.field__input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-weak); }
.field__password { position: relative; }
.field__password .field__input { padding-right: 72px; }
.field__toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  min-width: 56px; min-height: 36px; border: 0; border-radius: 8px; background: none;
  color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.field__help { font-size: 12px; color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }

.form__note { font-size: 13px; color: var(--accent); min-height: 1em; text-align: center; }
.form__note:empty { display: none; }

/* ---------- セクション ---------- */

.details { display: grid; gap: 48px; margin-top: 24px; }
@media (min-width: 960px) { .details { margin-top: 0; } }

.section__title { font-size: 22px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4; }
.section__lead { color: var(--muted); margin-bottom: 16px; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature + .feature { margin-top: 16px; }
@media (min-width: 480px) { .feature { padding: 24px; } }
.feature__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.feature__tag { padding: 2px 10px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; }
.feature__tag--line { background: var(--line-green); }
.feature__tag--sub { background: var(--accent); }
.feature__title { font-size: 18px; line-height: 1.5; }
.feature__text { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* 集める：4ステップ */
.flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__item { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-alt); }
.flow__num { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 4px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.flow__item strong { font-size: 16px; }
.flow__item small { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* 返す：LINE通知のイメージ */
.line-mock { padding: 16px; border-radius: var(--radius-sm); background: #8cabd9; }
.line-mock__bubble { max-width: 340px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.line-mock__label { font-size: 12px; font-weight: 700; color: var(--line-green); }
.line-mock__stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.line-mock__review { font-size: 14px; }
.line-mock__reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); font-size: 13px; }
.line-mock__reply-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.line-mock__actions { display: grid; gap: 6px; margin-top: 10px; }
.line-mock__btn { display: block; padding: 8px; border-radius: 8px; border: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 700; color: var(--primary); }
.line-mock__btn--primary { background: var(--line-green); border-color: var(--line-green); color: #fff; }

/* ルールのチェックリスト */
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
.checklist li { position: relative; padding: 16px 16px 16px 48px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); font-weight: 700; font-size: 13px; }
.checklist strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* 料金 */
.price { display: grid; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--primary); }
@media (min-width: 600px) { .price { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; } }
.price__plan { font-size: 14px; font-weight: 700; color: var(--primary); }
.price__amount { font-size: 18px; font-weight: 700; line-height: 1.3; }
.price__yen { font-size: 40px; letter-spacing: .01em; }
.price__amount small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price__alt { margin-top: 4px; font-size: 13px; color: var(--muted); }
.price__includes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.price__includes li { position: relative; padding-left: 22px; font-size: 14px; }
.price__includes li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.price-table { width: 100%; margin-top: 16px; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { width: 45%; font-weight: 400; color: var(--muted); background: var(--surface-alt); }

/* よくある質問 */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { position: relative; padding: 16px 48px 16px 16px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: 14px; }

@media (max-width: 479px) {
  .site-header__text { display: none; }
}
.price-table td small { color: var(--muted); font-size: 12px; }

/* ---------- メッセージ・入力エラー ---------- */

.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.6; }
.alert--info { background: var(--primary-weak); color: var(--primary-hover); }
.alert--success { background: var(--primary-weak); color: var(--primary-hover); font-weight: 700; }
.alert--error { background: #fbeae9; color: var(--danger); }

.field__error { font-size: 13px; color: var(--danger); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ---------- 1カラムのパネル（メール確認・各ステップ） ---------- */

.narrow { max-width: 560px; padding-top: 40px; }
.panel { padding: 28px 20px; }
@media (min-width: 480px) { .panel { padding: 32px; } }
.panel__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 8px auto 16px; border-radius: 50%; background: var(--primary-weak); color: var(--primary); font-size: 26px; }
.panel__title { font-size: 22px; line-height: 1.4; text-align: center; margin-bottom: 12px; }
.panel__text { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.panel__text strong { color: var(--text); word-break: break-all; }
.panel__tips { margin: 0 0 20px; padding: 14px 16px 14px 34px; border-radius: var(--radius-sm); background: var(--surface-alt); font-size: 13px; color: var(--muted); }
.panel__sub { margin-top: 16px; text-align: center; }
.link-button { border: 0; background: none; padding: 8px; font: inherit; font-size: 14px; color: var(--primary); text-decoration: underline; cursor: pointer; }

.steps__item.is-done span { background: var(--primary-weak); color: var(--primary); }

/* ---------- ログイン ---------- */

.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field__link { font-size: 13px; }
.panel__foot { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- パスワード再設定 ---------- */

.field__input--readonly { background: var(--surface-alt); color: var(--muted); }
.panel__tips--spaced { margin-top: 20px; margin-bottom: 0; }
.alert a { color: inherit; font-weight: 700; }

/* ---------- ステップ2：店舗を選ぶ ---------- */

.medium { max-width: 880px; padding-top: 40px; }
.panel__text--center { text-align: center; }
.req { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--accent-weak); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 1px; }

.place-search { display: grid; gap: 6px; }
.place-search__box { position: relative; }
.place-search__results {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 320px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.place-search__option { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.place-search__option strong { font-size: 15px; }
.place-search__option span { font-size: 12px; color: var(--muted); }
.place-search__option:hover, .place-search__option[aria-selected="true"] { background: var(--primary-weak); }
.place-search__status { min-height: 1.5em; font-size: 13px; color: var(--muted); }
.place-search__help { font-size: 14px; color: var(--muted); }
.place-search__help summary { cursor: pointer; color: var(--primary); font-weight: 700; width: fit-content; }
.place-search__help p { margin-top: 8px; }

.store-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.store-form[hidden] { display: none; }
.store-form__title { font-size: 18px; }
.store-form__lead { font-size: 14px; color: var(--muted); margin-top: -12px; }
.store-form__grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .store-form__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.store-form__fields { display: grid; gap: 16px; }
.store-form__map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-sm); background: var(--surface-alt); }
.store-form__map[hidden] { display: none; }
.store-form__map-note { margin-top: 6px; font-size: 12px; color: var(--muted); }
select.field__input { appearance: auto; }

/* ---------- ステップ3：お店について ---------- */

.fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 6px; }
.field__note { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.field__textarea { min-height: 84px; line-height: 1.6; resize: vertical; }
.menu-inputs { display: grid; gap: 8px; }
@media (min-width: 520px) { .menu-inputs { grid-template-columns: 1fr 1fr; } }

.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.choice span { display: grid; gap: 2px; font-size: 15px; }
.choice small { font-size: 12px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-weak); }

/* ---------- ステップ3：アンケートの確認（プレビュー） ---------- */

.survey-preview { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 760px) { .survey-preview { grid-template-columns: 340px 1fr; align-items: start; } }

.phone { justify-self: center; width: 100%; max-width: 340px; min-width: 0; padding: 12px; border-radius: 36px; background: #1f1d1b; box-shadow: var(--shadow); }
.phone__screen { display: flex; flex-direction: column; height: 540px; border-radius: 26px; background: #faf7f2; overflow: hidden; }
.phone__head { display: flex; justify-content: space-between; gap: 8px; padding: 18px 18px 6px; font-size: 12px; color: var(--muted); }
.phone__store { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone__count { flex-shrink: 0; }
.phone__bar { height: 5px; margin: 0 18px; background: var(--line); border-radius: 3px; overflow: hidden; }
.phone__bar > div { height: 100%; width: 0; background: #b5652b; transition: width .2s; }
.phone__body { flex: 1; overflow-y: auto; padding: 20px 18px; display: grid; align-content: start; grid-auto-rows: max-content; gap: 10px; }
.phone__nav { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px 18px; border-top: 1px solid var(--line); background: #fff; }
.phone__nav .btn { flex: 1; }
.phone__nav .btn:disabled { opacity: .4; cursor: default; }

.pv-q { font-size: 17px; font-weight: 700; line-height: 1.5; }
.pv-hint { font-size: 12px; color: var(--muted); }
.pv-options { display: grid; gap: 8px; }
.pv-opt { width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.pv-opt[aria-pressed="true"] { border-color: #b5652b; background: #f6e7da; font-weight: 700; }
.pv-stars { display: flex; gap: 6px; }
.pv-star { flex: 1; min-height: 52px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 24px; color: var(--line); cursor: pointer; }
.pv-star.on { color: var(--star); border-color: #b5652b; }
.pv-text { width: 100%; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }

.survey-preview__title { font-size: 16px; margin-bottom: 10px; }
.q-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.q-list__item { display: grid; gap: 4px; width: 100%; padding: 10px 12px 10px 52px; position: relative; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.q-list__item::before { content: attr(data-num); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--surface-alt); font-size: 11px; font-weight: 700; color: var(--muted); }
.q-list__item[aria-current="true"] { border-color: var(--primary); background: var(--primary-weak); }
.q-list__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 0 6px; border-radius: 4px; background: var(--surface-alt); color: var(--muted); font-size: 11px; font-weight: 700; }
.tag--fixed { background: #e8e4ff; color: #4b3fa6; }
.tag--store { background: var(--accent-weak); color: var(--accent); }
.tag--muted { background: #fbeae9; color: var(--danger); }

.note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-alt); font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.note strong { color: var(--text); }

.survey-preview__actions { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.survey-preview__actions form { flex: 1 1 260px; max-width: 360px; margin-left: auto; }
.survey-preview__actions .btn { width: 100%; }

/* プレビュー：回答後の口コミ下書き */
.pv-example { justify-self: start; padding: 2px 8px; border-radius: 4px; background: #fff3cd; color: #7a5b00; font-size: 11px; font-weight: 700; }
.pv-draft { line-height: 1.7; resize: vertical; }
.pv-btn { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 23px; border: 1.5px solid transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pv-btn--primary { background: #b5652b; color: #fff; }
.pv-btn--primary.is-done { background: var(--primary); }
.pv-btn--google { background: #fff; border-color: var(--line); color: var(--text); }
.pv-btn--ghost { background: #fff; border-color: var(--line); color: var(--muted); font-weight: 400; }
.pv-status { min-height: 1em; font-size: 12px; color: var(--accent); text-align: center; }
.pv-status:empty { display: none; }
.pv-howto { margin: 0; padding: 10px 12px 10px 30px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 2px; }

/* ---------- 3-3 プレビュー：タブ ---------- */

.tabs { display: flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 999px; background: var(--surface-alt); }
.tabs__tab { flex: 1; min-height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.survey-preview[hidden] { display: none; }
.survey-preview__lead { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 3-3 プレビュー：お店側（LINE） ---------- */

.line { background: #8cabd9; }
.line__head { display: flex; align-items: center; gap: 8px; padding: 16px 14px 10px; background: #fff; border-bottom: 1px solid #e6e6e6; }
.line__back { font-size: 22px; line-height: 1; color: #333; }
.line__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line__body { flex: 1; overflow-y: auto; padding: 12px; display: grid; align-content: start; grid-auto-rows: max-content; gap: 10px; }
.line__foot { padding: 10px 12px 16px; background: #fff; border-top: 1px solid #e6e6e6; }
.line__foot span { display: block; padding: 8px 12px; border-radius: 18px; background: #f2f2f2; font-size: 12px; color: #999; }

.line-date { justify-self: center; padding: 2px 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); color: #fff; font-size: 11px; }
.line-msg { max-width: 86%; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.6; white-space: pre-line; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.line-msg.is-in, .line-date.is-in { opacity: 1; transform: none; }
.line-date { opacity: 0; transition: opacity .25s; }
.line-msg--bot { justify-self: start; background: #fff; color: #222; border-top-left-radius: 4px; }
.line-msg--user { justify-self: end; background: #8de055; color: #222; border-top-right-radius: 4px; }
.line-msg--card { padding: 0; background: none; max-width: 92%; width: 92%; }

.line-card { display: grid; gap: 4px; padding: 12px; border-radius: 14px; border-top-left-radius: 4px; background: #fff; }
.line-card--warn { box-shadow: inset 4px 0 0 var(--danger); }
.line-card__label { font-size: 11px; font-weight: 700; color: var(--line-green); }
.line-card--warn .line-card__label { color: var(--danger); }
.line-card__store { font-size: 12px; color: var(--muted); }
.line-card__stars { color: var(--star); letter-spacing: 2px; font-size: 14px; }
.line-card__text { font-size: 13px; line-height: 1.6; color: #222; }
.line-card__meta { font-size: 11px; color: #999; }
.line-card__note { padding: 6px 8px; border-radius: 6px; background: #fbeae9; color: var(--danger); font-size: 11px; line-height: 1.5; }
.line-card__actions { display: grid; gap: 6px; margin-top: 6px; }
.line-btn { min-height: 38px; border: 1px solid #ddd; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #3b7ddd; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.line-btn--primary { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.line-btn:disabled { cursor: default; opacity: .5; }
.line-btn.is-chosen { opacity: 1; }
.line-btn.is-hint:not(:disabled) { box-shadow: 0 0 0 3px rgba(6, 199, 85, .35); transform: scale(1.02); }
.line-again { border: 0; background: none; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

.owner-flow { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: of; display: grid; gap: 10px; }
.owner-flow li { counter-increment: of; position: relative; padding: 12px 12px 12px 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 2px; }
.owner-flow li::before { content: counter(of); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-green); color: #fff; font-size: 12px; font-weight: 700; }
.owner-flow strong { font-size: 14px; }
.owner-flow span { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .line-msg, .line-date { transition: none; }
}
.survey-preview__regen { flex: 0 1 auto !important; max-width: none !important; margin-left: 0 !important; }
.survey-preview__regen .btn { width: auto; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- 3-1：選択式（チップ） ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--text); transition: background-color .15s, border-color .15s; }
.chip input:checked + span { border-color: var(--primary); background: var(--primary-weak); color: var(--primary-hover); font-weight: 700; }
.chip input:checked + span::before { content: "✓"; margin-right: 4px; }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.fieldset[aria-invalid="true"] .chip span { border-color: #e7b3af; }
.form-divider { margin: 8px 0 -4px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.field__help--warn { color: var(--accent); font-weight: 700; }
.steps__link { display: contents; color: inherit; text-decoration: none; }
.steps__link:hover span { background: var(--primary); color: #fff; }
.steps__link:hover { text-decoration: underline; }
.tag--followup { background: #e3f1ec; color: var(--primary); }
.survey-preview__note-small { font-size: 12px; color: var(--muted); margin-top: 8px; }
