/* ツールばこ — デザインシステム */
:root {
  /* 配色はDiscordに合わせる（ブラープル #5865F2 とグレー） */
  --bg: #f2f3f5;
  --surface: #ffffff;
  --panel: #ffffff;
  --sunken: #ebedef;
  --ink: #060607;
  --ink-2: #313338;
  --sub: #4e5058;
  --faint: #80848e;
  --line: #e3e5e8;
  --line-2: #d4d7dc;
  --soft: #ebedef;
  --accent: #5865f2;
  --accent-ink: #ffffff;
  --accent-soft: #e0e3ff;
  --brand: #5865f2;
  --hi: #5865f2;
  --ok: #23a55a;
  --warn: #f23f43;
  --c0: #16a34a; --c1: #0ea5e9; --c2: #f59e0b; --c3: #ec4899; --c4: #8b5cf6; --c5: #ef4444;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(24,24,27,.05);
  --shadow: 0 1px 2px rgba(24,24,27,.04), 0 6px 24px -8px rgba(24,24,27,.10);
  --shadow-lg: 0 24px 60px -20px rgba(24,24,27,.28);
  --font: "Inter Tight", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "BIZ UDGothic", monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
/* 標準はホワイト。ダークは切り替えボタンを押したときだけ（端末の設定には合わせない） */
:root[data-theme="dark"] {
  --bg: #313338; --surface: #2b2d31; --panel: #2b2d31; --sunken: #1e1f22; --ink: #f2f3f5; --ink-2: #dbdee1; --sub: #b5bac1; --faint: #949ba4;
  --line: #3f4147; --line-2: #4e5058; --soft: #1e1f22; --accent: #5865f2; --accent-ink: #ffffff; --accent-soft: #3c4270; --hi: #7984f5; --brand: #5865f2; --ok: #23a55a; --warn: #f23f43;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px -10px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.75 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; letter-spacing: .01em; }
textarea, input { font-feature-settings: normal; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
.i { width: 20px; flex: none; font-size: 16px; line-height: 1; text-align: center; }


/* ---------- 上のバー ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 24px 0; }
.tb-in { max-width: 1320px; margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 26px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); animation: rise .7s var(--ease) both; }
.tb-logo { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tb-logo span { color: var(--brand); }
.tb-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; }
.tb-nav > a, .tb-dd-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--sub); font: 500 14px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.tb-nav > a:hover, .tb-dd-btn:hover, .tb-dd.open .tb-dd-btn { color: var(--ink); background: var(--sunken); }
.tb-nav > a[aria-current] { color: var(--hi); background: var(--accent-soft); }
:root[data-theme="dark"] .tb-nav > a[aria-current] { color: #fff; }
.tb-dd-btn i { font-size: 10px; transition: transform .2s; }
.tb-dd.open .tb-dd-btn i { transform: rotate(180deg); }
.tb-dd { position: relative; }
.tb-dd-menu { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 230px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.tb-dd.open .tb-dd-menu { opacity: 1; visibility: visible; transform: none; }
.tb-dd-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; }
.tb-dd-menu a:hover { background: var(--sunken); }
.tb-dd-menu a i { width: 8px; height: 8px; border-radius: 50%; }
.tb-dd-menu small { margin-left: auto; color: var(--faint); font-size: 12px; }
.tb-act { display: flex; align-items: center; gap: 8px; }
.tb-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 15px; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s, transform .15s, background .15s; }
.tb-icon:hover { border-color: var(--line-2); color: var(--ink); }
.tb-icon:active { transform: scale(.92); }
.tb-icon[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tb-icon[aria-current] { color: #e11d48; }
.tb-cta { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font: 600 14px var(--font); cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px -8px var(--brand); transition: filter .15s, transform .15s; }
.tb-cta:hover { filter: brightness(1.07); }
.tb-cta:active { transform: scale(.96); }
.tb-cta .cta-i { display: none; }
.tb-menu-btn { display: none; }
/* スマホのメニュー（全ツール一覧） */
.tb-panel { display: none !important; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); max-height: calc(100vh - 100px); overflow-y: auto; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.topbar.menu-open .tb-panel { display: block !important; animation: rise .3s var(--ease) both; }
.tb-panel-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.tb-panel-tabs a { text-align: center; padding: 9px 4px; border-radius: 10px; background: var(--sunken); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.tb-panel-tabs a[aria-current] { background: var(--accent); color: #fff; }
.tb-panel-grp { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.tb-panel-grp a { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 13px; }
.tb-panel-grp a:hover, .tb-panel-grp a[aria-current] { background: var(--sunken); color: var(--ink); }
.tb-panel-grp a .i { width: 16px; font-size: 13px; color: var(--sub); }
.tb-panel-h { grid-column: 1 / -1; font-size: 12px !important; font-weight: 500; color: var(--sub) !important; }
.tb-panel-h i { width: 7px; height: 7px; border-radius: 50%; }
@media (max-width: 1180px) { .tb-cta { padding: 0; width: 40px; justify-content: center; } .tb-cta .cta-l { display: none; } .tb-cta .cta-i { display: inline; } .tb-nav > a, .tb-dd-btn { padding: 0 10px; } }
main { padding-top: 32px; }
main.wide { padding-top: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }

/* ---------- レイアウト ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 48px 40px 40px; }
main.wide { max-width: 1320px; padding-top: 0; }

/* ---------- トップ ---------- */
.hero { padding: 96px 0 56px; max-width: 860px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); padding: 5px 12px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 26px; }
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 76px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; word-break: keep-all; overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--faint); }
.hero p { margin: 22px 0 0; color: var(--sub); font-size: 16px; max-width: 560px; }
.search { position: relative; margin-top: 34px; max-width: 520px; }
.search .i { position: absolute; left: 17px; font-size: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search input[type=text] { height: 52px; padding: 0 16px 0 46px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow-sm); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--sunken); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 400 13px var(--font); cursor: pointer; transition: .15s; }
.chip i { width: 7px; height: 7px; border-radius: 50%; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.view-h { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.view-h i { color: var(--brand); font-size: 18px; }
.view-h small { font-size: 13px; color: var(--sub); font-weight: 400; }
.view-h button { margin-left: auto; border: 1px solid var(--line-2); background: var(--surface); color: var(--sub); border-radius: 999px; padding: 6px 14px; font: 13px var(--font); cursor: pointer; }
.view-h button:hover { color: var(--ink); }
.empty { padding: 60px 0; text-align: center; color: var(--sub); }

/* ---------- ツールカード ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.shot { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.shot .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sunken); margin: 8px 8px 0; border-radius: 12px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.shot img.ok { opacity: 1; }
.shot:hover img { transform: scale(1.04); }
.meta { display: flex; gap: 12px; padding: 14px 16px 18px; align-items: flex-start; }
.mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.mi .i { width: auto; font-size: 15px; }
.meta b { display: block; font-size: 15px; font-weight: 500; line-height: 1.4; }
.meta > div > span { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.6; margin-top: 3px; }

/* お気に入り★ */
.shot { position: relative; }
.card-fav { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, #fff 88%, transparent); color: #3f3f46; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s, color .2s; box-shadow: var(--shadow-sm); }
.card-fav .i { width: auto; font-size: 14px; }
.shot:hover .card-fav, .card-fav.on, .card-fav:focus-visible { opacity: 1; transform: none; }
.card-fav.on { color: #f59e0b; }
.card-fav:active { transform: scale(.85); }
@media (hover: none) { .card-fav { opacity: 1; transform: none; } }

/* トップの「お気に入り」「最近使った」 */
.quick { margin-bottom: 40px; }
.quick-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.qk { flex: none; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; transition: .2s; }
.qk:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.quick h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--sub); margin: 0 0 12px; }
.quick h2 .i { width: auto; font-size: 13px; }

/* コマンドパレット */
.pal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.4); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.pal-box { width: 100%; max-width: 580px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pal-in .3s var(--ease) both; }
@keyframes pal-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.pal-in .i { color: var(--faint); }
.pal-in input[type=text] { border: 0; box-shadow: none !important; height: 58px; padding: 0; font-size: 16px; background: none; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.pal-it { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.pal-it.on { background: var(--sunken); }
.pal-t { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.pal-t b { font-weight: 500; font-size: 14px; }
.pal-t small { font-size: 12px; color: var(--sub); }
.pal-tag { color: #f59e0b; width: auto; font-size: 12px; }
.pal-go { color: var(--faint); width: auto; font-size: 12px; opacity: 0; }
.pal-it.on .pal-go { opacity: 1; }
.pal-empty { text-align: center; color: var(--sub); padding: 28px 0; margin: 0; }
.pal-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); background: var(--sunken); }
kbd { font: 11px var(--mono); color: var(--sub); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface); margin: 0 2px; }
@media (max-width: 560px) { .pal-foot { display: none; } .pal { padding-top: 70px; } }

/* ---------- ツールページ ---------- */
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.head-act { display: flex; gap: 8px; }
.head-act .i { width: auto; font-size: 14px; }
.fav-btn.on { color: #d97706; border-color: color-mix(in srgb, #f59e0b 45%, transparent); background: color-mix(in srgb, #f59e0b 10%, var(--surface)); }
.page-head { margin-bottom: 32px; }
.crumb { display: flex; gap: 8px; font-size: 13px; color: var(--faint); margin-bottom: 22px; }
.crumb a { text-decoration: none; color: var(--sub); }
.crumb a:hover { color: var(--ink); }
.head-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); margin-bottom: 18px; }
.head-ic .i { width: auto; font-size: 22px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.page-head p { margin: 12px 0 0; color: var(--sub); font-size: 15px; max-width: 680px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; margin-left: 12px; vertical-align: middle; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.card h2 { margin: 0 0 16px; font-size: 15px; font-weight: 500; }

textarea, input[type=text], input[type=number], input[type=url], select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 15px/1.7 var(--font); padding: 10px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 240px; resize: vertical; }
textarea:hover, input:hover, select:hover { border-color: var(--faint); }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; }
label.f { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--sub); font-weight: 500; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 4px; cursor: pointer; }

.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { height: 40px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 14px var(--font); padding: 0 18px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: var(--faint); background: var(--sunken); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: .86; background: var(--accent); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--sunken); border-radius: var(--r); padding: 14px 16px; }
.stat b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--sub); }
.stat.main { background: var(--accent); color: #fff; }
.stat.main span { color: rgba(255,255,255,.78); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); font-size: 14px; padding: 10px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.3,1.4,.5,1); z-index: 50; box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.prose { color: var(--sub); font-size: 14px; background: none; border: 0; box-shadow: none; padding: 0; margin-top: 64px; max-width: 720px; }
.prose h2 { color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 12px; }
.prose h3 { color: var(--ink); font-size: 15px; font-weight: 500; margin: 26px 0 6px; }
.prose p, .prose li { margin: 0 0 8px; }
.prose strong { color: var(--ink); font-weight: 500; }

.related { margin-top: 80px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 500; }
.sec-h a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); text-decoration: none; }
.sec-h a .i { width: auto; font-size: 12px; transition: transform .2s; }
.sec-h a:hover { color: var(--ink); }
.sec-h a:hover .i { transform: translateX(3px); }

footer { max-width: 1320px; margin: 96px auto 0; padding: 48px 40px 40px; font-size: 13px; color: var(--sub); border-top: 1px solid var(--line); }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--ink); }
.fcols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding-bottom: 40px; }
.fcols b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.fcols a { display: block; padding: 3px 0; }
.fbottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); }

.drop { display: block; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 52px 16px; text-align: center; color: var(--sub); cursor: pointer; transition: .2s; background: var(--surface); }
.drop.over, .drop:hover { border-color: var(--ink); color: var(--ink); background: var(--sunken); }
.drop b { display: block; color: var(--ink); font-size: 17px; font-weight: 500; margin-bottom: 6px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .topbar { padding: 10px 12px 0; }
  .tb-in { height: 56px; padding: 0 8px; gap: 8px; }
  .tb-menu-btn { display: grid; }
  .tb-nav { display: none; }
  .tb-logo { font-size: 18px; margin-right: auto; }
  .tb-cta { padding: 0; width: 40px; justify-content: center; }
  .tb-cta .cta-l { display: none; } .tb-cta .cta-i { display: inline; }
  main { padding: 32px 20px 32px; }
  footer { padding: 40px 20px 32px; margin-top: 64px; }
  .fcols { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 36px; }
}
@media (max-width: 560px) {
  main { padding: 24px 16px 28px; }
  .card { padding: 18px; border-radius: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .meta { padding: 10px 10px 14px; gap: 0; }
  .meta .mi { display: none; }
  .meta b { font-size: 13.5px; }
  .meta > div > span { display: none; }
  .shot { border-radius: 14px; }
  .shot .img { margin: 6px 6px 0; border-radius: 9px; }
  .stat b { font-size: 22px; }
  .search kbd { display: none; }
  .hero h1 { font-size: min(30px, 8.4vw); }
}

/* ---------- アニメーション（OSの「動きを減らす」設定でも止めない＝サイトの方針） ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero > *, .page-head > * { animation: rise .8s var(--ease) both; }
.hero > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .05s; }
.hero > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .1s; }
.hero > :nth-child(4), .page-head > :nth-child(4) { animation-delay: .15s; }
.hero > :nth-child(5), .page-head > :nth-child(5) { animation-delay: .2s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.shot.reveal.in { transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }
.shot.pop { animation: pop-in .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
html, body { transition: background-color .4s, color .4s; }