/* ============================================================
   Han Portfolio — Mobbin-inspired clean gallery design
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #18181b;
  --accent-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .05);
  --shadow-md: 0 8px 24px rgba(24, 24, 27, .09);
  --shadow-lg: 0 24px 64px rgba(24, 24, 27, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html[data-theme="dark"] {
  --bg: #09090b;
  --surface: #131316;
  --surface-2: #1c1c21;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  --border: #26262c;
  --border-strong: #3f3f46;
  --accent: #fafafa;
  --accent-text: #18181b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.sp-only { display: none; }

@media (max-width: 640px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ===== ナビゲーション ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.nav-logo-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 9px;
  font-size: 15px; font-weight: 800;
  letter-spacing: -.02em;
}

.nav-logo-sub { margin-left: 6px; font-weight: 500; color: var(--text-faint); font-size: 13px; }

.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }

.nav-links > a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}

.nav-links > a:hover { background: var(--surface-2); color: var(--text); }

.nav-links > a.nav-cta {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.nav-links > a.nav-cta:hover { opacity: .85; }

.theme-toggle {
  width: 34px; height: 34px;
  margin-left: 4px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color .15s, color .15s;
}

.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
html[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }

/* ===== メニュー(C改: 構造化ドロップダウン) ===== */
.menu { position: relative; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background .15s, border-color .15s;
}
.menu-btn:hover { background: var(--surface-2); }
.menu-btn .menu-btn-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn-close { display: inline; }

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 236px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  z-index: 60;
  max-height: min(72vh, 440px);
  overflow-y: auto;
  animation: menuIn .16s cubic-bezier(.2,.7,.3,1);
}
.menu-panel[hidden] { display: none; }

@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.menu-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 7px 10px 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 9px;
  transition: background .12s;
}
.menu-item:hover { background: var(--surface-2); }
.menu-item svg { color: var(--text-faint); flex-shrink: 0; }
.menu-item:hover svg { color: var(--text-muted); }

.menu-div { height: 1px; background: var(--border); margin: 6px 8px; }

.menu-item-admin { color: var(--text); }
.menu-item-admin svg { color: var(--text-muted); }

.menu-scrim { position: fixed; inset: 0; z-index: 40; }
.menu-scrim[hidden] { display: none; }

/* ===== ヒーロー ===== */
.hero { border-bottom: 1px solid var(--border); }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px 72px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  margin: 26px 0 18px;
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.hero-lead { font-size: 16px; color: var(--text-muted); }

.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s, opacity .15s, background .15s;
}

.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: .85; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.stat {
  min-width: 180px;
  padding: 16px 22px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat dt { font-size: 12px; font-weight: 600; color: var(--text-faint); }
.stat dd { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat dd small { margin-left: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.stat .stat-stack { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text-muted); max-width: 240px; }

/* ===== 作品セクション ===== */
.works { max-width: 1200px; margin: 0 auto; padding: 72px 24px 40px; scroll-margin-top: 72px; }
.about { scroll-margin-top: 60px; }

.works-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.section-lead { font-size: 14px; color: var(--text-faint); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 28px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 40px;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-faint);
  transition: border-color .15s, box-shadow .15s;
}

.search:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.search input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

.search input::placeholder { color: var(--text-faint); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all .15s;
}

.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.result-count { margin-left: auto; font-size: 13px; color: var(--text-faint); font-weight: 500; }

/* ===== カードグリッド ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.empty { padding: 60px 0; text-align: center; color: var(--text-faint); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s,
              opacity .5s, translate .5s;
  opacity: 0;
  translate: 0 18px;
}

.card.visible { opacity: 1; translate: 0 0; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-shot {
  position: relative;
  height: 220px;
  padding: 20px 20px 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
}

/* 添付画像・絵文字プレースホルダー(フレーム内に収める) */
.card-shot .frame,
.card-shot .frame-phone,
.modal-shot .frame,
.modal-shot .frame-phone { height: 100%; }

.shot-img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.shot-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.shot-placeholder span { font-size: 60px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); }

.shot-default { background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.icon-default { background: var(--surface-2); }

.card-shot::after {
  content: "詳しく見る →";
  position: absolute;
  right: 12px; top: 12px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(24,24,27,.75);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.card:hover .card-shot::after { opacity: 1; transform: translateY(0); }

.card-meta { display: flex; gap: 12px; padding: 16px 18px 18px; border-top: 1px solid var(--border); }

.card-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 21px;
  border-radius: 12px;
}

.card-info { min-width: 0; }
.card-name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.card-tag {
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 999px;
}

/* ===== ブラウザ / スマホ フレーム ===== */
.frame {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 12px 32px rgba(24,24,27,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.frame-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #f1f1f3;
  border-bottom: 1px solid #e4e4e7;
}

.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d8; }
.frame-bar i:nth-child(1) { background: #fb7185; }
.frame-bar i:nth-child(2) { background: #fbbf24; }
.frame-bar i:nth-child(3) { background: #34d399; }

.frame-url {
  flex: 1;
  margin-left: 6px;
  padding: 2px 10px;
  font-size: 8.5px;
  color: #a1a1aa;
  background: #fff;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
}

.frame-body { flex: 1; overflow: hidden; position: relative; font-size: 10px; }

.frame-phone {
  width: 150px;
  background: #18181b;
  border-radius: 22px 22px 0 0;
  padding: 8px 8px 0;
  box-shadow: 0 12px 32px rgba(24,24,27,.25);
}

.frame-phone .notch {
  width: 56px; height: 14px;
  margin: 0 auto 6px;
  background: #18181b;
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 2;
}

.frame-phone .phone-screen {
  height: 100%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  position: relative;
  margin-top: -20px;
  padding-top: 20px;
  font-size: 9px;
}

/* ===== ミニモックアップ(共通パーツ) ===== */
.m-row { display: flex; align-items: center; gap: 5px; }
.m-line { height: 5px; border-radius: 3px; background: #e4e4e7; }
.m-chip { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 7.5px; font-weight: 700; }

/* --- スグ請求 --- */
.mock-seikyu { display: flex; height: 100%; background: #eff6ff; }
.mock-seikyu .form { width: 42%; padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.mock-seikyu .form .m-line { background: #bfdbfe; }
.mock-seikyu .form .m-line.short { width: 55%; }
.mock-seikyu .form .field { height: 14px; background: #fff; border: 1px solid #bfdbfe; border-radius: 4px; }
.mock-seikyu .paper { flex: 1; margin: 10px 10px 0 4px; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 2px 8px rgba(37,99,235,.15); padding: 9px; }
.mock-seikyu .paper h5 { font-size: 9px; text-align: center; letter-spacing: .35em; color: #1e3a5f; margin-bottom: 7px; font-weight: 700; }
.mock-seikyu .paper .m-line { margin-bottom: 5px; }
.mock-seikyu .total { margin-top: 7px; padding: 4px 7px; background: #2563eb; color: #fff; font-size: 8.5px; font-weight: 700; border-radius: 3px; display: flex; justify-content: space-between; }

/* --- スグ履歴書 --- */
.mock-rirekisho { display: flex; justify-content: center; height: 100%; background: #ecfdf5; padding-top: 12px; }
.mock-rirekisho .sheet { width: 78%; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 2px 8px rgba(5,150,105,.15); padding: 10px; }
.mock-rirekisho .head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.mock-rirekisho .head h5 { font-size: 10px; letter-spacing: .3em; color: #064e3b; font-weight: 700; }
.mock-rirekisho .photo { width: 26px; height: 34px; background: #d1fae5; border: 1px dashed #34d399; border-radius: 2px; display: grid; place-items: center; font-size: 11px; }
.mock-rirekisho .m-line { margin-bottom: 6px; }
.mock-rirekisho .m-line.green { background: #a7f3d0; }
.mock-rirekisho table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.mock-rirekisho td { border: 1px solid #d1fae5; height: 10px; }
.mock-rirekisho td:first-child { width: 30%; background: #f0fdf9; }

/* --- スグ退職届 --- */
.mock-taishoku { display: flex; justify-content: center; height: 100%; background: #f5f0e8; padding-top: 12px; }
.mock-taishoku .paper { width: 62%; background: #fffdf8; border-radius: 3px 3px 0 0; box-shadow: 0 2px 10px rgba(87,60,32,.18); padding: 12px 10px; display: flex; flex-direction: row-reverse; justify-content: space-between; }
.mock-taishoku .title-v { writing-mode: vertical-rl; font-size: 13px; font-weight: 900; letter-spacing: .4em; color: #292524; }
.mock-taishoku .lines { display: flex; flex-direction: row-reverse; gap: 7px; }
.mock-taishoku .vline { width: 4px; border-radius: 2px; background: #e7e0d3; }
.mock-taishoku .vline.l1 { height: 90px; } .mock-taishoku .vline.l2 { height: 70px; }
.mock-taishoku .vline.l3 { height: 96px; } .mock-taishoku .vline.l4 { height: 56px; }
.mock-taishoku .hanko { align-self: flex-end; width: 20px; height: 20px; border: 1.5px solid #dc2626; color: #dc2626; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 700; }

/* --- スグ転活 --- */
.mock-tenkatsu { height: 100%; background: #f5f3ff; padding: 10px 8px 0; }
.mock-tenkatsu .stats { display: flex; gap: 5px; margin-bottom: 8px; }
.mock-tenkatsu .stats span { flex: 1; padding: 3px; text-align: center; font-size: 7px; font-weight: 700; color: #6d28d9; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(109,40,217,.12); }
.mock-tenkatsu .cols { display: flex; gap: 6px; height: 100%; }
.mock-tenkatsu .col { flex: 1; background: #ede9fe; border-radius: 5px 5px 0 0; padding: 4px; }
.mock-tenkatsu .col h6 { font-size: 6.5px; color: #6d28d9; text-align: center; margin-bottom: 4px; font-weight: 700; }
.mock-tenkatsu .kcard { height: 16px; background: #fff; border-radius: 3px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(109,40,217,.15); border-left: 2.5px solid #a78bfa; }
.mock-tenkatsu .kcard.win { border-left-color: #10b981; background: #ecfdf5; }

/* --- スグ寄せ書き --- */
.mock-yosegaki { height: 100%; background: linear-gradient(135deg, #fff7ed, #fef3c7); padding: 10px; text-align: center; position: relative; }
.mock-yosegaki h5 { font-size: 11px; font-weight: 900; color: #9a3412; margin-bottom: 6px; }
.mock-yosegaki .notes { position: relative; height: 100%; }
.mock-yosegaki .note { position: absolute; width: 64px; padding: 6px 5px; font-size: 6.5px; line-height: 1.4; background: #fff; border-radius: 6px; box-shadow: 0 3px 8px rgba(154,52,45,.15); }
.mock-yosegaki .note b { display: block; font-size: 7px; }
.mock-yosegaki .n1 { left: 4%; top: 2%; rotate: -4deg; background: #fef9c3; }
.mock-yosegaki .n2 { left: 36%; top: 14%; rotate: 2deg; background: #fce7f3; }
.mock-yosegaki .n3 { right: 3%; top: 0; rotate: 5deg; background: #dbeafe; }
.mock-yosegaki .n4 { left: 14%; top: 52%; rotate: 3deg; background: #dcfce7; }
.mock-yosegaki .n5 { right: 16%; top: 56%; rotate: -3deg; }

/* --- スグシェア --- */
.mock-sugushare { height: 100%; background: #f0fdfa; padding: 10px; }
.mock-sugushare .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mock-sugushare .top b { font-size: 8.5px; color: #134e4a; }
.mock-sugushare .top .m-chip { background: #0d9488; color: #fff; }
.mock-sugushare .file { display: flex; align-items: center; gap: 6px; padding: 6px 7px; background: #fff; border-radius: 6px; margin-bottom: 5px; box-shadow: 0 1px 3px rgba(13,148,136,.12); }
.mock-sugushare .file i { font-style: normal; font-size: 10px; }
.mock-sugushare .file .m-line { flex: 1; background: #ccfbf1; }
.mock-sugushare .file .lock { font-size: 7px; color: #0d9488; font-weight: 700; }
.mock-sugushare .link { margin-top: 7px; padding: 5px 8px; font-size: 7px; color: #0f766e; background: #ccfbf1; border: 1px dashed #5eead4; border-radius: 999px; white-space: nowrap; overflow: hidden; }

/* --- サイバンチョ --- */
.mock-saibancho { height: 100%; background: #451a03; padding: 10px; text-align: center; }
.mock-saibancho .court { font-size: 9px; color: #fbbf24; font-weight: 900; letter-spacing: .2em; margin-bottom: 7px; }
.mock-saibancho .verdict { background: #fffbeb; border-radius: 6px; padding: 8px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.mock-saibancho .verdict .label { display: inline-block; padding: 1px 8px; font-size: 7px; font-weight: 700; color: #fff; background: #b45309; border-radius: 999px; margin-bottom: 5px; }
.mock-saibancho .verdict p { font-size: 8px; font-weight: 700; color: #451a03; line-height: 1.6; }
.mock-saibancho .verdict p b { color: #b45309; }
.mock-saibancho .row2 { display: flex; gap: 5px; margin-top: 7px; }
.mock-saibancho .row2 span { flex: 1; padding: 4px; font-size: 6.5px; font-weight: 700; color: #fbbf24; border: 1px solid #92600e; border-radius: 4px; }

/* --- コスメのホンネ --- */
.mock-cosme { height: 100%; background: #fff1f2; padding: 10px 10px 0; display: flex; flex-direction: column; }
.mock-cosme .head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.mock-cosme .score { width: 30px; height: 30px; display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #ec4899, #f472b6); border-radius: 9px; box-shadow: 0 3px 8px rgba(236,72,153,.35); }
.mock-cosme .head .m-line { background: #fbcfe8; }
.mock-cosme .ing { display: flex; align-items: center; gap: 5px; padding: 4px 6px; background: #fff; border-radius: 5px; margin-bottom: 4px; box-shadow: 0 1px 3px rgba(236,72,153,.1); }
.mock-cosme .ing i { font-style: normal; font-size: 8px; }
.mock-cosme .ing .m-line { flex: 1; background: #fce7f3; }
.mock-cosme .ing .m-chip.good { background: #dcfce7; color: #15803d; }
.mock-cosme .ing .m-chip.bad { background: #fee2e2; color: #b91c1c; }
.mock-cosme .tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 5px 0; background: #fff; border-radius: 8px 8px 0 0; font-size: 10px; box-shadow: 0 -2px 8px rgba(236,72,153,.1); }

/* --- Sports Muscle Map (phone) --- */
.mock-muscle { height: 100%; background: #fef2f2; text-align: center; padding: 4px 8px 0; }
.mock-muscle h6 { font-size: 7.5px; font-weight: 800; color: #991b1b; margin: 2px 0 4px; }
.mock-muscle .sports { display: flex; justify-content: center; gap: 3px; margin-bottom: 6px; }
.mock-muscle .sports span { font-size: 8px; padding: 1px 5px; background: #fff; border-radius: 999px; box-shadow: 0 1px 2px rgba(153,27,27,.15); }
.mock-muscle .sports span.on { background: #ef4444; }
.mock-muscle .body-fig { position: relative; width: 44px; margin: 0 auto; }
.mock-muscle .b-head { width: 13px; height: 13px; margin: 0 auto 2px; background: #fecaca; border-radius: 50%; }
.mock-muscle .b-torso { width: 26px; height: 34px; margin: 0 auto; background: #fecaca; border-radius: 8px 8px 5px 5px; position: relative; }
.mock-muscle .b-arm { position: absolute; top: 16px; width: 7px; height: 30px; background: #fecaca; border-radius: 4px; }
.mock-muscle .b-arm.l { left: 1px; rotate: 8deg; } .mock-muscle .b-arm.r { right: 1px; rotate: -8deg; }
.mock-muscle .b-leg { position: absolute; bottom: -26px; width: 9px; height: 26px; background: #fecaca; border-radius: 4px; }
.mock-muscle .b-leg.l { left: 9px; } .mock-muscle .b-leg.r { right: 9px; }
.mock-muscle .hot { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ef4444, rgba(239,68,68,.2)); animation: pulse 1.8s infinite; }
.mock-muscle .h1 { width: 9px; height: 9px; top: 18px; left: 17px; }
.mock-muscle .h2 { width: 7px; height: 7px; top: 32px; left: 6px; }
.mock-muscle .h3 { width: 8px; height: 8px; top: 62px; left: 26px; animation-delay: .5s; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.25); opacity: .6; } }

/* ===== カードのテーマ背景 ===== */
.shot-seikyu   { background: linear-gradient(150deg, #dbeafe, #eff6ff); }
.shot-rirekisho{ background: linear-gradient(150deg, #d1fae5, #ecfdf5); }
.shot-taishoku { background: linear-gradient(150deg, #e7dfd0, #f5f0e8); }
.shot-tenkatsu { background: linear-gradient(150deg, #ddd6fe, #f5f3ff); }
.shot-yosegaki { background: linear-gradient(150deg, #fed7aa, #fff7ed); }
.shot-sugushare{ background: linear-gradient(150deg, #99f6e4, #f0fdfa); }
.shot-saibancho{ background: linear-gradient(150deg, #92600e, #451a03); }
.shot-cosme    { background: linear-gradient(150deg, #fbcfe8, #fff1f2); }
.shot-muscle   { background: linear-gradient(150deg, #fecaca, #fef2f2); }

.icon-seikyu   { background: #dbeafe; }
.icon-rirekisho{ background: #d1fae5; }
.icon-taishoku { background: #e7dfd0; }
.icon-tenkatsu { background: #ddd6fe; }
.icon-yosegaki { background: #fed7aa; }
.icon-sugushare{ background: #99f6e4; }
.icon-saibancho{ background: #fde68a; }
.icon-cosme    { background: #fbcfe8; }
.icon-muscle   { background: #fecaca; }

html[data-theme="dark"] .card-shot { filter: saturate(.92); }

/* ===== 私について ===== */
.about { border-top: 1px solid var(--border); margin-top: 48px; }

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.about-avatar {
  flex-shrink: 0;
  width: 96px; height: 96px;
  display: grid; place-items: center;
  font-size: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.about-body .section-title { margin-bottom: 14px; }
.about-body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 12px; }

.about-tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin-top: 18px; }

.about-tags li {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* ===== フッター ===== */
.footer { border-top: 1px solid var(--border); background: var(--surface); }

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.footer-title { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.footer-mail {
  display: inline-block;
  margin: 10px 0 26px;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}

.footer-mail:hover { border-bottom-color: var(--text); }
.footer-copy { font-size: 12.5px; color: var(--text-faint); }
.footer-admin { margin-left: 8px; color: var(--text-faint); border-bottom: 1px dotted var(--border-strong); }
.footer-admin:hover { color: var(--text-muted); }

/* ===== モーダル ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 9, 11, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .28s cubic-bezier(.2,.7,.3,1);
}

@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85);
  color: #18181b;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}

.modal-close:hover { transform: scale(1.08); }

.modal-shot {
  height: 260px;
  padding: 28px 28px 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.modal-shot .frame { max-width: 420px; }
.modal-shot .frame-phone { width: 170px; }

.modal-body { padding: 24px 28px 28px; }

.modal-head { display: flex; align-items: center; gap: 14px; }

.modal-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  flex-shrink: 0;
}

.modal-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.modal-tagline { font-size: 13px; color: var(--text-muted); }
.modal-desc { margin-top: 16px; font-size: 14.5px; color: var(--text-muted); }

.modal-sub { margin: 22px 0 10px; font-size: 13px; font-weight: 700; color: var(--text-faint); letter-spacing: .04em; }

.modal-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }

.modal-features li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}

.modal-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 14%, transparent);
  border-radius: 50%;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.modal-stack { display: flex; gap: 7px; flex-wrap: wrap; }

.modal-stack span {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 999px;
}

.modal-status {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}

body.modal-open { overflow: hidden; }

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  .nav-links > a { display: none; }
  .menu-panel {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 76px);
    border-radius: 14px;
  }
  .menu-item { padding: 12px 12px; font-size: 15px; }
  .hero-inner { padding: 60px 20px 52px; }
  .hero-stats { gap: 8px; }
  .stat { min-width: 46%; padding: 13px 16px; }
  .works { padding: 52px 20px 32px; }
  .toolbar { gap: 10px; }
  .search { min-width: 100%; }
  .result-count { display: none; }
  .about-inner { flex-direction: column; align-items: center; text-align: center; padding: 52px 20px; }
  .about-tags { justify-content: center; }
  .modal-features { grid-template-columns: 1fr; }
  .modal-shot { height: 210px; padding: 20px 20px 0; }
  .modal-body { padding: 20px; }
}
