/* ヒアリングシート フォームUI
   白ベース・アクセント #2f52a8・カード型選択肢・スマホファースト。
   「営業ツール」として使われる前提のため、既製フォームに見えない品質を意識する。 */

:root {
  --accent: #2f52a8;
  --accent-dark: #1f3a7f;
  --accent-soft: #eef2fb;
  --ink: #1c1f2a;
  --ink-soft: #5a5f6e;
  --line: #e3e6ee;
  --bg: #f7f8fb;
  --card: #ffffff;
  --danger: #d64545;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 10px rgba(28, 31, 42, 0.05);
  --shadow-raised: 0 10px 30px rgba(47, 82, 168, 0.12);
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-serif: "Shippori Mincho", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding-bottom: 48px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- ヘッダー / 進捗バー --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.plan-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 0;
}

.plan-badge.is-hidden {
  display: none;
}

/* 進捗バー：.progress がトラック（残り区間の背景色）、
   子の .progress-bar が塗り（JSで width% を設定）— 通常のブロックフローだけで
   トラックと塗りを両立できるので、余計な絶対配置は使わない。 */
.progress {
  position: sticky;
  top: 49px;
  z-index: 19;
  height: 4px;
  background: var(--line);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #4f74d1);
  transition: width 0.4s ease;
}

/* --- コンテナ --- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.section-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}

.section-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 0 0 24px;
}

/* --- 質問カード共通 --- */
.q {
  margin-bottom: 28px;
  animation: fade-in 0.25s ease both;
}

.q.is-hidden {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.6;
}

.q-label.is-hidden {
  display: none;
}

/* fieldset ベースの設問（radio / checkbox / repeat）：
   ブラウザ既定の border/padding/min-width をリセットし、
   div ベースの設問カードと見た目を揃える。 */
fieldset.q {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  min-width: 0;
}

.q-legend {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.q-required {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.04em;
}

.q-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  line-height: 1.7;
}

.q-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 8px;
  min-height: 0;
}

.q.has-error .q-body {
  box-shadow: 0 0 0 2px var(--danger);
  border-radius: var(--radius-md);
}

.q.has-error .input-text,
.q.has-error .input-textarea,
.q.has-error .input-select {
  border-color: var(--danger);
}

/* --- テキスト系入力 --- */
.input-text,
.input-textarea,
.input-select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-text:focus,
.input-textarea:focus,
.input-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 82, 168, 0.15);
  outline: none;
}

.input-textarea {
  resize: vertical;
  line-height: 1.7;
}

.input-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* --- カード型 選択肢（radio / checkbox） --- */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.option-card:active {
  transform: scale(0.99);
}

.option-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.option-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="checkbox"] + .option-check {
  border-radius: 6px;
}

.option-check::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input[type="checkbox"] + .option-check::after {
  border-radius: 2px;
  width: 12px;
  height: 12px;
  clip-path: polygon(14% 44%, 0% 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: var(--accent);
}

.option-input:checked ~ .option-check {
  border-color: var(--accent);
}

.option-input:checked ~ .option-check::after {
  transform: scale(1);
}

.option-card:has(.option-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-card.just-selected {
  animation: pop 0.22s ease;
}

@keyframes pop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.option-text {
  font-size: 15px;
  line-height: 1.6;
}

/* --- トグルカード --- */
.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.toggle-card.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.toggle-card .option-text {
  font-weight: 600;
}

/* --- 繰り返し入力（repeat） --- */
.repeat-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.repeat-block {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repeat-block.is-hidden {
  display: none;
}

.sub-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.repeat-add,
.repeat-remove {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 2px;
  min-height: 44px;
}

.repeat-add.is-hidden {
  display: none;
}

.repeat-remove {
  color: var(--danger);
  font-size: 13px;
  align-self: flex-end;
}

/* --- 準備中プレースホルダー --- */
.placeholder-card {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  background: #fafbfd;
}

/* --- ナビゲーションボタン --- */
.nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  flex: 1;
  min-height: 52px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  flex: none;
  width: 96px;
  background: var(--card);
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- プラン選択画面 --- */
.plan-intro {
  text-align: center;
  margin-bottom: 28px;
}

.plan-intro-title {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 10px;
}

.plan-intro-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card {
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 22px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.plan-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.plan-card:active {
  transform: scale(0.99);
}

.plan-card-price {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.plan-card-label {
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 8px;
}

.plan-card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* --- トースト --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- テイストボード --- */
.taste-counter {
  position: sticky;
  top: 57px; /* ヘッダー(49px)＋進捗バー(4px)の下に貼り付く */
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.taste-counter-like { color: var(--accent); }
.taste-counter-sep { color: var(--ink-soft); }
.taste-counter-avoid { color: var(--danger); }

.taste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.taste-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.taste-card.is-liked {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(47, 82, 168, 0.22);
}

.taste-card.is-avoided {
  border-color: var(--danger);
}

.taste-card.is-avoided .taste-thumb {
  filter: grayscale(0.65);
  opacity: 0.75;
}

.taste-card.just-selected {
  animation: pop 0.22s ease;
}

.taste-like {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.taste-thumb {
  display: block;
  line-height: 0;
  background: var(--line);
}

.taste-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.taste-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 8px;
}

.taste-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.taste-desc {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.taste-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.taste-card.is-liked .taste-badge {
  display: inline-flex;
  background: var(--accent);
}

.taste-card.is-avoided .taste-badge {
  display: inline-flex;
  background: var(--danger);
}

.taste-avoid {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.taste-avoid:hover {
  color: var(--danger);
}

.taste-card.is-avoided .taste-avoid {
  background: #fdecec;
  color: var(--danger);
  border-top-color: rgba(214, 69, 69, 0.35);
}

/* --- 書体ピッカー --- */
.font-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.font-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.font-card:active {
  transform: scale(0.99);
}

.font-card:has(.option-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.font-card:has(.option-input:checked) .option-check {
  border-color: var(--accent);
}

.font-card:has(.option-input:checked) .option-check::after {
  transform: scale(1);
}

.font-card.just-selected {
  animation: pop 0.22s ease;
}

.font-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.font-card-label {
  font-size: 14px;
  font-weight: 700;
}

.font-card-impression {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.font-preview {
  font-size: clamp(28px, 8vw, 48px);
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: var(--ink);
}

/* --- 配色（モード＋パレット） --- */
.option-text-main {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.option-text-desc {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.palette-grid.is-hidden {
  display: none;
}

.palette-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.palette-card:active {
  transform: scale(0.98);
}

.palette-card:has(.option-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.palette-card:has(.option-input:checked) .option-check {
  border-color: var(--accent);
}

.palette-card:has(.option-input:checked) .option-check::after {
  transform: scale(1);
}

.palette-card.just-selected {
  animation: pop 0.22s ease;
}

.palette-swatch {
  display: flex;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(28, 31, 42, 0.08);
}

.palette-band {
  display: block;
  height: 100%;
}

.palette-band:nth-child(1) { width: 56%; }
.palette-band:nth-child(2) { width: 28%; }
.palette-band:nth-child(3) { width: 16%; }

.palette-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.palette-name .option-check {
  width: 18px;
  height: 18px;
}

.palette-name .option-check::after {
  width: 9px;
  height: 9px;
}

/* --- 写真トーン --- */
.photo-tone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-tone-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.photo-tone-card:active {
  transform: scale(0.99);
}

.photo-tone-card:has(.option-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.photo-tone-card:has(.option-input:checked) .option-check {
  border-color: var(--accent);
}

.photo-tone-card:has(.option-input:checked) .option-check::after {
  transform: scale(1);
}

.photo-tone-card.just-selected {
  animation: pop 0.22s ease;
}

.photo-tone-visual {
  display: block;
  height: 68px;
}

/* 明るい自然光：白飛びぎみの爽やかな空気感 */
.photo-tone-visual--bright {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.95), transparent 48%),
    linear-gradient(135deg, #f4fafd, #cfe7f6 60%, #bcdcf0);
}

/* シック：影の落ちるドラマチックなローライト */
.photo-tone-visual--chic {
  background:
    radial-gradient(circle at 72% 26%, rgba(206, 178, 132, 0.35), transparent 52%),
    linear-gradient(145deg, #4a4550, #17151d 78%);
}

/* ビビッド：彩度の高い元気なカラー */
.photo-tone-visual--vivid {
  background: linear-gradient(120deg, #ffb03a, #ff5d81 48%, #7b5cff);
}

.photo-tone-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.photo-tone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-tone-label {
  font-size: 14px;
  font-weight: 700;
}

.photo-tone-desc {
  font-size: 12px;
  color: var(--ink-soft);
}

/* --- 雰囲気ワード（チップ） --- */
.mood-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-chip {
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.mood-chip:active {
  transform: scale(0.96);
}

.mood-chip.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

/* 上限に達したら未選択チップを控えめにして「あと選べない」ことを示す */
.mood-chips.is-full .mood-chip:not(.is-on) {
  opacity: 0.45;
}

/* --- アップロード（ロゴ・写真） --- */
.upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.upload-row--error {
  border-color: var(--danger);
  background: #fdf3f3;
}

.upload-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.upload-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-thumb-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.upload-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-size {
  font-size: 11px;
  color: var(--ink-soft);
}

.upload-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-status-text {
  font-size: 12px;
  color: var(--ink-soft);
}

.upload-status-error {
  font-size: 12px;
  color: var(--danger);
}

.upload-retry {
  min-height: 32px;
  padding: 4px 10px;
  border: 1.5px solid var(--danger);
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.upload-remove {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.upload-remove:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.upload-add {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-add-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.upload-add-btn.is-disabled,
.upload-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-count {
  font-size: 12px;
  color: var(--ink-soft);
}

.upload-add-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 8px;
  min-height: 0;
}

.upload-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* --- 確認画面 --- */
.confirm-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.confirm-group:last-of-type {
  border-bottom: none;
}

.confirm-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 14px;
}

.confirm-row {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.confirm-row:first-of-type {
  border-top: none;
}

.confirm-row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.confirm-row-value {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-row-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
}

.confirm-error {
  font-size: 13px;
  color: var(--danger);
  margin: 8px 0 0;
  min-height: 0;
  text-align: center;
}

.confirm-success {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --- モバイル微調整 --- */
@media (max-width: 380px) {
  .container { padding: 24px 16px 32px; }
  .section-title { font-size: 21px; }
  .taste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
