/*
 * 5行デザイン方針（awesome-design-md-jp: Apple Japan / MUJI / note / BALMUDA / KINTO 指針反映）:
 * 1. 用途とトーン: 就活向けの縦1カラム自己紹介プロフィール（スマホ閲覧重視・PC中央縦表示・A4カラー印刷対応）。
 *    企業の経歴ページと工業プロダクト仕様書を融合した清潔・誠実・高視認のライト基調トーン。
 * 2. カラー設計: ペールスレート〜アイスグレーの立体ウェーブ背景（#E9EEF5）に、
 *    本文はクリーンホワイトのマット面（#FFFFFF）＋印刷物のようなインク色（#1D1D1F）、信号色オレンジレッド（#E8421D）1色に限定。
 * 3. タイポグラフィ: 和文×欧文システムスタック、line-break: strict、年号・番号は tabular-nums、本文 14.5px / 行間 1.8（約物崩れ防止のためpaltは不使用）。
 * 4. 1画面1主役と緩急: 冒頭 Liquid Glass ヒーローを主役に、本文は白マット面で縦一本道。ガラスはヒーロー・画像チップ・下部固定ドックの3箇所のみ。
 * 5. 軽量実装・互換・印刷: 重いSVG屈折を排したGPUネイティブの軽量 blur(12px)、下部常時固定ナビ、forced-reflowゼロ、ライトのままのA4カラー印刷を実装。
 */

:root {
  --bg-canvas: #e9eef5;
  --surface-1: #ffffff;
  --surface-2: #f6f8fb;
  --surface-slot: #eef2f7;

  --border-hairline: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.15);
  --border-glass: rgba(255, 255, 255, 0.84);
  --glass-edge: rgba(15, 23, 42, 0.09);
  --glass-drop: rgba(15, 23, 42, 0.08);

  --text-primary: #1d1d1f;
  --text-secondary: #4a5360;
  --text-muted: #6e6e73;

  --accent-signal: #e8421d;
  --accent-signal-ink: #c93714;
  --accent-signal-soft: rgba(232, 66, 29, 0.09);
  --accent-signal-glow: rgba(232, 66, 29, 0.28);

  --radius-panel: 20px;
  --radius-glass: 26px;
  --radius-slot: 14px;
  --radius-pill: 999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Consolas", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-mid: 220ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.8;
  letter-spacing: 0.025em;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, dl, dt, dd, ol, ul, li {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* 固定立体ウェーブ背景（contain + GPU層昇格でスクロール再ペイント遮断） */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-canvas);
  contain: strict;
  transform: translateZ(0);
}

.bg-wave {
  width: 100%;
  height: 100%;
  display: block;
}

/* 縦1カラムレイアウト（スマホ基準・PC中央表示） */
.page-column {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 14px 104px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 600px) {
  .page-column {
    padding: 36px 0 112px;
    gap: 16px;
  }
}

/* 共通タイポ補助 */
.mono-label {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-signal);
  box-shadow: 0 0 8px var(--accent-signal-glow);
  flex-shrink: 0;
}

/* =========================================================
   Liquid Glass レイヤー（3箇所限定・GPUネイティブ軽量実装）
   重いSVG屈折/WebGLを使わず、Glisse実測設計（対角リムライト＋0.5pxエッジ）を純CSSで再現
   ========================================================= */
.glass-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.64) 0%,
    rgba(255, 255, 255, 0.44) 50%,
    rgba(255, 255, 255, 0.56) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(175%);
  backdrop-filter: blur(14px) saturate(175%);
  box-shadow:
    inset 0 0 0 0.5px var(--glass-edge),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 1px 3px var(--glass-drop),
    0 14px 32px -12px rgba(15, 23, 42, 0.13);
}

/* 対角方向（左上・右下）に光り、間のコーナーで自然に消える 1.5px リムライト */
.glass-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.36) 24%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(255, 255, 255, 0.04) 54%,
    rgba(255, 255, 255, 0.32) 78%,
    rgba(255, 255, 255, 0.82) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ヒーローカードの静的な光学ハイライト（JS負荷ゼロ） */
.glass-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    280px circle at 24% 14%,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.1) 48%,
    transparent 72%
  );
}

/* 00. ヒーロー */
.hero-card {
  border-radius: var(--radius-glass);
  padding: 24px 22px 26px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.meta-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  font-size: 12px;
  min-width: 0;
}

.hero-identity {
  margin-bottom: 14px;
}

.hero-name {
  font-size: clamp(26px, 6.5vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-romaji {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
}

.hero-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.hero-lead {
  font-size: 14.5px;
  line-height: 1.8;
  color: #273142;
}

/* =========================================================
   本文パネル（クリーンホワイト・マットサーフェス：ガラスを敷かない）
   ========================================================= */
.panel-surface {
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-panel);
  padding: 22px 20px;
  box-shadow:
    0 4px 16px -6px rgba(15, 23, 42, 0.055),
    0 1px 2px rgba(15, 23, 42, 0.03);
  contain: layout style;
  scroll-margin-top: 20px;
}

.section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-signal);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  background-color: var(--accent-signal-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-signal-ink);
  flex-shrink: 0;
}

.section-en {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--accent-signal-ink);
}

.section-ja {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: var(--text-primary);
}

/* 01 / 04. キー・バリュー仕様行 */
.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.spec-row:first-child {
  padding-top: 2px;
}

.spec-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.spec-key {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.65;
}

.spec-val {
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

@media (max-width: 350px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 02. 経歴タイムライン */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background-color: var(--border-strong);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--surface-1);
  border: 1.5px solid var(--text-muted);
}

.timeline-item--current::before {
  background-color: var(--accent-signal);
  border-color: var(--accent-signal);
  box-shadow: 0 0 8px var(--accent-signal-glow);
}

.timeline-year {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.timeline-item--current .timeline-year {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.timeline-org {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* 03. 制作物・ものづくり */
.work-group + .work-group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.07em;
}

.group-label::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-signal);
  flex-shrink: 0;
}

.work-entry + .work-entry {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.work-tag {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.media-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: var(--radius-slot);
  background-color: var(--surface-slot);
  background-image: radial-gradient(rgba(15, 23, 42, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
}

.placeholder-icon {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.placeholder-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.placeholder-path {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}

/* Liquid Glass レイヤー 2/3: 画像上の極小キャプションチップ */
.glass-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--text-primary);
  border: 0;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(244, 248, 253, 0.62) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(15, 23, 42, 0.1),
    0 4px 12px rgba(15, 23, 42, 0.09);
}

.work-desc {
  font-size: 14.25px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ハード・手作業リスト（均等カードを使わない整然リスト） */
.craft-list {
  display: flex;
  flex-direction: column;
}

.craft-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.craft-row:first-child {
  padding-top: 2px;
}

.craft-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.craft-key {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.65;
}

.craft-val {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

@media (max-width: 350px) {
  .craft-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 印刷専用 Web Access / QR バナー（Web表示では非表示、印刷時は1ページ目最上部に強調表示） */
.access-panel {
  display: none;
  background-color: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-panel);
  padding: 18px 20px;
  align-items: center;
  gap: 16px;
}

.qr-card {
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid rgba(232, 66, 29, 0.22);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.qr-svg {
  width: 74px;
  height: 74px;
  display: block;
}

.qr-caption {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-signal-ink);
  line-height: 1;
}

.access-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.access-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-signal-ink);
  letter-spacing: 0.12em;
}

.access-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-signal);
  flex-shrink: 0;
}

.access-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.access-url {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: var(--accent-signal-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-signal-ink);
  overflow-wrap: anywhere;
}

.access-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* =========================================================
   下部フローティング Liquid Glass ドック（レイヤー 3/3：画面下部常時固定）
   ========================================================= */
.dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
  transform: translateZ(0);
}

.dock-bar {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  max-width: calc(100vw - 24px);
  border: 0;
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(246, 249, 253, 0.58) 55%,
    rgba(255, 255, 255, 0.68) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px rgba(15, 23, 42, 0.11),
    0 0 0 0.5px rgba(15, 23, 42, 0.05),
    0 12px 28px -8px rgba(15, 23, 42, 0.18),
    0 3px 8px rgba(15, 23, 42, 0.07);
}

.dock-link,
.dock-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.dock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-signal);
  box-shadow: 0 0 6px var(--accent-signal-glow);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.dock-link.is-active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: rgba(15, 23, 42, 0.075);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.65);
}

.dock-link.is-active .dock-dot {
  opacity: 1;
  transform: scale(1);
}

.dock-link:hover,
.dock-action:hover {
  color: var(--text-primary);
  background-color: rgba(15, 23, 42, 0.055);
}

.dock-link:active,
.dock-action:active {
  transform: scale(0.97);
}

.dock-link:focus-visible,
.dock-action:focus-visible {
  outline: 2px solid var(--accent-signal);
  outline-offset: 2px;
}

.dock-sep {
  width: 1px;
  height: 16px;
  background-color: rgba(15, 23, 42, 0.14);
  margin: 0 2px;
  flex-shrink: 0;
}

.dock-action {
  color: var(--text-primary);
}

.dock-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 390px) {
  .dock-bar {
    gap: 2px;
    padding: 5px 6px;
  }

  .dock-link,
  .dock-action {
    padding: 6px 8px;
    font-size: 11px;
    gap: 4px;
  }
}

/* モーション軽減設定への準拠 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   カラー印刷設定（@media print）
   紙専用の白地エディトリアル組版（スイス・タイポグラフィ × 工業プロダクト仕様書）
   - Webの角丸カード・水色背景を外し、紙の白・墨罫線・2カラムグリッドで組む
   - 1ページ目: ダークQRストリップ（最上部強調）→ マストヘッド → 01 基本情報 → 02 経歴
   - 2ページ目: 03 制作物・ものづくり（アプリ2列）→ 04 趣味・近況
   ========================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 14mm 14mm;

    @bottom-left {
      content: "PROFILE · 2026";
      font-family: "SF Mono", "Cascadia Mono", "Consolas", ui-monospace, monospace;
      font-size: 8pt;
      letter-spacing: 0.12em;
      color: #76808f;
    }

    @bottom-right {
      content: counter(page, decimal-leading-zero) " / " counter(pages, decimal-leading-zero);
      font-family: "SF Mono", "Cascadia Mono", "Consolas", ui-monospace, monospace;
      font-size: 8pt;
      letter-spacing: 0.12em;
      color: #76808f;
    }
  }

  html,
  body,
  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  html,
  body {
    background-color: #ffffff !important;
    color: #16191f !important;
    min-height: auto;
    overflow: visible !important;
  }

  /* 印刷時はWeb用の水色ウェーブ背景を外し、紙本来の純白をキャンバスにする */
  .bg-stage {
    display: none !important;
  }

  /* Chromium系印刷での flex 改ページ不具合を防ぐため block 化 */
  .page-column {
    display: block !important;
    max-width: 100%;
    padding: 0;
  }

  .glass-surface {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .glass-surface::before,
  .glass-hero::after {
    display: none !important;
  }

  /* 1ページ目最上部: ダーク・インダストリアル QR ストリップ（一目で目を引く特等席） */
  .access-panel {
    display: flex !important;
    align-items: center;
    gap: 18px;
    background: #16191f !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 11px 17px;
    margin-bottom: 16px;
  }

  .qr-card {
    background-color: #ffffff !important;
    border: 0 !important;
    border-radius: 5px;
    padding: 4px;
    gap: 2px;
  }

  .qr-svg {
    width: 58px;
    height: 58px;
  }

  .qr-caption {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #16191f !important;
  }

  .access-meta {
    gap: 3px;
  }

  .access-kicker {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: #ff6b45 !important;
  }

  .access-kicker::before {
    background-color: #ff6b45 !important;
  }

  .access-title {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff !important;
  }

  .access-url {
    background-color: rgba(255, 255, 255, 0.11) !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    padding: 2px 9px;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff !important;
  }

  .access-note {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.74) !important;
  }

  /* マストヘッド（カード枠を外し、白紙の上に堂々とタイポグラフィで組む） */
  .hero-card,
  .glass-hero {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 16px;
    margin-bottom: 0;
  }

  .hero-meta {
    margin-bottom: 9px;
    font-size: 10.5px;
    color: #6b7280;
  }

  .meta-location {
    font-size: 11.5px;
    font-weight: 500;
    color: #16191f;
  }

  .hero-identity {
    margin-bottom: 10px;
  }

  .hero-name {
    font-size: 29px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #16191f;
  }

  .hero-romaji {
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #6b7280;
  }

  .hero-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: #16191f;
    padding-bottom: 9px;
    margin-bottom: 9px;
    border-bottom: 1px solid rgba(22, 25, 31, 0.14);
  }

  .hero-lead {
    font-size: 12.5px;
    line-height: 1.68;
    color: #363e4a;
  }

  /* 本文セクション共通: カード枠を全廃し、1.5pxのシャープな墨罫線で区切る */
  .panel-surface {
    background-color: transparent !important;
    border: 0 !important;
    border-top: 1.5px solid #16191f !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 15px 0 16px;
    margin-bottom: 0;
    contain: none !important;
  }

  /* 01 / 02 / 04 は「左: 見出しカラム(126px) × 右: 本文カラム」のスイスグリッド */
  #profile,
  #career,
  #hobby {
    display: grid !important;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }

  .section-head {
    border-bottom: 0 !important;
    padding-bottom: 10px;
    margin-bottom: 0;
    gap: 5px;
  }

  .section-head::after {
    width: 24px;
    height: 2px;
    bottom: 0;
    background-color: var(--accent-signal);
  }

  .section-kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .section-index {
    background-color: transparent !important;
    padding: 0;
    border-radius: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--accent-signal) !important;
  }

  .section-en {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #6b7280 !important;
  }

  .section-ja {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #16191f;
  }

  .spec-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 6.5px 0;
    border-bottom: 1px solid rgba(22, 25, 31, 0.1);
  }

  .spec-key {
    font-size: 11.5px;
    font-weight: 600;
    color: #6b7280;
  }

  .spec-val {
    font-size: 12.5px;
    line-height: 1.58;
    color: #16191f;
  }

  /* 02 経歴タイムライン: 細い縦軸 + 左:年号 / 右:タイトル・社名・概要 */
  .timeline {
    gap: 10px;
    padding-left: 16px;
  }

  .timeline::before {
    background-color: rgba(22, 25, 31, 0.18);
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: baseline;
  }

  .timeline-item::before {
    left: -16px;
    top: 5px;
    border-color: #6b7280;
  }

  .timeline-year {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
  }

  .timeline-item--current .timeline-year {
    color: var(--accent-signal-ink);
  }

  .timeline-body {
    gap: 1px;
  }

  .timeline-title {
    font-size: 13px;
    font-weight: 700;
    color: #16191f;
  }

  .timeline-org {
    font-size: 10.5px;
    line-height: 1.4;
    color: #6b7280;
    margin-bottom: 2px;
  }

  .timeline-desc {
    font-size: 11.8px;
    line-height: 1.52;
    color: #4a5360;
  }

  /* 2ページ目開始: 03 制作物・ものづくり（全幅2列ショーケース） */
  #works {
    display: block !important;
    break-before: page;
    page-break-before: always;
    break-inside: auto;
    page-break-inside: auto;
    padding: 18px 0 24px;
  }

  #works .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid rgba(22, 25, 31, 0.12) !important;
    padding-bottom: 12px;
    margin-bottom: 18px;
    break-after: avoid;
    page-break-after: avoid;
  }

  #works .section-head::after {
    bottom: -1px;
    width: 32px;
  }

  #works .section-kicker {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .work-entry + .work-entry {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .work-head {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(22, 25, 31, 0.1);
  }

  .work-title {
    font-size: 15px;
    font-weight: 700;
    color: #16191f;
  }

  .work-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-signal-ink);
  }

  .media-slot {
    border-radius: 6px;
    border: 1px solid rgba(22, 25, 31, 0.14);
    background-color: #f5f7fa;
    background-image: radial-gradient(rgba(22, 25, 31, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    margin-bottom: 10px;
  }

  .glass-chip {
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 9.5px;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(22, 25, 31, 0.14) !important;
    box-shadow: none !important;
  }

  .work-desc {
    font-size: 12.5px;
    line-height: 1.65;
    color: #363e4a;
  }

  /* ハードウェア・手作業は1行見出し＋左158px軸揃えの仕様表で04 HOBBYと一直線に整列 */
  .work-group + .work-group {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(22, 25, 31, 0.14);
  }

  .group-label {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .work-group--craft .group-label {
    margin-bottom: 10px;
  }

  .craft-row {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 4px 20px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(22, 25, 31, 0.1);
  }

  .craft-key {
    font-size: 12.5px;
    font-weight: 700;
    color: #16191f;
  }

  .craft-val {
    font-size: 13px;
    line-height: 1.6;
    color: #363e4a;
  }

  #hobby {
    padding-bottom: 0;
  }

  .access-panel,
  .hero-card,
  #profile,
  #career,
  #hobby,
  .work-entry,
  .work-group--craft {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .dock-wrap {
    display: none !important;
  }
}
