@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #171717; --body: #333; --muted: #737373;
  --accent: #171717; --accent-dark: #444; --accent-soft: #f5f5f5;
  --nav: #0a0a0a; --paper: #fff; --white: #fff; --line: #e5e5e5; --radius: 2px;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --serif: var(--sans); --danger: #a82d2d;
}
* { box-sizing: border-box; }
html { font-size: 14px; }
body { margin: 0; color: var(--body); background: var(--paper); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; }
h1 { font-size: 24px; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
small { font-size: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #666; outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.muted, .subtitle, .field-help { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }

/* 共通ナビゲーション */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 216px; height: 100dvh; padding: 26px 16px 18px; background: var(--nav); border-right: 1px solid var(--line); z-index: 100; display: flex; flex-direction: column; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; color: #171717; font-size: 18px; font-weight: 600; letter-spacing: -.04em; padding: 0 10px; min-height: 30px; }
.brand-mark { display: flex; width: 24px; height: 26px; align-items: center; }
.brand-mark svg { width: 24px; height: 24px; }
.workspace-label { color: var(--muted); font-size: 11px; margin: 24px 10px 18px; flex-shrink: 0; }
.nav-list { display: block; flex: 1; min-height: 0; overflow-y: auto; margin-top: 20px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.workspace-label + .nav-list { margin-top: 0; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group-title { color: #858585; font-size: 10px; font-weight: 400; padding: 0 12px 8px; letter-spacing: .03em; }
.sidebar .brand { flex-shrink: 0; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 40px; color: #666; font-size: 13px; border-radius: var(--radius); }
.nav-link:hover { background: #fafafa; color: #171717; }
.nav-link.is-active { background: #f0f0f0; color: #171717; }
.nav-link small { margin-left: auto; font-size: 11px; color: #737373; }
.sidebar-create { margin-top: 20px; width: 100%; }
.sidebar-bottom { margin-top: 0; padding-top: 12px; flex-shrink: 0; }
.sidebar-footer { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); padding: 18px 2px 0; }
.sidebar-footer > div { flex: 1; min-width: 0; }
.sidebar-footer strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.sidebar-footer small { display: block; color: var(--muted); font-size: 11px; }
.sidebar-footer .icon-button { width: 28px; min-width: 28px; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; background: #e5e5e5; color: #444; border: 1px solid #dedede; border-radius: 50%; font-size: 11px; flex-shrink: 0; }
.app-main { margin-left: 216px; min-height: 100vh; min-width: 0; }
.demo-bar { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 32px; background: #fff; border-bottom: 1px solid var(--line); color: #737373; font-size: 11px; }
.demo-bar > span { display: flex; align-items: center; gap: 7px; }
.demo-switch { display: flex; align-items: center; gap: 2px; }
.demo-switch button { background: none; border: 1px solid transparent; border-radius: var(--radius); color: #777; padding: 4px 10px; font-size: 11px; }
.demo-switch button.is-active { color: #171717; background: #f5f5f5; border-color: #dedede; }
.topbar { min-height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.topbar-start, .topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-start { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #777; }
.breadcrumb .icon { width: 12px; height: 12px; }
.breadcrumb span { color: #444; }
.workspace-state { font-size: 12px; color: #737373; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 7px; background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: #666; cursor: pointer; flex-shrink: 0; }
.icon-button:hover, .icon-button.is-active { background: #f5f5f5; color: #171717; border-color: #dedede; }
.icon-button.menu-toggle, .sidebar-overlay { display: none; }
.page-content { width: 100%; max-width: 1440px; padding: 36px 36px 64px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.page-heading h1 { min-width: 0; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* 左ナビゲーション */
.sidebar { background: #0a0a0a; border-right-color: #242424; color: #ededed; }
.sidebar .brand { color: #fafafa; }
.sidebar .workspace-label { color: #999; }
.sidebar .nav-link { color: #aaa; }
.sidebar .nav-link:hover { background: #161616; color: #fff; }
.sidebar .nav-link.is-active { background: #262626; color: #fff; }
.sidebar .nav-link small { color: #999; }
.sidebar .sidebar-footer { border-top-color: #292929; }
.sidebar .sidebar-footer strong { color: #eee; }
.sidebar .sidebar-footer small { color: #999; }
.sidebar .avatar { background: #242424; color: #ddd; border-color: #383838; }
.sidebar .icon-button { color: #aaa; }
.sidebar .icon-button:hover { background: #222; color: #fff; border-color: #444; }
.preview-frame { background: #fff; }
/* 操作と一覧 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid #d9d9d9; border-radius: var(--radius); background: #fafafa; color: #171717; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.btn .icon { width: 15px; height: 15px; }
.btn:hover { border-color: #999; background: #f5f5f5; }
.btn-primary { background: #171717; border-color: #171717; color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-secondary { background: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: #666; }
.btn-ghost:hover { border-color: transparent; color: #171717; background: #f5f5f5; }
.btn-small { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.btn-full { width: 100%; }
.btn-danger { color: var(--danger); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #444; font-size: 12px; }
.text-link:hover, .table-title:hover { color: #171717; text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon { width: 14px; height: 14px; }
.card { border: 1px solid var(--line); background: var(--white); padding: 24px; border-radius: var(--radius); min-width: 0; }
.section-block { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 15px; }
.section-head a, .section-head small { font-size: 12px; color: var(--muted); }
.count { margin-left: 8px; color: #777; font-size: 12px; font-weight: 400; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1px solid #dedede; background: #fff; border-radius: var(--radius); min-width: 260px; padding: 0 12px; }
.search-field .icon { width: 16px; height: 16px; color: #777; }
.search-field input { border: 0; background: transparent; color: #171717; padding: 10px 0; min-height: 38px; width: 100%; min-width: 0; font-size: 12px; }
.search-field input::placeholder { color: #777; }
.search-field:focus-within { border-color: #777; }
.filter-tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.filter-tabs button { border: 1px solid transparent; color: #737373; background: transparent; padding: 7px 11px; border-radius: var(--radius); font-size: 12px; }
.filter-tabs button:hover { color: #171717; }
.filter-tabs button.is-active { background: #f5f5f5; border-color: #dedede; color: #171717; }
.project-grid, .project-grid.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { background: #fff; border: 1px solid #e0e0e0; border-radius: var(--radius); min-width: 0; padding: 22px; transition: border-color .15s; }
.project-card:hover { border-color: #aaa; }
.project-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-card-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dedede; background: #fafafa; border-radius: var(--radius); color: #444; flex-shrink: 0; }
.project-card-icon .icon { width: 18px; height: 18px; }
.project-card-title { min-width: 0; flex: 1; }
.project-card h3 { font-size: 13px; line-height: 1.65; font-weight: 500; overflow-wrap: anywhere; }
.project-card-title p, .project-card-title small, .project-owner { display: block; color: #777; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.project-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.project-card-bottom small { color: #777; font-size: 11px; }
.project-card-body { min-width: 0; }
.project-meta { margin-top: 16px; font-size: 11px; color: #777; display: flex; justify-content: space-between; gap: 10px; }
.project-meta .text-link { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 400; line-height: 1.5; color: #666; white-space: nowrap; }
.badge::before { content: ''; display: block; width: 5px; height: 5px; background: #777; border-radius: 50%; }
.status-review, .status-approved, .status-published { color: #555; }
.status-review::before { background: #777; }
.status-approved::before, .status-published::before { background: #171717; }
.status-archived { color: #777; }
.empty-state { text-align: center; padding: 60px 24px; border: 1px dashed #dedede; color: #777; }
.empty-state > .icon { width: 26px; height: 26px; margin-bottom: 16px; }
.empty-state h3 { font-size: 14px; margin-bottom: 12px; }
.empty-state p { font-size: 12px; margin-bottom: 18px; }
.empty-line { font-size: 12px; padding-block: 12px; }
.table-wrap { width: 100%; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: 12px; }
.data-table th { padding: 12px 14px; font-size: 11px; font-weight: 400; color: #777; border-bottom: 1px solid #dedede; }
.data-table td { padding: 18px 14px; border-bottom: 1px solid #e5e5e5; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table td strong { font-weight: 500; }
.data-table td small { display: block; color: #777; font-size: 11px; margin-top: 4px; }
.table-title { display: inline-flex; align-items: center; gap: 8px; }
.table-title .icon { width: 15px; height: 15px; color: #777; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-grid.overview-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.performance-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.performance-target { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; font-size: 12px; overflow-wrap: anywhere; }
.performance-target > a:first-child { flex: 1; min-width: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 22px; }
.stat-label, .stat-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #737373; }
.stat-value, .stat-card > strong { display: block; font-size: 28px; color: #171717; margin-top: 18px; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1.2; }
.stat-value small { color: #777; font-size: 11px; margin-left: 5px; font-weight: 400; }
.stat-note { color: #777; font-size: 11px; margin-top: 8px; }

/* 入力フォーム */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field > span:first-child { color: #444; font-size: 12px; }
.required { display: inline; font-size: 10px; color: #777; margin-left: 8px; }
.field input, .field select, .field textarea, select.control { width: 100%; background: #fff; border: 1px solid #d9d9d9; border-radius: var(--radius); padding: 10px 12px; min-height: 40px; color: #171717; font-size: 13px; }
.field input::placeholder, .field textarea::placeholder { color: #737373; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.8; }
.field input[type=color] { width: 58px; height: 40px; min-height: 0; padding: 4px; cursor: pointer; }
.field-help { font-size: 11px; line-height: 1.7; }
.field-full, .field-wide, .field.full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .field { margin-bottom: 0; }
.form-divider { border-top: 1px solid var(--line); margin: 24px 0; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions small { font-size: 11px; color: #777; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; font-size: 12px; color: #666; border: 1px solid #dedede; background: #fafafa; margin-bottom: 24px; line-height: 1.7; }
.notice .icon { width: 15px; height: 15px; margin-top: 3px; }
.wizard-layout { max-width: 860px; margin-inline: auto; }
.wizard-main { border: 1px solid var(--line); background: #fff; }
.wizard-form { padding: 30px; border: 0; }
.wizard-steps { display: flex; padding: 24px 30px; margin: 0; gap: 24px; border-bottom: 1px solid var(--line); }
.wizard-step { display: flex; align-items: center; gap: 8px; flex: 1; color: #777; font-size: 12px; }
.wizard-step > span, .wizard-step .step-number { display: grid; place-items: center; width: 24px; height: 24px; background: #f5f5f5; border: 1px solid #dedede; font-size: 11px; border-radius: var(--radius); }
.wizard-step.is-active { color: #171717; }
.wizard-step.is-active > span { background: #171717; color: #fff; border-color: #171717; }
.wizard-step.is-complete > span { color: #444; }
.form-section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.form-section-heading .step-number { color: #777; font-size: 14px; }
.form-section-heading h2 { font-size: 16px; }
.form-section-heading p { color: #737373; font-size: 12px; margin-top: 6px; }
.dropzone { position: relative; display: block; text-align: center; padding: 28px 18px; border: 1px dashed #bbb; background: #fafafa; border-radius: var(--radius); cursor: pointer; margin-bottom: 20px; }
.dropzone:hover, .dropzone.is-dragover { background: #fafafa; border-color: #777; }
.dropzone > .icon { display: block; margin: 0 auto 12px; width: 25px; height: 25px; color: #737373; }
.dropzone strong { display: block; font-size: 12px; font-weight: 500; color: #444; }
.dropzone p, .dropzone small { font-size: 11px; color: #777; display: block; margin-top: 6px; }
.file-input, .dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.uploaded-file { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); background: #fafafa; margin-bottom: 8px; min-width: 0; }
.uploaded-file > div { min-width: 0; flex: 1; }
.uploaded-file strong { display: block; font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uploaded-file small { display: block; font-size: 11px; color: #777; }
.uploaded-file > .icon { color: #777; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 28px; }
.tone-fieldset { border: 0; padding: 0; margin: 24px 0; }
.tone-fieldset legend { font-size: 12px; margin-bottom: 10px; }
.tone-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tone-option { display: block; position: relative; border: 1px solid #dedede; background: #fff; color: #444; padding: 16px 12px; cursor: pointer; border-radius: var(--radius); }
.tone-option input { accent-color: #171717; margin-right: 6px; }
.tone-option.is-active, .tone-option:has(input:checked) { border-color: #666; background: #1b1b1b; }
.tone-option strong { font-size: 12px; font-weight: 500; }
.tone-option small { display: block; margin-top: 5px; color: #777; font-size: 11px; }
.tone-sample { display: none; }
.review-list { margin: 20px 0 0; }
.review-list > div { padding: 13px 0; border-bottom: 1px solid #e5e5e5; }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { font-size: 11px; color: #777; margin-bottom: 6px; }
.review-list dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.confirmation-note { display: flex; align-items: center; gap: 8px; color: #737373; font-size: 12px; margin-top: 20px; }

/* 編集とプレビュー */
.editor-page { max-width: none; }
.editor-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: -8px 0 22px; }
.editor-status > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#save-state { color: #777; font-size: 11px; }
.editor-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.editor-panel { border: 1px solid var(--line); background: #fff; min-width: 0; }
.editor-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; }
.editor-tabs button { flex: 1; padding: 14px 6px; background: transparent; color: #737373; border: 0; border-bottom: 2px solid transparent; font-size: 12px; }
.editor-tabs button.is-active { border-bottom-color: #171717; color: #171717; }
.editor-form { padding: 22px; max-height: calc(100vh - 290px); min-height: 340px; overflow: auto; }
.editor-form > h2 { font-size: 14px; margin-bottom: 20px; }
.editor-form > p { margin-bottom: 20px; font-size: 12px; }
.editor-form .field input, .editor-form .field textarea, .editor-form .field select { font-size: 12px; }
.editor-form .field { margin-bottom: 18px; }
.feature-fields { margin-top: 16px; padding: 16px 12px 0; border: 1px solid #e5e5e5; background: #fafafa; }
.field-index { display: block; color: #777; font-size: 11px; margin-bottom: 10px; }
.editor-save-bottom { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.editor-save-bottom > .btn { width: 100%; }
.editor-save-bottom small { display: block; color: #777; text-align: center; font-size: 11px; margin-top: 10px; }
.color-control { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #666; }
.color-presets { display: flex; gap: 10px; margin: 0 0 24px; }
.color-swatch { width: 26px; height: 26px; padding: 0; border: 2px solid #fff; outline: 1px solid #999; border-radius: var(--radius); }
.hero-image-picker { margin-top: 24px; }
.hero-image-picker > h3 { margin-bottom: 12px; }
.hero-image-picker > p { margin-bottom: 14px; }
.image-choice { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px; border: 1px solid #dedede; background: #fff; color: #bbb; margin-bottom: 8px; border-radius: var(--radius); }
.image-choice.is-selected { background: #f5f5f5; border-color: #666; opacity: 1; }
.image-choice > img { width: 42px; height: 38px; object-fit: cover; flex-shrink: 0; }
.image-choice > span { min-width: 0; flex: 1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.image-choice small { display: block; color: #737373; font-size: 10px; margin-top: 3px; }
.image-choice > .icon { width: 15px; height: 15px; }
.preview-panel { border: 1px solid var(--line); background: #fafafa; min-width: 0; overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; min-height: 51px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-title { font-size: 12px; color: #666; }
.preview-devices { display: flex; gap: 4px; }
.preview-stage { display: flex; justify-content: center; align-items: flex-start; min-height: 580px; padding: 14px; overflow: auto; background: #f5f5f5; }
.preview-frame { display: block; width: 100%; height: 720px; border: 0; background: #fff; color-scheme: light; }
.preview-frame.is-mobile { width: 375px; max-width: 100%; }
.preview-footnote { display: flex; gap: 7px; align-items: center; color: #777; padding: 10px 12px; font-size: 11px; border-top: 1px solid var(--line); }
.preview-footnote .icon { width: 14px; height: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 24px; }
.detail-grid > * { min-width: 0; }
.detail-grid aside h2 { margin-bottom: 20px; }
.project-detail-preview { margin-bottom: 24px; }
.project-thumbnail { position: relative; aspect-ratio: 1.9; background: #eee; overflow: hidden; color-scheme: light; }
.project-thumbnail > img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-caption { position: absolute; bottom: 12px; left: 12px; font-size: 11px; color: #222; background: #fff; padding: 3px 7px; }
.mini-page { width: 84%; height: 90%; margin: 6% auto 0; padding: 20px; background: #fff; color: var(--project-accent); overflow: hidden; }
.mini-nav { display: flex; align-items: center; justify-content: space-between; font-size: 10px; padding-bottom: 12px; border-bottom: 1px solid #ddd; }
.mini-nav i { width: 26px; height: 2px; background: #bbb; }
.mini-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding-top: 18px; }
.mini-hero small { font-size: 8px; display: block; max-height: 28px; overflow: hidden; }
.mini-hero strong { font-size: 20px; line-height: 1.6; display: block; max-height: 65px; overflow: hidden; margin-top: 8px; }
.mini-hero b { display: block; width: 52px; height: 12px; background: var(--project-accent); margin-top: 12px; }
.mini-art { background: #efefef; display: grid; place-items: center; min-height: 120px; }
.mini-art svg { width: 70%; max-height: 130px; }
.mini-lines { display: flex; gap: 12px; margin-top: 18px; }
.mini-lines i { flex: 1; height: 2px; background: #ddd; }
.published-link { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 12px; }
.published-link a { display: flex; gap: 8px; align-items: center; }
.published-link .icon { width: 14px; height: 14px; }
.domain-status { display: flex; align-items: center; gap: 7px; color: #737373; font-size: 11px; margin-top: 14px; }

/* 資料・相談・設定 */
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.asset-card { padding: 0; overflow: hidden; }
.asset-preview { aspect-ratio: 1.8; display: grid; place-items: center; overflow: hidden; background: #f5f5f5; }
.asset-preview img { width: 100%; height: 100%; object-fit: cover; }
.pdf-preview { display: grid; gap: 8px; justify-items: center; color: #777; font-size: 11px; }
.pdf-preview .icon { width: 32px; height: 32px; }
.asset-card-body { padding: 18px; }
.asset-card-body h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.asset-card-body p { font-size: 11px; color: #777; margin: 6px 0 14px; }
.asset-card-body .text-link { font-size: 11px; }
.support-main { max-width: 860px; }
.support-contact { margin-top: 24px; font-size: 12px; color: #737373; }
.comment-list { display: grid; gap: 18px; max-height: 380px; overflow: auto; margin-bottom: 24px; }
.comment-item { display: flex; gap: 10px; border-bottom: 1px solid #e5e5e5; padding-bottom: 18px; }
.comment-item > div { flex: 1; min-width: 0; }
.comment-item:last-child { border-bottom: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-meta strong { font-size: 12px; font-weight: 500; }
.comment-meta small { font-size: 11px; color: #777; }
.comment-item p { font-size: 12px; }
.comment-empty { padding: 12px 0; color: #777; font-size: 12px; }
.comment-empty small { display: block; margin-top: 6px; font-size: 11px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.settings-section { min-width: 0; }
.settings-section h2 { margin-bottom: 24px; }
.settings-section > p { color: #737373; font-size: 12px; margin: 16px 0; }
.connection-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid #e5e5e5; font-size: 12px; }
.connection-row:last-child { border-bottom: 0; }
.connection-row > span:first-child { color: #737373; }
.connection-row strong { font-weight: 400; text-align: right; }
.settings-section > .text-link { margin-top: 20px; }
.connection-ok { color: #444; }

/* 公開・分析・運用 */
.page-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 16px 0 24px; }
.page-heading + .page-note { margin-top: -12px; }
.card .page-note { margin: 12px 0 0; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.list-toolbar > label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; min-width: 0; }
.list-toolbar select { min-height: 40px; border: 1px solid #dedede; border-radius: var(--radius); color: #333; background: #fff; padding: 8px 32px 8px 12px; font-size: 12px; max-width: 380px; }
.list-toolbar .field { margin-bottom: 0; min-width: 220px; }
.list-toolbar .search-field { margin-left: auto; }
.list-toolbar > .muted { font-size: 12px; }
.project-links { display: flex; align-items: center; gap: 18px; margin: -8px 0 24px; flex-wrap: wrap; }
.project-links .text-link { font-size: 12px; }
.project-links button.text-link { border: 0; background: none; padding: 0; }
.project-links .icon { width: 14px; height: 14px; }
.analytics-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.analytics-summary > div { min-width: 0; }
.analytics-summary strong { display: block; font-size: 36px; line-height: 1.2; color: #171717; font-weight: 500; font-variant-numeric: tabular-nums; }
.analytics-summary small, .analytics-summary p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.analytics-summary strong small { margin-left: 8px; }
.analytics-summary span { font-size: 12px; color: var(--muted); }
.analytics-chart { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 12px 0 28px; min-width: 0; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; height: 190px; font-size: 10px; color: #777; }
.chart-bars { display: flex; align-items: stretch; gap: 8px; height: 190px; border-bottom: 1px solid #d9d9d9; padding: 0 6px; }
.chart-column { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-bar { display: block; height: var(--bar-height, 0%); width: 100%; max-width: 26px; min-height: 0; background: #333; border-radius: 1px 1px 0 0; }
.chart-column:hover .chart-bar { background: #666; }
.chart-label { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #777; margin-top: 12px; }
.chart-column .chart-label { position: absolute; top: 100%; display: block; white-space: nowrap; margin-top: 10px; font-size: 10px; }
.chart-zero { color: #777; font-size: 12px; text-align: center; padding: 22px 0 4px; }
.analytics-chart + .page-note { margin-top: 32px; }
.activity-table td { white-space: normal; }
.activity-table time { white-space: nowrap; }
.deployment-actions { display: flex; align-items: center; gap: 8px; }
.activity-detail { white-space: normal; min-width: 160px; max-width: 420px; overflow-wrap: anywhere; }
.settings-basic { max-width: 860px; }
.usage-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.usage-stats .stat-card > strong { font-size: 25px; }

@media (max-width: 1200px) {
  .usage-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .list-toolbar > label, .list-toolbar .field, .list-toolbar .search-field { width: 100%; min-width: 0; }
  .list-toolbar select { width: 100%; max-width: 100%; min-width: 0; }
  .analytics-summary { gap: 16px; flex-wrap: wrap; }
  .analytics-summary strong { font-size: 30px; }
  .chart-bars { gap: 3px; height: 150px; padding-inline: 0; }
  .chart-scale { height: 150px; }
  .chart-column .chart-label { font-size: 9px; }
  .project-links { gap: 16px; }
}

/* ダイアログとログイン */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border: 1px solid #ccc; background: #fff; border-radius: var(--radius); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #dedede; }
.modal-header h2 { font-size: 16px; }
.modal-body { padding: 24px; font-size: 13px; }
.modal-body > p { margin-bottom: 20px; color: #666; line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 390px; padding: 32px; border: 1px solid #dedede; background: #fff; }
.login-card .brand { justify-content: center; padding: 0; margin-bottom: 28px; }
.login-card h1 { font-size: 20px; margin-bottom: 28px; text-align: center; }
.login-card .btn { width: 100%; }
.demo-login { border-top: 1px solid #dedede; margin-top: 24px; padding-top: 20px; display: grid; gap: 10px; }
.demo-login > small { color: #777; font-size: 11px; text-align: center; }
.loading-state { min-height: 100vh; display: grid; place-items: center; color: #666; font-size: 13px; }
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: grid; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: #fafafa; border: 1px solid #d5d5d5; color: #171717; font-size: 12px; border-radius: var(--radius); max-width: 420px; }
.toast .icon { width: 16px; height: 16px; }
.toast.error { border-color: #8a4545; }

@media (max-width: 1200px) {
  .project-grid, .project-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
  .page-content { padding: 30px 28px 48px; }
  .settings-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 18px; }
}
@media (max-width: 1000px) {
  .editor-layout, .detail-grid { grid-template-columns: 1fr; }
  .editor-form { max-height: 440px; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { align-items: flex-start; }
  .heading-actions { justify-content: flex-end; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .sidebar { transform: translateX(-100%); width: 230px; }
  .app-main { margin-left: 0; }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .app-shell.menu-open .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.65); }
  .icon-button.menu-toggle { display: inline-flex; }
  .topbar { min-height: 58px; padding: 0 18px; }
  .topbar-start { flex: 1; gap: 10px; }
  .topbar-actions { gap: 8px; }
  .workspace-state { display: none; }
  .demo-bar { padding-inline: 20px; }
  .page-content { padding: 28px 22px 42px; }
}
@media (max-width: 520px) {
  h1 { font-size: 21px; }
  .stat-grid.overview-stats { grid-template-columns: 1fr; }
  .stat-grid.performance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading { flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .heading-actions { justify-content: flex-start; }
  .page-content { padding: 24px 18px 40px; }
  .demo-bar { padding: 5px 12px; font-size: 10px; gap: 6px; }
  .demo-switch button { font-size: 10px; padding: 4px 7px; }
  .breadcrumb { font-size: 11px; gap: 6px; }
  .project-grid, .project-grid.grid-3, .asset-grid, .form-grid, .settings-grid { grid-template-columns: 1fr; }
  .project-card { padding: 20px; }
  .project-card-bottom { margin-top: 24px; }
  .filter-bar { gap: 12px; }
  .search-field { min-width: 0; width: 100%; }
  .filter-tabs { gap: 0; }
  .filter-tabs button { font-size: 11px; padding: 7px 10px; }
  .card { padding: 20px 16px; }
  .asset-card { padding: 0; }
  .stat-card { padding: 18px 16px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 11px; }
  .wizard-form { padding: 22px 16px; }
  .wizard-steps { gap: 10px; padding: 20px 16px; }
  .wizard-step { font-size: 11px; gap: 6px; }
  .wizard-step > span { width: 22px; height: 22px; flex-shrink: 0; }
  .tone-options { gap: 8px; }
  .tone-option { padding: 12px 8px; }
  .tone-option strong { font-size: 11px; }
  .tone-option small { font-size: 10px; }
  .wizard-actions .btn { padding-inline: 12px; font-size: 11px; }
  .editor-form { padding: 20px 16px; }
  .preview-stage { padding: 8px; min-height: 480px; }
  .preview-frame { height: 620px; }
  .editor-status > div { gap: 8px; }
  .editor-status .text-link { font-size: 11px; }
  .connection-row { flex-wrap: wrap; gap: 8px; }
  .form-actions .btn { margin-left: auto; }
  .modal-overlay { padding: 16px; }
  .modal-header, .modal-body { padding: 20px; }
  .modal-actions { flex-wrap: wrap; }
  .data-table th, .data-table td { padding: 14px 10px; }
  .toast-stack { right: 16px; bottom: 16px; }
  .mini-page { padding: 14px; }
  .mini-hero strong { font-size: 14px; max-height: 45px; }
  .mini-art { min-height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* お客様のデザイン参考 */
.design-reference-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.design-reference-layout>*,.design-preferences{min-width:0}.design-section{margin-bottom:24px;padding:24px}.design-section h2{font-size:16px;margin:0 0 22px}.design-section .section-head h2{margin:0}.design-project-label{display:flex;align-items:center;gap:16px;font-size:12px;min-width:0}.design-project-label select{max-width:500px;min-width:160px}.design-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.design-preset{position:relative;display:flex;flex-direction:column;gap:6px;border:1px solid var(--border,#dedede);border-radius:2px;padding:12px;cursor:pointer;min-width:0}.design-preset:has(input:checked){border-color:#171717;box-shadow:inset 0 0 0 1px #171717}.design-preset:focus-within{outline:2px solid #777;outline-offset:2px}.design-preset>input{position:absolute;top:10px;right:10px;accent-color:#171717;width:14px;height:14px;z-index:1}.design-preset>strong{font-size:12px}.design-preset>span:last-child{font-size:10px;color:#777;line-height:1.6}.design-wireframe{display:block;position:relative;width:100%;height:85px;background:#f5f5f5;overflow:hidden;margin-bottom:5px}.design-wireframe i,.design-wireframe b,.design-wireframe em,.design-wireframe small{display:block;position:absolute;background:#d9d9d9;border-radius:1px}.design-wireframe i{width:44%;height:50%;right:7%;top:18%}.design-wireframe b{width:34%;height:6px;left:7%;top:28%;background:#777}.design-wireframe em{width:30%;height:3px;left:7%;top:42%}.design-wireframe small{width:16%;height:7px;left:7%;top:55%;background:#999}.design-wireframe-auto{background:#f0f0f0}.design-wireframe-event i{width:74%;height:28%;left:13%;top:58%}.design-wireframe-event b{width:58%;left:21%;top:18%}.design-wireframe-event em{width:40%;left:30%;top:32%}.design-wireframe-event small{left:42%;top:44%}.design-wireframe-store i{width:84%;height:45%;left:8%;top:10%}.design-wireframe-store b{width:42%;left:8%;top:67%}.design-wireframe-store em{left:8%;top:82%}.design-wireframe-store small{left:64%;top:72%}.design-wireframe-product i{left:7%;height:68%;top:15%}.design-wireframe-product b,.design-wireframe-product em,.design-wireframe-product small{left:58%}.design-wireframe-business i{width:25%;height:38%;top:22%}.design-wireframe-business b{width:47%;height:11px;top:23%}.design-wireframe-business em{width:45%;top:43%}.design-wireframe-business small{width:26%;top:58%}.design-reference-row{border-top:1px solid #e7e7e7;padding:18px 0 4px}.design-reference-row-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:10px}.design-reference-row .field{margin-bottom:16px}.design-reference-files{display:grid;gap:8px;margin-top:16px}.design-reference-file{display:flex;align-items:center;gap:8px;border:1px solid #e4e4e4;padding:8px;min-width:0}.design-reference-file label{display:flex;align-items:center;gap:10px;flex:1;min-width:0;cursor:pointer}.design-reference-file input{width:15px;height:15px;flex:none;accent-color:#171717}.design-reference-file img{width:64px;height:48px;object-fit:contain;background:#f5f5f5;flex:none}.design-reference-file label span{font-size:12px;overflow-wrap:anywhere}.design-reference-file>a{flex:none}.design-save{width:100%;justify-content:center}.design-priority-note{font-size:11px;line-height:1.9;color:#777;margin:20px 0}.design-dropzone strong{font-size:13px}.design-dropzone small{line-height:1.8}#design-save-status{display:block;text-align:center;margin-top:10px}#wizard-reference-files .uploaded-file strong{flex:1;font-size:12px;overflow-wrap:anywhere}
@media(max-width:1180px){.design-reference-layout{grid-template-columns:1fr}.design-preferences{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}}
@media(max-width:650px){.design-preferences{display:block}.design-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-section{padding:18px}.design-project-label{display:block;width:100%}.design-project-label select{display:block;width:100%;margin-top:8px;max-width:100%}.design-reference-file img{width:48px;height:40px}.design-section .section-head{gap:12px}.design-section .section-head .muted{font-size:11px}}