/* ============================================================
   診療日カレンダー作成グモー — 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;
  --danger-bg:    rgba(214,69,69,0.09);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

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);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 38px; width: auto; 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-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.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;
  flex-shrink: 0;
}

.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;
  flex-shrink: 0;
}

.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);
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.8rem 2rem 0;
  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: 560px; 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: 1100px;
  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;
}

/* ── エディタレイアウト ── */
.editor-card {
  /* 外枠ラッパーとしてのみ使用（背景・ボーダーなし） */
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

/* ── 左カラム：白カード ── */
.tool-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 16px rgba(73,167,206,0.07);
}

/* ── パネル共通 ── */
.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
}
.panel__title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.panel__desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ── プレビュー ── */
.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.15s;
}
.btn-icon:hover:not(:disabled) { background: var(--surface2); }
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

.preview-bg-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.preview-bg-label { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.bg-btn {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}
.bg-btn.active { border-color: var(--accent); }
.bg-btn--checker { background-image: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%); background-size: 10px 10px; }
.bg-btn--white { background: #fff; border-color: #ddd; }
.bg-btn--gray  { background: #888; }
.bg-btn--black { background: #222; }
.bg-btn--beige { background: #7A6A50; }

.preview-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: repeating-conic-gradient(#e8e0d5 0% 25%, #f5ead8 0% 50%) 0 0 / 20px 20px;
}
.preview-canvas {
  position: relative;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.2s, min-height 0.2s;
  min-height: 160px;
}
.preview-scale-outer {
  /* フロー上の高さ確保用ラッパー（JS でheightをセット） */
  position: relative;
  width: 100%;
  overflow: hidden;
}
.preview-scale-container {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
.preview-scale-badge {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 0.68rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  user-select: none;
  position: relative;
  z-index: 1;
}
.preview-canvas.bg-checker {
  background-image: repeating-conic-gradient(#e8e0d5 0% 25%, #f5ead8 0% 50%);
  background-size: 20px 20px;
}
.preview-canvas.bg-white { background: #fff; }
.preview-canvas.bg-gray  { background: #888; }
.preview-canvas.bg-black { background: #222; }
.preview-canvas.bg-beige { background: #7A6A50; }

/* ── 表示設定テーブル ── */
.display-table-wrapper { overflow-x: auto; }
.display-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.display-table th,
.display-table td {
  padding: 6px 8px;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.display-table th {
  background: var(--surface2);
  font-weight: 500;
  font-size: 0.72rem;
}
.display-table td:first-child {
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 90px;
  background: var(--surface2);
}
.display-table select {
  padding: 3px 5px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  min-width: 54px;
}

/* ── DLパネル ── */
.dl-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dl-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  transition: all 0.15s;
}
.dl-option:hover { background: var(--accent-light); border-color: var(--border2); }
.dl-option input[type="radio"] { accent-color: var(--accent); cursor: pointer; }
.dl-option__label { font-size: 0.82rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-primary:hover  { background: var(--accent-dark); }
.btn-primary:active { transform: scale(0.98); }

/* ── 設定タブ（右カラム）── */
.tool-right { position: sticky; top: 76px; }
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(73,167,206,0.07);
}
.settings-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--border2);
  background: var(--surface2);
}
.settings-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.3;
}
.settings-tab svg { flex-shrink: 0; }
.settings-tab:hover { color: var(--accent); background: rgba(73,167,206,0.08); }
.settings-tab.is-active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  background: var(--surface);
}
.settings-tab-body {
  display: none;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.settings-tab-body.is-active { display: block; }

/* ── フォーム共通 ── */
.form-row { margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.form-select,
.form-input,
.form-textarea,
input.form-input,
textarea.form-textarea,
select.form-select {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  text-align: left !important;
  outline: none;
  transition: border-color 0.15s;
}
.form-select:focus,
.form-input:focus,
.form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { resize: vertical; }
.form-input--color-code { width: 90px; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; }
.form-input--num { width: 58px; text-align: center; font-family: 'Outfit', sans-serif; font-size: 0.88rem; font-weight: 600; }
.form-value-display { color: var(--accent); font-weight: 600; }
.form-unit { font-size: 0.72rem; color: var(--muted); }

.form-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  padding: 5px 8px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.color-input-row { display: flex; align-items: center; gap: 8px; }
.form-color {
  width: 36px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface);
  flex-shrink: 0;
}
.range-row { display: flex; align-items: center; gap: 8px; }
.form-range { flex: 1; accent-color: var(--accent); cursor: pointer; height: 4px; }

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  cursor: pointer;
}
.radio-label input { accent-color: var(--accent); }

.transparent-cb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}
.transparent-cb input { accent-color: var(--accent); cursor: pointer; }

/* ── 時間帯リスト ── */
#time-slots-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.time-slot-row { display: flex; align-items: center; gap: 6px; }
.time-slot-row input {
  flex: 1;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem;
  background: var(--surface);
  color: var(--text);
  text-align: left !important;
  outline: none;
}
.time-slot-row input:focus { border-color: var(--accent); }
.btn-remove-time {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  font-size: 14px;
  line-height: 1;
}
.btn-remove-time:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-remove-time.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  font-size: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-add:hover { background: var(--accent-light); }

/* ── 選択肢設定 ── */
.symbol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--surface2);
}
.symbol-row__name { font-size: 0.8rem; font-weight: 500; min-width: 56px; text-align: left; }
.symbol-row select {
  padding: 4px 6px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  cursor: pointer;
  min-width: 60px;
}
.symbol-row__cb {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--muted);
  margin-left: auto; cursor: pointer; white-space: nowrap;
}
.symbol-row__cb input { accent-color: var(--accent); }

.footnote-preview-text {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 8px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  min-height: 26px;
  line-height: 1.6;
}

/* ── サイズタブ ── */
.size-tab-row {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--surface2);
  padding: 3px;
  border-radius: var(--radius-sm);
}
.size-tab {
  flex: 1;
  padding: 5px 10px;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.size-tab.is-active {
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── 罫線パターン ── */
.border-pattern-grid { display: flex; gap: 14px; align-items: flex-start; }
.border-pattern-visual { flex-shrink: 0; }
.bp-preview {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  grid-template-rows: repeat(2, 18px);
  gap: 0;
  border: 2px solid var(--text);
}
.bp-cell { background: var(--surface2); border: 1px solid transparent; }
.border-checkboxes { flex: 1; }
.cb-label { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; cursor: pointer; margin-bottom: 4px; }
.cb-label input { accent-color: var(--accent); }

/* ── カレンダー出力（プレビュー内）── */
.cal-table-wrap { overflow-x: auto; }
.cal-table { border-collapse: collapse; min-width: 280px; }
.cal-table th, .cal-table td { padding: 6px 12px; text-align: center; white-space: nowrap; }
.cal-table th:first-child, .cal-table td:first-child { text-align: left; }
.cal-footnote { margin-top: 8px; line-height: 1.8; text-align: left; }

/* ── コードコピーエリア ── */
.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  background: var(--surface2);
  padding: 3px;
  border-radius: var(--radius-sm);
  width: fit-content;
}
.code-tab {
  padding: 4px 14px;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.code-tab:hover { color: var(--accent-dark); }
.code-tab.is-active { background: var(--surface); color: var(--accent-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.code-block-wrap { display: none; }
.code-block-wrap.is-active { display: block; }

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #1e2130;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.code-block-lang {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-copy.copied { background: var(--success); border-color: var(--success); color: #fff; }

.code-block {
  margin: 0;
  padding: 14px;
  background: #252838;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow-x: auto;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.code-block code {
  font-family: 'IBM Plex Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: #e8eaf0;
  white-space: pre;
  display: block;
}
.code-block code .tok-tag   { color: #79b8ff; }
.code-block code .tok-attr  { color: #ffab70; }
.code-block code .tok-val   { color: #9ecbff; }
.code-block code .tok-prop  { color: #79b8ff; }
.code-block code .tok-num   { color: #f8c555; }
.code-block code .tok-color { color: #f97583; }
.code-block code .tok-str   { color: #9ecbff; }
.code-block code .tok-at    { color: #c8a0f0; }

/* ── コンテンツセクション ── */
.content-section {
  max-width: 1100px;
  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(220px, 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-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.feature-card__title { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.feature-card__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-item__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-item__body strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.usecase-item__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: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .tool-right { position: static; order: -1; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.4rem; }
  .hero-chara { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .editor-card { padding: 1.25rem 1rem; }
  .tool-section { padding: 1.5rem 1rem; }
  .preview-controls { gap: 4px; }
  .bp-preview { grid-template-columns: repeat(3, 16px); grid-template-rows: repeat(2, 14px); }
  .header-usage-count { display: none; }
}
