:root {
  --ink: #102d2c;
  --paper: #f3efe5;
  --lime: #d9ff48;
  --coral: #ff6759;
  --line: rgba(16, 45, 44, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

body,
button,
input,
select,
textarea { font: inherit; }

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;

  transform: scale(2.5);
}

.site-header nav { display: flex; gap: 34px; }
.site-header nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--coral); }

.site-header.is-scrolled {
  position: fixed;
  min-height: 68px;
  background: rgba(243, 239, 229, .9);
  backdrop-filter: blur(14px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
  padding-top: 84px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
}
.hero-copy { align-self: center; padding: 7vw 3vw 7vw 8.333vw; }
.eyebrow {
  margin: 0 0 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.eyebrow::before {
  display: inline-block;
  width: 30px;
  height: 8px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 6.3vw, 7.3rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.98;
}
h1 span { position: relative; z-index: 1; display: inline-block; }
h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.03em;
  left: 0;
  height: 0.23em;
  background: var(--lime);
  content: "";
}
.hero-lead {
  margin: 38px 0 0;
  font-size: clamp(0.92rem, 1.15vw, 1.1rem);
  font-weight: 600;
  line-height: 2;
}
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--coral); }
.button-quiet:hover { background: white; }

.hero-visual {
  position: relative;
  min-height: 620px;
  align-self: stretch;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: white;
}
.hero-visual::before {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  top: 10%;
  right: -10%;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.orbit-one { width: 76%; aspect-ratio: 1; top: 8%; left: 8%; }
.orbit-two { width: 98%; aspect-ratio: 1; top: 1%; left: -28%; }
.experience-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(25vw, 330px);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transform: translate(-50%, -50%) rotate(-7deg);
  box-shadow: 18px 18px 0 rgba(0,0,0,.23);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.experience-stamp strong {
  margin: -8px 0;
  font-family: Arial, sans-serif;
  font-size: clamp(7rem, 12vw, 11rem);
  line-height: 1;
}
.code-note {
  position: absolute;
  right: 3.5vw;
  bottom: 5vw;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 4.5vw;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.scroll-cue span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.ticker {
  overflow: hidden;
  padding: 14px 0;
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}
.ticker div { width: max-content; animation: drift 16s linear infinite; }
@keyframes drift { to { transform: translateX(-35%); } }

.section {
  padding: 8.5vw 8.333vw;
}

.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7vw;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section-label .eyebrow { margin: 0; }

.about-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 8vw;
  align-items: start;
}

.about h2,
.skills h2,
.journey h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.7rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: 1.02;
}

.about-copy {
  padding-top: .7vw;
  font-size: 15px;
  line-height: 2.15;
}

.about-copy p { margin: 0 0 30px; }
.about-lead { font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 700; }
.about-lead em {
  background: linear-gradient(transparent 65%, var(--lime) 65%);
  font-style: normal;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7vw;
  border: 1px solid var(--ink);
}

.stat {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-right: 1px solid var(--ink);
}

.stat:last-child { border-right: 0; }
.stat strong {
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 7vw, 7.5rem);
  letter-spacing: -.07em;
  line-height: .9;
}
.stat small { margin-left: 5px; font-size: 16px; letter-spacing: 0; }
.stat span { font-size: 12px; font-weight: 800; }
.stat-dark { background: var(--ink); color: white; }
.stat-coral { background: var(--coral); }

.work {
  background: var(--ink);
  color: white;
}

.label-light .eyebrow::before { background: var(--lime); }
.work-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .7fr);
  gap: 7vw;
  align-items: end;
}
.work-kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}
.work h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(5rem, 12vw, 13rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .77;
}
.work h2 span {
  margin-left: 18px;
  color: var(--lime);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.7rem, 3vw, 3.5rem);
  letter-spacing: -.05em;
}
.work-summary {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .45fr);
  margin-top: 6vw;
  border: 1px solid rgba(255,255,255,.32);
}
.browser-card { min-width: 0; background: #dedbd2; }
.browser-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: #e8e5dd;
  color: var(--ink);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.browser-bar i:nth-child(2) { background: #f5c351; }
.browser-bar i:nth-child(3) { background: #66b875; }
.browser-bar span {
  max-width: 360px;
  flex: 1;
  margin: auto;
  padding: 7px 14px;
  border-radius: 3px;
  background: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-align: center;
}
.browser-card img {
  display: block;
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: top;
}
.project-facts { display: flex; flex-direction: column; }
.project-facts > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 23px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.project-facts > div:last-child { border-bottom: 0; }
.project-facts span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .16em;
}
.project-facts strong { font-size: 12px; line-height: 1.55; }
.project-links { flex-direction: row !important; gap: 8px !important; }
.project-links a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.project-links a:last-child { background: white; }
.project-links a:hover { background: var(--coral); }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 7vw;
  border-top: 1px solid rgba(255,255,255,.3);
  border-left: 1px solid rgba(255,255,255,.3);
}
.capability {
  min-height: 290px;
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,.3);
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.capability > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.capability h3 { margin: 74px 0 18px; font-size: 20px; }
.capability p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.9; }

.spa-work {
  background: var(--coral);
  color: var(--ink);
}

.spa-work .eyebrow::before { background: var(--ink); }

.spa-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .7fr);
  gap: 7vw;
  align-items: end;
}

.spa-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.spa-work h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(4.8rem, 11vw, 12rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .78;
}

.spa-work h2 span {
  margin-left: 12px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.7rem, 3vw, 3.5rem);
  letter-spacing: -.05em;
}

/* ReactionTimerは文字数が多いため少し小さくする */
.reaction-work h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(4.4rem, 9.5vw, 10.5rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .82;
}

.reaction-work h2 span {
  margin-left: 12px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  letter-spacing: -.05em;
}

.spa-summary {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.spa-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr);
  margin-top: 6vw;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.spa-preview { min-width: 0; border-right: 1px solid var(--ink); }

.spa-browser-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ink);
  background: #e8e5dd;
}

.spa-browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.spa-browser-bar i:nth-child(2) { background: #f5c351; }
.spa-browser-bar i:nth-child(3) { background: #66b875; }

.spa-browser-bar span {
  max-width: 360px;
  flex: 1;
  margin: auto;
  padding: 7px 14px;
  border-radius: 3px;
  background: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-align: center;
}

.spa-screen {
  min-height: 530px;
  padding: clamp(28px, 4vw, 62px);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
}

.spa-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.spa-nav strong { color: var(--lime); font-size: 17px; }

.spa-route-card {
  max-width: 720px;
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding: clamp(28px, 4vw, 54px);
  background: var(--paper);
  box-shadow: 16px 16px 0 var(--lime);
}

.spa-route-card > p {
  margin: 0;
  color: #66706d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.spa-route-card h3 {
  margin: 13px 0 34px;
  font-size: clamp(1.35rem, 2.6vw, 2.7rem);
  letter-spacing: -.05em;
}

.route-steps {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: start;
  text-align: center;
}

.route-steps > div { min-width: 0; }

.route-steps b {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: var(--coral);
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.route-steps div:nth-child(3) b { background: var(--lime); }
.route-steps div:nth-child(5) b { background: var(--ink); color: white; }
.route-steps span { display: block; margin-top: 11px; font-size: 10px; font-weight: 800; }
.route-steps i { height: 1px; margin-top: 28px; background: var(--ink); }

.route-progress { height: 7px; margin-top: 34px; background: #d8d8d2; }
.route-progress span { display: block; width: 68%; height: 100%; background: var(--coral); }
.spa-route-card small { display: block; margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 900; }

.spa-facts {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.spa-facts > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 23px;
  border-bottom: 1px solid var(--ink);
}

.spa-facts > div:last-child { border-bottom: 0; }
.spa-facts span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.spa-facts strong { font-size: 12px; line-height: 1.55; }

.spa-links { flex-direction: row !important; gap: 7px !important; }
.project-links a:nth-child(1),
.spa-links a:nth-child(1) {
  background: var(--lime);
  color: var(--ink);
}

.project-links a:nth-child(2),
.spa-links a:nth-child(2) {
  background: white;
  color: var(--ink);
}

.project-links a:nth-child(3),
.spa-links a:nth-child(3) {
  background: var(--coral);
  color: var(--ink);
}
.spa-links a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  font-weight: 900;
}
.project-links a,
.spa-links a {
  white-space: nowrap;
}


.spa-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 7vw;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.spa-points article {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.spa-points > article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
}

.spa-points h3 { margin: 64px 0 18px; font-size: 20px; }
.spa-points p { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.9; }

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  gap: 9vw;
}
.skills-intro h2 {
  font-size: clamp(2.8rem, 4.2vw, 4.8rem);
  line-height: 1.08;
}
.skills-intro > p { max-width: 500px; margin: 40px 0 0; font-size: 14px; line-height: 2; }
.technology-list { border-top: 1px solid var(--ink); }
.technology-group { padding: 28px 0 34px; border-bottom: 1px solid var(--ink); }
.technology-group > p {
  margin: 0 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.technology-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.technology-group span {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  font-size: 12px;
  font-weight: 800;
}

.learning-note {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  margin-top: 7vw;
  border: 1px solid var(--ink);
  background: white;
}

.learning-note__label {
  display: flex;
  min-height: 170px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--ink);
  background: var(--coral);
}

.learning-note__icon {
  font-size: 32px;
  line-height: 1;
}

.learning-note__label p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.9;
}

.learning-note__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
}

.learning-note__body h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.45;
}

.learning-note__body p {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.9;
}

.learning-note__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  font-size: 15px;
  font-weight: 900;
}

.learning-note__link b {
  font-size: 24px;
  font-weight: 400;
  transition: transform .2s ease;
}

.learning-note__link:hover {
  background: var(--lime);
  color: var(--ink);
}

.learning-note__link:hover b {
  transform: translate(5px, -5px);
}

.learning-note__link:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -6px;
}

.approach-panel {
  position: relative;
  display: grid;
  grid-template-columns: .28fr 1.15fr .57fr;
  gap: 5vw;
  align-items: end;
  margin-top: 8vw;
  padding: 5.5vw;
  overflow: hidden;
  background: var(--coral);
}
.approach-panel::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -120px;
  border: 60px solid var(--lime);
  border-radius: 50%;
  content: "";
}
.approach-label {
  align-self: start;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.approach-quote {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1.25;
}
.approach-quote mark { padding: 0 .08em; background: var(--lime); color: var(--ink); }
.approach-text { margin: 0; font-size: 12px; font-weight: 600; line-height: 2; z-index: 1;}

.journey { border-top: 1px solid var(--line); }
.journey-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 6vw;
}
.journey-heading h2 { font-size: clamp(3rem, 6vw, 6rem); }
.journey-heading p { max-width: 380px; margin: 0; font-size: 14px; line-height: 1.8; }
.timeline { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 70px 160px 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--ink);
}
.timeline-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}
.timeline time { padding-top: 9px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.timeline h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 2vw, 1.7rem); }
.timeline p { margin: 0; font-size: 13px; line-height: 1.8; }

.contact {
  padding: 8vw 8.333vw 7vw;
  background: var(--lime);
  color: var(--ink);
}
.contact .eyebrow::before { background: var(--ink); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(440px, 1.28fr);
  gap: 9vw;
  align-items: start;
  margin-top: 6vw;
}
.contact-small { margin: 0 0 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.contact h2 { font-size: clamp(3.5rem, 6vw, 6.7rem); line-height: .95; }
.contact-intro > p:not(.contact-small) { margin: 34px 0 38px; font-size: 14px; line-height: 2; }
.contact-links { border-top: 1px solid var(--ink); }
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 900;
}
.contact-links b { font-weight: 400; transition: transform .2s ease; }
.contact-links a:hover b { transform: translate(5px, -5px); }

.contact-form {
  position: relative;
  padding: clamp(30px, 4vw, 58px);
  border: 1px solid var(--ink);
  background: var(--paper);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 24px; }
.form-field label,
.label-line label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 900; }
.form-field label span,
.label-line label span { margin-left: 6px; color: #b52f28; font-size: 9px; }
.label-line { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.label-line small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: white;
  color: var(--ink);
}

.form-field input,
.form-field select { min-height: 50px; padding: 0 14px; }
.form-field textarea { display: block; min-height: 180px; padding: 14px; resize: vertical; line-height: 1.7; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 3px solid var(--coral); outline-offset: 2px; }

.agree-field { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; font-weight: 700; line-height: 1.7; }
.agree-field input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--ink); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  min-height: 22px;
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.form-status.is-success { color: #17673d; }
.form-status.is-error { color: #a9211b; }

.submit-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.submit-button:hover:not(:disabled) { background: var(--coral); color: var(--ink); }
.submit-button:disabled { cursor: wait; opacity: .65; }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 110px;
  align-items: center;
  gap: 30px;
  padding: 0 4.5vw;
  background: var(--ink);
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
footer p { margin: 0; text-align: center; }
footer > a:last-child { justify-self: end; }

/* ========================================
   Responsive
======================================== */

@media (max-width: 820px) {

  /* ---------- 共通 ---------- */

  .site-header {
    min-height: 70px;
    padding: 0 5vw;
  }

  .site-header .brand > span:last-child {
    display: none;
  }

  .site-header nav {
    display: flex;
    gap: 14px;
    font-size: 8px;
  }

  .site-header nav a:nth-child(1) {
    display: none;
  }

  .section {
    width: 100%;
    min-width: 0;
    padding: 20vw 6vw;
    overflow: hidden;
  }

  .section-label {
    margin-bottom: 16vw;
  }

  .section-label > span {
    display: none;
  }


  /* ---------- HERO ---------- */

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 70px;
    background-size: 25vw 25vw;
  }

  .hero-copy {
    min-width: 0;
    min-height: 62vh;
    padding: 18vw 6vw 20vw;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-visual {
    min-width: 0;
    min-height: 440px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .experience-stamp {
    width: 260px;
  }

  .scroll-cue {
    display: none;
  }

  .code-note {
    bottom: 28px;
  }


  /* ---------- ABOUT ---------- */

  .about-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 12vw;
  }

  .about-copy {
    min-width: 0;
    padding: 0;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 15vw;
  }

  .stat {
    min-width: 0;
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .stat:last-child {
    border-bottom: 0;
  }


  /* ---------- KENYU ---------- */

  .work-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 10vw;
  }

  .work-heading > * {
    min-width: 0;
  }

  .work h2 {
    max-width: 100%;
    font-size: 24vw;
  }

  .project-showcase {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 14vw;
  }

  .browser-card {
    min-width: 0;
  }

  .browser-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
  }

  .project-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }

  .project-facts > div {
    min-width: 0;
    min-height: 120px;
    border-right: 1px solid rgba(255,255,255,.25);
  }

  .project-links {
    grid-column: 1 / -1;
    min-height: auto !important;
  }

  .capability-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 16vw;
  }

  .capability {
    min-width: 0;
    min-height: 270px;
    padding: 20px;
  }

  .capability h3 {
    margin-top: 55px;
  }


  /* ---------- TADORI / ReactionTimer 共通 ---------- */

  .spa-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 10vw;
  }

  .spa-heading > * {
    min-width: 0;
  }

  .spa-summary {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .spa-work h2 {
    max-width: 100%;
    font-size: 22vw;
  }

  .spa-showcase {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    margin-top: 14vw;
  }

  .spa-showcase > * {
    min-width: 0;
  }

  .spa-preview {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .spa-screen {
    min-height: 470px;
  }

  .spa-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }

  .spa-facts > div {
    min-width: 0;
    min-height: 120px;
    border-right: 1px solid var(--ink);
  }

  .spa-facts strong {
    overflow-wrap: anywhere;
  }

  .spa-links {
    grid-column: 1 / -1;
    min-height: auto !important;
  }

  .spa-points {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-top: 16vw;
  }

  .spa-points article {
    min-width: 0;
    min-height: 250px;
    padding: 20px;
  }

  .spa-points h3 {
    margin-top: 52px;
  }


  /* ---------- ReactionTimer ---------- */

.reaction-work h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(4.8rem, 7.5vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .85;
}

.reaction-work h2 span {
  display: block;
  margin: 18px 0 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2.6rem);
  letter-spacing: -.05em;
}


  /* ---------- SKILLS ---------- */

  .skills-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16vw;
  }

  .learning-note {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .learning-note__link {
    grid-column: 1 / -1;
    min-height: 76px;
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .learning-note__label {
    min-height: 160px;
  }

  .approach-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 9vw;
    margin-top: 18vw;
    padding: 12vw 8vw;
  }

  .approach-panel::after {
    width: 180px;
    height: 180px;
    top: -90px;
    right: -100px;
    border-width: 40px;
  }

  .approach-text {
    max-width: 420px;
  }


  /* ---------- JOURNEY ---------- */

  .journey-heading {
    display: block;
  }

  .journey-heading p {
    margin-top: 30px;
  }

  .timeline li {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 18px;
  }

  .timeline time {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline li > div {
    grid-column: 2;
    min-width: 0;
  }


  /* ---------- CONTACT ---------- */

  .contact {
    padding: 20vw 6vw 16vw;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 16vw;
    margin-top: 12vw;
  }

  .contact-form {
    min-width: 0;
    padding: 8vw 6vw;
  }


  /* ---------- FOOTER ---------- */

  footer {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 30px 6vw;
  }

  footer p {
    display: none;
  }

/*.追加 */
  .skills-intro h2 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .reaction-work h2 {
    font-size: 13vw;
  }

  .reaction-work h2 span {
    margin-top: 12px;
    font-size: 5.5vw;
  }

  .contact h2 {
    font-size: clamp(3rem, 11vw, 4.5rem);
  }
}


/* ========================================
   Smartphone
======================================== */

@media (max-width: 520px) {

  h1 {
    font-size: 13.8vw;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .experience-stamp {
    width: 230px;
  }


  /* ---------- ABOUT ---------- */

  .stats {
    margin-right: -6vw;
    margin-left: -6vw;
    border-right: 0;
    border-left: 0;
  }


  /* ---------- KENYU ---------- */

  .work {
    padding-right: 0;
    padding-left: 0;
  }

  .work > .section-label,
  .work-heading,
  .work > .project-showcase {
    margin-right: 6vw;
    margin-left: 6vw;
  }

  .work .capability-grid {
    border-left: 0;
  }

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

  .capability {
    padding: 18px;
  }

  .project-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-facts > div {
    border-right: 0;
  }

  .project-links {
    grid-column: 1;
  }


  /* ---------- TADORI ---------- */

  .spa-work {
    padding-right: 0;
    padding-left: 0;
  }

  .spa-work > .section-label,
  .spa-work > .spa-heading,
  .spa-work > .spa-showcase {
    margin-right: 6vw;
    margin-left: 6vw;
  }


  /* ---------- ReactionTimer ---------- */
  /*
     TADORIと同じ横幅ルールに統一。
     ここが今まで抜けていたため、
     ReactionTimerだけ横幅が不揃いになっていた。
  */

  .reaction-work {
    padding-right: 0;
    padding-left: 0;
  }

  .reaction-work > .section-label,
  .reaction-work > .spa-heading,
  .reaction-work > .spa-showcase {
    margin-right: 6vw;
    margin-left: 6vw;
  }

  .reaction-work h2 {
    width: 100%;
    max-width: 100%;
    font-size: 14vw;
    line-height: .86;
    letter-spacing: -.075em;
    overflow-wrap: anywhere;
  }

  .reaction-work h2 span {
    display: block;
    margin-top: 12px;
    margin-left: 0;
    font-size: 5.5vw;
    line-height: 1.3;
  }


  /* ---------- SPA共通 ---------- */

  .spa-points {
    grid-template-columns: minmax(0, 1fr);
    border-left: 0;
  }

  .spa-points article {
    min-height: 220px;
  }

  .spa-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .spa-facts > div {
    border-right: 0;
  }

  .spa-links {
    grid-column: 1;
    flex-direction: column !important;
  }

  .spa-links a {
    width: 100%;
    min-width: 0;
  }

  .route-steps {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  }

  .route-steps b {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .route-steps i {
    margin-top: 22px;
  }

  .route-steps span {
    font-size: 8px;
  }


  /* ---------- FORM ---------- */

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }


  /* ---------- LEARNING NOTE ---------- */

  .learning-note {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
  }

  .learning-note__label {
    min-height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .learning-note__label p {
    line-height: 1.6;
  }

  .learning-note__body {
    min-width: 0;
    padding: 28px 20px;
  }

  .learning-note__link {
    grid-column: 1;
    min-width: 0;
    min-height: 68px;
    padding: 20px;
  }


  /* ---------- CONTACT ---------- */

  .contact-form {
    margin-right: -6vw;
    margin-left: -6vw;
    border-right: 0;
    border-left: 0;
  }

  .technology-group span {
    font-size: 11px;
  }
}