@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-2: #0e1013;
  --ink: #f3f1ec;
  --sub: #a4a6a8;
  --dim: #6d7073;
  --rule: rgba(255, 255, 255, .11);
  --signal: #ff4d2e;
  --accent: var(--signal);
  --latin: "Archivo", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
}
.t-sugupera { --accent: #45d4ff; }
.t-bizhotel { --accent: #ffd23f; }
.t-solidrec { --accent: #ff4d3d; }
.t-kotodama { --accent: #bb9bff; }
.t-niwatama { --accent: #a9d083; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--jp); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--ink); color: var(--bg); padding: 6px 12px; }

p, li, dd { text-wrap: pretty; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-stuck { background: rgba(8, 9, 11, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--latin); font-weight: 600; font-size: 16px; letter-spacing: .005em;
}
.brand b { font-weight: 600; color: var(--sub); margin-left: -4px; }
.lamp {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 10px 1px rgba(255, 77, 46, .75);
  animation: lamp 2.6s ease-in-out infinite;
}
@keyframes lamp { 50% { opacity: .35; box-shadow: 0 0 4px 0 rgba(255, 77, 46, .4); } }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav nav a {
  font-family: var(--latin); font-size: 14px; color: var(--sub); text-decoration: none; transition: color .2s;
}
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(84px, 11vh, 120px) 0 0;
  background:
    radial-gradient(60% 46% at 50% 100%, rgba(255, 77, 46, .20), transparent 72%),
    radial-gradient(34% 30% at 16% 88%, rgba(187, 155, 255, .14), transparent 72%),
    radial-gradient(34% 30% at 84% 88%, rgba(69, 212, 255, .13), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 18%; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100vw / 12);
  background-position: center top;
  opacity: .5;
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
  mask-image: linear-gradient(#000, transparent 72%);
}
.wordmark {
  padding-inline: var(--gutter);
  font-family: var(--latin);
  font-size: 12.05vw; line-height: .96; font-weight: 700; font-stretch: 125%;
  letter-spacing: -.035em; white-space: nowrap; text-align: center;
}
.js .wordmark span { display: inline-block; animation: stretch 1.3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes stretch {
  from { font-stretch: 62%; opacity: 0; letter-spacing: .02em; }
  to { font-stretch: 125%; opacity: 1; letter-spacing: -.035em; }
}
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(28px, 4.5vh, 52px); padding-inline: var(--gutter);
}
.hero-lead { font-size: clamp(25px, 3vw, 42px); line-height: 1.35; font-weight: 600; letter-spacing: .01em; }
.hero-sub { color: var(--sub); font-size: 15px; max-width: 34em; }
.hero-scroll {
  font-family: var(--latin); font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; transition: background .2s, color .2s;
}
.hero-scroll:hover { background: var(--ink); color: var(--bg); }
.hero-phones {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(10px, 2.2vw, 36px);
  height: clamp(340px, 50vw, 660px);
  margin-top: clamp(40px, 6vh, 72px);
  padding-inline: 2vw;
}
.hero-phones .phone { width: clamp(132px, 19vw, 280px); flex: none; will-change: transform; }
.hero-phones .phone:nth-child(1) { margin-top: 20%; --tilt: -7deg; }
.hero-phones .phone:nth-child(2) { margin-top: 9%; --tilt: -3deg; }
.hero-phones .phone:nth-child(3) { margin-top: 0; --tilt: 0deg; }
.hero-phones .phone:nth-child(4) { margin-top: 9%; --tilt: 3deg; }
.hero-phones .phone:nth-child(5) { margin-top: 20%; --tilt: 7deg; }
.hero-phones .phone { transform: rotate(var(--tilt)); }
.js .hero-phones .phone { animation: rise 1.2s cubic-bezier(.16, 1, .3, 1) both; }
.js .hero-phones .phone:nth-child(1), .js .hero-phones .phone:nth-child(5) { animation-delay: .32s; }
.js .hero-phones .phone:nth-child(2), .js .hero-phones .phone:nth-child(4) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; translate: 0 90px; } to { opacity: 1; translate: 0 0; } }

/* Phone */
.phone {
  padding: clamp(3px, .42vw, 6px); border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3b3d42, #151619 40%, #26272b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -24px rgba(0, 0, 0, .9);
}
.phone img { width: 100%; border-radius: 13.6% / 6.3%; background: #000; }

/* Section heading */
.eyebrow {
  font-family: var(--latin); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}
.section-title { margin-top: 10px; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; font-weight: 600; letter-spacing: .01em; }

/* Index */
.index { position: relative; padding: clamp(72px, 10vw, 136px) 0 clamp(48px, 6vw, 80px); background: var(--bg); }
.index-list { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a {
  display: grid; align-items: center; gap: clamp(12px, 2vw, 28px);
  grid-template-columns: 2.4em 56px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 7em;
  padding: 18px 8px; text-decoration: none; position: relative;
  transition: padding .35s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.index-list a:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); padding-left: 22px; }
.index-list img { width: 56px; height: 56px; border-radius: 22%; }
.i-no { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.i-name { font-size: clamp(18px, 2.1vw, 26px); font-weight: 600; transition: color .25s; }
.index-list a:hover .i-name { color: var(--accent); }
.i-cat, .i-os { font-size: 14px; color: var(--sub); }
.i-os { font-family: var(--latin); }
.i-status { font-size: 13px; text-align: right; color: var(--sub); }
.i-status.is-soon { color: var(--accent); }

/* App showcase */
.show {
  position: relative; overflow: hidden; padding: clamp(72px, 10vw, 150px) 0;
  border-top: 1px solid var(--rule);
  background: radial-gradient(52% 62% at var(--glow-x, 76%) 44%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 74%);
}
.show.is-flip { --glow-x: 24%; }
.show-grid {
  display: grid; align-items: center; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
}
.is-flip .show-grid { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); }
.is-flip .show-text { order: 2; }
.show-no {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--latin); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.show-no span { font-family: var(--mono); letter-spacing: 0; }
.show-no span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; }
.show h2 { margin-top: 18px; font-size: clamp(28px, 3vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: .005em; word-break: keep-all; }
.show-name { margin-top: 18px; font-weight: 600; color: var(--ink); }
.show-name small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--sub); }
.show-body { margin-top: 10px; color: var(--sub); max-width: 34em; }
.facts { margin-top: 24px; border-top: 1px solid var(--rule); max-width: 34em; }
.facts li {
  display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--sub); line-height: 1.6;
}
.facts b { color: var(--ink); font-weight: 600; }
.price { margin-top: 16px; font-size: 14px; color: var(--ink); max-width: 34em; }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: #08090b; font-size: 15px; font-weight: 600; line-height: 1.5;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px var(--accent); }
.link { font-size: 14px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--dim); }
.link:hover { text-decoration-color: var(--accent); }
.note { margin-top: 18px; font-size: 12px; line-height: 1.7; color: var(--dim); max-width: 44em; }

.stage {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center;
  padding: 3% 0;
}
.stage .phone { position: relative; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.stage .phone:nth-child(1) { transform: translateX(13%) rotate(-5deg) scale(.88); z-index: 1; }
.stage .phone:nth-child(2) { transform: scale(1.08); z-index: 2; }
.stage .phone:nth-child(3) { transform: translateX(-13%) rotate(5deg) scale(.88); z-index: 1; }
.stage:hover .phone:nth-child(1) { transform: translateX(3%) rotate(-3deg) scale(.9); }
.stage:hover .phone:nth-child(3) { transform: translateX(-3%) rotate(3deg) scale(.9); }

.js .show-text, .js .stage, .js .series, .js .approach-grid > div {
  opacity: 0; translate: 0 36px; transition: opacity 1s, translate 1s cubic-bezier(.16, 1, .3, 1);
}
.js .is-in { opacity: 1 !important; translate: 0 0 !important; }

/* Series */
.series { margin-top: clamp(56px, 7vw, 96px); }
.series h3 { font-size: 18px; font-weight: 600; }
.series-list {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.series-list li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.series-list a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; text-decoration: none; font-size: 14px; line-height: 1.45;
  transition: background .25s;
}
.series-list a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.series-list img { width: 44px; height: 44px; border-radius: 22%; flex: none; }
.series-list small { display: block; margin-top: 3px; font-size: 12px; color: var(--sub); }

/* Approach */
.approach, .about { padding: clamp(72px, 9vw, 130px) 0; border-top: 1px solid var(--rule); }
.approach-grid { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.approach-grid span { font-family: var(--mono); font-size: 13px; color: var(--signal); }
.approach-grid h3 { margin-top: 10px; font-size: clamp(21px, 2.1vw, 27px); font-weight: 600; line-height: 1.4; }
.approach-grid p { margin-top: 10px; color: var(--sub); font-size: 15px; }
.approach-grid > div:nth-child(2) { transition-delay: .1s; }
.approach-grid > div:nth-child(3) { transition-delay: .2s; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.about dl { display: grid; grid-template-columns: 8em 1fr; border-top: 1px solid var(--rule); }
.about dt, .about dd { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.about dt { color: var(--dim); }
.about dd a { text-underline-offset: 4px; }

/* Contact */
.contact { padding: clamp(72px, 9vw, 130px) 0; border-top: 1px solid var(--rule); background: var(--bg-2); }
.contact-mail {
  margin-top: 14px; font-family: var(--latin); font-size: clamp(25px, 6.6vw, 92px); font-weight: 600; font-stretch: 100%;
  line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere;
}
.contact-mail a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.16, 1, .3, 1), color .2s; }
.contact-mail a:hover { background-size: 100% 2px; color: var(--signal); }
.contact-lead { margin-top: 20px; color: var(--sub); max-width: 38em; }
.support-list { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule); max-width: 760px; }
.support-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 24px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.support-list a { color: var(--sub); text-underline-offset: 4px; text-decoration-color: var(--dim); }
.support-list a:hover { color: var(--ink); }

/* Footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot-in a { font-size: 13px; color: var(--sub); text-underline-offset: 4px; }
.foot-in small { margin-left: auto; font-size: 12px; color: var(--dim); }

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; font-weight: 700; }
.doc .doc-date { margin-top: 8px; font-size: 13px; color: var(--dim); }
.doc h2 { margin-top: 40px; font-size: 19px; font-weight: 600; }
.doc p, .doc ul { margin-top: 10px; color: var(--sub); }
.doc ul { list-style: disc; padding-left: 1.3em; }
.doc a { color: var(--ink); text-underline-offset: 4px; }
.doc-center { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }

/* Tablet and phone */
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; gap: 14px; }
  .hero-scroll { justify-self: start; }
  .show-grid, .is-flip .show-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .is-flip .show-text { order: 0; }
  .show h2 { font-size: clamp(23px, 7.2vw, 44px); }
  .show { background: radial-gradient(90% 34% at 50% 76%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 76%); }
  .index-list a { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; padding: 14px 4px; }
  .index-list img { width: 52px; height: 52px; grid-row: 1 / 3; grid-column: 1; }
  .i-no, .i-os { display: none; }
  .i-name { grid-column: 2; grid-row: 1; align-self: end; line-height: 1.4; }
  .i-cat { grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.5; }
  .i-status { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .series-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .nav { padding-block: 12px; }
  .nav nav a[href="#approach"], .nav nav a[href="#about"] { display: none; }
  .hero-phones { height: 74vw; gap: 2.4vw; justify-content: center; margin-top: 36px; }
  .hero-phones .phone { width: 34vw; }
  .hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(5) { display: none; }
  .hero-phones .phone:nth-child(2) { margin-top: 12%; }
  .hero-phones .phone:nth-child(4) { margin-top: 12%; }
  .series-list { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: 6.4em 1fr; }
  .about dl { grid-template-columns: 6.5em 1fr; }
  .foot-in small { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .show-text, .js .stage, .js .series, .js .approach-grid > div { opacity: 1; translate: none; }
}
