:root {
  --paper: #fff; --ink: #493b34; --muted: #736c67; --line: #e8e4e0;
  --blue: #247d93; --coral: #b6533d; --gold: #916719;
  --hand: 'Yomogi', 'M PLUS Rounded 1c', cursive; --english-hand: 'Gaegu', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'M PLUS Rounded 1c', system-ui, sans-serif; font-size: 1rem; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
::selection { background: #fae7b6; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.wrap, .site-header { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.handwritten { font-family: var(--hand); }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 20px; background: white; border: 2px solid var(--ink); }
.skip-link:focus { top: 10px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: block; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--english-hand); font-weight: 700; font-size: 2rem; line-height: 1.15; letter-spacing: -.05em; }
.brand-name > span:nth-child(1) { color: var(--blue); }
.brand-name > span:nth-child(2) { color: var(--coral); }
.brand-name > span:nth-child(3) { color: var(--gold); }
.brand-kana { display: block; margin: 5px 0 0 3px; font-size: .75rem; letter-spacing: .12em; }
nav { display: flex; flex-wrap: wrap; gap: 28px; }
nav a { padding: 8px 0; font-size: .875rem; border-bottom: 2px solid transparent; }
nav a:first-child { font-weight: 700; }
nav a:hover { border-color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: center; padding-top: 38px; padding-bottom: 42px; }
.hero-heading { display: grid; grid-template-columns: 1fr; gap: 24px; min-width: 0; }
.hero-room { min-width: 0; }
.hero-room img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 6px; }
.section-note { font-family: var(--english-hand); font-size: 1.25rem; color: var(--muted); line-height: 1.3; margin-bottom: 9px; }
h1 { font-size: clamp(1.9rem, 3.3vw, 2.65rem); font-weight: 700; line-height: 1.65; letter-spacing: 0; }
.marker { text-decoration: underline; text-decoration-color: #efd186; text-decoration-thickness: 5px; text-underline-offset: 9px; }
.hero-intro { color: var(--muted); line-height: 2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.6; font-weight: 700; }
.section-lead { color: var(--muted); font-size: .875rem; }
.apps { padding-top: 12px; padding-bottom: 68px; }
.apps .section-note { color: var(--coral); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { --accent: var(--coral); --tint: #fff5f0; background: #fff; border: 1.5px solid #b5a49a; border-radius: 16px 19px 17px 14px; padding: 22px; min-width: 0; }
.app-card--count { --accent: var(--blue); --tint: #f0f8fa; }
.app-card--calendar { --accent: var(--gold); --tint: #fff9e9; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.app-index { font-family: var(--english-hand); font-size: 1.3rem; color: var(--muted); }
.status { font-size: .875rem; color: var(--accent); background: var(--tint); border-radius: 30px; padding: 3px 12px; }
.app-letter { display: flex; align-items: center; justify-content: center; min-height: 145px; margin-bottom: 22px; background: var(--tint); border-radius: 10px 13px 11px 14px; color: var(--accent); font-family: var(--english-hand); font-size: 5.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -.07em; }
.app-letter--count span { display: inline-block; }
.app-letter--count span:first-child { transform: rotate(-8deg) translateY(4px); }
.app-letter--count span:last-child { transform: rotate(8deg); }
.app-card h3 { font-size: clamp(1.2rem, 1.9vw, 1.65rem); font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.app-foot { font-family: var(--english-hand); font-size: 1rem; color: var(--muted); margin-top: 8px; }
.about { border-top: 1px solid var(--line); padding-top: 38px; }
.about-layout { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.about h2 { font-size: 1.5rem; margin-bottom: 16px; }
.about-paper > p { font-size: 1rem; margin-top: 12px; }
.about-paper .signature { font-family: var(--english-hand); font-size: 1.35rem; }
.working-art { width: 100%; max-width: 380px; justify-self: end; }
.cat-composition { display: flex; align-items: end; justify-content: center; gap: 0; }
.cat-composition .cat-cutout { width: 34%; height: auto; aspect-ratio: 1; object-fit: contain; flex-shrink: 1; }
.cat-composition .cat-cutout--piko { width: 39%; }
.cat-composition .cat-cutout--pon { width: 30%; }
.working-art figcaption { text-align: center; font-size: .875rem; color: var(--muted); margin-top: 10px; }
.team { padding-top: 32px; padding-bottom: 48px; }
.team-details { border-block: 1px solid var(--line); }
.team-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; cursor: pointer; list-style: none; font-size: .875rem; }
.team-details summary::-webkit-details-marker { display: none; }
.team-details summary::after { content: '+'; font-size: 1.3rem; }
.team-details[open] summary::after { content: '−'; }
.team-details summary:hover { color: var(--blue); }
.details-hint { margin-left: auto; color: var(--muted); }
.team-details[open] .details-hint { display: none; }
.member-portrait { width: 100%; height: 180px; display: flex; align-items: end; justify-content: center; margin-bottom: 20px; }
.member-portrait img { width: auto; max-width: 100%; height: 160px; object-fit: contain; }
.member--piko .member-portrait img { height: 180px; }
.member--pon .member-portrait img { height: 145px; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 28px; }
.member { --member-ink: var(--blue); border-top: 1px dashed var(--line); padding-top: 16px; }
.member--pan { --member-ink: var(--coral); }
.member--pon { --member-ink: var(--gold); }
.role { font-size: .875rem; color: var(--member-ink); font-weight: 700; }
.member h3 { font-family: var(--hand); font-size: 1.65rem; margin: 4px 0 10px; }
.member h3 span { font-family: var(--english-hand); font-size: 1rem; color: var(--muted); margin-left: 8px; }
.member-aside { font-size: 1rem; color: var(--member-ink); margin-top: 12px; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 28px; }
.footer-brand { font-family: var(--english-hand); font-size: 1.35rem; font-weight: 700; }
footer p { color: var(--muted); font-size: .75rem; }
.pon-launchpad { position: fixed; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.pon-launchpad[hidden] { display: none; }
.pon-rocket { --pon-width: 118px; position: absolute; right: calc(40px + env(safe-area-inset-right)); bottom: 0; width: var(--pon-width); height: calc(var(--pon-width) * .61); border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; pointer-events: auto; }
.pon-rocket:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 14px 14px 0 0; }
.pon-rocket__sprite { position: absolute; inset: 0 0 auto; width: 100%; transform-origin: center 28%; pointer-events: none; }
.pon-rocket__sprite img { width: 100%; height: auto; user-select: none; }
.pon-rocket__hint, .pon-rocket__rumble { position: absolute; right: calc(100% + 4px); bottom: 14px; white-space: nowrap; font-family: var(--hand); font-size: .875rem; line-height: 1.4; pointer-events: none; }
.pon-rocket__hint { padding: 4px 8px; background: rgb(255 255 255 / .94); border: 1px solid var(--line); border-radius: 10px; }
.pon-rocket__rumble { display: none; right: auto; left: calc(100% + 5px); top: 8px; bottom: auto; writing-mode: vertical-rl; text-orientation: mixed; color: #614532; font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; }
.pon-rocket[data-state="rumbling"] .pon-rocket__sprite { animation: pon-rumble 90ms linear infinite; }
.pon-rocket[data-state="rumbling"] .pon-rocket__rumble { display: block; animation: pon-rumble 120ms linear infinite; }
.pon-rocket:not([data-state="idle"]) .pon-rocket__hint { opacity: 0; }
.pon-rocket[data-state="flying"] .pon-rocket__sprite { animation: pon-liftoff 1100ms cubic-bezier(.55, 0, .8, .45) both; }
.pon-rocket[data-state="flying"] .pon-rocket__rumble { display: block; animation: pon-liftoff 1100ms cubic-bezier(.55, 0, .8, .45) both; }
html.pon-is-scrolling { scroll-behavior: auto !important; }
body.has-pon-rocket footer { padding-bottom: 110px; }
@keyframes pon-rumble {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-2px, 1px) rotate(-1deg); }
  75% { transform: translate(2px, -1px) rotate(1deg); }
}
@keyframes pon-liftoff {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100vh - 340px)); }
}
@media (max-width: 640px) {
  .pon-rocket { --pon-width: 100px; right: calc(36px + env(safe-area-inset-right)); }
  .pon-rocket__rumble { font-size: 1.125rem; }
  .pon-rocket__hint { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pon-rocket__sprite, .pon-rocket__rumble { animation: none !important; }
}
.mobile-break { display: none; }
@media (max-width: 900px) {
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
  .wrap, .site-header { width: calc(100% - 48px); }
  nav { gap: 16px; }
  .brand-name { font-size: 1.8rem; }
  .app-grid { gap: 16px; }
  .app-card { padding: 18px; }
  .section-heading { align-items: start; }
  .section-lead { max-width: 250px; }
  .about-layout { gap: 24px; }
  .desktop-break { display: none; }
}
@media (max-width: 640px) {
  .wrap, .site-header { width: calc(100% - 36px); }
  .site-header { flex-direction: column; align-items: start; gap: 14px; padding: 18px 0 10px; }
  .brand-name { font-size: 1.9rem; }
  nav { width: 100%; gap: 22px; }
  nav a { padding: 6px 0; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 32px; }
  .hero-heading { grid-template-columns: 1fr; gap: 18px; }
  h1 { font-size: clamp(1.35rem, 6.1vw, 2.35rem); }
  .hero h1 { font-size: clamp(1.35rem, 6.1vw, 2.35rem); }
  .hero-intro br { display: none; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-lead { max-width: none; margin-top: 8px; }
  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 18px; align-items: center; padding: 18px; }
  .app-top { grid-column: 1 / -1; margin-bottom: 12px; }
  .app-letter { grid-column: 1; grid-row: 2 / 4; margin: 0; min-height: 94px; font-size: 3.8rem; }
  .app-card h3 { align-self: end; font-size: 1.25rem; }
  .app-foot { align-self: start; margin-top: 2px; }
  .apps { padding-bottom: 40px; }
  .about { padding-top: 28px; }
  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .about h2 { font-size: 1.3rem; }
  .working-art { max-width: 280px; justify-self: center; }
  .member-grid { grid-template-columns: 1fr; gap: 24px; }
  .team { padding-top: 26px; padding-bottom: 28px; }
  .member-portrait { height: 150px; margin-bottom: 12px; }
  .member-portrait img { height: 135px; }
  .member--piko .member-portrait img { height: 150px; }
  .member--pon .member-portrait img { height: 125px; }
  .mobile-break { display: block; }
  .footer-brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
