/* うみねこ — site styles */

@font-face {
  font-family: "Pretendard JP";
  src: url("/assets/fonts/PretendardJP-subset.woff2") format("woff2-variations"),
       url("/assets/fonts/PretendardJP-subset.woff2") format("woff2");
  font-weight: 45 930;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-Italic-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #0b2bb0;
  --blue-deep: #081f86;
  --sky: #9fd4ff;
  --paper: #f3f0e8;
  --paper-2: #e9e4d8;
  --card: #fff;
  --ink: #121212;
  --night: #0b0b0d;
  --radius-lg: 28px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --gutter: clamp(20px, 6vw, 56px);
  --header-h: 60px;
  --font: "Pretendard JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
}

/* Each block sets its own foreground colours */
.tone-paper { --fg: var(--ink); --fg-2: #4a4843; --fg-3: #6e6a62; --rule: rgba(18, 18, 18, .13); --accent: var(--blue); background: var(--paper); color: var(--fg); }
.tone-blue { --fg: #fff; --fg-2: rgba(255, 255, 255, .8); --fg-3: rgba(255, 255, 255, .62); --rule: rgba(255, 255, 255, .24); --accent: var(--sky); background: var(--blue); color: var(--fg); }
.tone-night { --fg: #f3f3f1; --fg-2: rgba(243, 243, 241, .7); --fg-3: rgba(243, 243, 241, .52); --rule: rgba(255, 255, 255, .13); --accent: var(--sky); background: var(--night); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3, .hero-lead, .p-tagline, .name-lead, .footer-vision { word-break: auto-phrase; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
em { font-style: normal; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent, var(--blue)); outline-offset: 3px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ph { display: inline-block; }
html:not(.js) .js-only { display: none !important; }

.ico {
  flex: none;
  width: 1.15em; height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  z-index: 100;
  top: 12px; left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-light { background: #fff; color: var(--blue); }
.tone-night .btn-light { color: var(--night); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .btn-light:hover { background: #e8eeff; }
  .btn-blue:hover { background: var(--blue-deep); }
  .btn-ink:hover { background: #33312d; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.text-link .ico { transition: transform .2s var(--ease); }
@media (hover: hover) { .text-link:hover .ico { transform: translateX(3px); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s, background-color .2s;
}
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .icon-btn:not(:disabled):hover { background: rgba(127, 127, 127, .12); } }

.text-btn {
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  color: var(--ink);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.site-header[data-tone="blue"], .site-header[data-tone="night"] { color: #fff; }
.site-header.is-scrolled { backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
.site-header.is-scrolled[data-tone="paper"] { background: rgba(243, 240, 232, .9); box-shadow: 0 1px 0 rgba(18, 18, 18, .1); }
.site-header.is-scrolled[data-tone="blue"] { background: rgba(11, 43, 176, .9); box-shadow: 0 1px 0 rgba(255, 255, 255, .14); }
.site-header.is-scrolled[data-tone="night"] { background: rgba(11, 11, 13, .88); box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100% - var(--gutter) * 2, 1120px);
  height: var(--header-h);
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .04em; }
.header-nav { display: none; margin-left: auto; }
.header-nav ul { display: flex; gap: 2px; }
.header-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  opacity: .72;
  transition: opacity .2s;
}
.header-nav a[aria-current="true"], .header-nav a:hover { opacity: 1; }
.header-cta {
  display: none;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .35s, color .35s;
}
.site-header[data-tone="blue"] .header-cta { background: #fff; color: var(--blue); }
.site-header[data-tone="night"] .header-cta { background: #fff; color: var(--night); }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  margin: 0 -10px 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.js .menu-btn { display: grid; place-items: center; }
.menu-icon, .menu-icon::before {
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-icon { position: relative; transform: translateY(-4px); }
.menu-icon::before { content: ""; position: absolute; top: 8px; }
.header-progress { position: absolute; inset: auto 0 0; height: 2px; overflow: hidden; pointer-events: none; }
.header-progress span {
  display: block;
  height: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity .3s;
}
.is-scrolled .header-progress span { opacity: .9; }
@media (min-width: 1000px) {
  .header-nav { display: block; }
  .header-cta { display: inline-flex; }
  .js .menu-btn { display: none; }
}

/* ---------- menu (dialog) ---------- */

.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}
.menu::backdrop { background: rgba(11, 11, 13, .3); }
.menu[open] { animation: menu-in .4s var(--ease); }
.menu.is-closing { animation: menu-out .2s ease forwards; }
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-out { to { opacity: 0; } }
.menu-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: min(100% - var(--gutter) * 2, 1120px);
  margin-inline: auto;
  padding-bottom: 40px;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: -6px;
  padding: 0 6px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.menu-close span { position: relative; width: 18px; height: 18px; }
.menu-close span::before, .menu-close span::after {
  content: "";
  position: absolute;
  top: 8px; left: 0;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.menu-close span::after { transform: rotate(-45deg); }
.menu-list { position: relative; z-index: 1; margin-top: 20px; }
.menu-list li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.menu[open] .menu-list li { animation: menu-item .55s var(--ease) both; }
.menu[open] .menu-list li:nth-child(2) { animation-delay: .04s; }
.menu[open] .menu-list li:nth-child(3) { animation-delay: .08s; }
.menu[open] .menu-list li:nth-child(4) { animation-delay: .12s; }
.menu[open] .menu-list li:nth-child(5) { animation-delay: .16s; }
.menu[open] .menu-list li:nth-child(6) { animation-delay: .2s; }
@keyframes menu-item { from { opacity: 0; transform: translateY(14px); } }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  text-decoration: none;
}
.menu-num { min-width: 1.6em; color: var(--sky); font-family: var(--serif); font-size: 24px; font-style: italic; }
.menu-en { font-size: clamp(32px, 9.6vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.menu-ja { margin-left: auto; color: rgba(255, 255, 255, .66); font-size: 13px; font-weight: 700; }
.menu-foot { position: relative; z-index: 1; display: flex; gap: 24px; margin-top: 28px; font-size: 14px; font-weight: 700; opacity: .8; }
.menu-foot a { text-decoration: none; }
.menu-gull { position: absolute; right: -40px; bottom: 30px; width: 240px; height: auto; aspect-ratio: 773 / 688; color: rgba(255, 255, 255, .1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) 0 clamp(44px, 7vh, 96px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; flex: none; }
/* The mark fills whatever height the copy leaves free, so it never runs into the text */
.hero-mark {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  min-height: 170px;
  margin-bottom: 12px;
  pointer-events: none;
  translate: 0 calc(var(--py, 0) * 1px);
}
.mark-stage { position: absolute; top: 4%; bottom: 0; right: max(2vw, 8px); aspect-ratio: .8; }
.zero-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zero-text {
  fill: none;
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  font-family: var(--serif);
  font-size: 600px;
  font-style: italic;
  text-anchor: middle;
}
.zero-echo { opacity: 0; transform-box: fill-box; transform-origin: center; animation: echo 7s cubic-bezier(.25, .6, .35, 1) infinite; }
.zero-echo + .zero-echo { animation-delay: 3.5s; }
@keyframes echo {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.hero-flight {
  position: absolute;
  z-index: 1;
  top: 16%;
  left: -12%;
  width: 66%;
  animation: glide 8s ease-in-out infinite alternate;
}
.hero-gull { width: 100%; height: auto; aspect-ratio: 773 / 688; color: #fff; transform: rotate(-6deg); }
@keyframes glide {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(-8px, -10px) rotate(-2deg); }
  100% { transform: translate(-16px, 2px) rotate(1deg); }
}
.eyebrow { margin-bottom: 14px; color: var(--accent); font-family: var(--serif); font-size: clamp(22px, 5.6vw, 28px); font-style: italic; line-height: 1.2; }
.hero-title {
  font-size: clamp(30px, 9.4vw, 92px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hero-title .ln { display: block; }
.hero-title em { color: var(--sky); }
.js .hero-title .ln, .js .eyebrow, .js .hero-lead, .js .hero-actions { animation: rise 1s var(--ease) both; }
.js .hero-title .ln:nth-child(1) { animation-delay: .1s; }
.js .hero-title .ln:nth-child(2) { animation-delay: .18s; }
.js .hero-title .ln:nth-child(3) { animation-delay: .26s; }
.js .hero-lead { animation-delay: .42s; }
.js .hero-actions { animation-delay: .52s; }
.js .hero-mark { animation: mark-in 1.4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes mark-in { from { opacity: 0; scale: .96; } }
.hero-lead { max-width: 32em; margin-top: 20px; color: var(--fg-2); font-size: clamp(15px, 2vw, 19px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
@media (min-width: 1000px) {
  .hero { justify-content: center; padding-bottom: 0; }
  .hero-mark { position: absolute; top: 50%; right: max(var(--gutter), calc((100vw - 1120px) / 2)); width: min(40vw, 560px); height: min(72vh, 640px); margin: 0; transform: translateY(-50%); }
  .mark-stage { top: 0; right: 0; }
  .hero-flight { left: 2%; width: 58%; }
  .hero-inner > * { max-width: 58%; }
  .hero-title { font-size: clamp(48px, 4.8vw, 72px); }
}

/* ---------- sections ---------- */

.section { position: relative; padding-block: clamp(96px, 14vw, 176px); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; color: var(--fg); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sec-label .num { color: var(--accent); font-family: var(--serif); font-size: clamp(44px, 11vw, 72px); font-style: italic; font-weight: 400; line-height: .8; letter-spacing: -.02em; }
h2 {
  font-size: clamp(30px, 7.6vw, 60px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -.02em;
}
.lead { max-width: 36em; margin-top: 22px; color: var(--fg-2); font-size: clamp(16px, 1.9vw, 18px); line-height: 1.9; }

.js [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }

/* ---------- steppers (shared) ---------- */

.step-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.step-bars button { position: relative; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.step-bars button::before, .step-bars button::after {
  content: "";
  position: absolute;
  top: 10px; left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--rule);
}
.step-bars button::after {
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease), background-color .3s;
}
.step-bars button.is-done::after { transform: scaleX(1); }
.step-bars button[aria-current="step"]::after { background: var(--accent); transform: scaleX(1); }
.stepper-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-count { color: var(--fg-3); font-family: var(--serif); font-size: 20px; font-style: italic; }
html:not(.js) .stepper-ui { display: none !important; }
.js [data-items] { display: grid; }
.js [data-items] > li { grid-area: 1 / 1; }
.js [data-items] > li:not(.is-active) { visibility: hidden; }
.js [data-items] > li.is-active { animation: step-in .5s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
[data-stage] { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
html:not(.js) [data-stage] { cursor: default; }
.tap-hint {
  position: absolute;
  z-index: 2;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .4s;
}
.hint-click { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-touch { display: none; }
  .hint-click { display: inline; }
}
.is-touched .tap-hint { opacity: 0; }

/* ---------- 01 why / story ---------- */

.story { padding: 14px; border-radius: var(--radius-lg); background: var(--card); }
.story-stage {
  position: relative;
  height: clamp(280px, 78vw, 440px);
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}
.story-stage > * { transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); }
.core {
  position: absolute;
  top: 50%; left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 43, 176, .2), rgba(11, 43, 176, 0) 65%);
  transform: translate(-50%, -50%);
}
.thoughts { position: absolute; inset: 0; }
.thought {
  position: absolute;
  padding: 8px 14px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(18, 18, 18, .06), 0 10px 24px -14px rgba(18, 18, 18, .3);
  animation: float 6s ease-in-out infinite;
}
.t1 { top: 15%; left: 6%; }
.t2 { top: 34%; right: 5%; animation-delay: -1.5s; }
.t3 { top: 54%; left: 4%; animation-delay: -3s; }
.t4 { top: 73%; right: 7%; animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -5px; } }
.spoken { position: absolute; left: 50%; bottom: 17%; opacity: 0; transform: translate(-50%, 14px) scale(.94); }
.spoken span {
  display: block;
  padding: 10px 18px;
  border-radius: 18px 18px 18px 6px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  white-space: nowrap;
}
/* Steps 3 and 4: the same feeling, told two ways */
.talks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 4vw, 22px);
  padding: 16px clamp(14px, 4.4vw, 32px);
  opacity: 0;
  transform: translateY(12px);
}
.talk-row { display: grid; gap: 6px; }
.talk-who { display: flex; align-items: center; gap: 6px; color: #6e6a62; font-size: 12px; font-weight: 700; }
.talk-av { width: 16px; height: 16px; border-radius: 50%; background: #a9a397; }
.talk-hard .talk-av { background: var(--blue); }
.talk-say, .talk-reply {
  max-width: 90%;
  padding: 7px 13px;
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  line-height: 1.55;
}
.talk-say { justify-self: start; border-radius: 16px 16px 16px 5px; background: var(--ink); color: #fff; }
.talk-reply { justify-self: end; border-radius: 16px 16px 5px 16px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 18, .06); }
.talk-say.after { display: flex; align-items: flex-start; gap: 6px; background: var(--blue); }
.talk-say.after .ico { width: 15px; height: 15px; margin-top: 3px; color: var(--sky); }
.talk-swap { display: grid; }
.talk-swap-say { justify-items: start; }
.talk-swap-reply { justify-items: end; }
.talk-hard .after { display: none; }
.talks .talk-row > .talk-reply, .talks .talk-swap-reply { opacity: 0; transition: opacity .5s var(--ease) .45s; }
.story[data-step="3"] .talks, .story[data-step="4"] .talks { opacity: 1; transform: none; }
.story[data-step="3"] .talk-row > .talk-reply, .story[data-step="3"] .talk-swap-reply,
.story[data-step="4"] .talk-row > .talk-reply, .story[data-step="4"] .talk-swap-reply { opacity: 1; }
.story[data-step="4"] .talk-hard .before { display: none; }
.story[data-step="4"] .talk-say.after { display: flex; animation: talk-in .5s var(--ease) .1s both; }
.story[data-step="4"] .talk-reply.after { display: block; animation: talk-in .5s var(--ease) .7s both; }
@keyframes talk-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.story[data-step="2"] .core { opacity: .35; transform: translate(-50%, -50%) scale(.5); }
.story[data-step="2"] .thought { opacity: .22; filter: blur(1.5px); }
.story[data-step="2"] .spoken { opacity: 1; transform: translate(-50%, 0) scale(1); }
.story[data-step="3"] .core, .story[data-step="4"] .core { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.story[data-step="3"] .thoughts, .story[data-step="4"] .thoughts { opacity: 0; transform: scale(.92); }
.story-text { padding: 22px 6px 6px; }
.story-steps h3, .concept-steps h3 { font-size: clamp(20px, 5.2vw, 26px); font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.story-steps p, .concept-steps p { margin-top: 10px; color: var(--fg-2); line-height: 1.9; }
.story .stepper-nav { margin-top: 22px; }
html:not(.js) .story-steps, html:not(.js) .concept-steps { display: grid; gap: 24px; counter-reset: s; }
html:not(.js) .story-steps li::before, html:not(.js) .concept-steps li::before {
  counter-increment: s;
  content: "0" counter(s);
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}
@media (min-width: 960px) {
  .story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px; padding: 24px; }
  .story .step-bars { grid-column: 1 / -1; }
  .story-stage { height: 460px; margin-top: 14px; }
  .talks { gap: 28px; padding: 32px 56px; }
  .talk-row { gap: 8px; }
  .talk-who { font-size: 13px; }
  .talk-say, .talk-reply { padding: 9px 16px; font-size: 16px; }
  .story-text { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 16px 8px 0; }
  .t1 { top: 16%; left: 10%; }
  .t2 { top: 31%; right: 10%; }
  .t3 { top: 57%; left: 8%; }
  .t4 { top: 72%; right: 12%; }
}

/* ---------- 02 vision ---------- */

.principles { border-bottom: 1px solid var(--rule); }
.principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--rule);
}
.principle-num { grid-row: span 2; color: var(--accent); font-family: var(--serif); font-size: 34px; font-style: italic; line-height: 1; }
.principle h3 { font-size: clamp(20px, 5.2vw, 26px); font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.principle p:last-child { margin-top: 10px; color: var(--fg-2); }
@media (min-width: 960px) {
  .vision .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: end; max-width: none; }
  .vision .sec-label { grid-column: 1 / -1; }
  .vision .lead { margin-top: 0; }
  .principles { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-bottom: 0; }
  .principle { grid-template-columns: 1fr; padding: 32px 0 0; }
  .principle-num { grid-row: auto; margin-bottom: 22px; font-size: 44px; }
}

/* ---------- 03 products ---------- */

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.product + .product { margin-top: clamp(72px, 12vw, 136px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--rule); }
.product-num { margin-bottom: 18px; color: var(--accent); font-family: var(--serif); font-size: 30px; font-style: italic; line-height: 1; }
.p-title { display: flex; align-items: center; gap: 16px; }
.p-mark { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(18, 18, 18, .08); }
.p-name { font-size: clamp(30px, 7vw, 40px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.p-role { margin-top: 4px; color: var(--fg-3); font-size: 13px; font-weight: 700; }
.p-role span::before { content: "／"; margin: 0 4px; }
.p-tagline { margin-top: 24px; font-size: clamp(19px, 4.8vw, 24px); font-weight: 800; line-height: 1.5; letter-spacing: -.01em; }
.p-desc { margin-top: 10px; color: var(--fg-2); }

.p-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.product-zetter .p-device {
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 72% 14%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1.5px 1.5px at 86% 46%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 8% 64%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(80% 60% at 50% 0%, #1d2a6b, transparent 70%),
    #0a0c1c;
}
.product-amehare .p-device { background: radial-gradient(circle at 86% 12%, #f9d05e 0 34px, transparent 35px), #7db9de; }
.device {
  position: relative;
  width: min(100% - 48px, 264px);
  height: 440px;
  padding: 9px 9px 0;
  border-radius: 44px 44px 0 0;
  background: #0b0c0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.device::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 19px; left: 50%;
  width: 74px; height: 22px;
  margin-left: -37px;
  border-radius: 999px;
  background: #0b0c0e;
}
.screen-area { position: relative; height: 100%; overflow: hidden; border-radius: 36px 36px 0 0; background: #fff; }
.device-note { order: 9; width: 100%; padding: 12px 16px; background: rgba(0, 0, 0, .28); color: rgba(255, 255, 255, .85); font-size: 11.5px; text-align: center; }
@media (min-width: 960px) {
  .p-device { padding: 48px 0 0; }
  .device { width: 290px; height: 560px; padding: 10px 10px 0; border-radius: 48px 48px 0 0; }
  .screen-area { border-radius: 38px 38px 0 0; }
}

.screen {
  position: absolute;
  inset: 0;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity .4s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
}
[data-step="1"] .s1, [data-step="2"] .s2, [data-step="3"] .s3 {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--ease) .05s, transform .6s var(--ease) .05s, visibility 0s;
}
.screen [style*="--i"] { opacity: 0; }
[data-step="1"] .s1 [style*="--i"], [data-step="2"] .s2 [style*="--i"], [data-step="3"] .s3 [style*="--i"] {
  animation: pop .5s var(--ease) both;
  animation-delay: calc(var(--i) * .3s + .2s);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen .ico { width: 16px; height: 16px; }

/* Zetter Cast (chat) */
.zc { display: flex; flex-direction: column; padding: 44px 0 14px; background: #050506; color: #e5e7eb; }
.zc-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.zc-bar .ico { width: 18px; height: 18px; color: #9ca3af; }
.zc-avatar { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, transparent 19%), linear-gradient(140deg, #bfe3ff, #3d8bff 70%, #1d4ed8); }
.zc-name { display: grid; line-height: 1.3; }
.zc-name b { color: #f9fafb; font-size: 13px; }
.zc-name small { color: #9ca3af; font-size: 10.5px; }
.zc-msgs { display: grid; align-content: start; gap: 8px; flex: 1; padding: 14px 12px; }
.zc-msg { max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 12.5px; }
.zc-msg.in { justify-self: start; border-bottom-left-radius: 6px; background: #1c1c1f; }
.zc-msg.out { justify-self: end; border-bottom-right-radius: 6px; background: #3d8bff; color: #fff; }
.zc-typing { display: flex; gap: 4px; padding: 11px 13px; }
.zc-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: typing 1.2s ease-in-out infinite; }
.zc-typing i:nth-child(2) { animation-delay: .15s; }
.zc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-3px); opacity: .5; } }
.zc-input { display: flex; align-items: center; justify-content: space-between; margin: 0 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: #1c1c1f; color: #6b7280; font-size: 12px; }
.zc-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3d8bff; color: #fff; }
.zc-send .ico { width: 15px; height: 15px; stroke-width: 2.2; }

/* Zetter SNS (timeline) */
.zs { padding-top: 42px; background: #fff; color: #1c1c1e; }
.zs-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 8px; }
.zs-top img { width: 22px; height: 22px; }
.zs-me { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ececee; color: #9a9aa0; }
.zs-me .ico { width: 15px; height: 15px; }
.zs-me-r { background: linear-gradient(140deg, #e8f4ff, #7cc4ff 60%, #3d8bff); }
.zs-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #e7e7e9; color: rgba(0, 0, 0, .5); font-size: 12px; font-weight: 600; text-align: center; }
.zs-tabs span { padding: 7px 0 9px; }
.zs-tabs .on { color: #1c1c1e; box-shadow: inset 0 -2.5px 0 #1c1c1e; }
.zs-post { display: flex; gap: 9px; padding: 10px 12px; border-bottom: 1px solid #e7e7e9; }
.zs-post > div { flex: 1; min-width: 0; }
.zs-av { flex: none; width: 32px; height: 32px; border-radius: 50%; }
.av-a { background: linear-gradient(140deg, #ffd9c2, #ff9a7a); }
.av-b { background: linear-gradient(140deg, #d6f2e8, #5cc2a0); }
.zs-who { display: flex; align-items: baseline; gap: 5px; font-size: 12px; }
.zs-who span { color: rgba(0, 0, 0, .5); font-size: 11px; }
.zs-topic { display: flex; align-items: center; gap: 3px; margin-top: 3px; color: #286aa8; font-size: 10.5px; }
.zs-topic .ico { width: 11px; height: 11px; }
.zs-acts { display: flex; justify-content: space-between; margin-top: 6px; padding-right: 4px; color: rgba(0, 0, 0, .5); font-size: 10.5px; }
.zs-acts span { display: inline-flex; align-items: center; gap: 3px; }
.zs-acts .ico { width: 14px; height: 14px; }
.zs-acts .liked { color: #f91880; }
.zs-acts .liked .ico { fill: currentColor; }
.zs-nav { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-around; height: 50px; padding-bottom: 6px; border-top: 1px solid #e7e7e9; background: #fff; color: #1c1c1e; }
.zs-nav .ico { width: 19px; height: 19px; stroke-width: 1.7; }
.zs-nav .on { stroke-width: 2.4; }
.zs-nav img { width: 19px; height: 19px; }
.zs-track { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 8px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px #e7e7e9; }
.zs-play { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1c1c1e; }
.zs-play::after { content: ""; position: absolute; top: 9px; left: 11px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.zs-track-meta { display: grid; gap: 3px; min-width: 0; font-size: 11.5px; }
.zs-wave { display: flex; align-items: center; gap: 2px; height: 14px; }
.zs-wave i { width: 2.5px; height: 40%; border-radius: 2px; background: #c7c7cc; animation: wave 1.1s ease-in-out infinite; }
.zs-wave i:nth-child(-n+6) { background: #1c1c1e; }
.zs-wave i:nth-child(3n) { animation-delay: -.3s; }
.zs-wave i:nth-child(3n+1) { animation-delay: -.6s; }
.zs-wave i:nth-child(4n) { animation-delay: -.8s; }
@keyframes wave { 50% { height: 100%; } }
.zs-art {
  height: 96px;
  margin-top: 7px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 38%, #fff 0 9px, transparent 10px),
    radial-gradient(circle at 72% 38%, #7cc4ff 0 26px, transparent 27px),
    radial-gradient(120% 90% at 20% 110%, #3d8bff, transparent 60%),
    linear-gradient(160deg, #e8f4ff, #c9e3ff);
}

/* あめ→はれ: はれ (main) and あめ (sub) themes follow the app's own colours */
.ah {
  --ah-hbg: #7db9de; --ah-hfg: #fff; --ah-bg: #fff; --ah-card: linear-gradient(180deg, #f7fafc, #fff);
  --ah-text: #4a4a4a; --ah-sub: #888; --ah-line: #c9dde9; --ah-hover: #dde8ef; --ah-accent: #f9d05e;
  --ah-nav: #fff; --ah-icon: #7db9de; --ah-icon-on: #5d9fc8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ah-bg);
  color: var(--ah-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
.ah-ame {
  --ah-hbg: #2d2d2d; --ah-hfg: #e0e0e0; --ah-bg: #000; --ah-card: #000;
  --ah-text: #e0e0e0; --ah-sub: #999; --ah-line: #585858; --ah-hover: #2a2a2a; --ah-accent: #4a90e2;
  --ah-nav: #1a1a1a; --ah-icon: #b0b0b0; --ah-icon-on: #8f8f8f;
}
.ah-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 34px 12px 0;
  background: var(--ah-hbg);
  color: var(--ah-hfg);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.ah-me { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ah-hover); color: var(--ah-text); }
.ah-me .ico { width: 15px; height: 15px; }
.ah-mark { width: 32px; height: 32px; color: var(--ah-accent); }
.ah-toggle { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.ah-toggle svg { width: 19px; height: 19px; }
.to-ame { background: #2d2d2d; color: #4a90e2; }
.to-hare { background: #7db9de; color: #f9d05e; }
.ah-dot { position: absolute; top: 2px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px #2d2d2d; }
[data-step="3"] .s3 .ah-dot { animation: dot-pulse 1.8s ease-in-out .9s 3; }
@keyframes dot-pulse { 50% { transform: scale(1.35); } }
.ah-list { flex: 1; min-height: 0; overflow: hidden; }
.ah-post { display: flex; gap: 8px; padding: 10px 11px; border-bottom: 1px solid var(--ah-line); background: var(--ah-card); }
.ah-post > div { flex: 1; min-width: 0; }
.ah-av { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.av-c { background: linear-gradient(140deg, #fde2c7, #f3b07c); }
.av-d { background: linear-gradient(140deg, #d8ecf8, #7db9de); }
.av-e { background: linear-gradient(140deg, #4b5563, #9ca3af); }
.av-f { background: linear-gradient(140deg, #374151, #6b8fb5); }
.av-g { background: linear-gradient(140deg, #fbe7ef, #d17da3); }
.av-me { background: linear-gradient(140deg, #cfe3d4, #889a82); }
.ah-meta { display: flex; align-items: baseline; gap: 4px; overflow: hidden; color: var(--ah-sub); font-size: 10.5px; white-space: nowrap; }
.ah-meta b { color: var(--ah-text); font-size: 11.5px; }
.ah-text { margin-top: 2px; font-size: 12.5px; line-height: 1.55; }
.ah-acts { display: flex; align-items: center; gap: 12px; margin: 5px 0 0 -6px; color: var(--ah-sub); font-size: 11px; }
.ah-acts span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 999px; }
.ah-acts i { font-style: normal; font-size: 12px; }
.ah-acts .ico { width: 13px; height: 13px; }
.ah-acts .tea-on { background: #4a90e2; color: #fff; font-weight: 700; }
.ah-acts .flower-on { background: #d8ecf8; color: #d17da3; font-weight: 700; }
.ah-nav { flex: none; display: flex; align-items: center; justify-content: space-around; height: 46px; border-top: 1px solid var(--ah-line); background: var(--ah-nav); color: var(--ah-icon); }
.ah-nav .ico { width: 19px; height: 19px; }
.ah-nav .on { color: var(--ah-icon-on); stroke-width: 2.4; }
.ah-fab { position: absolute; right: 12px; bottom: 58px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ah-accent); color: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.ah-fab .ico { width: 18px; height: 18px; stroke-width: 2; }

/* Writing a post: the sheet, the app's own hint, then the toast */
.ah-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); opacity: 0; }
.ah-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 12px; border-top: 1px solid #d7e1e8; border-radius: 14px 14px 0 0; background: #ebf1f5; transform: translateY(110%); }
.ah-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #d7e1e8; }
.ah-close { width: 20px; height: 20px; color: #4a4a4a; }
.ah-send { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f9d05e; color: #4a4a4a; }
.ah-send .ico { width: 16px; height: 16px; }
.ah-sheet-body { display: flex; gap: 8px; padding: 10px 0; }
.ah-editor { position: relative; flex: 1; min-height: 96px; font-size: 14px; line-height: 1.5; }
.ah-ph, .ah-typed { position: absolute; inset: 0; }
.ah-ph { color: #888; }
.ah-typed { color: #4a4a4a; opacity: 0; }
.ah .caret { background: #7db9de; }
.ah-sheet-foot { display: flex; align-items: center; justify-content: space-between; color: #888; font-size: 11px; }
.ah-sheet-foot .ico { width: 16px; height: 16px; }
.ah-chip {
  position: absolute;
  left: 50%;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--ah-line);
  border-radius: 999px;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}
.ah-chip i { width: 12px; height: 12px; border: 2px solid #d7e1e8; border-top-color: #7db9de; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ah-toast {
  position: absolute;
  left: 8px; right: 8px;
  bottom: 54px;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d7e1e8;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
}
.ah-toast span { justify-self: end; padding: 3px 9px; border: 1px solid rgba(53, 80, 106, .14); border-radius: 999px; background: #fff; color: #35506a; font-size: 11px; font-weight: 700; }
[data-step="1"] .s1 .ah-overlay { animation: ah-overlay 2.9s ease .2s both; }
[data-step="1"] .s1 .ah-sheet { animation: ah-sheet 2.9s var(--ease) .2s both; }
[data-step="1"] .s1 .ah-ph { animation: ah-out .3s ease 1.1s both; }
[data-step="1"] .s1 .ah-typed { animation: ah-in .35s ease 1.3s both; }
[data-step="1"] .s1 .ah-send { animation: ah-send .7s ease 1.9s both; }
[data-step="1"] .s1 .ah-chip { animation: ah-chip 1.1s ease 3s both; }
[data-step="1"] .s1 .ah-toast { animation: pop .5s var(--ease) 4s both; }
@keyframes ah-overlay { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ah-sheet { 0% { transform: translateY(110%); } 14%, 84% { transform: none; } 100% { transform: translateY(110%); } }
@keyframes ah-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ah-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ah-send { 50% { transform: scale(.9); box-shadow: 0 0 0 6px rgba(249, 208, 94, .35); } }
@keyframes ah-chip { 0% { opacity: 0; } 20%, 80% { opacity: 1; } 100% { opacity: 0; } }

.features { position: relative; display: grid; gap: 10px; }
.feature {
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.js .feature.is-active { box-shadow: inset 0 0 0 2px var(--ink); }
.feature-btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.feature-num { flex: none; color: var(--fg-3); font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 400; line-height: 1; transition: color .3s; }
.js .feature.is-active .feature-num { color: var(--blue); }
.feature p { margin-top: 8px; color: var(--fg-2); font-size: 15px; line-height: 1.85; }
.p-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.p-url { color: var(--fg-3); font-size: 14px; font-weight: 600; }

@media (max-width: 959px) {
  .p-head { order: 1; }
  .p-device { order: 2; }
  .features { order: 3; }
  .p-cta { order: 4; }
  .js .features {
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 380px);
    gap: 10px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 2px var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .js .features::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; }
}
@media (min-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "head device" "features device" "cta device";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 36px;
  }
  .p-head { grid-area: head; }
  .p-device { grid-area: device; align-self: start; }
  .features { grid-area: features; gap: 0; }
  .p-cta { grid-area: cta; align-self: start; }
  .feature { padding: 20px 0; border-radius: 0; background: none; box-shadow: inset 0 1px 0 var(--rule); }
  .js .feature.is-active { box-shadow: inset 0 1px 0 var(--rule); }
  .feature p { padding-left: 34px; }
  .js .feature:not(.is-active) { opacity: .45; }
  @media (hover: hover) { .js .feature:not(.is-active):hover { opacity: .8; } }
}

/* ---------- 04 next ---------- */

.next { overflow: hidden; background: radial-gradient(70% 50% at 90% 0%, rgba(11, 43, 176, .55), transparent 70%), var(--night); }
.concept-note { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; color: var(--fg-2); font-size: 13px; }
.chip { flex: none; padding: 1px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); color: var(--fg); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.next-grid { position: relative; display: grid; }
.concept { padding: 14px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--rule); }
.concept .tap-hint { background: rgba(255, 255, 255, .12); color: var(--fg); }
.concept-stage { position: relative; margin-top: 10px; padding: 18px 6px 24px; border-radius: var(--radius); background: radial-gradient(closest-side, rgba(159, 212, 255, .12), rgba(159, 212, 255, 0)); }
.concept-svg { width: 100%; height: auto; overflow: visible; }
.concept-svg text { fill: var(--fg-2); font-family: var(--font); font-size: 13px; font-weight: 700; }
.concept-svg * { transition: opacity .6s var(--ease), fill .6s var(--ease), stroke .6s var(--ease); }
.lk { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; stroke-dasharray: 3 5; }
.lk-ai-flow, .flow { fill: none; stroke-linecap: round; opacity: 0; }
.lk-ai-flow { stroke: var(--sky); stroke-width: 2; stroke-dasharray: 6 6; }
.flow { stroke: #fff; stroke-width: 3; stroke-dasharray: 14 100; stroke-dashoffset: 14; }
.node .halo { fill: rgba(255, 255, 255, .05); }
.node .body { fill: #fff; }
.node .face { fill: var(--night); }
.node.ai .body { fill: #2f55ff; }
.node.ai .spark { fill: #fff; }
.talk rect { fill: rgba(159, 212, 255, .14); stroke: rgba(159, 212, 255, .5); }
.talk circle { fill: #fff; animation: typing 1.2s ease-in-out infinite; }
.talk circle:nth-of-type(2) { animation-delay: .15s; }
.talk circle:nth-of-type(3) { animation-delay: .3s; }
.talk { opacity: 0; }
.concept[data-step="1"] .n-them, .concept[data-step="1"] .n-ai2, .concept[data-step="1"] .lk-them, .concept[data-step="1"] .lk-ai { opacity: .16; }
.concept[data-step="1"] .n-ai1 .halo, .concept[data-step="1"] .n-you .halo { fill: rgba(159, 212, 255, .2); }
.concept[data-step="1"] .lk-you { stroke: var(--sky); stroke-dasharray: none; }
.concept[data-step="2"] .lk-ai-flow { opacity: 1; animation: dash 1.4s linear infinite; }
.concept[data-step="2"] .lk-ai { opacity: 0; }
.concept[data-step="2"] .talk { opacity: 1; }
.concept[data-step="2"] .n-ai1 .halo, .concept[data-step="2"] .n-ai2 .halo { fill: rgba(159, 212, 255, .2); }
.concept[data-step="2"] .n-you, .concept[data-step="2"] .n-them { opacity: .5; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.concept[data-step="3"] .flow { opacity: 1; animation: flow 2.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.concept[data-step="3"] .lk { stroke: rgba(159, 212, 255, .55); stroke-dasharray: none; }
.concept[data-step="3"] .n-you .halo, .concept[data-step="3"] .n-them .halo { fill: rgba(159, 212, 255, .28); animation: halo 2.6s ease-in-out infinite; }
.concept[data-step="3"] .n-them .halo { animation-delay: 1.3s; }
@keyframes flow { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -100; } }
@keyframes halo { 50% { fill: rgba(159, 212, 255, .08); } }
.concept-steps { margin-top: 20px; padding: 0 6px; }
.concept .stepper-nav { margin-top: 20px; padding: 0 6px 6px; }
@media (min-width: 960px) {
  .next-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .next .sec-head { margin-bottom: 0; }
  .next h2 { font-size: clamp(28px, 2.9vw, 40px); }
  .concept { padding: 24px; }
}

/* ---------- 05 about ---------- */

.about-grid { display: grid; gap: 64px; }
.letter { max-width: 34em; }
.letter p { font-size: clamp(16px, 2vw, 18px); line-height: 2.05; }
.letter p + p { margin-top: 1.4em; }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 2.2em !important; font-size: 16px !important; font-weight: 800; letter-spacing: .04em; }
.sign img { width: 32px; height: 32px; border-radius: 50%; }
.about-side { display: grid; align-content: start; gap: 28px; }
.name-card { perspective: 1200px; }
.flip-inner { position: relative; display: grid; min-height: 300px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { grid-area: 1 / 1; border-radius: var(--radius-lg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip-btn {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: start;
  width: 100%; height: 100%;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--blue);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
html:not(.js) .flip-btn { cursor: default; }
.flip-btn::before {
  content: "0";
  position: absolute;
  top: -18%;
  right: -6%;
  font-family: var(--serif);
  font-size: 300px;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .35);
}
.name-visual { position: absolute; top: 40px; right: 34px; }
.name-gull { width: 112px; height: 100px; color: #fff; animation: glide 7s ease-in-out infinite alternate; }
.name-q { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.name-hint { position: relative; margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; }
.flip-back {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px 26px;
  background: var(--card);
  transform: rotateY(180deg);
}
.flip-back p { color: #4a4843; line-height: 1.95; }
.name-lead { color: var(--ink) !important; font-size: 21px; font-weight: 800; line-height: 1.5 !important; }
.flip-back .text-btn { justify-self: start; color: var(--blue); }
html:not(.js) .flip-inner { gap: 16px; }
html:not(.js) .flip-face { grid-area: auto; }
html:not(.js) .flip-back { transform: none; }
.facts { border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.facts dt { color: var(--fg-3); font-weight: 700; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 96px; align-items: start; }
}

/* ---------- 06 try ---------- */

.try-list { border-top: 1px solid var(--rule); }
.try-list li { border-bottom: 1px solid var(--rule); }
.try-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "num arrow" "name arrow" "text arrow" "url arrow";
  align-items: center;
  column-gap: 16px;
  padding: 24px 0 26px;
  text-decoration: none;
}
.try-num { grid-area: num; color: var(--accent); font-family: var(--serif); font-size: 20px; font-style: italic; }
.try-name { grid-area: name; font-size: clamp(34px, 10vw, 72px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; transition: transform .35s var(--ease); }
.try-text { grid-area: text; margin-top: 6px; color: var(--fg-2); font-size: 14px; font-weight: 600; }
.try-url { grid-area: url; color: var(--fg-3); font-size: 13px; }
.try-arrow { grid-area: arrow; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--blue); transition: transform .35s var(--ease); }
.try-arrow .ico { width: 22px; height: 22px; stroke-width: 2; }
@media (hover: hover) {
  .try-row:hover .try-name { transform: translateX(8px); }
  .try-row:hover .try-arrow { transform: rotate(45deg); }
}
@media (min-width: 760px) {
  .try-row { grid-template-columns: 90px minmax(0, 1fr) auto; grid-template-areas: "num name arrow" "num text arrow" "num url arrow"; column-gap: 24px; padding: 32px 0 34px; }
  .try-num { align-self: start; padding-top: 10px; font-size: 26px; }
}
.contact { margin-top: clamp(64px, 9vw, 112px); }
.contact h3 { font-size: 20px; font-weight: 800; }
.contact h3 + p { margin-top: 6px; color: var(--fg-2); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.mail-link {
  font-size: clamp(24px, 6.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
  transition: text-decoration-color .2s;
}
@media (hover: hover) { .mail-link:hover { text-decoration-color: var(--sky); } }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.copy-btn .ico { width: 15px; height: 15px; }
.copy-btn.is-done { border-color: #fff; background: #fff; color: var(--blue); }
.copy-status { color: var(--fg-2); font-size: 13px; font-weight: 700; }
.contact-more { margin-top: 28px; border-top: 1px solid var(--rule); }
.contact-more div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.contact-more dt { color: var(--fg-3); font-weight: 700; }
.contact-more a { font-weight: 700; text-underline-offset: 4px; }
@media (min-width: 760px) { .contact-more div { grid-template-columns: 12em 1fr; gap: 16px; } }

/* ---------- footer ---------- */

.site-footer { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 128px) 0 32px; }
.footer-inner { position: relative; z-index: 1; display: grid; gap: 56px; }
.footer-vision { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav ul { display: grid; align-content: start; gap: 2px; }
.footer-nav a { display: inline-block; padding: 6px 0; color: var(--fg-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
@media (hover: hover) { .footer-nav a:hover { color: #fff; } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); }
.footer-bottom .brand img { width: 26px; height: 26px; }
.footer-bottom .brand-name { font-size: 15px; }
.footer-bottom small { color: var(--fg-3); font-size: 12px; }
.footer-gull { position: absolute; right: -60px; bottom: -40px; width: clamp(260px, 44vw, 520px); height: auto; aspect-ratio: 773 / 688; color: rgba(255, 255, 255, .05); pointer-events: none; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .footer-bottom { grid-column: 1 / -1; }
}

/* ---------- subpages ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(48px, 7vw, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--fg-2); font-size: 13px; font-weight: 700; }
.crumbs a { text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(34px, 8.4vw, 64px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.page-hero p { margin-top: 16px; color: var(--fg-2); }
.page-body { padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 12vw, 144px); }
.info { border-top: 1px solid var(--rule); }
.info > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.info dt { color: var(--fg-3); font-size: 13px; font-weight: 700; }
.info dd { line-height: 1.9; }
.info small { display: block; color: var(--fg-3); font-size: 13px; }
.info a { text-underline-offset: 4px; }
.info ul { display: grid; gap: 4px; }
.info .services { gap: 12px; }
@media (min-width: 760px) { .info > div { grid-template-columns: 14em 1fr; gap: 24px; } }
.back-home { margin-top: 40px; }

.notfound {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  overflow: hidden;
  text-align: center;
}
.notfound-code {
  font-family: var(--serif);
  font-size: clamp(120px, 40vw, 260px);
  font-style: italic;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .9);
}
.notfound-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; }
.notfound h1 { font-size: clamp(24px, 6vw, 40px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.notfound p { color: var(--fg-2); }
.notfound .btn { margin-top: 14px; }

/* ---------- motion & print ---------- */

.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .zero-echo { opacity: 0 !important; }
  .js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

@media print {
  .site-header, .menu, .hero-mark, .stepper-ui, .copy-btn { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-items] { display: block !important; }
  .js [data-items] > li { visibility: visible !important; }
}
