/* ============================================================
   AVT Tools — ptn01 ニューモーフィズム（Soft UI）
   共有スタイル: index.html / pdf.html
   影の基準値: Blur25 / X12 / Y12 / 15% / #3754AA（ニューモ02.jpg）
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  /* color */
  --bg: #E8ECF4;             /* 背景: 淡いラベンダーグレー */
  --surface: #EDF0F8;        /* 面: 影で立体を作る */
  --ink: #3E4A66;            /* テキスト主 */
  --ink-soft: #5B6B94;       /* テキスト従（AA確保済み） */
  --accent: #4A6CD4;         /* アクセント: フォーカス・ON状態 */
  --accent-strong: #3D5CBD;  /* アクセント文字用（コントラスト強化） */
  --accent-grad: linear-gradient(135deg, #5B7BE0 0%, #4463C9 100%);
  --danger: #B0334E;

  /* neumorphic shadows（ニューモ02の数値が基準） */
  --nm-raised: 12px 12px 25px rgba(55, 84, 170, .15), -12px -12px 25px rgba(255, 255, 255, .9);
  --nm-raised-sm: 7px 7px 16px rgba(55, 84, 170, .14), -7px -7px 16px rgba(255, 255, 255, .9);
  --nm-float: 16px 18px 36px rgba(55, 84, 170, .22), -14px -14px 30px rgba(255, 255, 255, .95);
  --nm-inset: inset 6px 6px 14px rgba(55, 84, 170, .14), inset -6px -6px 14px rgba(255, 255, 255, .9);
  --nm-inset-deep: inset 9px 9px 22px rgba(55, 84, 170, .2), inset -8px -8px 18px rgba(255, 255, 255, .85);
  --nm-pressed: inset 5px 5px 12px rgba(55, 84, 170, .2), inset -5px -5px 12px rgba(255, 255, 255, .85);

  /* typography */
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  /* shape / motion */
  --r-card: 26px;
  --r-pill: 999px;
  --dur-press: 120ms;
  --dur-hover: 220ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
/* 空気感: 左上に光・右下にごく淡いブルー */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 10% -6%, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1100px 800px at 106% 108%, rgba(74, 108, 212, .09), transparent 62%);
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.32; margin: 0; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; } /* display:flex 等による hidden 属性の上書きを防ぐ */
::selection { background: rgba(74, 108, 212, .22); }

.container { max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 4.5vw, 48px); }
.page-pdf .container { max-width: 900px; }

/* ---------- focus-visible（キーボード操作の可視化） ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- motion（reduce時はこのブロックごと無効） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; animation: rise .6s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

  .panel-in { animation: panelIn .38s var(--ease-out) both; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  .file-in { animation: fileIn .4s var(--ease-out) both; }
  @keyframes fileIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

  .file-out { animation: fileOut .26s ease-in forwards; }
  @keyframes fileOut { to { opacity: 0; transform: translateX(16px); } }

  .row-flash { animation: rowFlash .35s var(--ease-out); }
  @keyframes rowFlash { 40% { transform: scale(1.012); } }

  .dz-deny { animation: dzDeny .3s ease; }
  @keyframes dzDeny { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

  .knob-face.is-squish { animation: knobSquish .26s ease; }
  @keyframes knobSquish { 40% { transform: scale(.8, .9); } }

  .float { animation: floatY 5.2s ease-in-out infinite alternate; }
  @keyframes floatY { to { transform: translateY(-10px); } }

  .spinner { animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(1turn); } }
}

/* ============================================================
   TOP（index.html）
   ============================================================ */

/* ---------- hero ---------- */
.hero { padding: 64px 0 20px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 17px;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--accent-strong);
}
.brand-name { font-family: var(--font-en); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand-name em { font-style: normal; color: var(--accent-strong); }
.hero-title {
  margin-top: 36px;
  font-size: clamp(40px, 3.2vw + 18px, 62px);
  font-weight: 700; letter-spacing: .05em;
}
.hero-lead { margin-top: 18px; max-width: 34em; font-size: 15.5px; line-height: 2.05; }
.badge-list { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: var(--r-pill);
  box-shadow: var(--nm-inset);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-grad); box-shadow: 0 2px 6px rgba(74, 108, 212, .5);
}

/* hero 右の装飾（凸円＋凹リング＋浮遊チップ / 装飾のみ・操作不可） */
.hero-art { position: relative; height: 420px; }
.orb {
  position: absolute; top: 46px; left: 50%; margin-left: -148px;
  width: 296px; height: 296px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised);
}
.orb-ring { position: absolute; inset: 30px; border-radius: 50%; box-shadow: var(--nm-inset); }
.orb-core {
  position: absolute; inset: 34px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  display: grid; place-items: center; color: var(--accent-strong);
}
.chip { position: absolute; background: var(--surface); box-shadow: var(--nm-raised-sm); }
.chip-slider { left: -6px; bottom: 40px; width: 182px; height: 44px; border-radius: var(--r-pill); padding: 7px; }
.chip-track { position: relative; display: block; height: 100%; border-radius: var(--r-pill); box-shadow: var(--nm-inset); }
.chip-fill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 58%; border-radius: var(--r-pill); background: var(--accent-grad); }
.chip-knob {
  position: absolute; top: 50%; left: calc(58% - 8px);
  width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: #FBFCFE; box-shadow: 3px 3px 8px rgba(55, 84, 170, .3);
}
.chip-toggle { right: 16px; top: 16px; width: 66px; height: 38px; border-radius: var(--r-pill); padding: 6px; }
.chip-toggle .chip-track { background: var(--accent-grad); box-shadow: inset 3px 3px 8px rgba(38, 58, 128, .35); }
.chip-toggle .chip-knob { left: auto; right: 3px; top: 3px; margin-top: 0; width: 20px; height: 20px; }
.chip-btn {
  right: 2px; bottom: 108px;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  color: var(--accent-strong);
}
.delay-1 { animation-delay: -1.4s; }
.delay-2 { animation-delay: -2.8s; }

/* ---------- tools section ---------- */
.tools { padding: 76px 0 40px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 54px; }
.sec-title { font-size: 21px; font-weight: 700; letter-spacing: .14em; }
.sec-sub { color: var(--ink-soft); font-size: 13px; letter-spacing: .06em; }
.sec-rule { width: 64px; height: 8px; border-radius: var(--r-pill); box-shadow: var(--nm-inset); margin-top: 10px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 40px; }
.tool-card {
  display: flex; flex-direction: column; align-items: center;
  height: 100%; padding: 38px 28px 24px;
  border-radius: var(--r-card); background: var(--surface);
  box-shadow: var(--nm-raised);
  text-align: center; cursor: pointer;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.tool-icon {
  display: grid; place-items: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  transition: box-shadow var(--dur-hover) var(--ease-out);
}
.tool-icon-ring {
  display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%;
  box-shadow: var(--nm-inset); color: var(--ink-soft);
  transition: box-shadow var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}
.tool-name { margin-top: 20px; font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.tool-desc { margin-top: 10px; font-size: 12.8px; line-height: 1.95; letter-spacing: .02em; color: var(--ink-soft); }
.tool-open {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 18px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  color: var(--accent-strong);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}

@media (hover: hover) {
  .tool-card:hover { transform: translateY(-4px); box-shadow: var(--nm-float); }
  .tool-card:hover .tool-icon {
    box-shadow: 7px 7px 16px rgba(55, 84, 170, .14), -7px -7px 16px rgba(255, 255, 255, .9),
      0 12px 26px rgba(74, 108, 212, .22);
  }
  .tool-card:hover .tool-icon-ring {
    color: var(--accent-strong);
    box-shadow: inset 5px 5px 12px rgba(74, 108, 212, .24), inset -5px -5px 12px rgba(255, 255, 255, .95);
  }
  .tool-card:hover .tool-open { opacity: 1; transform: none; }
}
@media (hover: none) { .tool-open { opacity: 1; transform: none; } }

/* click: 影が inset に反転して「沈む」 */
.tool-card:active {
  transform: translateY(-1px) scale(.985);
  box-shadow: var(--nm-pressed);
  transition-duration: var(--dur-press), var(--dur-press);
}
.tool-card:active .tool-icon { box-shadow: var(--nm-inset); transition-duration: var(--dur-press); }

/* ---------- footer ---------- */
.site-footer { padding: 84px 0 56px; }
.footer-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 44px 36px 40px; border-radius: 28px;
  box-shadow: var(--nm-inset); text-align: center;
}
.footer-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--accent-strong); margin-bottom: 6px;
}
.footer-note { font-size: 13.5px; color: var(--ink-soft); max-width: 46em; }
.footer-strong { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.footer-copy {
  margin-top: 28px; text-align: center;
  font-family: var(--font-en); font-weight: 600; font-size: 12px;
  letter-spacing: .18em; color: var(--ink-soft);
}

/* ============================================================
   下層（pdf.html）
   ============================================================ */

.pdf-top { padding-top: 36px; }
.back-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  font-family: var(--font-en); font-weight: 600; font-size: 14px;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.back-pill:hover { transform: translateY(-2px); box-shadow: var(--nm-float); }
.back-pill:active { transform: none; box-shadow: var(--nm-pressed); transition-duration: var(--dur-press), var(--dur-press); }

.page-head { display: flex; align-items: center; gap: 22px; margin-top: 46px; }
.page-head-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 72px; height: 72px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--accent-strong);
}
.page-title { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: .04em; }
.page-sub { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }

/* ---------- モード切替（凹トラック内を凸ピルがスライド） ---------- */
.seg {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: min(520px, 100%);
  margin-top: 42px; padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(224, 229, 241, .55);
  box-shadow: var(--nm-inset);
}
.seg-thumb {
  position: absolute; top: 6px; left: 6px;
  height: calc(100% - 12px); width: calc((100% - 12px) / 3);
  border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  transition: transform .45s var(--ease-spring);
}
.seg-btn {
  position: relative; z-index: 1;
  padding: 12px 8px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--ink-soft);
  transition: color var(--dur-hover) var(--ease-out);
}
.seg-btn[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.seg-btn:not([aria-selected="true"]):hover { color: var(--accent-strong); }

/* ---------- モード見出し ---------- */
.lede { margin-top: 46px; }
.lede-title { font-size: clamp(28px, 2.4vw + 14px, 38px); font-weight: 700; letter-spacing: .03em; }
.lede-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ---------- ステップラベル ---------- */
.step { margin-top: 58px; }
.step-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 14px;
  box-shadow: var(--nm-inset);
  font-family: var(--font-en); font-weight: 600; font-size: 13px;
  color: var(--accent-strong);
}

/* ---------- ドロップゾーン（大きな凹面） ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 216px; padding: 32px;
  border-radius: 24px;
  border: 2px dashed rgba(91, 107, 148, .4);
  box-shadow: var(--nm-inset);
  cursor: pointer; text-align: center;
  transition: box-shadow var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out),
    background var(--dur-hover) var(--ease-out);
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--accent);
  box-shadow: var(--nm-inset-deep);
  background: rgba(74, 108, 212, .05);
}
.dz-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--ink-soft);
  transition: color var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.dropzone:hover .dz-icon, .dropzone.is-over .dz-icon { color: var(--accent-strong); transform: translateY(-3px); }
.dz-text { font-weight: 500; color: var(--ink); }

/* ---------- ファイル一覧（凸バー） ---------- */
.file-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.file-title { font-size: 16px; font-weight: 700; }
.file-count {
  padding: 4px 14px; border-radius: var(--r-pill);
  box-shadow: var(--nm-inset);
  font-family: var(--font-en); font-weight: 600; font-size: 12.5px; color: var(--ink-soft);
}
.file-list { display: flex; flex-direction: column; gap: 16px; }
.file-empty { font-size: 13px; color: var(--ink-soft); padding: 4px 2px; }
.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
}
.file-grip { color: rgba(91, 107, 148, .55); cursor: grab; flex-shrink: 0; }
.file-doc {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 13px;
  box-shadow: var(--nm-inset); color: var(--accent-strong);
}
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.file-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.file-acts { display: flex; align-items: center; gap: 10px; }
.act-circle {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--ink-soft);
  transition: color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out),
    transform var(--dur-hover) var(--ease-out);
}
.act-circle:hover { color: var(--accent-strong); transform: translateY(-2px); }
.act-circle:active { box-shadow: var(--nm-pressed); transform: scale(.94); transition-duration: var(--dur-press); }
.act-remove {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: color var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.act-remove:hover { color: var(--danger); }
.act-remove:active { box-shadow: var(--nm-pressed); transition-duration: var(--dur-press); }

/* ---------- オプション行 ---------- */
.opt-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px 40px;
  padding: 26px 30px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--nm-raised);
}
.opt-field { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.opt-label { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.opt-input {
  padding: 13px 18px; border: 0; border-radius: 14px;
  background: rgba(228, 233, 244, .7);
  box-shadow: var(--nm-inset);
  font-size: 15px;
}
.opt-input::placeholder { color: rgba(91, 107, 148, .7); }
.opt-toggle { display: flex; align-items: center; gap: 16px; }

/* ---------- トグル（凹トラック＋凸ノブ / ニューモ03の質感） ---------- */
.toggle { display: inline-flex; border-radius: var(--r-pill); flex-shrink: 0; }
.toggle-track {
  position: relative; display: block;
  width: 58px; height: 32px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--nm-inset);
  transition: background var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.toggle-knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; transition: transform .28s var(--ease-spring); }
.knob-face {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: #FBFCFE;
  box-shadow: 3px 3px 8px rgba(55, 84, 170, .28), -2px -2px 6px rgba(255, 255, 255, .95);
}
.toggle[aria-checked="true"] .toggle-track {
  background: var(--accent-grad);
  box-shadow: inset 4px 4px 10px rgba(38, 58, 128, .35), inset -3px -3px 8px rgba(147, 170, 240, .55);
}
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(26px); }

/* ---------- 実行ボタン（大きな凸ピル・アクセント面） ---------- */
.exec-wrap { display: flex; justify-content: center; margin-top: 6px; }
.exec-btn {
  position: relative; min-width: min(340px, 100%);
  padding: 19px 56px; border-radius: var(--r-pill);
  background: var(--accent-grad); color: #fff;
  font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 10px 10px 24px rgba(74, 108, 212, .35), -8px -8px 20px rgba(255, 255, 255, .85);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out),
    filter var(--dur-hover) var(--ease-out);
}
.exec-btn:hover {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 14px 16px 32px rgba(74, 108, 212, .42), -10px -10px 24px rgba(255, 255, 255, .9);
}
.exec-btn:active {
  transform: translateY(0); filter: none;
  box-shadow: inset 5px 5px 12px rgba(30, 48, 110, .45), inset -4px -4px 10px rgba(140, 166, 240, .5);
  transition-duration: var(--dur-press), var(--dur-press), var(--dur-press);
}
.exec-busy { display: none; align-items: center; justify-content: center; gap: 10px; }
.exec-btn.is-busy { cursor: progress; filter: saturate(.85); }
.exec-btn.is-busy .exec-label { display: none; }
.exec-btn.is-busy .exec-busy { display: inline-flex; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
}

/* ---------- 結果カード ---------- */
.result-card {
  display: flex; align-items: center; gap: 20px;
  margin-top: 36px; padding: 24px 28px;
  border-radius: 22px; background: var(--surface); box-shadow: var(--nm-raised);
}
.result-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-grad); color: #fff;
  box-shadow: 6px 6px 16px rgba(74, 108, 212, .4), -4px -4px 12px rgba(255, 255, 255, .9);
}
.result-body { flex: 1; min-width: 0; }
.result-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.result-meta { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--nm-raised-sm);
  color: var(--accent-strong); font-weight: 700; font-size: 14.5px;
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: var(--nm-float); }
.dl-btn:active { transform: none; box-shadow: var(--nm-pressed); transition-duration: var(--dur-press), var(--dur-press); }

.pdf-footer { margin: 96px 0 48px; text-align: center; }
.pdf-footer .footer-note { margin-inline: auto; }

/* ============================================================
   responsive（1440基準 / 768 / 375）
   ============================================================ */
@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 30px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .hero-art { height: 360px; }
  .orb { width: 250px; height: 250px; margin-left: -125px; }
}
@media (max-width: 880px) {
  .hero { padding-top: 52px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-title { font-size: clamp(34px, 9vw, 44px); }
  .tools { padding-top: 60px; }
  .page-head { gap: 16px; }
  .page-head-icon { width: 58px; height: 58px; border-radius: 19px; }
  .seg-btn { font-size: 13.5px; padding: 11px 4px; }
  .file-row { flex-wrap: wrap; }
  .file-acts { width: 100%; justify-content: flex-end; padding-top: 4px; }
  .opt-panel { padding: 22px; }
  .exec-btn { width: 100%; min-width: 0; }
  .result-card { flex-wrap: wrap; }
  .dl-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   prefers-reduced-motion: 移動系アニメーションを無効化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .tool-card:hover, .back-pill:hover, .exec-btn:hover, .dl-btn:hover,
  .act-circle:hover, .dropzone:hover .dz-icon { transform: none; }
}
