:root {
  --bg: #f4f2f0;        /* アイボリー＋ほんのりラベンダー */
  --ink: #111418;
  --accent: #32c7ff;
  --accent-2: #5c4bff;
  --accent-3: #7256f6; /* 鮮やか紫 — そよぎフラクタル公式 */
  --accent-4: #6143eb; /* 濃い紫 — アクセント */
  --accent-mint: #8fdddd; /* ミントシアン — 公式アクセント */
  --lav-bg: #e9e7f2;    /* ライトラベンダー背景 */
  --lav-bg-alt: #ddd8ec; /* ライトラベンダー背景（やや濃） */
  --lav-bg-light: #f0eef6; /* 明るいラベンダー（CTA用） */
  --lav-ink: #2d1f5e;   /* 濃紫文字色 */
  --lav-muted: #5a4a80; /* 紫系のミュート文字 */
  --muted: #5d6066;
  --panel: #0f1218;
  --panel-ink: #eef2f6;
  --panel-border: rgba(255, 255, 255, 0.1);
  --max-width: 1120px;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(9, 12, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(50, 199, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(114, 86, 246, 0.10), transparent 65%),
    linear-gradient(180deg, #f4f2f0 0%, #f0eef4 35%, #f5f3f1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 20, 24, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 24, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 10px 16px;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 242, 240, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 20, 24, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(114, 86, 246, 0.15);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ===== SECTIONS (shared) ===== */

.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid rgba(17, 20, 24, 0.08);
}

.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section--dark {
  color: var(--lav-ink);
  background:
    radial-gradient(900px 500px at 20% 15%, rgba(143, 221, 221, 0.18), transparent 60%),
    radial-gradient(700px 500px at 80% 85%, rgba(114, 86, 246, 0.10), transparent 55%),
    linear-gradient(160deg, var(--lav-bg) 0%, var(--lav-bg-alt) 55%, var(--lav-bg) 100%);
  border-top: 1px solid rgba(114, 86, 246, 0.10);
}

.section--dark .section-label {
  color: var(--accent-3);
}

.section--dark .section-title {
  color: var(--lav-ink);
}

.section--dark .section-body,
.section--dark .card,
.section--dark .use-case {
  color: var(--lav-ink);
}

.section--dark .card p,
.section--dark .use-case p {
  color: var(--lav-muted);
}

.section--dark .card,
.section--dark .use-case {
  border-color: rgba(114, 86, 246, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.section-body--light {
  color: var(--lav-muted) !important;
}

/* ===== HERO ===== */

.hero {
  padding-top: clamp(90px, 12vw, 140px);
  border-top: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
}

.keep-case {
  text-transform: none;
}

.hero-title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.15;
  margin: 0;
}

.hero-subhead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== STORE BADGES ===== */

.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px; /* >= badge height(52px) / 4 = 13px */
}

.store-badge {
  display: inline-block;
  flex-shrink: 0;
}

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.store-badge img {
  display: block;
  height: 52px;
  width: auto;
}

/* ===== CTA BUTTONS ===== */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: var(--shadow);
}

.cta:hover {
  transform: translateY(-2px);
}

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(17, 20, 24, 0.2);
  box-shadow: none;
}

.section--dark .cta--ghost {
  color: var(--lav-ink);
  border-color: rgba(114, 86, 246, 0.25);
}

.cta--white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cta--ghost-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.cta-note {
  font-size: 12px;
  color: var(--muted);
}

/* ===== HERO ART ===== */

.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.device {
  position: relative;
  width: clamp(200px, 55%, 280px);
  border-radius: 28px;
  background: #101620;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(10, 12, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-screen {
  width: 100%;
  border-radius: 18px;
  background: #101620;
  overflow: hidden;
}

.device-img {
  display: block;
  width: 100%;
  height: auto;
}

.device-placeholder {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* ===== SECTION HEADINGS ===== */

.section-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.section-title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0 0 16px 0;
}

.section-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 6vw, 60px);
  align-items: start;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

/* ===== CONCEPT SECTION ===== */

.section--accent {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(114, 86, 246, 0.10), transparent 60%),
    radial-gradient(600px 400px at 20% 80%, rgba(143, 221, 221, 0.10), transparent 60%),
    linear-gradient(180deg, #efedf2 0%, #ebe9ef 100%);
  border-top: 1px solid rgba(114, 86, 246, 0.06);
}

.concept-block {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}

.concept-quote {
  margin: 0 0 28px;
}

.concept-quote p {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.concept-quote small {
  font-size: 0.55em;
  color: var(--muted);
  vertical-align: baseline;
}

.concept-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}

/* ===== FEATURE CARDS ===== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  background: rgba(15, 18, 24, 0.6);
  box-shadow: 0 18px 38px rgba(8, 12, 18, 0.22);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

/* ===== PERSON / PROJECT CARDS ===== */

.person-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(17, 20, 24, 0.1);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 36px rgba(10, 12, 18, 0.08);
  max-width: 600px;
}

.person-card--solo {
  max-width: 600px;
}

.person-visual {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
}

.person-visual--large {
  width: 100px;
  height: 100px;
  border-radius: 20px;
}

.person-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(50, 199, 255, 0.2), rgba(92, 75, 255, 0.15));
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.person-info {
  flex: 1;
  min-width: 0;
}

.person-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin: 0 0 4px;
  font-weight: 600;
}

.person-name {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  margin: 0 0 8px;
}

.person-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ===== SCREEN DEVICES ===== */

.screen-devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
  justify-items: center;
}

.screen-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.screen-device__frame {
  position: relative;
  width: clamp(160px, 100%, 240px);
  border-radius: 24px;
  background: #101620;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(10, 12, 18, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.screen-device__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.screen-device__caption {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin: 0;
}

/* ===== USE CASES ===== */

.use-cases {
  display: grid;
  gap: 20px;
}

.use-case {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(17, 20, 24, 0.1);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 24px rgba(10, 12, 18, 0.06);
}

.use-case h3 {
  margin: 0 0 8px;
}

.use-case p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== CTA BANNER ===== */

.section--cta {
  color: var(--lav-ink);
  background:
    radial-gradient(700px 500px at 30% 45%, rgba(143, 221, 221, 0.14), transparent 60%),
    radial-gradient(600px 500px at 70% 55%, rgba(114, 86, 246, 0.08), transparent 55%),
    linear-gradient(135deg, var(--lav-bg-light) 0%, #f3f1f8 50%, var(--lav-bg-light) 100%);
  border-top: 1px solid rgba(114, 86, 246, 0.08);
  text-align: center;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-layout {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cta-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 16px rgba(17, 20, 24, 0.12),
    0 12px 32px rgba(114, 86, 246, 0.14);
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-banner-title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(32px, 4.5vw, 50px);
  color: var(--lav-ink);
  margin: 0;
  text-align: left;
}

.cta-banner-body {
  font-size: 16px;
  color: var(--lav-muted);
  margin: 0 0 8px;
}

/* ===== SUPPORT ===== */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.support-card {
  border-radius: var(--radius);
  border: 1px solid rgba(17, 20, 24, 0.1);
  padding: 22px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 30px rgba(10, 12, 18, 0.08);
}

.support-card h3 {
  margin: 0 0 8px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

/* ===== FOOTER ===== */

.site-footer {
  padding: 50px 0 70px;
  border-top: 1px solid rgba(17, 20, 24, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

/* ===== REVEAL ANIMATION ===== */

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

/* ===== RESPONSIVE ===== */

/* -- Prevent horizontal overflow globally -- */
/* NOTE: body から overflow-x を外す。html + body 両方だと
   Chrome トラックパッドの慣性スクロールが引っかかる問題あり */
html {
  overflow-x: hidden;
}

/* -- Tablet (≤900px) -- */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .hero-art {
    min-height: 320px;
  }

  .card-grid,
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Mobile (≤600px) -- */
@media (max-width: 600px) {
  .container {
    width: min(var(--max-width), 88vw);
  }

  .header-inner {
    padding: 12px 0;
  }

  .logo {
    font-size: 15px;
    gap: 8px;
  }

  .logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .cta-layout {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .cta-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .cta-right {
    align-items: center;
    gap: 10px;
  }

  .cta-banner-title {
    text-align: center;
  }

  .cta-badges {
    gap: 8px;
  }

  .header-inner .cta--ghost {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding-top: clamp(72px, 10vw, 100px);
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.25;
  }

  .hero-subhead {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-art {
    min-height: 280px;
    margin-top: 8px;
  }

  .device {
    width: clamp(160px, 50%, 220px);
    padding: 10px;
    border-radius: 22px;
  }

  .device-screen {
    border-radius: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta.store-badges {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .store-badge img {
    height: 44px; /* モバイル: 少し小さく。min 40px 以上、gap 11px 以上必要 */
  }

  .store-badges {
    gap: 12px; /* 44px / 4 = 11px → 12px で OK */
  }

  .cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .cta-note {
    text-align: center;
    width: 100%;
  }

  /* Section typography */
  .section {
    padding: clamp(48px, 10vw, 80px) 0;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .section-body {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  /* Concept */
  .concept-quote p {
    font-size: clamp(22px, 6vw, 32px);
  }

  .concept-body {
    font-size: 15px;
  }

  /* Card / Support grids → single column */
  .card-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  /* Screen devices → horizontal scroll on mobile */
  .screen-devices {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .screen-device {
    scroll-snap-align: center;
  }

  .screen-device__frame {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
  }

  .screen-device__img {
    border-radius: 14px;
  }

  /* Person card */
  .person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .person-visual,
  .person-visual--large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }

  .person-desc {
    font-size: 13px;
  }

  /* CTA Banner */
  .section--cta .hero-cta.store-badges {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .cta-banner-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .cta-banner-body {
    font-size: 15px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-note {
    font-size: 13px;
  }
}

/* -- Small mobile (≤380px) -- */
@media (max-width: 380px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-art {
    min-height: 240px;
  }

  .device {
    width: 150px;
    padding: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .cta,
  .reveal {
    transition: none;
  }
}
