:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --surface: #fffdf8;
  --surface-soft: #eef5ee;
  --ink: #3a2f28;
  --muted: #766b61;
  --line: #e1d4c5;
  --brand: #8a6a4f;
  --brand-strong: #5a382c;
  --coral: #bc5b4f;
  --gold: #a67a2b;
  --sakura: #d98b93;
  --aizome: #405d73;
  --matcha: #7c8f66;
  --washi: #f5ede0;
  --sumi: #2d2723;
  --shadow: 0 18px 50px rgba(80, 58, 42, 0.13);
  --radius: 8px;
  --content: min(1120px, calc(100vw - 40px));
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    url("assets/decor/edge-cloud.png") right -34px top 124px / 120px auto no-repeat,
    url("assets/decor/edge-cloud.png") left -48px top 54vh / 100px auto no-repeat,
    url("assets/decor/edge-cloud.png") right 6vw bottom 132px / 132px auto no-repeat,
    linear-gradient(180deg, rgba(245, 237, 224, 0.82), rgba(251, 247, 239, 0) 560px),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

body.dark {
  color-scheme: dark;
  --bg: #151815;
  --surface: #20241f;
  --surface-soft: #263229;
  --ink: #f2ede4;
  --muted: #b9afa2;
  --line: #4b4034;
  --brand: #c9a37d;
  --brand-strong: #e6c6a5;
  --coral: #e18b7b;
  --gold: #d4ad62;
  --sakura: #f0a7ae;
  --aizome: #8da8bd;
  --matcha: #b2c68c;
  --washi: #262118;
  --sumi: #f2ede4;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

img,
video {
  display: block;
  max-width: 100%;
}

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

[hidden] {
  display: none !important;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  pointer-events: none;
}

.site-header::after {
  content: none;
}

.site-header[data-elevated="true"]::before {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 112px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--brand-strong);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--washi)), var(--surface));
  color: var(--brand-strong);
  font-weight: 800;
  cursor: pointer;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  border-color: var(--brand);
}

.header-actions,
.hero-actions,
.resume-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.primary-link,
.solid-button,
.ghost-button,
.filter-button,
.media-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-link,
.solid-button {
  background:
    linear-gradient(135deg, var(--brand-strong), color-mix(in srgb, var(--brand) 80%, var(--gold)));
  color: #fff;
  box-shadow: 0 10px 26px rgba(90, 56, 44, 0.16);
}

.primary-link:hover,
.solid-button:hover {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 86%, var(--gold)), var(--brand-strong));
}

.ghost-button {
  border-color: var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--washi)), var(--surface));
  color: var(--brand-strong);
}

.ghost-button:hover {
  border-color: var(--brand);
}

main {
  position: relative;
  width: var(--content);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 52px;
  padding: 56px 0 80px;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before,
.section-kicker::before {
  content: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--ink);
}

h1 span {
  display: block;
}

.hero h1 {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede,
.about-copy p,
.resume-copy p:not(.section-kicker),
.contact-section p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-lede {
  max-width: 690px;
}

.hero-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.hero-traits span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface));
  border-radius: 999px;
  padding: 5px 11px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--washi) 90%, var(--surface)));
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(64, 73, 62, 0.05);
}

.hero-traits span:nth-child(2) {
  color: var(--aizome);
}

.hero-traits span:nth-child(3) {
  color: var(--coral);
}

.hero-traits span:nth-child(4) {
  color: var(--gold);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
  margin-top: 26px;
}

.hero-guide-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 500;
}

.hero-guide-card {
  --guide-accent: var(--brand-strong);
  --guide-offset: 0px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 154px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, var(--surface));
  border-radius: var(--radius);
  padding: 15px 14px 13px;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--washi)), var(--surface));
  box-shadow: 0 10px 28px rgba(64, 73, 62, 0.06);
  transform: translateY(var(--guide-offset));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--guide-accent);
}

.hero-guide-card.is-career {
  --guide-accent: #5a382c;
}

.hero-guide-card.is-creative {
  --guide-accent: #c45a4f;
  --guide-offset: 8px;
}

.hero-guide-card.is-life {
  --guide-accent: #a47a35;
  --guide-offset: -4px;
}

.hero-guide-card:hover,
.hero-guide-card:focus-visible {
  border-color: var(--guide-accent);
  box-shadow: 0 16px 38px rgba(64, 73, 62, 0.12);
  transform: translateY(calc(var(--guide-offset) - 4px));
  outline: none;
}

.hero-guide-card strong,
.hero-guide-head,
.hero-guide-icon,
.hero-guide-meta,
.hero-guide-copy,
.hero-guide-cta {
  display: block;
}

.hero-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-guide-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--guide-accent) 16%, var(--surface));
  color: var(--guide-accent);
  font-size: 16px;
  line-height: 1;
}

.hero-guide-meta {
  color: var(--guide-accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.hero-guide-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.hero-guide-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-guide-cta {
  align-self: end;
  margin-top: auto;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.hero-guide-cta::after {
  content: "→";
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.hero-guide-card:hover .hero-guide-cta::after,
.hero-guide-card:focus-visible .hero-guide-cta::after {
  transform: translateX(4px);
}

.hero-signature {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--brand-strong);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

.persona-panel {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 590px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.18s ease;
}

.persona-stage {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 552px;
  isolation: isolate;
}

.persona-stage::before {
  content: "";
  position: absolute;
  left: 26%;
  right: 22%;
  top: 150px;
  bottom: 108px;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--sakura) 34%, transparent) 0 18%, color-mix(in srgb, var(--sakura) 14%, transparent) 38%, transparent 72%);
  opacity: 0.62;
}

.persona-stage::after {
  content: none;
}

.persona-figure {
  position: relative;
  z-index: 2;
  width: min(86%, 500px);
  max-height: 540px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 26px 34px rgba(15, 62, 58, 0.14));
  transition: opacity 0.18s ease, transform 0.28s ease, filter 0.28s ease, width 0.28s ease, height 0.28s ease, border-radius 0.28s ease;
}

.persona-panel:hover .persona-figure {
  transform: scale(1.025);
  filter: drop-shadow(0 30px 38px rgba(80, 58, 42, 0.16));
}

.persona-stage.is-detail-active .persona-figure {
  width: min(86%, 500px);
  height: 440px;
  max-height: 440px;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  filter: none;
}

.persona-stage.is-detail-active .persona-mini-tag {
  opacity: 0;
}

.persona-tags {
  position: absolute;
  inset: 4px 8px auto;
  z-index: 4;
  height: 240px;
  pointer-events: none;
}

.persona-tag {
  --tag-angle: 0deg;
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-strong);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 8px 22px color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--tag-angle));
  transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease, opacity 0.18s ease;
}

.persona-tag:hover,
.persona-tag:focus-visible {
  opacity: 1;
  transform: rotate(var(--tag-angle)) scale(1.08);
  text-shadow:
    0 0 18px color-mix(in srgb, currentColor 38%, transparent),
    0 10px 24px color-mix(in srgb, var(--surface) 92%, transparent);
  outline: none;
}

.tag-japanese {
  --tag-angle: -11deg;
  top: 82px;
  left: 2%;
  color: var(--brand-strong);
  font-size: clamp(24px, 3vw, 40px);
}

.tag-operation {
  --tag-angle: 5deg;
  top: 50px;
  right: calc(9% + 50px);
  color: var(--coral);
  font-size: clamp(22px, 2.8vw, 36px);
}

.tag-study {
  --tag-angle: -3deg;
  top: 12px;
  left: 34%;
  color: var(--aizome);
  font-size: clamp(18px, 2.1vw, 28px);
}

.persona-mini-tag {
  position: absolute;
  color: var(--muted);
  font-size: clamp(12px, 1.35vw, 16px);
  font-weight: 800;
  line-height: 1;
  opacity: 0.78;
  pointer-events: none;
  text-shadow: 0 8px 18px color-mix(in srgb, var(--surface) 88%, transparent);
}

.mini-game {
  top: 166px;
  left: 24%;
  color: var(--brand);
  transform: rotate(9deg);
}

.mini-photo {
  top: 128px;
  right: 18%;
  color: var(--aizome);
  transform: rotate(-8deg);
}

.mini-hike {
  top: 178px;
  right: 34%;
  color: var(--matcha);
  transform: rotate(-4deg);
}

.persona-popup {
  position: absolute;
  inset: auto 56px 6px;
  z-index: 7;
  display: block;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transform-origin: center bottom;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.persona-stage[data-persona="operation"] .persona-popup {
  inset: auto 56px -14px;
}

.persona-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.persona-popup img {
  display: none;
}

.persona-popup p {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-strong);
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
  text-shadow: 0 8px 20px color-mix(in srgb, var(--surface) 94%, transparent);
}

.persona-popup span {
  display: none;
  color: var(--coral);
  font-weight: 900;
}

.persona-popup strong {
  display: none;
  color: var(--ink);
  font-size: 14px;
}

.persona-popup em {
  min-width: 0;
  font-style: normal;
  white-space: normal;
}

.section {
  position: relative;
  scroll-margin-top: 90px;
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 124px;
  height: 1px;
  background: var(--coral);
}

.split-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 72px;
}

.about-heading {
  display: grid;
  align-content: start;
  gap: 14px;
}

.about-avatar {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tag-list span,
.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--brand-strong);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 78%, var(--washi)), var(--surface));
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}

.section-note {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.education-timeline {
  position: relative;
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 6px 0 6px 34px;
  list-style: none;
}

.education-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--coral), var(--brand));
}

.education-timeline li {
  position: relative;
}

.education-timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 9px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 8px color-mix(in srgb, var(--surface-soft) 70%, transparent);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.education-timeline li:has(.education-event:hover)::before,
.education-timeline li:has(.education-event:focus-visible)::before,
.education-timeline li:has(.education-event.is-active)::before {
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--coral), 0 0 0 12px color-mix(in srgb, var(--coral) 16%, transparent);
  transform: scale(1.12);
}

.education-event {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0 0 0 12px;
  background: transparent;
  cursor: pointer;
}

.education-event:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
  border-radius: var(--radius);
}

.education-event span,
.interest-card > div > span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.education-event h3 {
  margin-bottom: 0;
}

.education-event p,
.interest-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.education-event h3,
.education-event p {
  transition: transform 0.2s ease, color 0.2s ease;
}

.education-event:hover h3,
.education-event:focus-visible h3,
.education-event.is-active h3 {
  color: var(--brand-strong);
  transform: translateX(6px);
}

.education-orbit {
  position: sticky;
  top: 116px;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 360px;
  align-content: center;
}

.education-preview {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  background: transparent;
  transition: transform 0.35s ease;
}

.education-preview::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 46% 54% 58% 42%;
  background: color-mix(in srgb, var(--coral) 18%, transparent);
}

.education-collage {
  position: relative;
  width: 100%;
  height: 100%;
}

.education-collage img {
  position: absolute;
  object-fit: cover;
  border: 6px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: opacity 0.18s ease, transform 0.35s ease, border-radius 0.35s ease, clip-path 0.35s ease;
}

.education-preview:hover .education-collage img {
  transform: scale(1.015) rotate(var(--tilt, 0deg));
}

.education-preview.collage-posters .education-collage::before,
.education-preview.collage-posters .education-collage::after {
  content: "";
  position: absolute;
  z-index: 4;
  width: 68px;
  height: 20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 16px rgba(15, 62, 58, 0.12);
}

.education-preview.collage-posters .education-collage::before {
  left: 16%;
  top: 3%;
  transform: rotate(-10deg);
}

.education-preview.collage-posters .education-collage::after {
  right: 10%;
  top: 30%;
  transform: rotate(9deg);
}

.education-preview.collage-posters img:nth-child(1) {
  --tilt: -7deg;
  left: 0;
  top: 8%;
  width: 64%;
  height: 52%;
  border-radius: 14px;
  transform: rotate(-7deg);
  z-index: 2;
}

.education-preview.collage-posters img:nth-child(2) {
  --tilt: 5deg;
  right: 0;
  top: 24%;
  width: 62%;
  height: 47%;
  border-radius: 14px;
  transform: rotate(5deg);
  z-index: 3;
}

.education-preview.collage-posters img:nth-child(3) {
  --tilt: -2deg;
  left: 20%;
  bottom: 0;
  width: 58%;
  height: 42%;
  border-radius: 14px;
  transform: rotate(-2deg);
  z-index: 1;
}

.education-preview.collage-bubbles img {
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}

.education-preview.collage-bubbles img:nth-child(1) {
  --tilt: -3deg;
  left: 2%;
  top: 5%;
  width: 68%;
  height: 68%;
  z-index: 2;
}

.education-preview.collage-bubbles img:nth-child(2) {
  --tilt: 4deg;
  right: 0;
  bottom: 4%;
  width: 56%;
  height: 56%;
  z-index: 3;
}

.education-preview.collage-sakura img:nth-child(1) {
  --tilt: -4deg;
  left: 0;
  top: 0;
  width: 68%;
  height: 50%;
  border-radius: 48% 52% 42% 58% / 58% 44% 56% 42%;
  clip-path: ellipse(48% 42% at 52% 50%);
  transform: rotate(-4deg);
  z-index: 2;
}

.education-preview.collage-sakura img:nth-child(2) {
  --tilt: 5deg;
  right: 1%;
  top: 28%;
  width: 62%;
  height: 42%;
  border-radius: 38% 62% 58% 42% / 42% 38% 62% 58%;
  clip-path: polygon(50% 0, 92% 22%, 90% 78%, 48% 100%, 8% 74%, 10% 20%);
  transform: rotate(5deg);
  z-index: 3;
}

.education-preview.collage-sakura img:nth-child(3) {
  --tilt: -2deg;
  left: 18%;
  bottom: 0;
  width: 54%;
  height: 48%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  transform: rotate(-2deg);
  z-index: 1;
}

.education-orbit p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.interest-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(15, 62, 58, 0.06);
}

.interest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-button,
.media-filter {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line);
}

.filter-button.is-active,
.media-filter.is-active {
  color: #fff;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.experience-block + .experience-block {
  margin-top: 58px;
}

.experience-block {
  position: relative;
}

.work-experience-block::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 71px;
  height: 1px;
  background: var(--line);
}

.experience-subhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 22px;
}

.section-orb,
.case-hub {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 142px;
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--brand-strong), color-mix(in srgb, var(--brand) 76%, var(--ink)));
  color: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.section-orb span,
.case-hub span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.section-orb strong,
.case-hub strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
}

.work-orb {
  position: relative;
  z-index: 2;
  margin: 0 auto 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.media-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--washi)), var(--surface));
  box-shadow: 0 10px 32px rgba(64, 73, 62, 0.07);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--coral), var(--gold), var(--brand));
  opacity: 0.72;
}

.project-card:hover {
  transform: scale(1.012);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 18px 42px rgba(64, 73, 62, 0.12);
}

.project-card.is-detail-open {
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  box-shadow: 0 18px 42px rgba(64, 73, 62, 0.11);
}

.project-card.is-hidden,
.media-card.is-hidden {
  display: none;
}

.project-meta {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.project-summary,
.project-card p {
  color: var(--muted);
  line-height: 1.72;
}

.project-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.65;
}

.project-list li + li {
  margin-top: 8px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.project-metric-pill {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--surface));
  border-radius: var(--radius);
  padding: 9px 8px;
  background: color-mix(in srgb, var(--sakura) 12%, var(--surface));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.project-card:hover .project-metric-pill,
.case-node:hover .project-metric-pill,
.case-node:focus-visible .project-metric-pill,
.case-node.is-detail-open .project-metric-pill,
.project-card.is-detail-open .project-metric-pill {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: color-mix(in srgb, var(--sakura) 18%, var(--surface));
  transform: translateY(-1px);
}

.project-metric-pill strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-strong);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.project-metric-pill span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.project-detail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 40px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 16px;
  background:
    linear-gradient(135deg, var(--brand-strong), color-mix(in srgb, var(--brand) 80%, var(--gold)));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(90, 56, 44, 0.16);
  cursor: pointer;
}

.project-detail-toggle:hover,
.project-detail-toggle[aria-expanded="true"] {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 86%, var(--gold)), var(--brand-strong));
}

.project-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-detail[hidden] {
  display: none;
}

.project-detail-field {
  margin-bottom: 14px;
}

.project-detail-field strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
  font-size: 13px;
}

.project-detail-field p {
  margin: 0;
}

.case-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 4px;
}

.case-map::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 93px;
  height: 1px;
  background: var(--line);
}

.case-hub {
  grid-column: 1 / -1;
  justify-self: center;
}

.case-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--washi)), var(--surface));
  box-shadow: 0 10px 32px rgba(64, 73, 62, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.case-node::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--gold);
  opacity: 0.68;
}

.case-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1px;
  height: 22px;
  background: var(--line);
}

.case-node:hover,
.case-node:focus-visible,
.case-node.is-detail-open {
  transform: scale(1.012);
  border-color: var(--brand-strong);
  box-shadow: 0 18px 44px rgba(15, 62, 58, 0.14);
  outline: 0;
}

.case-theme {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.case-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.case-path span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--matcha) 12%, var(--surface));
  font-size: 13px;
  font-weight: 800;
}

.case-path span + span::before {
  content: ">";
  position: absolute;
  left: -12px;
  color: var(--muted);
}

.case-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.case-node .project-tags {
  margin-top: 14px;
  padding-top: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.media-grid:not(.is-group-view) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.is-portrait-view {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.media-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.media-card:nth-child(1),
.media-card:nth-child(4) {
  grid-column: span 2;
}

.media-grid:not(.is-group-view) .media-card {
  grid-column: span 1;
}

.media-grid.is-portrait-view .media-card {
  aspect-ratio: 9 / 16;
  grid-column: span 1;
}

.media-grid.is-group-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 360px;
}

.media-grid.is-group-view .media-card {
  grid-column: span 1;
}

.media-group-card .media-caption strong {
  font-size: 28px;
}

.media-grid.is-portrait-view .media-caption {
  inset: auto 10px 10px;
  padding: 10px;
}

.media-grid.is-portrait-view .media-caption strong {
  font-size: 17px;
  line-height: 1.25;
}

.media-grid.is-portrait-view .media-caption span {
  font-size: 12px;
  line-height: 1.45;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-caption {
  position: absolute;
  inset: auto 12px 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(32, 39, 36, 0.76);
  color: #fff;
  backdrop-filter: blur(12px);
}

.media-caption strong,
.media-caption span {
  display: block;
}

.media-caption span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.media-card::after {
  content: attr(data-media-count);
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 34px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(32, 39, 36, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.interest-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.interest-card:hover {
  transform: scale(1.012);
  border-color: color-mix(in srgb, var(--coral) 40%, var(--line));
  box-shadow: 0 18px 42px rgba(64, 73, 62, 0.12);
}

.interest-card img {
  background: var(--surface-soft);
}

.interest-card > div {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 20px;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.interest-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-soft));
  font-size: 12px;
  font-weight: 800;
}

.game-showcase {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--washi) 76%, transparent)),
    var(--surface);
  box-shadow: 0 18px 46px rgba(80, 58, 42, 0.1);
  overflow: hidden;
}

.game-showcase-head {
  margin-bottom: 12px;
}

.game-showcase-head h2 {
  margin: 4px 0 0;
  color: var(--brand-strong);
}

.game-deck {
  position: relative;
  min-height: 376px;
  margin-top: 6px;
}

.game-card {
  --card-x: 0px;
  --card-y: 0px;
  --card-rotate: 0deg;
  --domino-delay: 0ms;
  position: absolute;
  left: 50%;
  bottom: 64px;
  width: 190px;
  aspect-ratio: 951 / 1468;
  border: 0;
  border-radius: 20px;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform: translateX(calc(-50% + var(--card-x))) translateY(var(--card-y)) rotate(var(--card-rotate));
  transform-origin: center 112%;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) var(--domino-delay), box-shadow 0.2s ease, border-color 0.2s ease, z-index 0.16s ease;
  will-change: transform;
}

.game-card::before {
  content: none;
}

.game-card::after {
  content: none;
}

.game-card-surface {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #fffefa;
  box-shadow: 0 18px 38px rgba(80, 58, 42, 0.16);
  transition: box-shadow 0.22s ease, filter 0.22s ease;
}

.game-card-surface::before {
  content: none;
}

.game-card-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("media/gallery/games/card-template-v2.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.game-card:hover,
.game-card:focus-visible,
.game-card.is-domino-main {
  z-index: 20;
  transform: translateX(calc(-50% + var(--card-x))) translateY(calc(var(--card-y) - 22px)) rotate(var(--card-rotate)) scale(1.055);
  outline: none;
}

.game-card:hover .game-card-surface,
.game-card:focus-visible .game-card-surface,
.game-card.is-domino-main .game-card-surface {
  box-shadow:
    0 25px 58px rgba(80, 58, 42, 0.22),
    0 0 24px color-mix(in srgb, var(--gold) 20%, transparent);
  filter: saturate(1.03);
}

.game-card.is-domino-near {
  z-index: 16;
  transform: translateX(calc(-50% + var(--card-x))) translateY(calc(var(--card-y) - 13px)) rotate(var(--card-rotate)) scale(1.026);
}

.game-card.is-domino-far {
  z-index: 12;
  transform: translateX(calc(-50% + var(--card-x))) translateY(calc(var(--card-y) - 6px)) rotate(var(--card-rotate)) scale(1.012);
}

.game-card-title {
  position: absolute;
  inset: calc(3% + 4px) 14% auto;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 8.4%;
  margin: 0;
  color: var(--brand-strong);
  font-family: "Hiragino Mincho ProN", "Songti SC", "STSong", "SimSun", serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 8px color-mix(in srgb, var(--gold) 28%, transparent);
  overflow-wrap: anywhere;
}

.game-art {
  position: absolute;
  inset: 14.2% 5.8% auto;
  left: calc(5.8% + 1px);
  right: calc(5.8% + 1px);
  z-index: 1;
  height: 60.5%;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.56), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 28%, var(--washi)), color-mix(in srgb, var(--gold) 34%, var(--surface)));
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: color-mix(in srgb, var(--brand-strong) 78%, var(--ink));
  text-align: center;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.game-placeholder span {
  display: block;
  max-width: 96px;
  font-size: 18px;
  line-height: 1.25;
}

.game-info-box {
  position: absolute;
  left: 5.8%;
  right: 5.8%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--brand-strong);
  text-align: center;
}

.game-detail-box {
  top: 78%;
  height: 18.2%;
  padding: 0 10px;
}

.game-info-box span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.game-info-box p {
  margin: 0;
  color: var(--ink);
  font-size: 8px;
  font-weight: 400;
  line-height: 1.35;
}

.game-info-box strong,
.game-info-box span {
  display: block;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.game-info-box strong {
  margin: 0 0 4px;
  font-size: calc(1em + 1px);
  font-weight: 950;
}

.game-deck .game-info-box strong {
  font-size: inherit;
}

.game-info-box span {
  font-weight: 400;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
}

.game-tags span {
  border: 0;
  border-radius: 999px;
  padding: 2px 5px;
  background: #cbb69e;
  color: #ffffff;
  font-size: 7px;
  font-weight: 800;
}

.game-dialog {
  width: min(440px, calc(100vw - 36px));
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  overflow: visible;
}

.game-dialog[open]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(744px, 170vw);
  aspect-ratio: 1024 / 1536;
  transform: translate(-50%, -50%);
  background: url("media/gallery/games/reward-glow.webp") center / contain no-repeat;
  filter: saturate(1.08);
  opacity: 0.86;
  pointer-events: none;
  animation: gameRewardGlow 1.8s ease-in-out infinite alternate;
}

.game-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 48%, rgba(36, 76, 126, 0.28), transparent 34%),
    rgba(20, 18, 18, 0.66);
  backdrop-filter: blur(5px);
  animation: gameBackdropReveal 0.36s ease both;
}

.game-dialog-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(45, 39, 35, 0.22);
}

.game-dialog[open] .game-modal-card {
  animation: cardReveal 0.42s cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.game-modal-card {
  position: relative;
  z-index: 2;
  width: min(360px, 84vw);
  aspect-ratio: 951 / 1468;
  margin: 0 auto;
  border-radius: 20px;
  transform-origin: center 118%;
  transform-style: preserve-3d;
  box-shadow:
    0 32px 90px rgba(21, 32, 45, 0.42),
    0 0 28px rgba(255, 246, 202, 0.62),
    0 0 64px color-mix(in srgb, var(--aizome) 45%, transparent),
    0 0 118px color-mix(in srgb, var(--gold) 38%, transparent);
}

.game-dialog[open] .game-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(255, 255, 255, 0.72) 44%, rgba(255, 249, 209, 0.34) 50%, transparent 62%),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.36), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-42%) skewX(-12deg);
  pointer-events: none;
  animation: cardShineSweep 0.52s ease 0.1s both;
}

.game-modal-card .game-art {
  left: calc(5.8% + 3px);
  right: calc(5.8% + 3px);
  height: calc(60.5% - 2px);
  border-radius: 32px 32px 16px 16px;
}

.game-modal-card .game-card-title {
  inset: calc(3% + 7px) 14% auto;
  font-size: 24px;
}

.game-modal-card .game-tags span {
  padding: 4px 9px;
  font-size: 11px;
}

.game-modal-card .game-info-box p {
  font-size: 14px;
}

@keyframes cardReveal {
  0% {
    opacity: 0;
    filter: blur(2px) brightness(1.16);
    transform: perspective(900px) rotateX(8deg) rotateZ(-2deg) scale(0.9) translateY(20px);
  }

  54% {
    opacity: 1;
    filter: blur(0) brightness(1.05);
    transform: perspective(900px) rotateX(-1.5deg) rotateZ(0.8deg) scale(1.025) translateY(-4px);
  }

  78% {
    filter: brightness(1.01);
    transform: perspective(900px) rotateX(0.5deg) rotateZ(-0.3deg) scale(0.995) translateY(1px);
  }

  100% {
    opacity: 1;
    filter: none;
    transform: perspective(900px) rotateX(0) rotateZ(0) scale(1) translateY(0);
  }
}

@keyframes cardShineSweep {
  0% {
    opacity: 0;
    transform: translateX(-54%) skewX(-12deg);
  }

  34% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
    transform: translateX(54%) skewX(-12deg);
  }
}

@keyframes gameBackdropReveal {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

@keyframes gameRewardGlow {
  from {
    opacity: 0.68;
    transform: translate(-50%, -50%) scale(0.98);
  }

  to {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.resume-section {
  display: grid;
  grid-template-columns: 0.9fr minmax(300px, 0.62fr);
  gap: 48px;
  align-items: center;
}

.resume-actions {
  margin: 24px 0;
}

.skills-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
}

.skills-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.skills-list dt {
  color: var(--brand-strong);
  font-weight: 800;
}

.skills-list dd {
  margin: 0;
  color: var(--muted);
}

.resume-preview {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: none;
  transform-origin: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.resume-preview:hover {
  transform: scale(1.025);
  box-shadow: 0 20px 48px rgba(64, 73, 62, 0.14);
}

.resume-preview img {
  width: 100%;
}

.resume-contact {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.resume-contact .contact-actions {
  grid-template-columns: minmax(0, 1fr);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 54px;
  align-items: center;
  padding: 64px 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
  padding: 22px 30px 50px;
  color: inherit;
  text-align: left;
  overflow: hidden;
}

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-value {
  display: block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.copy-mini-button {
  position: absolute;
  right: 18px;
  bottom: 16px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: color-mix(in srgb, var(--surface) 86%, var(--washi));
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.copy-mini-button:hover {
  border-color: var(--brand);
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(520px, 1fr);
  width: 100%;
  margin-left: 0;
  padding: 33px 0;
  gap: 44px;
  align-items: center;
}

.feedback-section p:not(.section-kicker) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.feedback-section .feedback-intro {
  margin-top: 10px;
}

.feedback-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--washi)), var(--surface));
  box-shadow: 0 10px 32px rgba(64, 73, 62, 0.07);
}

.rating-field {
  margin: 0;
  border: 0;
  padding: 0;
}

.rating-field legend,
.message-field span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rating-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options label {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 48%, transparent);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.rating-options label:hover,
.rating-options label:hover ~ label,
.rating-options input:checked ~ label {
  color: #e5a534;
}

.rating-options label:hover {
  transform: scale(1.08);
}

.message-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--washi));
  color: var(--ink);
  line-height: 1.6;
}

.feedback-form .solid-button {
  align-self: end;
  justify-self: end;
}

.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.not-found-page {
  min-height: 100vh;
}

.not-found-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 88px);
  width: var(--content);
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.not-found-card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(40px, 8vw, 76px) clamp(24px, 7vw, 64px);
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--sakura) 20%, transparent), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--washi)), var(--surface));
  box-shadow: var(--shadow);
}

.not-found-code {
  margin: 0 0 12px;
  color: var(--sakura);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 17vw, 132px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.not-found-card h1 {
  margin: 0;
  color: var(--brand-strong);
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 6vw, 48px);
}

.not-found-card p:not(.not-found-code) {
  max-width: 440px;
  margin: 18px auto 28px;
  color: var(--muted);
  line-height: 1.8;
}

.not-found-card .solid-button {
  display: inline-flex;
}

.message-field textarea:focus,
.rating-options input:focus-visible + label {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 42px;
  opacity: 0.72;
  background: url("assets/decor/footer-line-divider.png") center / min(1120px, 94vw) auto no-repeat;
  pointer-events: none;
}

.site-footer::after {
  content: none;
}

.media-dialog {
  width: min(880px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.media-dialog::backdrop {
  background: rgba(6, 16, 15, 0.7);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.dialog-media {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.dialog-media img,
.dialog-media video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #101816;
}

.album-viewer {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: min(72vh, 620px);
  min-height: 520px;
  background: #101816;
}

.album-viewer .album-preview {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
}

.album-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.album-thumbs button {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.album-thumbs button.is-active {
  border-color: var(--brand);
}

.album-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.dialog-text {
  padding: 32px;
}

.dialog-text p {
  color: var(--muted);
  line-height: 1.75;
}

.dialog-external-link {
  display: inline-flex;
  margin-top: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  padding: 12px 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  :root {
    --content: min(100vw - 28px, 720px);
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border: 0 solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 94%, var(--washi));
    box-shadow: 0 10px 28px rgba(64, 73, 62, 0.08);
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.22s ease, padding 0.22s ease, border-width 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  .site-header.is-menu-open .nav-links {
    max-height: 220px;
    border-width: 1px;
    padding: 8px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
  }

  .nav-links a:hover {
    background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
  }

  .primary-link {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero,
  .split-section,
  .education-layout,
  .resume-section,
  .contact-section,
  .feedback-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 8px;
    margin-top: 22px;
  }

  .resume-contact {
    gap: 14px;
  }

  .hero-guide-card {
    --guide-offset: 0px;
    min-height: 0;
    gap: 6px;
    padding: 13px 14px 12px;
  }

  .hero-guide-card.is-creative,
  .hero-guide-card.is-life {
    --guide-offset: 0px;
  }

  .persona-panel {
    min-height: 0;
  }

  .persona-stage {
    min-height: 520px;
  }

  .persona-figure {
    width: min(82vw, 430px);
  }

  .persona-stage.is-detail-active .persona-figure {
    width: min(86vw, 430px);
    height: 390px;
    max-height: 390px;
    margin-bottom: 30px;
  }

  .persona-tags {
    inset: 16px 18px auto;
    height: 210px;
  }

  .persona-popup {
    inset: auto 26px -12px;
  }

  .persona-stage[data-persona="operation"] .persona-popup {
    inset: auto 26px -32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .case-map {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-map::before,
  .case-node::before {
    display: none;
  }

  .case-hub {
    width: min(142px, 62vw);
  }

  .case-node {
    min-height: auto;
  }

  .case-metrics {
    max-height: none;
    margin-top: 18px;
    opacity: 1;
    transform: none;
  }

  .education-layout {
    gap: 34px;
  }

  .education-orbit {
    position: relative;
    top: auto;
    min-height: 300px;
  }

  .interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-showcase {
    padding: 20px 14px 22px;
  }

  .game-showcase-head {
    display: block;
  }

  .game-deck {
    display: flex;
    gap: 14px;
    min-height: 0;
    margin: 12px -14px 0;
    padding: 4px 14px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .game-card {
    position: relative;
    left: auto;
    bottom: auto;
    flex: 0 0 178px;
    scroll-snap-align: start;
    transform: none;
  }

  .game-card-title {
    font-size: 12px;
  }

  .game-card:hover,
  .game-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .media-grid.is-group-view {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .media-grid.is-portrait-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .media-card:nth-child(1),
  .media-card:nth-child(4) {
    grid-column: span 1;
  }

  .media-grid.is-portrait-view .media-card {
    aspect-ratio: 9 / 16;
  }

  .dialog-media {
    grid-template-columns: 1fr;
  }

  .dialog-media img,
  .dialog-media video {
    min-height: 280px;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-card {
    padding: 22px 24px 58px;
  }

  .contact-value {
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy,
  .section {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .hero-guide-title {
    font-size: 13px;
  }

  .hero-guide-card {
    gap: 5px;
    padding: 12px;
  }

  .hero-guide-icon {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .hero-guide-card strong {
    font-size: 16px;
  }

  .hero-guide-copy,
  .hero-guide-cta {
    font-size: 12px;
  }

  .media-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .game-showcase {
    margin-top: 24px;
    border-radius: 14px;
  }

  .game-deck {
    gap: 12px;
  }

  .game-card {
    flex-basis: 164px;
  }

  .game-card-title {
    font-size: 11px;
  }

  .game-info-box p {
    font-size: 8px;
  }

  .media-grid.is-portrait-view {
    grid-template-columns: 1fr;
  }

  .persona-stage {
    min-height: 500px;
  }

  .persona-figure {
    width: min(92vw, 380px);
  }

  .persona-stage.is-detail-active .persona-figure {
    width: min(92vw, 380px);
    height: 300px;
    max-height: 300px;
    margin-bottom: 46px;
  }

  .persona-tags {
    inset: 12px 12px auto;
    height: 150px;
  }

  .tag-japanese {
    top: 52px;
    left: 1%;
  }

  .tag-operation {
    top: 26px;
    right: calc(4% + 50px);
  }

  .tag-study {
    top: 14px;
    left: 32%;
  }

  .persona-popup {
    inset: auto 12px -8px;
  }

  .persona-stage[data-persona="operation"] .persona-popup {
    inset: auto 12px -28px;
  }

  .persona-popup p {
    padding: 0 8px;
    font-size: 12px;
  }

  .persona-popup strong {
    font-size: 12px;
  }

  .persona-popup span {
    display: none;
  }

  .education-timeline {
    gap: 24px;
    padding-left: 30px;
  }

  .education-timeline li::before {
    left: -30px;
  }

  .education-preview {
    width: min(240px, 72vw);
  }

  .education-orbit {
    min-height: 260px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }

  .feedback-section {
    width: 100%;
    padding: 28px 0;
  }

  .interest-card {
    grid-template-rows: 210px 1fr;
  }

  .interest-card > div {
    min-height: 0;
  }

  .skills-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    gap: 22px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .about-avatar {
    width: 104px;
  }

  .contact-card {
    min-height: 108px;
    padding: 18px 20px 46px;
  }

  .contact-value {
    font-size: 18px;
  }

  .feedback-form {
    padding: 20px;
  }
}
