/* ─── Design Tokens: Dark ───────────────────────────────────── */
:root {
  --bg:            #1a1a1a;
  --surface:       #242424;
  --border:        #333333;
  --border2:       #4a4a4a;
  --accent:        #FFD04D;
  --accent-h:      #E8A800;
  --accent-bg:     #2a2200;
  --accent-ring:   rgba(255,208,77,.2);
  --text:          #f0e8cc;
  --text2:         #c8b878;
  --text3:         #7a6a3a;
  --danger:        #ef4444;
  --danger-bg:     #2a1010;
  --success:       #4ade80;
  --warn:          #fb923c;
  --shadow:        0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
  --shadow-nav:    0 2px 8px rgba(0,0,0,.6);
  --folder-body:   #FFD04D;
  --folder-tab:    #C88A00;
  --folder-text:   #1a1000;
  --radius:        10px;
  --radius-lg:     14px;
  --topbar-h:      34px;
  --navbar-h:      64px;
  --sticky-offset: calc(var(--topbar-h) + var(--navbar-h));
}

/* ─── Design Tokens: Light ──────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root {
    --bg:          #faf7ee;
    --surface:     #ffffff;
    --border:      #e8d898;
    --border2:     #d0b84a;
    --accent:      #C88A00;
    --accent-h:    #a87000;
    --accent-bg:   #fff8d6;
    --accent-ring: rgba(200,138,0,.15);
    --text:        #2a1f00;
    --text2:       #5a4510;
    --text3:       #9a8030;
    --danger:      #dc2626;
    --danger-bg:   #fef2f2;
    --success:     #16a34a;
    --warn:        #d97706;
    --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:   0 4px 16px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.07);
    --shadow-nav:  0 2px 8px rgba(0,0,0,.10);
  }
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  padding-top: var(--sticky-offset);
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h); background: var(--folder-body);
  display: flex; align-items: center; justify-content: center;
  gap: 20px; z-index: 101;
  font-size: .72rem; font-weight: 600; color: var(--folder-text);
  letter-spacing: .01em; overflow: hidden;
}
.topbar::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: min(200px, 26%); height: 100%; background: var(--folder-tab);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.topbar-item { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.topbar-item svg { opacity: .65; }
.topbar-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(0,0,0,.25); }

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0;
  height: var(--navbar-h); background: var(--surface);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-nav);
  display: flex; align-items: center; padding: 0 32px; z-index: 100; gap: 16px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.navbar-logo-icon {
  width: 50px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.navbar-logo-icon svg { width: 46px; height: 46px; }
.navbar-brand-text { margin-left: 4px; }
.navbar-brand-name { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.navbar-brand-name span { color: var(--accent); }
.navbar-brand-tagline { font-size: .65rem; color: var(--text3); margin-top: 2px; letter-spacing: .02em; }
.navbar-spacer { flex: 1; }
.navbar-pill         { font-size: .68rem; font-weight: 600; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--border2); border-radius: 99px; padding: 3px 10px; }
.navbar-pill-outline { font-size: .68rem; font-weight: 600; background: transparent; color: var(--text2); border: 1px solid var(--border2); border-radius: 99px; padding: 3px 10px; }

/* Breadcrumb */
.navbar-breadcrumb { display: flex; align-items: center; gap: 5px; font-size: .75rem; }
.navbar-breadcrumb a { color: var(--text2); text-decoration: none; }
.navbar-breadcrumb a:hover { color: var(--accent); }
.navbar-breadcrumb .bc-sep { color: var(--text3); }
.navbar-breadcrumb .bc-cur { color: var(--text); font-weight: 600; }

/* Tab Bar */
.tab-bar {
  position: fixed; top: calc(var(--topbar-h) + var(--navbar-h));
  left: 0; right: 0; height: 46px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch; padding: 0 32px;
  z-index: 99; overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0 18px; border: none; border-bottom: 2px solid transparent;
  background: transparent; font-size: .82rem; font-weight: 500;
  cursor: pointer; color: var(--text3); white-space: nowrap;
  transition: color .15s, border-color .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.tab-btn .tab-sub { font-size: .63rem; color: inherit; opacity: .75; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.tab-btn:hover:not(.active) { color: var(--text2); }

/* ─── Page ───────────────────────────────────────────────────── */
.page { max-width: 860px; margin: 0 auto; padding: 32px 20px 80px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Section Head ───────────────────────────────────────────── */
.section-head { margin-bottom: 22px; }
.section-head h1, .section-head h2 {
  font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--text);
}
.section-head p { font-size: .77rem; color: var(--text3); margin-top: 5px; line-height: 1.65; }

/* ─── Info Strip ─────────────────────────────────────────────── */
.info-strip {
  background: var(--accent-bg); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 11px 14px;
  font-size: .76rem; color: var(--text2); line-height: 1.7; margin-bottom: 16px;
}
.info-strip strong { font-weight: 600; color: var(--accent); }

/* ─── Drop Zone ──────────────────────────────────────────────── */
.drop-zone, .batch-drop {
  border: 2px dashed var(--border2); border-radius: var(--radius-lg);
  padding: 44px 20px; text-align: center; cursor: pointer;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .2s, background .2s, box-shadow .2s; margin-bottom: 14px;
}
.batch-drop { padding: 52px 20px; }
.drop-zone:hover, .drop-zone.dragover,
.batch-drop:hover, .batch-drop.dragover {
  border-color: var(--accent); background: var(--accent-bg);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.drop-zone svg, .batch-drop svg { display: block; margin: 0 auto 12px; color: var(--text3); }
.dz-label { font-size: .88rem; color: var(--text2); font-weight: 600; }
.dz-sub   { font-size: .73rem; color: var(--text3); margin-top: 6px; }
input[type="file"] { display: none; }

/* ─── Controls ───────────────────────────────────────────────── */
.controls {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; flex-wrap: wrap;
  gap: 16px; align-items: flex-end; margin-bottom: 14px;
}
.ctrl-group { display: flex; flex-direction: column; gap: 5px; }
.ctrl-group label {
  font-size: .66rem; font-weight: 700; color: var(--text3);
  letter-spacing: .07em; text-transform: uppercase;
}
.ctrl-divider { width: 100%; height: 1px; background: var(--border); margin: 2px 0; }
.ctrl-label-group {
  width: 100%; font-size: .66rem; font-weight: 700; color: var(--accent);
  letter-spacing: .07em; text-transform: uppercase; padding-bottom: 2px;
}
select, input[type="text"] {
  border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px;
  font-size: .81rem; background: var(--bg); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
select:focus, input[type="text"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ─── Preview Header ─────────────────────────────────────────── */
.preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-header .count { font-size: .75rem; color: var(--text3); font-weight: 500; }
.tools { display: flex; gap: 5px; }

/* ─── Thumbnail Grid ─────────────────────────────────────────── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px; margin-bottom: 20px; max-height: 420px; overflow-y: auto; padding: 2px;
}
.thumb {
  position: relative; background: var(--surface); border-radius: 8px;
  border: 1.5px solid var(--border); overflow: hidden; cursor: grab;
  user-select: none; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow);
}
.thumb:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.thumb.dragging { opacity: .45; }
.thumb.over     { border-color: var(--accent); }
.thumb img  { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.thumb .info { font-size: .62rem; color: var(--text3); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .num  { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; border-radius: 4px; padding: 1px 5px; }
.thumb .del  { position: absolute; top: 4px; right: 4px; background: var(--danger); color: #fff; border: none; border-radius: 4px; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: none; align-items: center; justify-content: center; }
.thumb:hover .del { display: flex; }

/* Converter states */
.thumb-done { border-color: var(--success) !important; }
.thumb-proc { border-color: var(--warn)    !important; }
.thumb-err  { border-color: var(--danger)  !important; }
.thumb .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; pointer-events: none; }
.thumb-done .overlay { background: rgba(74,222,128,.18); }
.thumb-err  .overlay { background: rgba(239,68,68,.18); }
.thumb .spinner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); }
.thumb .spinner::after { content: ''; width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.25); border-top-color: var(--accent); border-radius: 50%; animation: cv-spin .7s linear infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.thumb .dl-btn { position: absolute; bottom: 26px; right: 4px; background: var(--accent); color: #1a1000; border: none; border-radius: 5px; padding: 3px 7px; font-size: .62rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.thumb .dl-btn:hover { background: var(--accent-h); }

/* ─── Empty ──────────────────────────────────────────────────── */
.empty { text-align: center; color: var(--text3); padding: 36px; font-size: .83rem; background: var(--surface); border-radius: var(--radius); border: 1.5px dashed var(--border); box-shadow: var(--shadow); grid-column: 1 / -1; }

/* ─── File List ──────────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.file-item { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: .83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta   { font-size: .7rem; color: var(--text3); margin-top: 3px; }
.file-status { font-size: .72rem; margin-top: 3px; }
.s-wait { color: var(--text3); }
.s-proc { color: var(--warn); }
.s-done { color: var(--success); }
.s-err  { color: var(--danger); }
.file-prog { flex-shrink: 0; width: 80px; }
.prog-bg { background: var(--border); border-radius: 99px; height: 3px; overflow: hidden; }
.prog-bar { background: var(--accent); height: 100%; width: 0%; transition: width .2s; border-radius: 99px; }
.prog-txt { font-size: .66rem; color: var(--text3); margin-top: 3px; text-align: right; }
.file-del { background: none; border: none; color: var(--text3); cursor: pointer; font-size: .9rem; flex-shrink: 0; padding: 2px 4px; border-radius: 4px; }
.file-del:hover { color: var(--danger); }

/* ─── Progress ───────────────────────────────────────────────── */
.progress-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; display: none; }
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-top span { font-size: .77rem; color: var(--text2); font-weight: 500; }
.progress-top .pct { font-size: .77rem; color: var(--text3); font-variant-numeric: tabular-nums; }
.progress-track { background: var(--border); border-radius: 99px; height: 5px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--accent), var(--folder-body)); height: 100%; width: 0%; transition: width .25s; border-radius: 99px; }

/* ─── Actions ────────────────────────────────────────────────── */
.actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn { padding: 9px 22px; border-radius: 8px; font-size: .83rem; font-weight: 700; border: none; cursor: pointer; transition: all .15s; letter-spacing: .01em; }
.btn-primary { background: var(--accent); color: #1a1000; box-shadow: 0 2px 8px rgba(255,208,77,.3); }
.btn-primary:hover:not(:disabled) { background: var(--accent-h); box-shadow: 0 4px 14px rgba(255,208,77,.4); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-secondary { background: var(--surface); color: var(--text2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover:not(:disabled) { border-color: var(--border2); color: var(--text); }
.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); opacity: .7; }
.btn-outline-danger:hover { background: var(--danger-bg); opacity: 1; }
.btn-ghost { font-size: .73rem; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text2); transition: all .15s; box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* ─── Step Bar ───────────────────────────────────────────────── */
.step-bar { display: flex; margin-bottom: 24px; gap: 4px; }
.step { flex: 1; text-align: center; padding: 9px 4px; font-size: .73rem; color: var(--text3); border-bottom: 2px solid var(--border); transition: all .2s; font-weight: 500; }
.step.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.step.done   { color: var(--success); border-bottom-color: var(--success); }

/* ─── PDF Preview Grid ───────────────────────────────────────── */
.pdf-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; margin-bottom: 18px; max-height: 360px; overflow-y: auto; }
.page-thumb { background: var(--surface); border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .15s; box-shadow: var(--shadow); }
.page-thumb:hover { border-color: var(--accent); }
.page-thumb.excluded { opacity: .3; border-color: var(--danger); }
.page-thumb canvas { width: 100%; display: block; }
.pg-num { font-size: .62rem; color: var(--text3); text-align: center; padding: 3px 0; }
.pg-badge { font-size: .6rem; text-align: center; padding: 2px 0; background: var(--danger); color: #fff; }

/* ─── Vol List ───────────────────────────────────────────────── */
.vol-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; max-height: 400px; overflow-y: auto; padding: 1px; }
.vol-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.vol-item:hover { border-color: var(--border2); }
.vol-item.active-vol { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.vol-check { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.vol-info  { flex: 1; min-width: 0; }
.vol-name  { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.vol-meta  { font-size: .71rem; color: var(--text3); margin-top: 3px; }
.vol-status { font-size: .72rem; margin-top: 3px; }
.vol-prog  { flex-shrink: 0; width: 90px; }

/* ─── Batch Toolbar ──────────────────────────────────────────── */
.batch-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.batch-summary { font-size: .77rem; color: var(--text3); font-weight: 500; }
.toolbar-btns  { display: flex; gap: 5px; }

/* ─── Hub: Converter Cards ───────────────────────────────────── */
.hub-section-title {
  font-size: .7rem; font-weight: 700; color: var(--text3);
  letter-spacing: .08em; text-transform: uppercase;
  margin: 28px 0 10px; display: flex; align-items: center; gap: 10px;
}
.hub-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.conv-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; margin-bottom: 8px; }
.conv-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow); }
.conv-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.conv-formats { display: flex; align-items: center; gap: 8px; }
.fmt-pill { font-size: .68rem; font-weight: 700; border-radius: 5px; padding: 3px 8px; text-transform: uppercase; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--border2); }
.conv-arrow      { color: var(--text3); font-size: 1rem; }
.conv-card-title { font-size: .88rem; font-weight: 700; color: var(--text); }
.conv-card-desc  { font-size: .72rem; color: var(--text3); line-height: 1.5; }
.conv-card-badge { font-size: .62rem; font-weight: 600; border-radius: 99px; padding: 2px 7px; background: var(--border); color: var(--text3); align-self: flex-start; }
.conv-card-badge.lib { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--border2); }

/* ─── SEO Intro ──────────────────────────────────────────────── */
.seo-intro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 28px; box-shadow: var(--shadow); }
.seo-intro h1 { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; margin-bottom: 8px; }
.seo-intro p { font-size: .82rem; color: var(--text2); line-height: 1.8; margin-bottom: 16px; }
.seo-features { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-feature-tag { font-size: .72rem; font-weight: 600; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--border2); border-radius: 99px; padding: 4px 12px; }

/* ================================================================
   グローバルアニメーション
   ================================================================ */

@keyframes cv-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cv-pop-in {
  0%   { opacity: 0; transform: scale(.75); }
  65%  { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cv-draw-line {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:  .01ms !important;
    animation-delay:     .01ms !important;
    transition-duration: .01ms !important;
  }
}

.topbar { animation: cv-fade-in .4s ease .05s both; }
.navbar { animation: cv-fade-in .4s ease .1s  both; }

.seo-intro    { animation: cv-slide-up .5s cubic-bezier(.22,.68,0,1.2) .15s both; }
.section-head { animation: cv-slide-up .45s cubic-bezier(.22,.68,0,1.2) .2s  both; }
.info-strip   { animation: cv-slide-up .4s cubic-bezier(.22,.68,0,1.2) .25s  both; }
.step-bar     { animation: cv-fade-in  .35s ease                        .2s  both; }

.seo-feature-tag        { opacity: 0; animation: cv-pop-in .4s cubic-bezier(.34,1.56,.64,1) forwards; }
.seo-feature-tag:nth-child(1) { animation-delay: .3s; }
.seo-feature-tag:nth-child(2) { animation-delay: .38s; }
.seo-feature-tag:nth-child(3) { animation-delay: .46s; }
.seo-feature-tag:nth-child(4) { animation-delay: .54s; }
.seo-feature-tag:nth-child(5) { animation-delay: .62s; }

.hub-section-title::after {
  transform-origin: left;
  animation: cv-draw-line .5s ease .3s both;
}

.conv-card { opacity: 0; animation: cv-slide-up .4s cubic-bezier(.22,.68,0,1.2) both; }
.conv-card:nth-child(1)  { animation-delay: .1s; }
.conv-card:nth-child(2)  { animation-delay: .15s; }
.conv-card:nth-child(3)  { animation-delay: .2s; }
.conv-card:nth-child(4)  { animation-delay: .25s; }
.conv-card:nth-child(5)  { animation-delay: .3s; }
.conv-card:nth-child(6)  { animation-delay: .35s; }
.conv-card:nth-child(7)  { animation-delay: .4s; }
.conv-card:nth-child(8)  { animation-delay: .45s; }
.conv-card:nth-child(9)  { animation-delay: .5s; }
.conv-card:nth-child(10) { animation-delay: .55s; }
.conv-card:nth-child(11) { animation-delay: .6s; }
.conv-card:nth-child(12) { animation-delay: .65s; }
.conv-card:nth-child(13) { animation-delay: .7s; }

.drop-zone, .batch-drop { animation: cv-slide-up .45s cubic-bezier(.22,.68,0,1.2) .2s both; }
.controls  { animation: cv-fade-in .4s ease .3s  both; }
.file-list { animation: cv-fade-in .4s ease .3s  both; }
.vol-list  { animation: cv-fade-in .4s ease .3s  both; }
.actions   { animation: cv-fade-in .4s ease .4s  both; }

/* ================================================================
   SP / モバイル対応 (max-width: 640px)
   ================================================================ */
@media (max-width: 640px) {

  /* ── Topbar ── */
  .topbar {
    gap: 10px;
    font-size: .65rem;
    padding: 0 8px;
  }
  /* 3番目のアイテム（ブラウザ内で完結）を非表示 */
  .topbar .topbar-dot:last-of-type,
  .topbar .topbar-item:last-child {
    display: none;
  }

  /* ── Navbar ── */
  .navbar {
    padding: 0 14px;
  }
  /* ブランドを絶対中央→通常フローに変更 */
  .navbar-brand {
    position: static;
    transform: none;
    gap: 8px;
  }
  .navbar-logo-icon svg { width: 34px; height: 34px; }
  .navbar-brand-name   { font-size: 1.1rem; }
  .navbar-brand-tagline { display: none; }

  /* パンくずは非表示（スペース節約） */
  .navbar-breadcrumb { display: none; }

  /* ── Page ── */
  .page { padding: 20px 14px 60px; }

  /* ── SEO Intro ── */
  .seo-intro { padding: 18px 16px; }
  .seo-intro h1 { font-size: 1rem; }

  /* ── Converter Cards ── */
  .conv-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .conv-card { padding: 12px; }
  .conv-card-desc { display: none; }

  /* ── Drop Zone ── */
  .drop-zone, .batch-drop { padding: 30px 14px; }

  /* ── Controls ── */
  .controls { gap: 10px; }

  /* ── Buttons ── */
  .btn { padding: 9px 16px; font-size: .8rem; }
  .actions { gap: 6px; }

  /* ── Thumbnail Grid ── */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}