/* indigoblur site — bold editorial
   生成り × 墨 × 朱。巨大なタイポグラフィと余白、静かなモーション。写真に頼らない */

:root {
  --paper: #f5f1ea;
  --ink: #17172a;
  --ink-soft: rgba(23, 23, 42, 0.78);
  --muted: #8a8778;
  --line: rgba(23, 23, 42, 0.16);
  --vermilion: #e8452f;
  --on-vermilion: #fff5f0;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --en: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131320;
    --ink: #f0ede4;
    --ink-soft: rgba(240, 237, 228, 0.78);
    --muted: #8e8b96;
    --line: rgba(240, 237, 228, 0.16);
    --vermilion: #f0604f;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 2;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

::selection {
  background: var(--vermilion);
  color: var(--on-vermilion);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6vw;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 22px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--en);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
}

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

.site-nav a {
  font-family: var(--en);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--vermilion);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(40px, 8.5vw, 104px);
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.hero h1 .accent {
  color: var(--vermilion);
}

.hero .lede {
  position: relative;
  margin-top: 34px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero .en-sub {
  position: relative;
  margin-top: 14px;
  font-family: var(--en);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 6vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--muted);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: left;
}

@keyframes cue {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(24px); opacity: 0; }
}

/* ---- marquee ---- */

.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 0 -8px;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-family: var(--en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 3.2em;
}

.marquee .v {
  color: var(--vermilion);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

section {
  padding: 110px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 60px;
}

.section-head .en {
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.01em;
  line-height: 1;
}

.section-head .jp {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

/* ---- apps list ---- */

.work-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  padding: 44px 20px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: background 0.35s ease, color 0.35s ease;
}

.work-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.work-row .num {
  font-family: var(--en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
}

.work-row .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-row:hover .app-icon {
  transform: rotate(-6deg) scale(1.06);
}

.work-row h3 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 46px);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.work-row .app-copy {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.35s ease;
}

.work-row .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-row .tags span {
  font-family: var(--en);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  transition: border-color 0.35s ease;
}

.work-row .arrow {
  margin-left: auto;
  font-family: var(--en);
  font-weight: 700;
  font-size: 28px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.work-row:hover {
  background: var(--ink);
  color: var(--paper);
}

.work-row:hover .app-copy {
  color: var(--paper);
  opacity: 0.7;
}

.work-row:hover .arrow {
  transform: translateX(10px);
  color: var(--vermilion);
}

.coming {
  padding: 34px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 44px);
  color: var(--muted);
}

.coming .num {
  font-family: var(--en);
  font-weight: 700;
  font-size: 14px;
}

.coming .label {
  font-family: var(--en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---- principles ---- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle {
  padding: 44px 28px 44px 0;
  border-bottom: 1px solid var(--line);
}

.principle .num {
  font-family: var(--en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--vermilion);
}

.principle h3 {
  margin-top: 16px;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.06em;
}

.principle p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---- contact ---- */

.contact-band {
  background: var(--vermilion);
  color: var(--on-vermilion);
  padding: 110px 0 120px;
}

.contact-band .en {
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 110px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.contact-band p {
  margin-top: 26px;
  font-size: 14px;
  opacity: 0.92;
}

.contact-band .mail {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--en);
  font-weight: 600;
  font-size: clamp(16px, 3vw, 26px);
  letter-spacing: 0.04em;
  color: var(--on-vermilion);
  text-decoration: none;
  border-bottom: 2px solid var(--on-vermilion);
  padding-bottom: 6px;
  transition: opacity 0.3s ease;
}

.contact-band .mail:hover {
  opacity: 0.7;
}

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 44px;
}

.site-footer .foot-brand {
  font-family: var(--en);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.site-footer nav {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer nav a {
  font-family: var(--en);
  font-weight: 600;
  color: var(--paper);
  opacity: 0.75;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer nav a:hover {
  opacity: 1;
  color: var(--vermilion);
}

.site-footer .legal {
  margin-top: 44px;
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.5;
  text-transform: uppercase;
}

/* ---- app page ---- */

.app-hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px 0 60px;
  text-align: center;
}

.app-hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto;
}

.app-hero h1 {
  margin-top: 30px;
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 128px);
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.app-hero .tagline {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.app-hero .en-sub {
  margin-top: 10px;
  font-family: var(--en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 40px;
  padding: 15px 40px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.14em;
  transition: background 0.3s ease, transform 0.3s ease;
}

.store-badge svg {
  flex: none;
  margin-top: -2px;
}

.store-badge:hover {
  background: var(--vermilion);
  transform: translateY(-2px);
}

.store-note {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* features as numbered editorial rows */

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.feature-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.feature-row .num {
  font-family: var(--en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
  padding-top: 10px;
}

.feature-row h3 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.feature-row p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 40em;
}

/* price */

.price-display {
  text-align: center;
}

.price-display .yen {
  font-family: var(--en);
  font-weight: 700;
  font-size: clamp(80px, 16vw, 180px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--vermilion);
}

.price-display .free {
  margin-top: 18px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
}

.price-display .subnote {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.doc-links {
  margin-top: 54px;
  text-align: center;
  font-size: 13px;
}

.doc-links a {
  color: var(--vermilion);
  margin: 0 12px;
}

/* ---- article (privacy / support) ---- */

.article {
  padding-top: 140px;
}

.article h1 {
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0.08em;
  padding: 20px 0 10px;
}

.article .updated {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 34px;
}

.article h2 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 18px;
  margin: 40px 0 8px;
  letter-spacing: 0.04em;
}

.article p,
.article li {
  color: var(--ink-soft);
  font-size: 14px;
}

.article ul {
  padding-left: 1.4em;
}

.article a {
  color: var(--vermilion);
}

.article-wrap {
  padding-bottom: 110px;
}

/* ---- reveal on scroll ---- */

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

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-inner { animation: none; }
  .scroll-cue::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .work-row { flex-wrap: wrap; }
  .work-row .arrow { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 6px; }
  .principle { padding-right: 0; }
}
