:root {
  --cream: #fffdf9;
  --white: #ffffff;
  --ink: #30435a;
  --ink-soft: #6f7e8d;
  --line: rgba(76, 113, 132, 0.16);

  --blue: #bfeaf4;
  --blue-deep: #68abc0;
  --mint: #cdf0e4;
  --pink: #ffd8e4;
  --peach: #ffdfca;
  --yellow: #fff0ae;
  --purple: #dfd9ff;

  --shadow: 0 24px 70px rgba(83, 121, 141, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream);
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.75;
}

body.intro-active {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

/* Intro */

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(191, 234, 244, 0.96), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(255, 216, 228, 0.88), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(223, 217, 255, 0.92), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(205, 240, 228, 0.92), transparent 34%),
    var(--cream);
  transition:
    opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0.9s;
}

.intro-screen::before {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    120deg,
    rgba(191, 234, 244, 0.5),
    rgba(255, 240, 174, 0.34),
    rgba(255, 216, 228, 0.48),
    rgba(223, 217, 255, 0.48),
    rgba(205, 240, 228, 0.44)
  );
  background-size: 300% 300%;
  content: "";
  filter: blur(45px);
  animation: intro-gradient 14s ease-in-out infinite;
}

.intro-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro-screen.is-hidden {
  display: none;
}

.intro-wash {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.intro-name,
.intro-year {
  position: absolute;
  z-index: 3;
  color: rgba(48, 67, 90, 0.65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.intro-name {
  top: 34px;
  left: 40px;
}

.intro-year {
  right: 40px;
  bottom: 32px;
}

.enter-button {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(190px, 19vw, 250px);
  aspect-ratio: 1;
  padding: 25px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(191, 234, 244, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow:
    inset -18px -24px 40px rgba(104, 171, 192, 0.12),
    inset 14px 12px 30px rgba(255, 255, 255, 0.8),
    0 30px 80px rgba(91, 139, 160, 0.2);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  animation: enter-float 5s ease-in-out infinite;
}

.enter-button::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(104, 171, 192, 0.22);
  border-radius: inherit;
  content: "";
}

.enter-button:hover {
  animation-play-state: paused;
  box-shadow:
    inset -18px -24px 40px rgba(104, 171, 192, 0.16),
    inset 14px 12px 30px rgba(255, 255, 255, 0.88),
    0 38px 95px rgba(91, 139, 160, 0.27);
  transform: scale(1.045);
}

.enter-button:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 8px;
}

.enter-button strong {
  margin: 3px 0;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.enter-small {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.intro-bubbles .bubble {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow:
    inset 12px 12px 24px rgba(255, 255, 255, 0.48),
    inset -10px -14px 24px rgba(73, 130, 155, 0.08),
    0 20px 60px rgba(80, 128, 150, 0.1);
  opacity: 0.82;
  backdrop-filter: blur(4px);
  animation: bubble-drift 9s ease-in-out infinite;
}

.bubble-a {
  top: 10%;
  left: 11%;
  width: 150px;
  height: 150px;
  background: rgba(191, 234, 244, 0.55);
}

.bubble-b {
  top: 16%;
  right: 14%;
  width: 105px;
  height: 105px;
  background: rgba(255, 216, 228, 0.66);
  animation-delay: -2s !important;
}

.bubble-c {
  right: 7%;
  bottom: 13%;
  width: 190px;
  height: 190px;
  background: rgba(223, 217, 255, 0.55);
  animation-delay: -5s !important;
}

.bubble-d {
  bottom: 11%;
  left: 12%;
  width: 120px;
  height: 120px;
  background: rgba(205, 240, 228, 0.62);
  animation-delay: -3.5s !important;
}

.bubble-e {
  top: 42%;
  left: 27%;
  width: 46px;
  height: 46px;
  background: rgba(255, 240, 174, 0.78);
  animation-delay: -7s !important;
}

.bubble-f {
  top: 30%;
  right: 29%;
  width: 60px;
  height: 60px;
  background: rgba(255, 223, 202, 0.75);
  animation-delay: -1.5s !important;
}

.bubble-g {
  right: 30%;
  bottom: 20%;
  width: 34px;
  height: 34px;
  background: rgba(191, 234, 244, 0.82);
  animation-delay: -4s !important;
}

.intro-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 54px;
  height: 54px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.25s ease;
}

.intro-pointer.is-visible {
  opacity: 1;
}

.intro-pointer i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(66, 107, 126, 0.14);
}

.intro-pointer i:nth-child(1) {
  top: 3px;
  left: 20px;
  background: var(--blue-deep);
}

.intro-pointer i:nth-child(2) {
  top: 20px;
  right: 2px;
  background: var(--pink);
}

.intro-pointer i:nth-child(3) {
  bottom: 2px;
  left: 20px;
  background: var(--yellow);
}

.intro-pointer i:nth-child(4) {
  top: 20px;
  left: 2px;
  background: var(--purple);
}

/* Cherry opening animation */

.intro-screen {
  background: #fffdf9;
}

.intro-screen::before {
  content: none;
}

.cherry-intro {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cherry-symbol {
  display: block;
  width: clamp(190px, 22vw, 250px);
  height: auto;
  overflow: visible;
}

.cherry-fruit {
  fill: #f5a3af;
  filter: drop-shadow(0 10px 14px rgba(185, 103, 118, 0.1));
  transform-box: fill-box;
  transform-origin: center;
}

.cherry-fruit-left {
  fill: #f5a6b2;
}

.cherry-fruit-right {
  fill: #f19aa9;
}

.cherry-stem {
  fill: none;
  stroke: #7e986f;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 6;
  opacity: 0;
}

.cherry-leaf {
  fill: #b8d8a8;
  opacity: 0;
  transform: rotate(-15deg) scale(0);
  transform-box: fill-box;
  transform-origin: left center;
}

.cherry-leaf-line {
  fill: none;
  stroke: rgba(84, 121, 74, 0.62);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0;
}

.cherry-joint {
  fill: #7e986f;
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.cherry-shine {
  fill: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}

.cherry-intro .enter-button {
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
  margin-top: -10px;
  padding: 8px 14px;
  color: rgba(48, 67, 90, 0.32);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  animation: none;
  backdrop-filter: none;
}

.cherry-intro .enter-button::after {
  content: none;
}

.cherry-intro .enter-button:hover {
  color: rgba(48, 67, 90, 0.66);
  box-shadow: none;
  transform: none;
}

.cherry-intro .enter-button:focus-visible {
  outline: 1px solid rgba(48, 67, 90, 0.48);
  outline-offset: 5px;
}

.intro-screen.is-building .enter-button {
  pointer-events: none;
  animation: click-label-out 0.18s ease forwards;
}

.intro-screen.is-building .cherry-stem {
  opacity: 1;
  animation: cherry-stem-draw 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-screen.is-building .cherry-stem-right {
  animation-delay: 0.06s;
}

.intro-screen.is-building .cherry-joint {
  animation: cherry-joint-in 0.15s ease 0.4s forwards;
}

.intro-screen.is-building .cherry-leaf {
  animation: cherry-leaf-open 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.46s forwards;
}

.intro-screen.is-building .cherry-leaf-line {
  animation: cherry-leaf-line-in 0.3s ease 0.64s forwards;
}

.intro-screen.is-building .cherry-shine {
  animation: cherry-shine-in 0.24s ease 0.78s forwards;
}

.intro-screen.is-building .cherry-fruit-left {
  animation: cherry-fruit-finish 0.36s ease 0.7s both;
}

.intro-screen.is-building .cherry-fruit-right {
  animation: cherry-fruit-finish 0.36s ease 0.76s both;
}

.intro-screen.is-building .cherry-symbol {
  animation: cherry-complete 0.45s ease 0.88s both;
}

@keyframes click-label-out {
  to {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes cherry-stem-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cherry-joint-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cherry-leaf-open {
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes cherry-leaf-line-in {
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes cherry-shine-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cherry-fruit-finish {
  0%,
  100% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.09);
  }
}

@keyframes cherry-complete {
  0%,
  100% {
    transform: translateY(0);
  }
  55% {
    transform: translateY(-4px);
  }
}

/* Shared page */

.page-shell {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.74),
      rgba(236, 248, 251, 0.58) 28%,
      rgba(255, 253, 249, 0.82) 58%,
      rgba(244, 241, 255, 0.58)
    );
  isolation: isolate;
}

.ambient-bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.36;
  animation: ambient-float 18s ease-in-out infinite;
}

.ambient-1 {
  top: 12%;
  left: -6%;
  width: 260px;
  height: 260px;
  background: var(--blue);
}

.ambient-2 {
  top: 32%;
  right: -7%;
  width: 320px;
  height: 320px;
  background: var(--pink);
  animation-delay: -6s;
}

.ambient-3 {
  top: 58%;
  left: -8%;
  width: 300px;
  height: 300px;
  background: var(--mint);
  animation-delay: -12s;
}

.ambient-4 {
  right: 4%;
  bottom: 6%;
  width: 220px;
  height: 220px;
  background: var(--purple);
  animation-delay: -9s;
}

.ambient-5 {
  top: 22%;
  left: 45%;
  width: 80px;
  height: 80px;
  background: var(--yellow);
  animation-delay: -4s;
}

.ambient-6 {
  right: 36%;
  bottom: 32%;
  width: 65px;
  height: 65px;
  background: var(--peach);
  animation-delay: -15s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo-cherry {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 31px;
  overflow: visible;
  filter: drop-shadow(0 4px 7px rgba(185, 103, 118, 0.1));
}

.logo-cherry-stem {
  fill: none;
  stroke: #7e986f;
  stroke-linecap: round;
  stroke-width: 3;
}

.logo-cherry-leaf {
  fill: #b8d8a8;
}

.logo-cherry-left {
  fill: #f5a6b2;
}

.logo-cherry-right {
  fill: #f19aa9;
}

.footer-bubbles i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-deep), #d79ab0);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 80px 0 95px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-label,
.group-label,
.project-meta,
.hero-role {
  color: #587c8e;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

h1 {
  margin-top: 20px;
  font-size: clamp(58px, 7.5vw, 104px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

h1 span {
  color: var(--blue-deep);
}

.hero-intro {
  max-width: 550px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-role {
  letter-spacing: 0.04em;
}

.hero-message {
  max-width: 480px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

.scroll-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 35px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.scroll-link i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  border-radius: 50%;
  font-style: normal;
  transition: transform 0.25s ease;
}

.scroll-link:hover i {
  transform: translateY(4px);
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.photo-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 570px);
  aspect-ratio: 1.14;
  overflow: hidden;
  background: var(--blue);
  border: 10px solid rgba(255, 255, 255, 0.66);
  border-radius: 48% 52% 43% 57% / 54% 42% 58% 46%;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  animation: photo-morph 11s ease-in-out infinite;
}

.photo-bubble::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 35%);
  content: "";
  pointer-events: none;
}

.photo-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.floating-tag {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(72, 118, 139, 0.13);
  font-size: 12px;
  backdrop-filter: blur(9px);
  animation: tag-float 6s ease-in-out infinite;
}

.tag-research {
  top: 5%;
  right: 5%;
  background: rgba(191, 234, 244, 0.88);
}

.tag-web {
  bottom: 7%;
  left: 1%;
  min-width: 75px;
  min-height: 75px;
  background: rgba(255, 216, 228, 0.9);
  animation-delay: -2.5s;
}

.tag-data {
  right: 0;
  bottom: 17%;
  min-width: 70px;
  min-height: 70px;
  background: rgba(255, 240, 174, 0.92);
  animation-delay: -4s;
}

.photo-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: inset 7px 7px 13px rgba(255, 255, 255, 0.5);
  animation: bubble-drift 8s ease-in-out infinite;
}

.photo-orb-a {
  top: 14%;
  left: 3%;
  width: 50px;
  height: 50px;
  background: var(--purple);
}

.photo-orb-b {
  right: 18%;
  bottom: 2%;
  width: 36px;
  height: 36px;
  background: var(--mint);
  animation-delay: -4s;
}

/* Sections */

.content-section {
  position: relative;
  padding: 125px 0 145px;
  scroll-margin-top: 76px;
}

.content-section::before {
  position: absolute;
  top: 0;
  right: -8vw;
  left: -8vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 70px;
}

.section-number,
.group-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 50%;
  color: #4f7788;
  font-size: 10px;
  font-weight: 500;
}

.section-heading h2 {
  margin-top: 4px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-section {
  padding-right: 55px;
  padding-left: 55px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 60px;
  box-shadow: var(--shadow);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 100px;
}

.about-copy {
  max-width: 620px;
}

.about-copy .lead {
  margin-bottom: 24px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.65;
}

.about-copy > p:not(.lead) {
  color: var(--ink-soft);
  font-size: 15px;
}

.profile-list {
  padding: 15px 30px;
  background: linear-gradient(145deg, rgba(191, 234, 244, 0.72), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(73, 113, 132, 0.13);
}

.profile-list > div:last-child {
  border-bottom: 0;
}

.profile-list dt,
.skills-list dt {
  color: #52788a;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.profile-list dd {
  font-size: 14px;
}

.profile-list a {
  text-decoration-color: rgba(82, 120, 138, 0.46);
}

/* Projects */

.projects-section {
  margin-top: 90px;
}

.project-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -25px 0 90px 67px;
}

.project-directory a {
  display: grid;
  place-items: center;
  min-width: 130px;
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 100px;
  box-shadow: 0 12px 30px rgba(75, 119, 139, 0.08);
  font-size: 12px;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-directory a:hover {
  box-shadow: 0 18px 38px rgba(75, 119, 139, 0.14);
  transform: translateY(-4px);
}

.directory-blue {
  background: var(--blue);
}

.directory-pink {
  background: var(--pink);
}

.directory-yellow {
  background: var(--yellow);
}

.directory-purple {
  background: var(--purple);
}

.project-group {
  padding: 85px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.group-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: start;
}

.group-heading h3 {
  max-width: 850px;
  margin-top: 8px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.research-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 55px 0 70px 67px;
}

.research-overview p {
  min-height: 235px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 32px;
  box-shadow: 0 16px 42px rgba(79, 122, 143, 0.09);
  color: var(--ink-soft);
  font-size: 13px;
}

.research-overview p:nth-child(1) {
  background: linear-gradient(145deg, rgba(191, 234, 244, 0.74), rgba(255, 255, 255, 0.72));
}

.research-overview p:nth-child(2) {
  background: linear-gradient(145deg, rgba(255, 216, 228, 0.69), rgba(255, 255, 255, 0.72));
}

.research-overview p:nth-child(3) {
  background: linear-gradient(145deg, rgba(205, 240, 228, 0.72), rgba(255, 255, 255, 0.72));
}

.project-rows {
  display: grid;
  gap: 16px;
  margin-left: 67px;
}

.project-row {
  display: grid;
  grid-template-columns: 180px 1fr 90px;
  gap: 30px;
  align-items: center;
  min-height: 160px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  box-shadow: 0 15px 42px rgba(78, 119, 139, 0.08);
  color: inherit;
  text-decoration: none;
}

.project-blue {
  background: linear-gradient(115deg, rgba(191, 234, 244, 0.73), rgba(255, 255, 255, 0.75));
}

.project-pink {
  background: linear-gradient(115deg, rgba(255, 216, 228, 0.68), rgba(255, 255, 255, 0.75));
}

.project-yellow {
  background: linear-gradient(115deg, rgba(255, 240, 174, 0.65), rgba(255, 255, 255, 0.75));
}

.project-purple {
  background: linear-gradient(115deg, rgba(223, 217, 255, 0.7), rgba(255, 255, 255, 0.76));
}

.project-link {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.project-link:hover {
  box-shadow: 0 22px 55px rgba(78, 119, 139, 0.15);
  transform: translateY(-5px);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
}

.project-row h4 {
  font-size: 22px;
  font-weight: 500;
}

.project-row p {
  max-width: 650px;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
}

.row-arrow,
.row-status {
  justify-self: end;
  color: #52788a;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.muted-row {
  opacity: 0.75;
}

.planned-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.compact-group {
  min-height: 280px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 42px;
  box-shadow: 0 15px 42px rgba(78, 119, 139, 0.08);
}

.compact-pink {
  background: linear-gradient(145deg, rgba(255, 216, 228, 0.72), rgba(255, 255, 255, 0.7));
}

.compact-yellow {
  background: linear-gradient(145deg, rgba(255, 240, 174, 0.69), rgba(255, 255, 255, 0.7));
}

.compact-group .group-heading {
  grid-template-columns: 45px 1fr;
}

.compact-group .group-heading h3 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.compact-group .empty-message {
  margin: 48px 0 0 60px;
  color: var(--ink-soft);
  font-size: 13px;
}

.playground-group {
  border-bottom: 0;
}

/* Skills */

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-left: 67px;
}

.skills-list > div {
  min-height: 140px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 36px;
  box-shadow: 0 15px 38px rgba(78, 119, 139, 0.08);
}

.skills-list > div:last-child {
  grid-column: 1 / -1;
}

.skills-list dd {
  margin-top: 24px;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: -0.02em;
}

.skill-blue {
  background: linear-gradient(145deg, rgba(191, 234, 244, 0.78), rgba(255, 255, 255, 0.72));
}

.skill-mint {
  background: linear-gradient(145deg, rgba(205, 240, 228, 0.8), rgba(255, 255, 255, 0.72));
}

.skill-pink {
  background: linear-gradient(145deg, rgba(255, 216, 228, 0.75), rgba(255, 255, 255, 0.72));
}

.skill-yellow {
  background: linear-gradient(145deg, rgba(255, 240, 174, 0.74), rgba(255, 255, 255, 0.72));
}

.skill-purple {
  background: linear-gradient(145deg, rgba(223, 217, 255, 0.76), rgba(255, 255, 255, 0.72));
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 45px 0 55px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

footer > a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-bubbles {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 24px;
}

.footer-bubbles i:nth-child(1) {
  top: 0;
  left: 0;
  background: var(--blue-deep);
}

.footer-bubbles i:nth-child(2) {
  top: 7px;
  left: 9px;
  background: var(--pink);
}

.footer-bubbles i:nth-child(3) {
  right: 0;
  bottom: 0;
  background: var(--yellow);
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Animation */

@keyframes intro-gradient {
  0%,
  100% {
    background-position: 0% 50%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    background-position: 100% 50%;
    transform: rotate(3deg) scale(1.05);
  }
}

@keyframes enter-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  35% {
    transform: translate3d(12px, -16px, 0) scale(1.04);
  }
  70% {
    transform: translate3d(-10px, 10px, 0) scale(0.96);
  }
}

@keyframes ambient-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -45px, 0);
  }
}

@keyframes photo-morph {
  0%,
  100% {
    border-radius: 48% 52% 43% 57% / 54% 42% 58% 46%;
  }
  35% {
    border-radius: 57% 43% 52% 48% / 44% 56% 44% 56%;
  }
  70% {
    border-radius: 43% 57% 48% 52% / 58% 44% 56% 42%;
  }
}

@keyframes tag-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 34px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 90px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-media {
    min-height: 520px;
  }

  .about-section {
    padding-right: 34px;
    padding-left: 34px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .research-overview {
    grid-template-columns: 1fr;
  }

  .research-overview p {
    min-height: auto;
  }

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

  .row-arrow,
  .row-status {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 66px;
  }

  .logo > span:last-child {
    display: none;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 11px;
  }

  .intro-name {
    top: 24px;
    left: 22px;
  }

  .intro-year {
    right: 22px;
    bottom: 22px;
  }

  .bubble-a {
    top: 12%;
    left: -12%;
  }

  .bubble-c {
    right: -25%;
    bottom: 10%;
  }

  .bubble-d {
    bottom: 7%;
    left: -5%;
  }

  .bubble-e,
  .bubble-g {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 75px 0 85px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 78px);
  }

  .hero-media {
    min-height: 420px;
  }

  .photo-bubble {
    width: 95%;
  }

  .floating-tag {
    min-width: 72px;
    min-height: 72px;
    font-size: 10px;
  }

  .tag-data {
    right: 2%;
    bottom: 12%;
  }

  .content-section {
    padding: 90px 0 105px;
  }

  .about-section {
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 38px;
  }

  .section-heading,
  .group-heading {
    grid-template-columns: 42px 1fr;
    gap: 10px;
  }

  .project-directory,
  .research-overview,
  .project-rows,
  .skills-list {
    margin-left: 0;
  }

  .project-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .project-directory a {
    min-width: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 22px;
    border-radius: 27px;
  }

  .row-arrow,
  .row-status {
    grid-column: auto;
  }

  .planned-grid,
  .skills-list {
    grid-template-columns: 1fr;
  }

  .skills-list > div:last-child {
    grid-column: auto;
  }

  .compact-group {
    min-height: 250px;
    padding: 28px 22px;
    border-radius: 32px;
  }

  .compact-group .empty-message {
    margin-left: 52px;
  }

  .profile-list {
    padding: 10px 20px;
    border-radius: 27px;
  }

  .profile-list > div {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .profile-list dd {
    overflow-wrap: anywhere;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (hover: none), (pointer: coarse) {
  .intro-pointer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ========================================
   Header navigation
======================================== */

.site-header {
  display: block;
  min-height: 0;
  padding: 0;
}

.site-header .header-inner {
  min-height: 84px;
}

.site-header nav {
  position: static;
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  transform: translateY(2px);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header .logo,
.site-header nav,
.site-header nav a {
  font-family: "Jost", sans-serif;
}

/* ========================================
   Home file previews
======================================== */

.home-files {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.home-file {
  --file-accent: var(--blue);
  border-bottom: 1px solid var(--line);
}

.home-file-peach {
  --file-accent: var(--peach);
}

.home-file-purple {
  --file-accent: var(--purple);
}

.home-file summary {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 24px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.home-file summary::-webkit-details-marker {
  display: none;
}

.home-file summary:hover,
.home-file summary:focus-visible {
  background: linear-gradient(90deg, color-mix(in srgb, var(--file-accent) 65%, transparent), transparent 78%);
  outline: none;
  transform: translateX(4px);
}

.file-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--file-accent);
  border-radius: 50%;
  color: #52788a;
  font-size: 9px;
}

.file-title {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.file-label {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.file-toggle {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.file-toggle::before,
.file-toggle::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform 0.25s ease;
}

.file-toggle::after {
  transform: rotate(90deg);
}

.home-file[open] .file-toggle::after {
  transform: rotate(0deg);
}

.file-preview {
  margin: 0 12px 18px 54px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.67);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-left: 4px solid var(--file-accent);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 14px 35px rgba(78, 119, 139, 0.08);
  animation: file-preview-in 0.3s ease both;
}

.file-preview p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.file-open {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 13px;
  color: #52788a;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.file-open span {
  transition: transform 0.2s ease;
}

.file-open:hover span,
.file-open:focus-visible span {
  transform: translateX(5px);
}

@keyframes file-preview-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Detail pages
======================================== */

.inner-page .page-shell {
  min-height: 100vh;
}

.detail-hero {
  position: relative;
  min-height: 410px;
  margin-top: 58px;
  padding: clamp(58px, 8vw, 96px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 58px;
  box-shadow: var(--shadow);
}

.detail-hero::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  content: "";
}

.detail-hero-blue {
  background: linear-gradient(135deg, rgba(191, 234, 244, 0.86), rgba(255, 255, 255, 0.72));
}

.detail-hero-peach {
  background: linear-gradient(135deg, rgba(255, 223, 202, 0.86), rgba(255, 255, 255, 0.72));
}

.detail-hero-purple {
  background: linear-gradient(135deg, rgba(223, 217, 255, 0.86), rgba(255, 255, 255, 0.72));
}

.detail-number {
  position: relative;
  z-index: 1;
  color: #52788a;
  font-size: 10px;
  letter-spacing: 0.17em;
}

.detail-title {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: clamp(62px, 9vw, 112px);
  line-height: 0.9;
}

.detail-lead {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 38px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.9;
}

.detail-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  margin-top: 80px;
  padding: clamp(34px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 48px;
  box-shadow: var(--shadow);
}

.detail-panel h2,
.detail-section-heading h2 {
  margin: 7px 0 28px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.about-detail .about-copy p:not(.section-label) + p {
  margin-top: 18px;
}

.detail-section {
  padding: 120px 0 70px;
}

.detail-section-heading {
  margin-bottom: 48px;
}

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

.interest-card {
  min-height: 245px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  box-shadow: 0 16px 42px rgba(79, 122, 143, 0.09);
}

.interest-blue {
  background: linear-gradient(145deg, rgba(191, 234, 244, 0.78), rgba(255, 255, 255, 0.72));
}

.interest-peach {
  background: linear-gradient(145deg, rgba(255, 223, 202, 0.78), rgba(255, 255, 255, 0.72));
}

.interest-purple {
  background: linear-gradient(145deg, rgba(223, 217, 255, 0.78), rgba(255, 255, 255, 0.72));
}

.interest-card > span {
  color: #52788a;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.interest-card h3 {
  margin-top: 34px;
  font-size: 26px;
  font-weight: 400;
}

.interest-card p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-directory {
  margin: 55px 0 20px;
}

.group-heading h2 {
  max-width: 850px;
  margin-top: 8px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.project-row h3 {
  font-size: 22px;
  font-weight: 500;
}

.skills-detail .skills-list {
  margin-left: 0;
}

.skills-list > div p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.workflow-panel {
  align-items: start;
  margin-top: 45px;
}

.workflow-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list li:last-child {
  border-bottom: 0;
}

.workflow-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--purple);
  border-radius: 50%;
  color: #52788a;
  font-size: 9px;
}

.workflow-list p {
  color: var(--ink-soft);
  font-size: 13px;
}

.page-next {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 95px 0 70px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-next > span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.page-next a {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.page-next i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 20px;
  font-style: normal;
  transition: transform 0.25s ease;
}

.page-next a:hover i,
.page-next a:focus-visible i {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .detail-panel {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  .interest-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .site-header .header-inner {
    min-height: 68px;
  }

  .site-header nav {
    gap: 0;
    transform: none;
  }

  .site-header nav a {
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .home-file summary {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    gap: 9px;
  }

  .file-label {
    display: none;
  }

  .file-preview {
    margin-left: 40px;
  }

  .detail-hero {
    min-height: 340px;
    margin-top: 30px;
    padding: 48px 28px;
    border-radius: 38px;
  }

  .detail-hero::after {
    right: -110px;
    bottom: -160px;
  }

  .detail-panel {
    margin-top: 50px;
    padding: 30px 22px;
    border-radius: 34px;
  }

  .detail-section {
    padding-top: 85px;
  }

  .detail-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 38px 0 10px;
  }

  .detail-directory a {
    min-width: 0;
  }

  .page-next {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 70px;
  }

  .page-next i {
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   Home page — opening sequence and scroll layout
======================================== */

/* CLICK HEREはFuturaを使わず、以前のJostに戻す */
.cherry-intro .enter-button {
  min-width: 0;
  margin-top: -4px;
  padding: 12px 18px;
  color: rgba(48, 67, 90, 0.48);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Jost", sans-serif !important;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 400 !important;
  letter-spacing: 0.2em;
}

.cherry-intro .enter-button:hover {
  color: rgba(48, 67, 90, 0.82);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: scale(1.035);
}

.cherry-intro .enter-button:focus-visible {
  color: var(--ink);
  outline: 0;
}

body:not(.inner-page) main {
  width: min(1440px, calc(100% - 72px));
}

body:not(.inner-page) .header-inner {
  width: min(1320px, calc(100% - 64px));
}

body:not(.inner-page) .hero {
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(70px, 8vw, 130px);
  min-height: calc(100svh - 84px);
  padding: 72px 2vw 96px;
}

body:not(.inner-page) .hero h1 {
  min-height: 1.76em;
  font-size: clamp(64px, 8vw, 126px);
}

.typing-line {
  white-space: nowrap;
}

.typing-caret {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.06em;
  background: var(--blue-deep);
  vertical-align: -0.03em;
  animation: typing-caret-blink 0.72s steps(1) infinite;
}

.hero-name.typing-complete .typing-caret {
  animation: typing-caret-out 0.35s ease 0.15s forwards;
}

@keyframes typing-caret-blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes typing-caret-out {
  to {
    opacity: 0;
  }
}

.js .hero-media.photo-pending {
  opacity: 0;
  transform: translateY(32px) scale(0.965);
}

.js .hero-media.photo-pending.photo-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 1s ease,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-scroll-cue {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.home-scroll-cue i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 15px;
  font-style: normal;
  transition: transform 0.25s ease;
}

.home-scroll-cue:hover i,
.home-scroll-cue:focus-visible i {
  transform: translateY(5px);
}

.js .home-scroll-cue.cue-pending {
  opacity: 0;
  transform: translateY(12px);
}

.js .home-scroll-cue.cue-pending.cue-ready {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease 0.2s,
    transform 0.7s ease 0.2s;
}

.home-showcase {
  display: flex;
  align-items: center;
  min-height: 78svh;
  padding: clamp(100px, 12vw, 170px) clamp(28px, 5vw, 78px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.home-showcase-about {
  background: linear-gradient(135deg, rgba(191, 234, 244, 0.24), transparent 52%);
}

.home-showcase-projects {
  background: linear-gradient(135deg, rgba(255, 223, 202, 0.28), transparent 54%);
}

.home-showcase-skills {
  background: linear-gradient(135deg, rgba(223, 217, 255, 0.28), transparent 54%);
}

.showcase-disclosure,
.showcase-direct {
  width: 100%;
}

.showcase-disclosure summary {
  list-style: none;
}

.showcase-disclosure summary::-webkit-details-marker {
  display: none;
}

.showcase-heading,
.showcase-direct {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
  padding: 24px 0;
  cursor: pointer;
  text-decoration: none;
}

.showcase-heading:focus-visible,
.showcase-direct:focus-visible {
  outline: 2px solid rgba(104, 171, 192, 0.5);
  outline-offset: 12px;
}

.showcase-caption {
  display: block;
  margin-bottom: 18px;
  color: #9a9fa4;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.showcase-title {
  color: #858b91;
  font-family: "Futura Now Display", "Jost", sans-serif;
  font-size: clamp(66px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h2.showcase-title {
  margin: 0;
}

.showcase-title-block {
  display: block;
}

.showcase-toggle,
.showcase-direct > i {
  position: relative;
  flex: 0 0 auto;
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(78, 119, 139, 0.1);
}

.showcase-toggle::before,
.showcase-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: #858b91;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.showcase-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.showcase-disclosure[open] .showcase-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.showcase-preview {
  display: grid;
  gap: 18px;
  padding: 28px 0 12px;
  animation: showcase-open 0.42s ease both;
}

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

.showcase-preview-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 225px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  box-shadow: 0 18px 46px rgba(78, 119, 139, 0.09);
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.showcase-item:hover,
.showcase-item:focus-visible {
  box-shadow: 0 25px 58px rgba(78, 119, 139, 0.15);
  outline: 0;
  transform: translateY(-6px);
}

.showcase-item-blue {
  background: linear-gradient(145deg, rgba(191, 234, 244, 0.78), rgba(255, 255, 255, 0.74));
}

.showcase-item-peach {
  background: linear-gradient(145deg, rgba(255, 223, 202, 0.8), rgba(255, 255, 255, 0.74));
}

.showcase-item-purple {
  background: linear-gradient(145deg, rgba(223, 217, 255, 0.8), rgba(255, 255, 255, 0.74));
}

.showcase-item-title {
  color: #6f767d;
  font-family: "Futura Now Display", "Jost", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.showcase-item-description {
  max-width: 320px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.showcase-item i {
  position: absolute;
  right: 30px;
  bottom: 26px;
  font-size: 20px;
  font-style: normal;
  transition: transform 0.25s ease;
}

.showcase-item:hover i,
.showcase-item:focus-visible i {
  transform: translateX(6px);
}

.showcase-direct > i {
  display: grid;
  place-items: center;
  color: #858b91;
  font-size: 24px;
  font-style: normal;
  transition: transform 0.25s ease;
}

.showcase-direct:hover > i,
.showcase-direct:focus-visible > i {
  transform: translateX(7px);
}

@keyframes showcase-open {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#profile,
#contact {
  scroll-margin-top: 105px;
}

@media (max-width: 900px) {
  body:not(.inner-page) main {
    width: min(100% - 36px, 1440px);
  }

  body:not(.inner-page) .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-right: 0;
    padding-left: 0;
  }

  body:not(.inner-page) .hero h1 {
    min-height: 1.76em;
  }

  .showcase-preview-three {
    grid-template-columns: 1fr;
  }

  .showcase-preview-three .showcase-item {
    min-height: 190px;
  }
}

@media (max-width: 680px) {
  body:not(.inner-page) .header-inner {
    width: min(100% - 24px, 1320px);
  }

  body:not(.inner-page) .hero {
    min-height: calc(100svh - 68px);
    padding-top: 68px;
  }

  body:not(.inner-page) .hero h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .home-scroll-cue {
    margin-top: 34px;
  }

  .home-showcase {
    min-height: 68svh;
    padding: 90px 10px;
  }

  .showcase-heading,
  .showcase-direct {
    gap: 18px;
    min-height: 120px;
  }

  .showcase-title {
    font-size: clamp(46px, 15vw, 70px);
  }

  .showcase-caption {
    max-width: 230px;
    margin-bottom: 11px;
    font-size: 8px;
    line-height: 1.7;
  }

  .showcase-toggle,
  .showcase-direct > i {
    width: 52px;
    height: 52px;
  }

  .showcase-preview-two,
  .showcase-preview-three {
    grid-template-columns: 1fr;
  }

  .showcase-item {
    min-height: 180px;
    padding: 28px;
    border-radius: 28px;
  }
}

/* ========================================
   Home directory refinement V3
======================================== */

/* タイピング完了時にブラウザの枠を出さない */
.hero-name,
.hero-name:focus,
.hero-name:focus-visible {
  outline: 0;
}

/* コンテンツ全体を少しコンパクトにする */
.home-showcase {
  min-height: 0;
  padding-top: clamp(48px, 5.5vw, 76px);
  padding-bottom: clamp(48px, 5.5vw, 76px);
  background: transparent;
}

.showcase-heading,
.showcase-direct {
  min-height: 80px;
  padding: 12px 0;
}

.showcase-title {
  color: #858a8f;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.home-showcase-about {
  margin-top: clamp(110px, 13vw, 190px);
}

body:not(.inner-page) footer .footer-bubbles {
  display: none;
}

body:not(.inner-page) footer > a {
  font-family: "Jost", sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}

.showcase-caption {
  margin-bottom: 10px;
  color: #9b9fa3;
  font-size: 9px;
  font-weight: 300;
}

/* 開閉ボタンも装飾を減らす */
.showcase-toggle,
.showcase-direct > i {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.showcase-toggle::before,
.showcase-toggle::after {
  width: 20px;
  background: #9ba0a4;
}

/* 展開内容を縦型ディレクトリとして表示 */
.showcase-preview,
.showcase-preview-two,
.showcase-preview-three {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 14px 0 6px 16px;
  padding: 0 0 0 34px;
  border-left: 1px solid rgba(111, 126, 141, 0.22);
}

.showcase-item,
.showcase-preview-three .showcase-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 3px 24px;
  align-items: center;
  min-height: 0;
  padding: 18px 4px 18px 26px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-bottom: 1px solid rgba(111, 126, 141, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.showcase-item::before {
  position: absolute;
  top: 50%;
  left: -34px;
  width: 28px;
  border-top: 1px solid rgba(111, 126, 141, 0.22);
  content: "";
}

.showcase-item:last-child {
  border-bottom: 0;
}

.showcase-item-blue,
.showcase-item-peach,
.showcase-item-purple {
  background: rgba(255, 255, 255, 0.1);
}

.showcase-item:hover,
.showcase-item:focus-visible {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  transform: translateX(5px);
}

.showcase-item-title {
  grid-column: 1;
  grid-row: 1;
  color: #777d82;
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 300;
  letter-spacing: -0.015em;
}

.showcase-item-description {
  grid-column: 1;
  grid-row: 2;
  max-width: none;
  margin-top: 3px;
  color: #8c9297;
  font-size: 11px;
  font-weight: 300;
}

.showcase-item i {
  position: static;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #8c9297;
  font-size: 16px;
}

@media (max-width: 680px) {
  .home-showcase {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .showcase-heading,
  .showcase-direct {
    min-height: 74px;
  }

  .showcase-title {
    font-size: clamp(36px, 10.5vw, 50px);
  }

  .showcase-preview,
  .showcase-preview-two,
  .showcase-preview-three {
    margin-left: 8px;
    padding-left: 24px;
  }

  .showcase-item,
  .showcase-preview-three .showcase-item {
    min-height: 0;
    padding: 16px 2px 16px 18px;
    border-radius: 0;
  }

  .showcase-item::before {
    left: -24px;
    width: 20px;
  }

  .showcase-item-description {
    font-size: 10px;
  }
}

/* ========================================
   About page — monochrome profile V6
======================================== */

.about-page {
  --about-text-size: 13px;
}

.about-page main {
  width: min(1120px, calc(100% - 64px));
}

/* 背景とヘッダーのエフェクトは共通設定を維持し、本文だけ無彩色にする */
.about-page .about-hero {
  min-height: 0;
  margin-top: 70px;
  padding: clamp(72px, 8vw, 112px) 0 clamp(32px, 4vw, 50px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-page .about-hero::after {
  display: none;
}

.about-page .detail-title {
  margin: 0;
  color: #777d82;
  font-size: clamp(62px, 8vw, 106px);
  font-weight: 300;
}

.about-name-lockup {
  margin-top: clamp(92px, 12vw, 150px);
}

.about-name-image {
  display: block;
  width: min(44%, 480px);
  height: auto;
}

.about-profile,
.about-history,
.about-contact {
  padding: clamp(54px, 7vw, 86px) 0;
  border-top: 1px solid rgba(76, 86, 94, 0.18);
  scroll-margin-top: 105px;
}

.about-facts {
  display: grid;
  margin: 0;
}

.about-facts > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.12);
}

.about-facts > div:last-child {
  border-bottom: 0;
}

.about-facts dt,
.about-facts dd,
.about-introduction h2,
.about-introduction p,
.about-history h2,
.history-list time,
.history-list span,
.history-list p,
.about-contact h2,
.about-contact a {
  color: #60666b;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: var(--about-text-size);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.about-facts dt,
.about-introduction h2,
.about-history h2,
.history-list span,
.about-contact h2 {
  letter-spacing: 0.13em;
}

.about-introduction {
  margin-top: clamp(60px, 8vw, 96px);
}

.about-introduction-copy {
  max-width: 850px;
  margin-top: 28px;
}

.about-introduction-copy p {
  line-height: 2.05;
}

.about-introduction-copy p + p {
  margin-top: 25px;
}

.history-list {
  display: grid;
  margin-top: 30px;
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.12);
}

.history-list li:last-child {
  border-bottom: 0;
}

.history-list div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}

.about-contact {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(76, 86, 94, 0.18);
}

.about-contact a {
  width: fit-content;
  text-decoration-color: rgba(76, 86, 94, 0.34);
}

.about-page .page-next {
  margin: 72px 0 54px;
}

.about-page .page-next a {
  gap: 14px;
  color: #60666b;
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0;
}

.about-page .page-next i {
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 16px;
}

.about-page footer > a {
  font-family: "Jost", sans-serif !important;
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .about-page {
    --about-text-size: 12px;
  }

  .about-page main {
    width: min(100% - 36px, 1120px);
  }

  .about-page .about-hero {
    margin-top: 35px;
    padding-top: 64px;
    padding-bottom: 34px;
  }

  .about-name-lockup {
    margin-top: 82px;
  }

  .about-name-image {
    width: min(76%, 360px);
  }

  .about-facts > div,
  .history-list li,
  .about-contact {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .history-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* ========================================
   Unified home directory V29
======================================== */

/* Light blue remains clear on the dark tree through a deep teal edge. */
body:not(.inner-page) .hero-name,
body:not(.inner-page) .hero-name .typing-line {
  color: #c7edf4;
  -webkit-text-stroke: clamp(0.8px, 0.085vw, 1.5px) rgba(18, 77, 83, 0.9);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(17, 72, 78, 0.62),
    0 9px 28px rgba(29, 73, 78, 0.2);
}

body:not(.inner-page) .typing-caret {
  background: #c7edf4;
  box-shadow: 0 0 0 1px rgba(18, 77, 83, 0.7);
}

/* The three sections touch and read as one continuous directory. */
body:not(.inner-page) .home-showcase {
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

body:not(.inner-page) .home-showcase-about {
  margin-top: clamp(150px, 17vw, 280px);
}

body:not(.inner-page) .home-showcase-skills {
  margin-bottom: clamp(110px, 13vw, 190px);
  padding-bottom: 0;
}

body:not(.inner-page) .home-showcase > .showcase-disclosure,
body:not(.inner-page) .home-showcase > .showcase-direct {
  width: min(100%, 1040px);
  padding: clamp(30px, 3.8vw, 52px) clamp(22px, 4vw, 58px);
  border-top: 0;
  border-bottom: 1px solid rgba(42, 93, 94, 0.18);
}

body:not(.inner-page) .home-showcase-about > .showcase-disclosure {
  border-top: 1px solid rgba(42, 93, 94, 0.18);
}

/* The three overlapping halos merge into one soft field. */
body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
body:not(.inner-page) .home-showcase > .showcase-direct::before {
  inset: -14px -7%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 254, 249, 0.66) 0%,
    rgba(255, 254, 249, 0.42) 37%,
    rgba(255, 254, 249, 0.15) 64%,
    transparent 82%
  );
  filter: blur(18px);
}

body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-direct {
  min-height: clamp(94px, 8vw, 122px);
  padding-top: 0;
  padding-bottom: 0;
}

/* Underline runs from left to right and the title changes colour on interaction. */
body:not(.inner-page) .showcase-title {
  position: relative;
  display: block;
  width: fit-content;
  transition: color 0.32s ease, transform 0.32s ease;
}

body:not(.inner-page) .showcase-title::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4b9da6, #a9dfe9);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.inner-page) .showcase-heading:hover .showcase-title,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-title,
body:not(.inner-page) .showcase-disclosure[open] .showcase-title,
body:not(.inner-page) .showcase-direct:hover .showcase-title,
body:not(.inner-page) .showcase-direct:focus-visible .showcase-title {
  color: #2f7e86 !important;
  transform: translateX(6px);
}

body:not(.inner-page) .showcase-heading:hover .showcase-title::after,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-title::after,
body:not(.inner-page) .showcase-disclosure[open] .showcase-title::after,
body:not(.inner-page) .showcase-direct:hover .showcase-title::after,
body:not(.inner-page) .showcase-direct:focus-visible .showcase-title::after {
  transform: scaleX(1);
}

body:not(.inner-page) .showcase-toggle,
body:not(.inner-page) .showcase-direct > i {
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.inner-page) .showcase-heading:hover .showcase-toggle,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-toggle,
body:not(.inner-page) .showcase-direct:hover > i,
body:not(.inner-page) .showcase-direct:focus-visible > i {
  color: #2f7e86;
  box-shadow: 0 0 25px rgba(190, 235, 242, 0.7);
}

/* The selected heading stays anchored; only its contents unfold below it. */
body:not(.inner-page) .showcase-disclosure {
  align-self: flex-start;
}

body:not(.inner-page) .showcase-preview {
  transform-origin: top center;
  animation: showcase-open-down 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes showcase-open-down {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body:not(.inner-page) .home-showcase-about {
    margin-top: 118px;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure,
  body:not(.inner-page) .home-showcase > .showcase-direct {
    padding: 27px 18px;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
  body:not(.inner-page) .home-showcase > .showcase-direct::before {
    inset: -10px -10%;
    filter: blur(15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.inner-page) .showcase-title,
  body:not(.inner-page) .showcase-title::after,
  body:not(.inner-page) .showcase-preview {
    animation: none;
    transition: none;
  }
}

/* ========================================
   Flat illustration finish V30
======================================== */

/* 立体感を生む影をなくし、平面的な水色と一重の輪郭だけにする。 */
body:not(.inner-page) .hero-name,
body:not(.inner-page) .hero-name .typing-line {
  color: #c5edf3 !important;
  -webkit-text-stroke: clamp(0.55px, 0.055vw, 0.9px) #296a72 !important;
  paint-order: stroke fill;
  filter: none !important;
  text-shadow: none !important;
}

body:not(.inner-page) .typing-caret {
  background: #296a72 !important;
  box-shadow: none !important;
}

/* 見出しの反応も発光させず、色と線だけの2D表現に統一する。 */
body:not(.inner-page) .showcase-heading:hover .showcase-toggle,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-toggle,
body:not(.inner-page) .showcase-direct:hover > i,
body:not(.inner-page) .showcase-direct:focus-visible > i {
  box-shadow: none !important;
}

/* ========================================
   Projects + Skills — quiet directory style
======================================== */

.projects-page,
.skills-page {
  --detail-copy-size: 12px;
}

.projects-page main,
.skills-page main {
  width: min(100% - 48px, 1120px);
}

.projects-page .detail-hero,
.skills-page .detail-hero {
  min-height: 0;
  margin-top: 70px;
  padding: clamp(72px, 8vw, 112px) 0 clamp(84px, 10vw, 138px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-page .detail-hero::after,
.skills-page .detail-hero::after {
  display: none;
}

.projects-page .detail-title,
.skills-page .detail-title {
  margin: 0;
  color: #777d82;
  font-weight: 300;
  line-height: 0.98;
}

.projects-page .detail-title {
  max-width: 1000px;
  font-size: clamp(48px, 7vw, 88px);
}

.skills-page .detail-title {
  font-size: clamp(62px, 8vw, 106px);
}

.projects-page .detail-lead,
.skills-page .detail-lead {
  max-width: 650px;
  margin-top: clamp(42px, 6vw, 72px);
  color: rgba(76, 86, 94, 0.76);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
  line-height: 2.15;
}

.projects-page .project-directory {
  display: flex;
  gap: clamp(42px, 8vw, 100px);
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(76, 86, 94, 0.18);
  border-bottom: 1px solid rgba(76, 86, 94, 0.18);
}

.projects-page .project-directory a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  color: rgba(76, 86, 94, 0.78);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.projects-page .project-directory a:hover,
.projects-page .project-directory a:focus-visible {
  box-shadow: none;
  transform: none;
}

.projects-page .project-group {
  padding: clamp(66px, 8vw, 96px) 0;
  border-top: 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.18);
}

.projects-page .group-heading {
  display: block;
}

.projects-page .group-label,
.skills-page .section-label,
.projects-page .project-meta {
  color: rgba(76, 86, 94, 0.62);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.projects-page .group-heading h2 {
  margin-top: 10px;
  color: #656b70;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 300;
  letter-spacing: 0.11em;
  line-height: 1.55;
}

.projects-page .playground-group .project-rows {
  margin-top: 32px;
}

.projects-page .research-overview {
  display: block;
  margin: clamp(38px, 5vw, 58px) 0 clamp(46px, 6vw, 70px);
  border-top: 1px solid rgba(76, 86, 94, 0.13);
  border-bottom: 1px solid rgba(76, 86, 94, 0.13);
}

.projects-page .research-overview p {
  min-height: 0;
  max-width: 920px;
  padding: 25px 0;
  color: rgba(76, 86, 94, 0.76);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
  line-height: 2.05;
}

.projects-page .project-rows {
  display: grid;
  gap: 0;
  margin-left: 0;
  border-top: 1px solid rgba(76, 86, 94, 0.15);
}

.projects-page .project-row {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr) 90px;
  gap: 30px;
  min-height: 0;
  padding: 27px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.15);
  border-radius: 0;
  box-shadow: none;
}

.projects-page .project-row h3 {
  color: #5f656a;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.projects-page .project-row p {
  margin-top: 7px;
  color: rgba(76, 86, 94, 0.7);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
  line-height: 1.95;
}

.projects-page .project-link:hover,
.projects-page .project-link:focus-visible {
  box-shadow: none;
  transform: translateX(5px);
}

.projects-page .row-arrow,
.projects-page .row-status {
  color: rgba(76, 86, 94, 0.62);
  font-size: 8px;
  font-weight: 400;
}

.projects-page .compact-group {
  min-height: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.18);
  border-radius: 0;
  box-shadow: none;
}

.projects-page .compact-group .group-heading {
  display: block;
}

.projects-page .compact-group .empty-message {
  margin: 32px 0 0;
  color: rgba(76, 86, 94, 0.66);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
}

/* ========================================
   Projects — section-specific parallax scenes
======================================== */

.projects-page .project-parallax {
  --parallax-far: 0px;
  --parallax-near: 0px;
  --parallax-type: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88svh;
  border-bottom: 0;
  scroll-margin-top: 96px;
}

.projects-page .project-parallax-research {
  min-height: 112svh;
}

.projects-page .project-parallax-games {
  min-height: 82svh;
}

.projects-page .project-parallax-fun {
  min-height: 92svh;
}

.projects-page .project-parallax > :not(.project-scene) {
  position: relative;
  z-index: 2;
  width: 100%;
}

.project-scene {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: 0;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
}

.project-scene::before {
  position: absolute;
  inset: -18%;
  content: "";
  transform: translate3d(0, var(--parallax-far), 0) scale(1.08);
  will-change: transform;
}

.project-scene::after {
  position: absolute;
  z-index: 1;
  color: rgba(85, 74, 66, 0.1);
  content: attr(data-scene-label);
  font-family: "Futura Now Display", "Jost", sans-serif;
  font-size: clamp(112px, 19vw, 300px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
  white-space: nowrap;
  transform: translate3d(0, var(--parallax-type), 0);
  will-change: transform;
}

.project-scene-orb,
.project-scene-detail {
  position: absolute;
  z-index: 1;
  display: block;
  will-change: transform;
}

.project-scene-orb-a {
  transform: translate3d(0, var(--parallax-near), 0);
}

.project-scene-orb-b,
.project-scene-detail {
  transform: translate3d(0, var(--parallax-far), 0);
}

.project-parallax-research .project-scene::before {
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 167, 111, 0.76) 0 13%, transparent 33%),
    linear-gradient(112deg, #fffdfa 0 8%, #ffead8 8% 72%, #fff9f3 72% 100%);
}

.project-parallax-research .project-scene::after {
  top: 18%;
  right: -0.04em;
  color: rgba(187, 101, 49, 0.12);
  -webkit-text-stroke: 1px rgba(187, 101, 49, 0.24);
}

.project-parallax-research .project-scene-orb-a {
  top: 9%;
  right: 5vw;
  width: clamp(290px, 39vw, 610px);
  aspect-ratio: 1;
  background: rgba(247, 178, 127, 0.42);
  border: 1px solid rgba(201, 116, 58, 0.24);
  border-radius: 50%;
}

.project-parallax-research .project-scene-orb-b {
  bottom: 4%;
  left: 4vw;
  width: clamp(170px, 20vw, 310px);
  aspect-ratio: 1;
  background: rgba(255, 213, 176, 0.76);
  border-radius: 46% 54% 62% 38% / 52% 37% 63% 48%;
}

.project-parallax-research .project-scene-detail {
  right: 15vw;
  bottom: 7%;
  width: clamp(160px, 23vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(171, 90, 42, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.13),
    0 0 0 68px rgba(171, 90, 42, 0.08);
}

.project-parallax-games .project-scene::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
    linear-gradient(118deg, #fff9fb 0 10%, #fbd7e5 10% 84%, #fff7fa 84% 100%);
}

.project-parallax-games .project-scene::after {
  top: 24%;
  left: -0.02em;
  color: rgba(177, 73, 113, 0.13);
  -webkit-text-stroke: 1px rgba(177, 73, 113, 0.25);
}

.project-parallax-games .project-scene-orb-a {
  top: 6%;
  left: 7vw;
  width: clamp(230px, 31vw, 490px);
  aspect-ratio: 1;
  background: rgba(242, 143, 181, 0.45);
  border-radius: 50%;
  box-shadow: 0 35px 80px rgba(181, 71, 113, 0.13);
}

.project-parallax-games .project-scene-orb-b {
  right: 7vw;
  bottom: 2%;
  width: clamp(170px, 23vw, 360px);
  aspect-ratio: 1;
  background: rgba(255, 232, 240, 0.66);
  border: 2px solid rgba(181, 71, 113, 0.2);
  border-radius: 24% 76% 32% 68% / 67% 28% 72% 33%;
}

.project-parallax-games .project-scene-detail {
  top: 12%;
  right: 4vw;
  width: min(34vw, 520px);
  height: min(34vw, 520px);
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(165, 68, 106, 0.23) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 68, 106, 0.23) 1px, transparent 1px);
  background-size: 34px 34px;
}

.project-parallax-fun .project-scene::before {
  background:
    radial-gradient(circle at 18% 78%, rgba(242, 210, 97, 0.58) 0 11%, transparent 30%),
    linear-gradient(106deg, #fbfdf8 0 7%, #dceecf 7% 78%, #f8fced 78% 100%);
}

.project-parallax-fun .project-scene::after {
  top: 19%;
  right: -0.06em;
  color: rgba(82, 125, 64, 0.12);
  -webkit-text-stroke: 1px rgba(82, 125, 64, 0.23);
}

.project-parallax-fun .project-scene-orb-a {
  top: 2%;
  right: 6vw;
  width: clamp(250px, 35vw, 550px);
  aspect-ratio: 1;
  background: rgba(173, 211, 143, 0.44);
  border-radius: 62% 38% 55% 45% / 41% 57% 43% 59%;
}

.project-parallax-fun .project-scene-orb-b {
  bottom: 5%;
  left: 6vw;
  width: clamp(180px, 24vw, 370px);
  aspect-ratio: 1;
  background: rgba(247, 220, 112, 0.55);
  border-radius: 50%;
}

.project-parallax-fun .project-scene-detail {
  top: 16%;
  left: 10vw;
  width: clamp(180px, 29vw, 450px);
  height: clamp(90px, 14vw, 220px);
  border-top: 2px solid rgba(73, 119, 55, 0.27);
  border-bottom: 1px solid rgba(73, 119, 55, 0.15);
  rotate: -14deg;
}

@media (max-width: 760px) {
  .projects-page .project-parallax,
  .projects-page .project-parallax-games,
  .projects-page .project-parallax-fun {
    min-height: 78svh;
  }

  .projects-page .project-parallax-research {
    min-height: 112svh;
  }

  .project-scene::after {
    font-size: clamp(88px, 30vw, 170px);
    opacity: 0.82;
  }

  .project-parallax-games .project-scene-detail {
    width: 72vw;
    height: 72vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-scene::before,
  .project-scene::after,
  .project-scene-orb,
  .project-scene-detail {
    transform: none !important;
    will-change: auto;
  }
}

.skills-page .detail-section {
  padding: 0;
  border-top: 1px solid rgba(76, 86, 94, 0.18);
  border-bottom: 0;
}

.skills-page .detail-section-heading {
  margin-bottom: clamp(38px, 5vw, 58px);
}

.skills-page .detail-section-heading h2,
.skills-page .workflow-panel h2 {
  margin: 9px 0 0;
  color: #656b70;
  font-family: "Futura Now Display", "Jost", sans-serif;
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.skills-page .skills-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-left: 0;
  border-top: 0;
}

.skills-page .skills-list > div,
.skills-page .skills-list > div:last-child {
  display: grid;
  grid-column: auto;
  grid-template-columns: 170px minmax(230px, 0.9fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  min-height: 0;
  padding: 27px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.15);
  border-radius: 0;
  box-shadow: none;
}

.skills-page .skills-list dt {
  color: rgba(76, 86, 94, 0.62);
  font-family: "Jost", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.skills-page .skills-list dd {
  margin-top: 0;
  color: #60666b;
  font-family: "Futura Now Display", "Jost", sans-serif;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.skills-page .skills-list > div p {
  margin-top: 0;
  color: rgba(76, 86, 94, 0.7);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
  line-height: 1.95;
}

.skills-page .skill-note {
  margin-left: 0.7em;
  color: rgba(76, 86, 94, 0.5);
  font-size: 10px;
  white-space: nowrap;
}

/* ========================================
   Illustrated sky world V23
======================================== */

:root {
  --sky-rose: #d5a0ab;
  --sky-peach: #d9c0ba;
  --sky-cream: #f4efe4;
  --mountain-mist: #c7d4d1;
  --river-blue: #87aeb5;
  --forest-pine: #355f57;
  --forest-sage: #718f7d;
  --tree-ink: #204f59;
  --tree-teal: #3e7773;
  --hill-green: #6f8b78;
  --hill-brown: #58777d;
}

body {
  background: #617f7e;
}

.page-shell,
.inner-page .page-shell {
  --tree-shift-x: 0px;
  --tree-base-x: 0px;
  --tree-shift-y: 0px;
  --tree-lean: 0deg;
  --tree-scale: 1.006;
  --hill-rise: 0px;
  --name-first-x: 0px;
  --name-family-x: 0px;
  --name-line-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 19% 9%, rgba(248, 235, 218, 0.58), transparent 24%),
    radial-gradient(circle at 82% 27%, rgba(161, 190, 192, 0.38), transparent 31%),
    linear-gradient(
      180deg,
      var(--sky-rose) 0%,
      #d7b4b5 17%,
      var(--mountain-mist) 39%,
      var(--sky-cream) 63%,
      #d4dfd8 82%,
      var(--river-blue) 100%
    );
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle, rgba(70, 73, 73, 0.085) 0 0.7px, transparent 0.9px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 0.8px, transparent 1px);
  background-position: 0 0, 7px 11px;
  background-size: 13px 13px, 17px 17px;
  content: "";
  opacity: 0.3;
  pointer-events: none;
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/nature-tree.svg?v=29");
  background-position: 50% calc(100% - 72px);
  background-repeat: no-repeat;
  background-size: 110vw calc(100% - 82px);
  content: "";
  opacity: 0.88;
  filter: saturate(0.82) brightness(0.9) hue-rotate(4deg);
  pointer-events: none;
  transform:
    translate3d(calc(var(--tree-base-x) + var(--tree-shift-x)), var(--tree-shift-y), 0)
    rotate(var(--tree-lean))
    scale(var(--tree-scale));
  transform-origin: 58% 100%;
  will-change: transform;
}

.page-shell > main,
.page-shell > footer {
  position: relative;
  z-index: 2;
}

.site-header {
  background: rgba(235, 239, 230, 0.72);
  border-bottom-color: rgba(225, 235, 226, 0.62);
  box-shadow: 0 12px 38px rgba(42, 73, 69, 0.07);
}

.site-header .logo,
.site-header nav,
.site-header nav a {
  font-family: "Jost", sans-serif;
}

.ambient-bubbles {
  position: absolute;
  inset: 0 0 auto;
  height: min(1040px, 112svh);
  z-index: 1;
  overflow: hidden;
  transform: none;
}

.ambient-bubbles .ambient {
  height: clamp(78px, 9vw, 148px);
  background: url("assets/kintoun-cloud.svg?v=29") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: blur(0.45px);
  opacity: 0.58;
  animation: nature-cloud-drift 28s ease-in-out infinite alternate !important;
}

.ambient-bubbles .ambient::before,
.ambient-bubbles .ambient::after {
  content: none;
}

.ambient-1 {
  top: 8%;
  left: -15%;
  width: 45vw;
}

.ambient-2 {
  top: 35%;
  right: -18%;
  width: 41vw;
  animation-delay: -8s !important;
  animation-direction: alternate-reverse !important;
}

.ambient-3 {
  top: 62%;
  left: -18%;
  width: 34vw;
  animation-delay: -15s !important;
}

.ambient-4,
.ambient-5,
.ambient-6 {
  display: none;
}

/* 導入画面は静かなクリーム色に絞る */
.intro-screen {
  background: #fff4e3;
}

.intro-screen::before,
.intro-screen::after {
  content: none;
}

.intro-screen.is-building .cherry-intro {
  animation: cherry-cloud-lift 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 参考画像の二段組みを、Cherry / VanFaroweへ置き換える */
body:not(.inner-page) .hero {
  grid-template-columns: 1fr;
  min-height: calc(100svh - 84px);
  padding: clamp(96px, 11vw, 156px) 2vw clamp(132px, 15vw, 220px);
}

body:not(.inner-page) .page-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(248, 235, 220, 0.46), transparent 23%),
    radial-gradient(circle at 84% 20%, rgba(172, 197, 198, 0.4), transparent 28%),
    radial-gradient(ellipse at 52% 80%, rgba(112, 151, 150, 0.23), transparent 30%),
    linear-gradient(
      180deg,
      #d5a0ab 0%,
      #d7b3b4 16%,
      #c7d4d1 35%,
      #f4efe4 55%,
      #d5e0d9 76%,
      #91b5b7 100%
    );
}

body:not(.inner-page) .hero-copy {
  grid-column: 1;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-left: clamp(0px, 4vw, 74px);
}

body:not(.inner-page) .hero-media {
  display: none;
}

body:not(.inner-page) .hero-kicker {
  margin-left: clamp(20px, 7vw, 110px);
  color: rgba(24, 76, 78, 0.7);
}

body:not(.inner-page) .hero-name {
  position: relative;
  min-height: 1.62em;
  margin-top: 28px;
  color: #164f4b;
  font-size: clamp(82px, 11.2vw, 166px);
  line-height: 0.76;
  text-shadow: 0 3px 0 rgba(255, 240, 215, 0.18);
}

body:not(.inner-page) .hero-name br {
  display: none;
}

body:not(.inner-page) .hero-name .typing-line {
  display: block;
  width: max-content;
  color: #164f4b;
}

body:not(.inner-page) .hero-name .typing-line:first-child {
  margin-left: clamp(22px, 8vw, 126px);
  font-size: 0.79em;
  transform: translate3d(var(--name-first-x), var(--name-line-y), 0);
}

body:not(.inner-page) .hero-name .hero-family-name {
  margin-top: -0.05em;
  margin-left: clamp(92px, 16vw, 260px);
  transform: translate3d(var(--name-family-x), var(--name-line-y), 0);
}

body:not(.inner-page) .typing-caret {
  position: static;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  background: #24787a;
  transform: none;
}

body:not(.inner-page) .home-scroll-cue {
  position: absolute;
  right: clamp(20px, 4.5vw, 70px);
  bottom: clamp(42px, 5vw, 72px);
  z-index: 4;
  gap: 14px;
  margin: 0;
  padding: 10px 0;
  color: #174f4b;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-shadow: 0 1px 12px rgba(255, 244, 226, 0.8);
}

body:not(.inner-page) .home-scroll-cue::before {
  width: clamp(28px, 4vw, 52px);
  height: 1px;
  background: rgba(23, 79, 75, 0.72);
  content: "";
}

body:not(.inner-page) .home-scroll-cue i {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: #174f4b;
  font-size: 21px;
  animation: scroll-cue-drop 1.8s ease-in-out infinite;
}

.home-showcase,
.home-showcase-about,
.home-showcase-projects,
.home-showcase-skills {
  background: transparent;
  border-top-color: rgba(30, 83, 84, 0.2);
}

.showcase-title,
.detail-title,
.group-heading h2 {
  color: rgba(27, 76, 76, 0.82) !important;
}

/* Projectsの固有色は残しつつ、木を透かして見せる */
.projects-page .project-scene::before {
  opacity: 0.72;
}

.projects-page .project-scene::after,
.projects-page .project-scene-orb,
.projects-page .project-scene-detail {
  mix-blend-mode: multiply;
}

footer {
  isolation: isolate;
  min-height: 330px;
  margin-top: clamp(130px, 15vw, 230px);
  padding: 165px 0 54px;
  border-top: 0;
  color: #e8efe8;
}

footer::before,
footer::after {
  position: absolute;
  left: 50%;
  width: 142vw;
  content: "";
  pointer-events: none;
  transform: translate3d(-50%, var(--hill-rise), 0);
  transition: transform 0.12s linear;
}

footer::before {
  top: 46px;
  z-index: -1;
  height: 390px;
  background:
    radial-gradient(circle at 32% 27%, rgba(202, 222, 202, 0.24), transparent 21%),
    linear-gradient(180deg, #88a38c 0%, var(--hill-green) 52%, #4f6f65 100%);
  border-radius: 50% 50% 0 0 / 36% 36% 0 0;
  box-shadow: inset 0 18px 0 rgba(192, 214, 202, 0.16);
}

footer::after {
  top: 138px;
  z-index: -2;
  height: 340px;
  background:
    radial-gradient(ellipse at 68% 14%, rgba(188, 213, 212, 0.17), transparent 28%),
    linear-gradient(180deg, #76969b 0%, var(--hill-brown) 48%, #3f6068 100%);
  border-radius: 50% 50% 0 0 / 29% 29% 0 0;
}

footer > a,
footer > p {
  position: relative;
  z-index: 1;
}

footer > a {
  color: #eef4ef;
}

/* スクロール時の登場を、雲の向こうから現れるように強める */
.js .reveal {
  opacity: 0;
  filter: blur(12px);
  clip-path: inset(0 0 18% 0);
  transform: translateY(76px) scale(0.965);
  transition:
    opacity 1s ease,
    filter 1.15s ease,
    clip-path 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0 0 0 0);
  transform: translateY(0) scale(1);
}

@keyframes tree-world-breathe {
  from {
    transform: translate3d(calc(var(--tree-base-x) + var(--tree-shift-x)), 0, 0) scale(1.002);
  }
  to {
    transform: translate3d(calc(var(--tree-base-x) + var(--tree-shift-x)), -10px, 0) scale(1.013);
  }
}

@keyframes nature-cloud-drift {
  from {
    transform: translate3d(-28px, 0, 0) scale(0.99);
  }
  to {
    transform: translate3d(42px, 0, 0) scale(1.02);
  }
}

@keyframes scroll-cue-drop {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes cherry-cloud-lift {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58% {
    opacity: 1;
    transform: translateY(-14px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.92);
  }
}

@media (max-width: 760px) {
  .page-shell::after {
    background-position: 50% calc(100% - 55px);
    background-size: 124vw calc(100% - 70px);
    opacity: 0.72;
  }

  body:not(.inner-page) .hero {
    padding-top: 104px;
    padding-bottom: 155px;
  }

  body:not(.inner-page) .hero-copy {
    padding-left: 0;
  }

  body:not(.inner-page) .hero-name {
    min-height: 1.76em;
    font-size: clamp(58px, 17vw, 86px);
  }

  body:not(.inner-page) .hero-name .typing-line:first-child {
    margin-left: 4vw;
  }

  body:not(.inner-page) .hero-name .hero-family-name {
    margin-top: 0.02em;
    margin-left: 12vw;
  }

  body:not(.inner-page) .hero-kicker {
    margin-left: 4vw;
  }

  body:not(.inner-page) .home-scroll-cue {
    right: 18px;
    bottom: 34px;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .ambient-bubbles .ambient {
    min-width: 250px;
    opacity: 0.54;
  }

  footer {
    min-height: 300px;
    padding-top: 155px;
  }

  footer::before,
  footer::after {
    width: 190vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell::after,
  .ambient-bubbles .ambient,
  .intro-screen::before,
  .intro-screen::after,
  .intro-screen.is-building .cherry-intro {
    animation: none !important;
    transition: none !important;
  }
}

.skills-page .workflow-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 8vw, 100px);
  margin-top: 0;
  padding: clamp(68px, 8vw, 98px) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.18);
  border-radius: 0;
  box-shadow: none;
}

.skills-page .workflow-list li {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(76, 86, 94, 0.13);
}

.skills-page .workflow-list span {
  display: block;
  width: auto;
  height: auto;
  color: rgba(76, 86, 94, 0.58);
  background: transparent;
  border-radius: 0;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.skills-page .workflow-list p {
  color: rgba(76, 86, 94, 0.72);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--detail-copy-size);
  font-weight: 300;
  line-height: 1.95;
}

.projects-page .page-next,
.skills-page .page-next {
  margin: 72px 0 54px;
}

.projects-page .page-next a,
.skills-page .page-next a {
  gap: 14px;
  color: #60666b;
  font-family: "Jost", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0;
}

.projects-page .page-next i,
.skills-page .page-next i {
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 16px;
}

.projects-page footer > a,
.skills-page footer > a {
  font-family: "Jost", sans-serif !important;
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .projects-page,
  .skills-page {
    --detail-copy-size: 11px;
  }

  .projects-page main,
  .skills-page main {
    width: min(100% - 36px, 1120px);
  }

  .projects-page .detail-hero,
  .skills-page .detail-hero {
    margin-top: 35px;
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .projects-page .detail-title {
    font-size: clamp(42px, 13.4vw, 65px);
    line-height: 1.04;
  }

  .projects-page .project-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .projects-page .project-directory a {
    min-height: 48px;
    padding: 10px 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .projects-page .research-overview p,
  .projects-page .research-overview p:first-child,
  .projects-page .research-overview p:last-child {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(76, 86, 94, 0.1);
  }

  .projects-page .research-overview p:last-child {
    border-bottom: 0;
  }

  .projects-page .project-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }

  .projects-page .row-arrow,
  .projects-page .row-status {
    grid-column: auto;
    justify-self: start;
  }

  .skills-page .skills-list > div,
  .skills-page .skills-list > div:last-child {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 24px 0;
  }

  .skills-page .skills-list dd {
    margin: 4px 0 5px;
  }

  .skills-page .workflow-panel {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

/* ========================================
   Stable world composition V23
   One continuous scene + proportional guides
======================================== */

:root {
  --world-edge: 6vw;
  --world-inline: 12vw;
}

/* 同じ縦長の世界を、各画面幅で切り取って表示する */
.page-shell::after {
  background-position: 50% calc(100% - 72px);
  background-size: auto calc(100% - 82px);
}

/* ヘッダーの左右端を常に画面幅の6%に揃える */
.header-inner,
body:not(.inner-page) .header-inner {
  width: calc(100% - var(--world-inline));
  max-width: none;
}

/* トップページは一つのビューポート座標で配置する */
body:not(.inner-page) main {
  width: 100%;
  max-width: none;
}

body:not(.inner-page) .hero,
body:not(.inner-page) .home-showcase {
  padding-right: var(--world-edge);
  padding-left: var(--world-edge);
}

/* 左タイトルと右ボタンは同じ6%ガイドの両端に固定 */
body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-direct {
  width: 100%;
}

body:not(.inner-page) .showcase-heading > :first-child,
body:not(.inner-page) .showcase-direct > :first-child {
  flex: 1 1 auto;
  min-width: 0;
}

body:not(.inner-page) .showcase-toggle,
body:not(.inner-page) .showcase-direct > i {
  flex: 0 0 44px;
  margin-left: auto;
}

body:not(.inner-page) .home-scroll-cue {
  right: var(--world-edge);
}

@media (max-width: 760px) {
  .page-shell::after {
    background-position: 50% calc(100% - 72px);
    background-size: auto calc(100% - 82px);
  }

  .header-inner,
  body:not(.inner-page) .header-inner {
    width: calc(100% - var(--world-inline));
  }

  body:not(.inner-page) .hero,
  body:not(.inner-page) .home-showcase {
    padding-right: var(--world-edge);
    padding-left: var(--world-edge);
  }

  body:not(.inner-page) .home-scroll-cue {
    right: var(--world-edge);
  }
}

/* ========================================
   Quiet content pages V24
   Pale paper, dark copy, no background ornaments
======================================== */

.inner-page {
  --inner-paper: #fbf8f0;
  --inner-ink: #354746;
  --inner-copy: #4f605e;
  --inner-muted: #687674;
  --inner-line: rgba(53, 71, 70, 0.16);
  color: var(--inner-ink);
  background: var(--inner-paper);
}

.inner-page .page-shell {
  background: var(--inner-paper);
}

/* 木・紙粒・雲はトップページだけに置く */
.inner-page .page-shell::before,
.inner-page .page-shell::after,
.inner-page .ambient-bubbles {
  display: none;
  content: none;
}

.inner-page main,
.about-page main,
.projects-page main,
.skills-page main {
  width: min(1040px, calc(100% - 12vw));
}

.inner-page .detail-title,
.about-page .detail-title,
.projects-page .detail-title,
.skills-page .detail-title {
  color: #465957 !important;
}

.projects-page .detail-lead,
.skills-page .detail-lead,
.about-introduction p,
.history-list p,
.projects-page .research-overview p,
.projects-page .project-row p,
.projects-page .compact-group .empty-message,
.skills-page .skills-list > div p {
  color: var(--inner-copy);
}

.about-facts dt,
.about-facts dd,
.about-introduction h2,
.about-history h2,
.history-list time,
.history-list span,
.about-contact h2,
.about-contact a,
.projects-page .group-heading h2,
.projects-page .project-row h3,
.skills-page .skills-list dd {
  color: var(--inner-ink);
}

.about-profile,
.about-history,
.about-contact,
.about-facts > div,
.history-list li,
.projects-page .project-directory,
.projects-page .research-overview,
.projects-page .project-rows,
.projects-page .project-row,
.skills-page .detail-section,
.skills-page .skills-list > div,
.skills-page .skills-list > div:last-child {
  border-color: var(--inner-line);
}

/* 読みやすい一行幅に整える */
.about-introduction-copy,
.projects-page .research-overview p {
  max-width: 780px;
}

.about-introduction-copy p,
.projects-page .research-overview p {
  line-height: 2.08;
}

.projects-page .project-row > div:nth-child(2) {
  max-width: 640px;
}

/* Projectsは色面だけを残し、巨大文字・円・格子をなくす */
.projects-page .project-parallax,
.projects-page .project-parallax-research,
.projects-page .project-parallax-games,
.projects-page .project-parallax-fun {
  min-height: clamp(600px, 76svh, 820px);
  padding-top: clamp(84px, 10vw, 132px);
  padding-bottom: clamp(84px, 10vw, 132px);
}

.projects-page .project-parallax-research {
  min-height: clamp(760px, 94svh, 1040px);
}

.projects-page .project-scene {
  overflow: hidden;
}

.projects-page .project-scene::before {
  inset: 0;
  opacity: 1;
  transform: none !important;
  will-change: auto;
}

.projects-page .project-scene::after,
.projects-page .project-scene-orb,
.projects-page .project-scene-detail {
  display: none;
  content: none;
}

.projects-page .project-parallax-research .project-scene::before {
  background: linear-gradient(180deg, #fbf8f0 0%, #fff4e8 50%, #fbf8f0 100%);
}

.projects-page .project-parallax-games .project-scene::before {
  background: linear-gradient(180deg, #fbf8f0 0%, #fff3f6 50%, #fbf8f0 100%);
}

.projects-page .project-parallax-fun .project-scene::before {
  background: linear-gradient(180deg, #fbf8f0 0%, #f2f8ef 50%, #fbf8f0 100%);
}

.projects-page .project-meta,
.projects-page .row-arrow,
.projects-page .row-status,
.projects-page .group-label,
.skills-page .skills-list dt,
.skills-page .skill-note {
  color: var(--inner-muted);
}

@media (max-width: 760px) {
  .inner-page main,
  .about-page main,
  .projects-page main,
  .skills-page main {
    width: calc(100% - 36px);
  }

  .projects-page .project-parallax,
  .projects-page .project-parallax-games,
  .projects-page .project-parallax-fun {
    min-height: 0;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .projects-page .project-parallax-research {
    min-height: 0;
    padding-top: 104px;
    padding-bottom: 104px;
  }
}

/* ========================================
   Responsive tree + legibility V27
   Keep the current mobile tree; use a rounder canopy on larger screens.
======================================== */

/* The directory rule stops beside the title instead of crossing the page. */
body:not(.inner-page) .home-showcase {
  position: relative;
  border-top: 0;
}

body:not(.inner-page) .home-showcase::before {
  position: absolute;
  top: 0;
  left: var(--world-edge);
  width: clamp(120px, 30vw, 380px);
  height: 1px;
  background: rgba(23, 79, 75, 0.12);
  content: "";
  pointer-events: none;
}

/* Desktop and tablet landscape: a separate, round-lobed canopy sits right of centre. */
@media (min-width: 761px) {
  body:not(.inner-page) .page-shell::after {
    --tree-base-x: clamp(96px, 10vw, 210px);
    background-image: url("assets/nature-tree-desktop.svg?v=29");
    background-position: 50% calc(100% - 72px);
    background-size: auto 108%;
  }
}

/* Mobile: preserve the exact V24 tree artwork and its established composition. */
@media (max-width: 760px) {
  body:not(.inner-page) .page-shell::after {
    --tree-base-x: 0px;
    background-image: url("assets/nature-tree.svg?v=29");
    background-position: 50% calc(100% - 72px);
  }

  body:not(.inner-page) .home-showcase::before {
    width: min(44vw, 210px);
  }
}

/* Content pages: keep the pale paper, but remove low-contrast grey copy. */
.inner-page {
  --inner-ink: #233c3a;
  --inner-copy: #344b48;
  --inner-muted: #4e625f;
  --inner-line: rgba(35, 60, 58, 0.2);
}

.inner-page .detail-title,
.about-page .detail-title,
.projects-page .detail-title,
.skills-page .detail-title,
.projects-page .group-heading h2 {
  color: #2d4744 !important;
}

.projects-page .detail-lead,
.skills-page .detail-lead,
.about-facts dt,
.about-facts dd,
.about-introduction h2,
.about-introduction p,
.about-history h2,
.history-list time,
.history-list span,
.history-list p,
.about-contact h2,
.about-contact a,
.projects-page .research-overview p,
.projects-page .project-row h3,
.projects-page .project-row p,
.projects-page .compact-group .empty-message,
.skills-page .skills-list > div p,
.skills-page .skills-list dd {
  color: var(--inner-copy);
  font-weight: 400;
}

.projects-page .project-directory a,
.projects-page .project-meta,
.projects-page .row-arrow,
.projects-page .row-status,
.projects-page .group-label,
.projects-page .section-label,
.skills-page .section-label,
.skills-page .skills-list dt,
.skills-page .skill-note {
  color: var(--inner-muted);
}

.about-page .page-next a,
.projects-page .page-next a,
.skills-page .page-next a {
  color: var(--inner-copy);
}

/* ========================================
   Day / sunset / night world + hill index V27
======================================== */

/* The name stays legible over both pale clouds and the blue-green trunk. */
body:not(.inner-page) .hero-name,
body:not(.inner-page) .hero-name .typing-line {
  color: #563749;
  -webkit-text-stroke: clamp(0.7px, 0.075vw, 1.35px) rgba(255, 241, 218, 0.9);
  paint-order: stroke fill;
  text-shadow:
    0 0 8px rgba(255, 242, 222, 0.74),
    0 2px 0 rgba(255, 242, 222, 0.5),
    0 12px 34px rgba(59, 39, 53, 0.18);
}

body:not(.inner-page) .typing-caret {
  background: #d97782;
}

/* Home directory: one centred frosted strip per item, with no page-wide rule. */
body:not(.inner-page) .home-showcase {
  justify-content: center;
}

body:not(.inner-page) .home-showcase::before {
  display: none;
  content: none;
}

body:not(.inner-page) .home-showcase > .showcase-disclosure,
body:not(.inner-page) .home-showcase > .showcase-direct {
  width: min(100%, 1120px);
  margin-right: auto;
  margin-left: auto;
  background: rgba(255, 253, 247, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(37, 80, 78, 0.12);
  box-shadow: 0 22px 70px rgba(50, 78, 76, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(0.86);
  backdrop-filter: blur(18px) saturate(0.86);
}

body:not(.inner-page) .home-showcase > .showcase-disclosure {
  padding: clamp(22px, 3vw, 38px) clamp(22px, 4vw, 58px);
}

body:not(.inner-page) .home-showcase > .showcase-direct {
  padding: clamp(34px, 4vw, 58px) clamp(22px, 4vw, 58px);
}

body:not(.inner-page) .showcase-title {
  color: #546866 !important;
}

/* The desktop tree is moved by the layer transform, not by background-position. */
@media (min-width: 761px) {
  body:not(.inner-page) .page-shell::after {
    --tree-base-x: clamp(120px, 12vw, 240px);
    background-position: 50% calc(100% - 72px);
  }
}

/* Daylight — quiet blue sky fading into warm cream. */
.about-page {
  --inner-paper: #e7eee5;
  --inner-ink: #244443;
  --inner-copy: #334f4d;
  --inner-muted: #506b67;
  --inner-line: rgba(36, 68, 67, 0.2);
  background: #a9c9c3;
}

.about-page .page-shell {
  background:
    linear-gradient(
      180deg,
      #c8deda 0%,
      #dce8dc 30%,
      #f6eed7 68%,
      #d9e3d4 100%
    );
}

.about-page .site-header {
  background: rgba(238, 242, 229, 0.76);
}

.about-page .detail-title {
  color: #315d5b !important;
}

.about-page .about-name-image {
  filter: brightness(0.68) saturate(0.72) sepia(0.12) hue-rotate(128deg);
}

/* Sunset — peach, rose and low warm light. */
.projects-page {
  --inner-paper: #f4d7c6;
  --inner-ink: #503a3b;
  --inner-copy: #5d4545;
  --inner-muted: #765f5c;
  --inner-line: rgba(80, 58, 59, 0.2);
  background: #c89491;
}

.projects-page .page-shell {
  background:
    linear-gradient(
      180deg,
      #e8b1ac 0%,
      #f2c8b5 30%,
      #f7dfc9 62%,
      #d5aaa2 100%
    );
}

.projects-page .site-header {
  background: rgba(248, 226, 211, 0.76);
}

.projects-page .detail-title,
.projects-page .group-heading h2 {
  color: #664546 !important;
}

.projects-page .project-parallax-research .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(255, 218, 187, 0.64), transparent);
}

.projects-page .project-parallax-games .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(244, 170, 184, 0.56), transparent);
}

.projects-page .project-parallax-fun .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(229, 198, 135, 0.54), transparent);
}

/* Night — the same blue-green family, shifted to deep indigo. */
.skills-page {
  --inner-paper: #263f50;
  --inner-ink: #f3f1e8;
  --inner-copy: #e1e8e4;
  --inner-muted: #bacbc7;
  --inner-line: rgba(235, 242, 236, 0.2);
  color: var(--inner-ink);
  background: #172f3d;
}

.skills-page .page-shell {
  background:
    linear-gradient(
      180deg,
      #1d3445 0%,
      #2e4b5d 36%,
      #526b76 70%,
      #756b73 100%
    );
}

.skills-page .site-header {
  background: rgba(22, 43, 57, 0.78);
  border-bottom-color: rgba(238, 243, 237, 0.12);
}

.skills-page .site-header .logo,
.skills-page .site-header nav a {
  color: #edf1eb;
}

.skills-page .site-header nav a::after {
  background: linear-gradient(90deg, #8bbfbd, #e6aaae);
}

.skills-page .detail-title {
  color: #f3eee3 !important;
}

.skills-page .skills-list > div,
.skills-page .skills-list > div:last-child {
  background: rgba(246, 246, 237, 0.035);
  border-color: var(--inner-line);
}

.skills-page .skills-list dt,
.skills-page .skills-list dd,
.skills-page .skills-list > div p,
.skills-page .skill-note,
.skills-page .page-next span,
.skills-page .page-next a {
  color: var(--inner-copy);
}

/* One shared hill-shaped site index on every page. */
footer {
  --footer-hill-top: #76957f;
  --footer-hill-bottom: #486b62;
  --footer-hill-back: #557b80;
  --footer-hill-deep: #385a63;
  display: block;
  min-height: 470px;
  padding: 132px 0 48px;
  color: #f3f3e9;
  font-family: "Jost", sans-serif;
}

footer::before {
  height: 500px;
  background:
    radial-gradient(circle at 32% 27%, rgba(220, 234, 218, 0.2), transparent 21%),
    linear-gradient(180deg, var(--footer-hill-top), var(--footer-hill-bottom));
}

footer::after {
  height: 430px;
  background: linear-gradient(180deg, var(--footer-hill-back), var(--footer-hill-deep));
}

.about-page footer {
  --footer-hill-top: #7f9e82;
  --footer-hill-bottom: #4e7163;
  --footer-hill-back: #71908c;
  --footer-hill-deep: #45666a;
}

.projects-page footer {
  --footer-hill-top: #806f63;
  --footer-hill-bottom: #53665d;
  --footer-hill-back: #77656b;
  --footer-hill-deep: #4a5359;
}

.skills-page footer {
  --footer-hill-top: #3d5d62;
  --footer-hill-bottom: #27484f;
  --footer-hill-back: #304957;
  --footer-hill-deep: #1b3442;
}

.footer-directory,
.footer-signature {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  margin-right: auto;
  margin-left: auto;
}

.footer-directory {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.footer-directory-label {
  padding-top: 18px;
  color: rgba(246, 246, 236, 0.72);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.footer-directory-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
}

.footer-directory-links a {
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 17px 0;
  color: rgba(247, 247, 238, 0.82);
  border-bottom: 1px solid rgba(247, 247, 238, 0.25);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-directory-links a::after {
  content: "↗";
  opacity: 0.58;
}

.footer-directory-links a:hover,
.footer-directory-links a:focus-visible,
.footer-directory-links a[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-3px);
}

.footer-signature {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(54px, 7vw, 84px);
  color: rgba(244, 245, 237, 0.72);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-signature .footer-brand {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

@media (max-width: 760px) {
  body:not(.inner-page) .home-showcase > .showcase-disclosure,
  body:not(.inner-page) .home-showcase > .showcase-direct {
    background: rgba(255, 253, 247, 0.34);
    -webkit-backdrop-filter: blur(14px) saturate(0.9);
    backdrop-filter: blur(14px) saturate(0.9);
  }

  footer {
    min-height: 530px;
    padding-top: 122px;
  }

  .footer-directory,
  .footer-signature {
    width: calc(100% - 36px);
  }

  .footer-directory {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-directory-label {
    padding-top: 0;
  }

  .footer-directory-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
  }

  .footer-directory-links a {
    min-height: 52px;
    font-size: 14px;
  }

  .footer-signature {
    margin-top: 54px;
  }
}

/* ========================================
   Soft directory + afterglow sunset V28
======================================== */

/* Ivory fill reads on the tree; the blue-green edge reads on pale clouds. */
body:not(.inner-page) .hero-name,
body:not(.inner-page) .hero-name .typing-line {
  color: #f7e9cf;
  -webkit-text-stroke: clamp(0.75px, 0.08vw, 1.45px) rgba(25, 79, 79, 0.82);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(22, 76, 77, 0.55),
    0 10px 30px rgba(31, 71, 73, 0.2);
}

body:not(.inner-page) .typing-caret {
  background: #f7e9cf;
  box-shadow: 0 0 0 1px rgba(25, 79, 79, 0.58);
}

/* Keep the scroll instruction away from the right-hand trunk. */
body:not(.inner-page) .home-scroll-cue {
  right: auto;
  left: var(--world-edge);
}

/* Three compact rows form one centred directory instead of three frosted cards. */
body:not(.inner-page) .home-showcase {
  min-height: 0;
  padding-top: clamp(24px, 3.2vw, 48px);
  padding-bottom: clamp(24px, 3.2vw, 48px);
}

body:not(.inner-page) .home-showcase-about {
  margin-top: clamp(150px, 17vw, 280px);
}

body:not(.inner-page) .home-showcase-skills {
  padding-bottom: clamp(100px, 12vw, 180px);
}

body:not(.inner-page) .home-showcase > .showcase-disclosure,
body:not(.inner-page) .home-showcase > .showcase-direct {
  position: relative;
  isolation: isolate;
  width: min(100%, 1040px);
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
body:not(.inner-page) .home-showcase > .showcase-direct::before {
  position: absolute;
  inset: -26px -7%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 254, 249, 0.72) 0%,
    rgba(255, 254, 249, 0.48) 32%,
    rgba(255, 254, 249, 0.18) 60%,
    transparent 79%
  );
  content: "";
  filter: blur(21px);
  opacity: 0.88;
  pointer-events: none;
}

body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-preview,
body:not(.inner-page) .showcase-direct > * {
  position: relative;
  z-index: 1;
}

body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-direct {
  min-height: clamp(92px, 9vw, 128px);
}

/* Projects takes place after sunset: a fading horizon between day and night. */
.projects-page {
  --inner-paper: #6e6571;
  --inner-ink: #fff7e8;
  --inner-copy: #fff4e4;
  --inner-muted: #ead9cf;
  --inner-line: rgba(255, 239, 218, 0.22);
  color: var(--inner-ink);
  background: #3f5161;
}

.projects-page .page-shell {
  background:
    linear-gradient(
      180deg,
      #536577 0%,
      #696579 25%,
      #855763 47%,
      #89545f 59%,
      #645b6b 78%,
      #435765 100%
    );
}

.projects-page .site-header {
  background: rgba(58, 70, 84, 0.76);
  border-bottom-color: rgba(255, 239, 218, 0.14);
}

.projects-page .site-header .logo,
.projects-page .site-header nav a {
  color: #fff1df;
}

.projects-page .site-header nav a::after {
  background: linear-gradient(90deg, #d6a081, #c9879a);
}

.projects-page .detail-title,
.projects-page .group-heading h2,
.projects-page .project-row h3 {
  color: #fff0dc !important;
}

.projects-page .detail-lead,
.projects-page .research-overview p,
.projects-page .project-row p,
.projects-page .compact-group .empty-message,
.projects-page .project-directory a,
.projects-page .project-meta,
.projects-page .row-arrow,
.projects-page .row-status,
.projects-page .group-label,
.projects-page .page-next span,
.projects-page .page-next a {
  color: var(--inner-copy);
}

.projects-page .project-parallax-research .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(218, 133, 92, 0.3), transparent);
}

.projects-page .project-parallax-games .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(194, 99, 126, 0.28), transparent);
}

.projects-page .project-parallax-fun .project-scene::before {
  background: linear-gradient(180deg, transparent, rgba(190, 155, 89, 0.23), transparent);
}

@media (max-width: 760px) {
  body:not(.inner-page) .home-scroll-cue {
    right: auto;
    left: var(--world-edge);
  }

  body:not(.inner-page) .home-showcase-about {
    margin-top: 118px;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure,
  body:not(.inner-page) .home-showcase > .showcase-direct {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
  body:not(.inner-page) .home-showcase > .showcase-direct::before {
    inset: -18px -11%;
    filter: blur(17px);
  }
}

/* ========================================
   Unified home directory V29 — final layer
======================================== */

/* 明るい水色を、濃い青緑の細い縁で空と木の両方から分離する。 */
body:not(.inner-page) .hero-name,
body:not(.inner-page) .hero-name .typing-line {
  color: #c7edf4;
  -webkit-text-stroke: clamp(0.8px, 0.085vw, 1.5px) rgba(18, 77, 83, 0.92);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(17, 72, 78, 0.64),
    0 9px 28px rgba(29, 73, 78, 0.22);
}

body:not(.inner-page) .typing-caret {
  background: #c7edf4;
  box-shadow: 0 0 0 1px rgba(18, 77, 83, 0.72);
}

/* 3項目を、同じ幅・同じ軸・連続した区切りを持つ一つの目次にする。 */
body:not(.inner-page) .home-showcase {
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body:not(.inner-page) .home-showcase-about {
  margin-top: clamp(150px, 17vw, 280px);
}

body:not(.inner-page) .home-showcase-skills {
  margin-bottom: clamp(110px, 13vw, 190px);
  padding-bottom: 0;
}

body:not(.inner-page) .home-showcase > .showcase-disclosure,
body:not(.inner-page) .home-showcase > .showcase-direct {
  position: relative;
  isolation: isolate;
  align-self: flex-start;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(30px, 3.8vw, 52px) clamp(22px, 4vw, 58px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(42, 93, 94, 0.18);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:not(.inner-page) .home-showcase-about > .showcase-disclosure {
  border-top: 1px solid rgba(42, 93, 94, 0.18);
}

/* 個別カードではなく、重なり合う一つの柔らかな光として見せる。 */
body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
body:not(.inner-page) .home-showcase > .showcase-direct::before {
  position: absolute;
  inset: -14px -7%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 254, 249, 0.66) 0%,
    rgba(255, 254, 249, 0.42) 37%,
    rgba(255, 254, 249, 0.15) 64%,
    transparent 82%
  );
  content: "";
  filter: blur(18px);
  opacity: 0.88;
  pointer-events: none;
}

body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-direct {
  min-height: clamp(94px, 8vw, 122px);
  padding-top: 0;
  padding-bottom: 0;
}

body:not(.inner-page) .showcase-heading,
body:not(.inner-page) .showcase-preview,
body:not(.inner-page) .showcase-direct > * {
  position: relative;
  z-index: 1;
}

/* ホバー／フォーカス時に、色と左から伸びる下線で反応を返す。 */
body:not(.inner-page) .showcase-title {
  position: relative;
  display: block;
  width: fit-content;
  transition: color 0.32s ease, transform 0.32s ease;
}

body:not(.inner-page) .showcase-title::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4b9da6, #a9dfe9);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.inner-page) .showcase-heading:hover .showcase-title,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-title,
body:not(.inner-page) .showcase-disclosure[open] .showcase-title,
body:not(.inner-page) .showcase-direct:hover .showcase-title,
body:not(.inner-page) .showcase-direct:focus-visible .showcase-title {
  color: #2f7e86 !important;
  transform: translateX(6px);
}

body:not(.inner-page) .showcase-heading:hover .showcase-title::after,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-title::after,
body:not(.inner-page) .showcase-disclosure[open] .showcase-title::after,
body:not(.inner-page) .showcase-direct:hover .showcase-title::after,
body:not(.inner-page) .showcase-direct:focus-visible .showcase-title::after {
  transform: scaleX(1);
}

body:not(.inner-page) .showcase-toggle,
body:not(.inner-page) .showcase-direct > i {
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body:not(.inner-page) .showcase-heading:hover .showcase-toggle,
body:not(.inner-page) .showcase-heading:focus-visible .showcase-toggle,
body:not(.inner-page) .showcase-direct:hover > i,
body:not(.inner-page) .showcase-direct:focus-visible > i {
  color: #2f7e86;
  box-shadow: 0 0 25px rgba(190, 235, 242, 0.7);
}

/* 見出し行はその場に残し、追加項目だけを直下へ開く。 */
body:not(.inner-page) .showcase-preview {
  transform-origin: top center;
  animation: showcase-open-down 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes showcase-open-down {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body:not(.inner-page) .home-showcase-about {
    margin-top: 118px;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure,
  body:not(.inner-page) .home-showcase > .showcase-direct {
    padding: 27px 18px;
  }

  body:not(.inner-page) .home-showcase > .showcase-disclosure::before,
  body:not(.inner-page) .home-showcase > .showcase-direct::before {
    inset: -10px -10%;
    filter: blur(15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.inner-page) .showcase-title,
  body:not(.inner-page) .showcase-title::after,
  body:not(.inner-page) .showcase-preview {
    animation: none;
    transition: none;
  }
}
