/* ============================================================
   PDFページを画像に変換ぺいじょ — style.css
   ============================================================ */

/* ── リセット ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── デザイントークン ── */
:root {
  --bg:           #FDF4EA;
  --surface:      #FFFFFF;
  --surface2:     #F5EAD8;
  --border:       rgba(73,167,206,0.15);
  --border2:      rgba(73,167,206,0.30);
  --text:         #2C2C2C;
  --muted:        #7A7A7A;
  --accent:       #49A7CE;
  --accent-dark:  #3388AD;
  --accent-light: rgba(73,167,206,0.10);
  --accent-glow:  rgba(73,167,206,0.20);
  --success:      #2DA870;
  --warning:      #D48A10;
  --danger:       #D64545;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ── ベース ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.7;
}

/* ============================================================
   ヘッダー
   ============================================================ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border2);
  padding: 0 2rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: block;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0;
}

.header-free-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

.header-usage-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.header-usage-count strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--accent-dark);
}


/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #FDF4EA 0%, #FEF1DA 50%, #FDF4EA 100%);
  border-bottom: 2px solid rgba(73,167,206,0.15);
  padding: 2.8rem 2rem 0;
  overflow: hidden;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.hero-text {
  flex: 1;
  padding-bottom: 2.5rem;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #AAAAAA;
  flex-shrink: 0;
  display: inline-block;
}

.hero-chara {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-chara img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

/* ============================================================
   ツール本体
   ============================================================ */
.tool-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.tool-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* 入力カード */
.input-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 16px rgba(73,167,206,0.07);
  margin-bottom: 1.5rem;
}

.input-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.input-card .sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

/* ドロップゾーン */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.dropzone.dragover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.dropzone-inner {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.dropzone-icon { margin-bottom: 1rem; }

.dropzone-main {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.dropzone-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.btn-upload-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 1rem;
}

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

.dropzone-formats {
  font-size: 0.78rem;
  color: var(--muted);
}

.upload-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ファイル情報バー */
.file-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-light);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.file-info-bar__detail { flex: 1; min-width: 0; }

.file-info-bar__name {
  font-weight: 500;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.file-info-bar__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-reset-file {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.btn-reset-file:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ============================================================
   プレビューローディング
   ============================================================ */
.preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 2rem 0;
}

.loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 0.88rem;
  color: var(--muted);
}

.preview-loading-bar-wrap {
  width: 200px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.preview-loading-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.2s ease;
  width: 0%;
}

.loading-count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   ページ選択コントロール
   ============================================================ */
.page-select-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.65rem 1rem;
  background: var(--accent-light);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-select-ctrl__count {
  font-size: 0.84rem;
  color: var(--text);
}

.page-select-ctrl__count strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-dark);
}

.page-select-ctrl__btns { display: flex; gap: 8px; }

.btn-select-ctrl {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-select-ctrl:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   サムネイルグリッド
   ============================================================ */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 0.75rem;
}

.thumb-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border2);
  background: var(--surface2);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  user-select: none;
}

.thumb-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(73,167,206,0.18);
}

.thumb-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.thumb-item img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.thumb-item__check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.thumb-item.is-selected .thumb-item__check {
  opacity: 1;
  transform: scale(1);
}

.thumb-item:not(.is-selected)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  transition: background 0.15s;
  pointer-events: none;
}

.thumb-item:not(.is-selected):hover::after {
  background: rgba(255,255,255,0.12);
}

.thumb-item__label {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 0;
  background: var(--surface2);
}

.thumb-item.is-selected .thumb-item__label {
  color: var(--accent-dark);
  background: var(--accent-light);
}

.page-select-warn {
  padding: 0.65rem 1rem;
  background: rgba(214,69,69,0.08);
  border: 1px solid rgba(214,69,69,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--danger);
}

/* ============================================================
   変換設定
   ============================================================ */

/* 出力形式タブ */
.format-tab-wrap {
  margin-bottom: 1.25rem;
}

.format-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.format-tab {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.format-tab:hover { border-color: var(--accent); color: var(--accent); }
.format-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.format-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 品質スライダー */
.quality-wrap {
  margin-bottom: 0.75rem;
}

.quality-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.quality-header .field-label { margin-bottom: 0; }

.quality-num-input {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  width: 64px;
  text-align: center;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.2rem 0.4rem;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quality-num-input::-webkit-inner-spin-button,
.quality-num-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.quality-num-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quality-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--border2);
  outline: none;
  margin-bottom: 0.3rem;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.quality-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}

/* 縮小設定 */
.resize-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  margin-top: 0.75rem;
}

.resize-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.resize-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.resize-toggle-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.resize-body {
  margin-top: 0.85rem;
  transition: opacity 0.15s;
}

.resize-body.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.resize-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.resize-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.resize-input-row .field-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.resize-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resize-num-input {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent);
  width: 88px;
  text-align: center;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.2rem 0.4rem;
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.resize-num-input::-webkit-inner-spin-button,
.resize-num-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.resize-num-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.resize-unit {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ダウンロード方式 */
.dlmode-wrap {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.dlmode-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dlmode-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  min-width: 160px;
}

.dlmode-radio input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.dlmode-radio__body {
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  flex: 1;
  transition: border-color 0.15s, background 0.15s;
}

.dlmode-radio input:checked + .dlmode-radio__body {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dlmode-radio__title {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}

.dlmode-radio__desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* 変換ボタン */
.btn-run {
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
}

.btn-run:hover  { background: var(--accent-dark); }
.btn-run:active { transform: scale(0.99); }
.btn-run:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-convert { width: 100%; justify-content: center; }

/* ============================================================
   変換結果
   ============================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-header h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
}

.btn-add-more {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-add-more:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* プログレス */
.progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

/* 結果グリッド */
.result-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.result-item {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 8px rgba(73,167,206,0.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
  background: var(--surface2);
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.result-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.result-actions {
  flex-shrink: 0;
}

.btn-dl-single {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-dl-single:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ZIP一括DL行 */
.bulk-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.btn-bulk { display: inline-flex; align-items: center; }

.btn-reset {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-reset:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ============================================================
   コンテンツセクション（できること・使用例）
   ============================================================ */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-lead {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

/* できることグリッド */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition: box-shadow 0.15s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(73,167,206,0.10);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.feature-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

/* 使用例リスト */
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usecase-item {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.usecase-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-top: 1px;
}

.usecase-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.usecase-body p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   開発コストテーブル
   ============================================================ */
.cost-table-wrap {
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cost-table th,
.cost-table td {
  padding: 0.7rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cost-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface2);
  text-transform: uppercase;
}

.cost-table td:nth-child(2),
.cost-table td:nth-child(3) { text-align: right; }

.cost-table th:nth-child(2),
.cost-table th:nth-child(3) { text-align: right; }

.cost-table-total td {
  font-weight: 600;
  color: var(--text);
  background: var(--accent-light);
  border-top: 2px solid var(--border2);
  border-bottom: none;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.4rem; }
  .hero-chara { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .input-card { padding: 1.25rem 1rem; }
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .result-item { flex-wrap: wrap; }
  .bulk-row { flex-direction: column; align-items: stretch; }
  .btn-run { text-align: center; justify-content: center; }
  .dlmode-radio-group { flex-direction: column; }
  .header-usage-count { display: none; }
}
