:root {
  --white: #fffdf8;
  --paper: #ffffff;
  --sky: #dcebff;
  --sky-deep: #8fb6ef;
  --navy: #223554;
  --ink: #2f3f5f;
  --muted: #667794;
  --yellow: #ffe7a6;
  --yellow-deep: #f6c755;
  --line: #c6d9f8;
  --shadow: 0 18px 45px rgba(49, 79, 124, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 231, 166, 0.5) 0 90px, transparent 91px),
    linear-gradient(90deg, rgba(143, 182, 239, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(143, 182, 239, 0.13) 1px, transparent 1px),
    var(--white);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 2px dashed rgba(143, 182, 239, 0.35);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 6px;
  content: "";
  background: rgba(246, 199, 85, 0.45);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

.section {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  width: 100%;
  min-height: 720px;
  padding: 112px clamp(18px, 4vw, 48px) 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 76px 0 auto;
  height: min(42vw, 450px);
  min-height: 260px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.75), rgba(255, 253, 248, 0.2) 50%, rgba(255, 253, 248, 0.8)),
    url("assets/youtube-banner.png") center / cover no-repeat,
    linear-gradient(135deg, var(--sky), var(--white));
  border-bottom: 2px dashed rgba(143, 182, 239, 0.42);
}

.hero-bg::after,
.hero::after,
.atelier::before,
.message::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-bg::after {
  inset: auto 7% -18px auto;
  width: 120px;
  height: 86px;
  border: 3px solid rgba(34, 53, 84, 0.12);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-6deg);
}

.hero::after {
  right: 9%;
  bottom: 70px;
  width: 96px;
  height: 96px;
  background:
    linear-gradient(72deg, transparent 46%, var(--yellow-deep) 47% 53%, transparent 54%),
    linear-gradient(18deg, transparent 46%, var(--yellow-deep) 47% 53%, transparent 54%);
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 540px;
  align-items: end;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  width: min(670px, 100%);
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(90deg, rgba(198, 217, 248, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(198, 217, 248, 0.22) 1px, transparent 1px),
    rgba(255, 255, 255, 0.92);
  background-size: 26px 26px;
  border: 2px solid rgba(34, 53, 84, 0.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: #5277b7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.7vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.35;
}

.lead {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 800;
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 26px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(34, 53, 84, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(34, 53, 84, 0.16);
}

.button.primary {
  color: var(--paper);
  background: var(--navy);
}

.button.secondary {
  color: var(--navy);
  background: var(--yellow);
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: min(270px, 32vw);
  padding: 18px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid rgba(34, 53, 84, 0.18);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(143, 182, 239, 0.45);
  transform: rotate(2deg);
}

.hero-note span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-note strong {
  display: block;
  line-height: 1.5;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.notebook-panel,
.message-panel,
.youtube-card,
.profile-card,
.coming-soon-panel,
.work-card,
.timeline-item {
  background: rgba(255, 255, 255, 0.93);
  border: 2px solid rgba(34, 53, 84, 0.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notebook-panel {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(143, 182, 239, 0.28) 32px),
    rgba(255, 255, 255, 0.93);
}

.notebook-panel::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px;
  width: 2px;
  content: "";
  background: rgba(246, 199, 85, 0.8);
}

.notebook-panel p,
.message-panel p,
.youtube-card p,
.profile-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.atelier::before {
  right: 4%;
  top: 70px;
  width: 130px;
  height: 44px;
  border-top: 4px solid rgba(143, 182, 239, 0.55);
  border-radius: 50%;
  transform: rotate(-7deg);
}

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

.work-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  overflow: hidden;
}

.work-card::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 98px;
  height: 98px;
  content: "";
  background: var(--sky);
  border: 2px dashed var(--sky-deep);
  border-radius: 50%;
  opacity: 0.55;
}

.work-card p {
  color: var(--muted);
}

.coming-soon-panel {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
}

.coming-soon-panel::after {
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  content: "";
  background: var(--sky);
  border: 2px dashed var(--sky-deep);
  border-radius: 50%;
  opacity: 0.55;
}

.coming-soon-panel > * {
  position: relative;
  z-index: 1;
}

.coming-soon-panel p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
}

.card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(143, 182, 239, 0.65);
}

.card-icon.pencil {
  background:
    linear-gradient(135deg, transparent 43%, var(--navy) 44% 48%, transparent 49%),
    var(--yellow);
}

.card-icon.comic {
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 47%, rgba(34, 53, 84, 0.25) 48% 52%, transparent 53%),
    linear-gradient(transparent 47%, rgba(34, 53, 84, 0.25) 48% 52%, transparent 53%),
    var(--sky);
}

.card-icon.star {
  clip-path: polygon(50% 3%, 61% 35%, 96% 35%, 67% 55%, 78% 90%, 50% 68%, 22% 90%, 33% 55%, 4% 35%, 39% 35%);
  border-radius: 0;
}

.road {
  width: min(980px, calc(100% - 36px));
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 107px;
  width: 3px;
  content: "";
  background: repeating-linear-gradient(to bottom, var(--sky-deep) 0 10px, transparent 10px 18px);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 24px;
}

.timeline-item::before {
  position: absolute;
  top: 30px;
  left: 97px;
  width: 22px;
  height: 22px;
  content: "";
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper);
}

.timeline-item time {
  color: #5277b7;
  font-weight: 900;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.youtube-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 52px);
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 231, 166, 0.7) 0 85px, transparent 86px),
    linear-gradient(135deg, rgba(220, 235, 255, 0.92), rgba(255, 255, 255, 0.95));
}

.youtube-card::after {
  position: absolute;
  right: 34px;
  bottom: 24px;
  width: 160px;
  height: 96px;
  content: "";
  border: 3px solid rgba(34, 53, 84, 0.16);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-8deg);
}

.speech {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.speech p {
  margin-bottom: 24px;
}

.profile-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
}

.profile-image-wrap {
  position: relative;
  aspect-ratio: 1;
  padding: 10px;
  background: var(--sky);
  border: 2px dashed var(--sky-deep);
  border-radius: 50%;
}

.profile-image-wrap::after {
  position: absolute;
  right: -8px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  content: "";
  background: var(--yellow);
  border: 2px solid var(--navy);
  clip-path: polygon(50% 3%, 61% 35%, 96% 35%, 67% 55%, 78% 90%, 50% 68%, 22% 90%, 33% 55%, 4% 35%, 39% 35%);
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--paper));
}

.profile-image-wrap img.is-missing {
  opacity: 0;
}

.profile-body ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.profile-body li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(220, 235, 255, 0.48);
  border-radius: var(--radius);
}

.profile-body li span {
  color: var(--navy);
  font-weight: 900;
}

.message {
  padding-top: 48px;
}

.message::before {
  left: 8%;
  top: 28px;
  width: 76px;
  height: 76px;
  border: 3px dashed rgba(246, 199, 85, 0.75);
  border-radius: 50%;
}

.message-panel {
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.message-panel p {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  display: grid;
  gap: 6px;
  padding: 34px 18px 42px;
  color: var(--paper);
  text-align: center;
  background: var(--navy);
}

.site-footer p {
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid rgba(34, 53, 84, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 64px 0;
  }

  .hero {
    min-height: 640px;
    padding-top: 96px;
  }

  .hero-bg {
    top: 66px;
    height: 170px;
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.45), rgba(255, 253, 248, 0.1) 50%, rgba(255, 253, 248, 0.45)),
      url("assets/youtube-banner.png") center / contain no-repeat,
      linear-gradient(135deg, var(--sky), var(--white));
  }

  .hero-inner {
    min-height: 500px;
  }

  .hero-copy {
    margin-top: 132px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 320px);
    margin: 18px 0 0 auto;
  }

  .gallery-grid,
  .coming-soon-panel,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .coming-soon-panel .card-icon {
    margin-bottom: 0;
  }

  .profile-image-wrap {
    width: min(230px, 72vw);
    margin: 0 auto;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 58px;
  }

  .timeline-item::before {
    left: 12px;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    max-width: 9em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 620px;
  }

  .hero-bg {
    height: 138px;
    min-height: 0;
  }

  .hero-copy {
    padding: 22px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1.16;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.28;
  }

  .lead {
    font-size: 1.02rem;
  }

  .notebook-panel {
    padding-left: 52px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .profile-body li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
