/* =========================================================================
   Flipt for Hotels — LP styles
   設計方針:
   - すべての要素は CSS デフォルトで「見える状態」
   - スクロール演出は body.js-anim 配下にのみ記述（JS失敗時は普通に表示）
   - prefers-reduced-motion: reduce で全アニメーション無効
   ========================================================================= */

:root {
  --black: #000;
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --bg-soft-2: #efeff2;
  --text: #1d1d1f;
  --text-mute: #5b5b60;
  --text-faint: #86868b;
  --white: #fff;
  --white-soft: #f7f7f9;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-bright: #2997ff;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.06);

  --nav-h: 48px;
}

@media (max-width: 768px) {
  :root { --nav-h: 52px; }
}

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

html, body { margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }

/* ---- Focus ring ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Tabular nums for numbers ---- */
.stat-num, .count-up, .price-amount, .kpi-value, .iphone-time {
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
}
.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  padding: 4px 6px;
  margin-left: -6px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.nav-links a {
  color: var(--text);
  opacity: 0.88;
  padding: 6px 2px;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 980px;
  font-weight: 500;
  opacity: 1;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.nav-links .nav-cta:hover { background: var(--blue-hover); }

@media (max-width: 768px) {
  .nav-inner { padding: 0 18px; }
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta {
    padding: 10px 18px;
    font-size: 14px;
    min-height: 40px;
  }
}

/* =========================================================================
   SHARED
   ========================================================================= */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}
.wrap-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 96px 0;
  text-align: center;
  position: relative;
}
.section-gray { background: var(--bg-soft); }
.section-gray-soft { background: var(--bg-soft); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark a:not(.btn) { color: var(--blue-bright); }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0;
}
.eyebrow-blue { color: var(--blue-bright); }
.eyebrow-plain { color: var(--text); font-weight: 600; }

.section-h {
  font-size: clamp(34px, 5.5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-mute);
  line-height: 1.45;
  max-width: 720px;
  margin: 0 auto 56px;
  font-weight: 400;
}
.section-dark .section-sub,
.section-dark .showcase-sub { color: rgba(255,255,255,0.86); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 980px;
  min-height: 44px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover { background: rgba(0,113,227,0.06); }
.btn-lg { font-size: 17px; padding: 14px 28px; min-height: 48px; }

.btn-pair {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 400;
  min-height: 44px;
  padding: 10px 12px;
}
.link::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}
.link:hover { text-decoration: underline; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding: calc(var(--nav-h) + 72px) 0 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 8px; }
.hero-h {
  font-size: clamp(40px, 7.5vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-price {
  font-size: 16px;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.hero-price b { color: var(--text); font-weight: 600; }

.hero-product {
  margin: 64px auto 0;
  max-width: 1100px;
  padding: 0 22px;
  position: relative;
}

/* Browser mock window */
.mock-window {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 6px 24px rgba(0,0,0,0.06);
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
}
.mock-bar {
  height: 38px;
  background: linear-gradient(180deg, #f6f6f8 0%, #ededf1 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.mock-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mock-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  font-family: -apple-system, monospace;
}
/* AI concierge mock inside the browser window */
.ai-mock-body {
  background: var(--white);
  padding: 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
}
.ai-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.ai-mock-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3 0%, #5e8df0 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,113,227,0.32);
}
.ai-mock-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.ai-mock-status {
  font-size: 12px;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 2px rgba(40,200,64,0.18);
}

.ai-mock-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
}
.ai-mock-msg { display: flex; }
.ai-mock-msg-user { justify-content: flex-end; }
.ai-mock-msg-bot { justify-content: flex-start; }
.ai-mock-bubble {
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 78%;
}
.ai-mock-msg-user .ai-mock-bubble {
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.ai-mock-msg-bot .ai-mock-bubble {
  background: var(--bg-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Embedded property card in chat */
.ai-mock-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  margin: 4px 0 4px 8px;
  max-width: 88%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.ai-mock-card-img {
  background: linear-gradient(135deg, #b6cfee 0%, #4a82c9 60%, #225a9a 100%);
  position: relative;
  min-height: 112px;
}
.ai-mock-card-img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.18));
}
.ai-mock-card-info {
  padding: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-mock-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ai-mock-card-meta {
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.4;
}
.ai-mock-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.ai-mock-card-price .p {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ai-mock-card-price .t {
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 2px;
}
.ai-mock-card-btn {
  background: var(--blue);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 980px;
  white-space: nowrap;
}

.ai-mock-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 980px;
  margin-top: auto;
}
.ai-mock-input-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-faint);
}
.ai-mock-send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
}

/* Typing indicator (generic) */
.typing::after {
  content: "▍";
  display: inline-block;
  color: currentColor;
  opacity: 0.7;
  margin-left: 1px;
  animation: blink 1s steps(2, end) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Hero card entry animation (additive, safe) */
body.js-anim .hero-card-anim {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
body.js-anim .hero-card-anim.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-h) + 48px) 0 0; }
  .hero-product { margin-top: 48px; padding: 0 14px; }
  .ai-mock-body { padding: 18px 18px 18px; min-height: 440px; gap: 14px; }
  .ai-mock-bubble { font-size: 14px; padding: 11px 14px; }
  .ai-mock-card {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    max-width: 92%;
  }
  .ai-mock-card-img { min-height: 96px; }
  .ai-mock-card-info { padding: 10px 12px 10px 0; }
  .ai-mock-card-name { font-size: 13.5px; }
  .ai-mock-card-meta { font-size: 11px; }
  .ai-mock-card-row { flex-wrap: wrap; }
  .ai-mock-input { padding: 10px 14px; }
}

/* =========================================================================
   STATS (By the numbers)
   ========================================================================= */
.stats-section {
  padding: 120px 0 96px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text);
}
.stat-slash {
  color: var(--text-faint);
  font-weight: 600;
  padding: 0 2px;
}
.stat-label {
  font-size: 15px;
  color: var(--text-mute);
  font-weight: 500;
  line-height: 1.4;
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .stats-section { padding: 80px 0 64px; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}

/* =========================================================================
   FEATURE TILES (2x2)
   ========================================================================= */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease;
}
.tile-dark {
  background: #1d1d1f;
  color: var(--white);
}
.tile-soft { background: #ebebef; }
.tile-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}
.tile-dark .tile-eyebrow { color: var(--blue-bright); }
.tile-h {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.tile-sub {
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.5;
  margin-bottom: 24px;
}
.tile-dark .tile-sub { color: rgba(255,255,255,0.82); }

/* TL flow inside tile-dark */
.tl-flow {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: auto;
}
.tl-step {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.tl-step.active {
  background: var(--blue);
  border-color: var(--blue);
}
.tl-step-num {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.tl-step.active .tl-step-num { color: rgba(255,255,255,0.85); }
.tl-step-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.tl-step-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.tl-arrow {
  align-self: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* Language chips */
.lang-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.chip {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 980px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Mini chat */
.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.mini-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 85%;
  line-height: 1.4;
}
.mini-msg-user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.mini-msg-bot {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Mini KPI */
.mini-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}
.kpi {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
}
.kpi-label {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.kpi-unit { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 2px; }
.kpi-delta {
  font-size: 11px;
  color: #28a745;
  font-weight: 600;
  margin-top: 4px;
}
.kpi-chart {
  grid-column: 1 / -1;
  height: 56px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.kpi-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 3px;
  min-height: 4px;
}

@media (max-width: 768px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile { padding: 32px 24px 28px; min-height: auto; }
  .tile-h { font-size: 22px; }
  .tl-flow { gap: 4px; }
  .tl-step { padding: 8px 10px; }
  .tl-step-name { font-size: 12px; }
  .tl-step-desc { display: none; }
}

/* =========================================================================
   SHOWCASE: AI
   ========================================================================= */
.showcase {
  padding: 120px 0;
}
.showcase-h {
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--white);
}
.showcase-sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  max-width: 720px;
  margin: 0 auto 56px;
}
.ai-stage {
  max-width: 680px;
  margin: 0 auto;
}
.ai-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.ai-msg { max-width: 78%; }
.ai-msg-body {
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 18px;
  border-radius: 18px;
}
.ai-msg-user {
  align-self: flex-end;
}
.ai-msg-user .ai-msg-body {
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.ai-msg-bot {
  align-self: flex-start;
}
.ai-msg-from {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  padding-left: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ai-msg-bot .ai-msg-body {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-bottom-left-radius: 6px;
}

@media (max-width: 768px) {
  .showcase { padding: 80px 0; }
  .ai-msg { max-width: 86%; }
}

/* =========================================================================
   SHOWCASE: PWA
   ========================================================================= */
.showcase-pwa {
  padding: 120px 0;
  background: var(--bg);
}
.showcase-h-light {
  color: var(--text);
}
.showcase-sub-light {
  color: var(--text-mute);
}
.iphone-stage {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}
.iphone {
  width: 280px;
  height: 560px;
  background: #1a1a1c;
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
  position: relative;
}
.iphone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}
.iphone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #d6e4f5 0%, #f5e6d6 100%);
  border-radius: 32px;
  padding: 44px 20px 24px;
  position: relative;
  overflow: hidden;
}
.iphone-status {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 26px;
  padding: 0 8px;
}
.iphone-icons { font-size: 11px; letter-spacing: 1px; }
.iphone-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  justify-items: center;
}
.app { text-align: center; }
.app-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.app-ico-msg { background: linear-gradient(180deg, #5cdb5c, #2bb02b); }
.app-ico-mail { background: linear-gradient(180deg, #4baef9, #1f7be6); }
.app-ico-safari { background: linear-gradient(180deg, #f1f3f4, #cbd2d8); color: #1f7be6; }
.app-ico-cam { background: linear-gradient(180deg, #2c2c2e, #1c1c1e); }
.app-ico-flipt {
  background: linear-gradient(180deg, var(--blue) 0%, #004fb3 100%);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.18), 0 2px 6px rgba(0,0,0,0.15);
  position: relative;
}
.app-flipt .app-name { color: var(--blue); font-weight: 600; }
.app-ico-map { background: linear-gradient(180deg, #66d27c, #2faa44); }
.app-ico-music { background: linear-gradient(180deg, #fc6a85, #f93057); }
.app-ico-photo { background: linear-gradient(180deg, #ff9d4d, #e76f17); }
.app-name {
  font-size: 11px;
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
  .showcase-pwa { padding: 80px 0; }
  .iphone { width: 240px; height: 480px; }
  .iphone-screen { padding: 38px 16px 20px; border-radius: 26px; }
  .iphone-apps { gap: 14px 10px; }
  .app-ico { width: 42px; height: 42px; border-radius: 10px; }
}

/* =========================================================================
   ALL CAPABILITIES (3x3)
   ========================================================================= */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 36px;
}
.cap {
  text-align: left;
}
.cap-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0;
}
.cap-h {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cap-p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================================
   INTEGRATION
   ========================================================================= */
.integration {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.int-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.int-card-dark {
  background: #1d1d1f;
  color: var(--white);
}
.int-card-brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.int-card-dark .int-card-brand { color: var(--white); }
.int-card-tag {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 22px;
}
.int-card-dark .int-card-tag { color: var(--blue-bright); }
.int-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.int-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mute);
  position: relative;
  padding-left: 22px;
}
.int-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.int-card-dark .int-list li { color: rgba(255,255,255,0.82); }
.int-card-dark .int-list li::before {
  border-color: var(--blue-bright);
}
.int-arrows {
  display: flex;
  align-items: center;
  font-size: 32px;
  color: var(--text-faint);
  font-weight: 300;
}

@media (max-width: 820px) {
  .integration {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .int-arrows {
    justify-content: center;
    font-size: 24px;
    transform: rotate(90deg);
    height: 32px;
  }
}

/* =========================================================================
   PRICING
   ========================================================================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 20px 50px rgba(0,0,0,0.1);
}
.price-card-featured {
  background: #1d1d1f;
  color: var(--white);
}
.price-card-featured:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 24px 56px rgba(0,0,0,0.2);
}
.price-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 980px;
  letter-spacing: 0.02em;
}
.price-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.price-target {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 22px;
}
.price-card-featured .price-target { color: rgba(255,255,255,0.65); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}
.price-amount .yen {
  font-size: 22px;
  font-weight: 500;
}
.price-amount .val {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-amount .val-text {
  font-size: 32px;
  font-weight: 600;
}
.price-amount .per {
  font-size: 14px;
  color: var(--text-mute);
  margin-left: 4px;
}
.price-card-featured .price-amount .per { color: rgba(255,255,255,0.7); }
.price-init {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.price-card-featured .price-init { color: rgba(255,255,255,0.65); }
.price-card .btn { width: 100%; }
.price-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 14px;
  color: var(--text);
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
}
.price-card-featured .price-features li { color: rgba(255,255,255,0.92); }
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.price-card-featured .price-features li::before {
  border-color: var(--blue-bright);
}
.price-features li.off {
  color: var(--text-faint);
  text-decoration: line-through;
}
.price-features li.off::before {
  display: none;
}
.price-features li.off::after {
  content: "—";
  position: absolute;
  left: 2px; top: -1px;
  color: var(--text-faint);
}
.price-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 36px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: left;
  min-height: 44px;
  color: var(--text);
}
.faq-q-text { flex: 1; }
.faq-icon {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s ease, background .2s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: var(--white);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a {
  max-height: 360px;
}
.faq-a p {
  padding: 0 4px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 680px;
}

@media (max-width: 768px) {
  .faq-q { font-size: 15px; padding: 18px 4px; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.section-cta {
  padding: 96px 0 104px;
  background: var(--bg);
}
.section-cta .section-sub { margin-bottom: 36px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  padding: 36px 0 48px;
  background: var(--bg-soft);
  color: var(--text-mute);
  font-size: 12px;
  text-align: center;
}
.footer-note {
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.7;
  color: var(--text-faint);
  font-size: 11px;
}
.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-mute);
}
.footer-brand {
  font-weight: 600;
  color: var(--text);
}
.footer-link {
  color: var(--text-mute);
  text-decoration: none;
  min-height: 24px;
  padding: 2px 4px;
}
.footer-link:hover { color: var(--text); text-decoration: underline; }
.footer-sep { color: var(--text-faint); }

/* =========================================================================
   ANIMATIONS — applied ONLY when body.js-anim is set by JS
   そうでなければ全要素は通常通り表示される（バグ防止）
   ========================================================================= */
body.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
body.js-anim .reveal.in {
  opacity: 1;
  transform: none;
}

/* AI chat enter animation (additive) */
body.js-anim .ai-msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
body.js-anim .ai-chat.play .ai-msg.show {
  opacity: 1;
  transform: none;
}

/* iPhone float */
@keyframes iphone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
body.js-anim .iphone {
  animation: iphone-float 6s ease-in-out infinite;
}

/* =========================================================================
   br-sm utility — manual line break visible only on small screens
   ========================================================================= */
.br-sm { display: none; }
@media (max-width: 640px) {
  .br-sm { display: inline; }
}

/* =========================================================================
   PROBLEM — comparison
   ========================================================================= */
.section-problem { background: var(--bg-soft); }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}
.compare-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.compare-old {
  background: var(--white);
  color: var(--text-mute);
}
.compare-new {
  background: #1d1d1f;
  color: var(--white);
}
.compare-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.compare-new .compare-label {
  color: var(--blue-bright);
}
.compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-list li {
  font-size: 15px;
  line-height: 1.55;
  position: relative;
  padding-left: 0;
}
.compare-list b { font-weight: 700; }
.compare-old .compare-list li { color: var(--text-mute); }
.compare-new .compare-list li { color: rgba(255,255,255,0.92); }
.compare-old .compare-list li b { color: var(--text); }
.compare-new .compare-list li b { color: var(--blue-bright); }
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-faint);
  font-weight: 300;
}

@media (max-width: 820px) {
  .compare {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .compare-arrow {
    transform: rotate(90deg);
    height: 28px;
    font-size: 22px;
  }
  .compare-col { padding: 22px 22px 20px; }
}

/* =========================================================================
   AI EXTRAS — 3-column trio under the AI chat
   ========================================================================= */
.ai-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 72px auto 0;
  text-align: left;
}
.ai-extra {
  padding: 22px 22px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.ai-extra-h {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ai-extra-p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 820px) {
  .ai-extras {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 48px;
  }
}

/* =========================================================================
   REPEAT — PWA + Membership integrated
   ========================================================================= */
.section-repeat {
  background: var(--bg);
}
.repeat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.repeat-layout .iphone-stage {
  padding-top: 0;
  display: flex;
  justify-content: center;
}
.repeat-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}
.repeat-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "num head"
    ".   desc";
  gap: 4px 18px;
  align-items: start;
}
.repeat-feature-num {
  grid-area: num;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,113,227,0.08);
  border-radius: 12px;
}
.repeat-feature-h {
  grid-area: head;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: -0.015em;
  align-self: center;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.repeat-feature-p {
  grid-area: desc;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* Push notification overlay on iPhone screen */
.push-notif {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  text-align: left;
}
.push-ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue) 0%, #004fb3 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.push-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.push-text {
  font-size: 11.5px;
  color: var(--text-mute);
  line-height: 1.35;
}

.iphone-screen { position: relative; }

/* Push notif animation */
body.js-anim .push-notif {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
body.js-anim .push-notif.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .repeat-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .repeat-features { max-width: 480px; margin: 0 auto; }
}

/* =========================================================================
   OPERATIONS — TL + Dashboard
   ========================================================================= */
.section-operations {
  background: var(--bg-soft);
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.ops-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  text-align: left;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.ops-tl {
  background: #1d1d1f;
  color: var(--white);
}
.ops-card-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: 0;
}
.ops-tl .ops-card-eyebrow { color: var(--blue-bright); }
.ops-card-h {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.ops-tl .ops-card-h { color: var(--white); }
.ops-card-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.ops-tl .ops-card-p { color: rgba(255,255,255,0.82); }

/* TL flow inside ops-tl */
.ops-tl .tl-flow { margin-top: auto; }

/* Dashboard mock */
.dash-mock {
  margin-top: auto;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-kpi {
  background: var(--white);
  border-radius: 10px;
  padding: 12px 12px;
}
.dash-kpi-label {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-weight: 500;
}
.dash-kpi-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dash-kpi-value .kpi-unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: 2px;
}
.dash-kpi-delta {
  font-size: 10.5px;
  margin-top: 5px;
  font-weight: 600;
  color: var(--text-mute);
}
.dash-kpi-delta.up { color: #28a745; }
.dash-chart {
  height: 64px;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.dash-chart span {
  flex: 1;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 3px;
  min-height: 4px;
}

@media (max-width: 900px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .ops-card { min-height: auto; padding: 28px 22px 24px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpi:nth-child(3) { grid-column: 1 / -1; }
}

/* =========================================================================
   CAPABILITIES — slim 6-item grid
   ========================================================================= */
.cap-grid.cap-grid-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 36px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .cap-grid.cap-grid-6 { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .cap-grid.cap-grid-6 { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================================
   INTEGRATION ECOSYSTEM
   ========================================================================= */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.eco-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.eco-card:hover {
  transform: translateY(-4px);
}
.eco-logo {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.eco-logo-tl { background: linear-gradient(135deg, #2c2c2e 0%, #1d1d1f 100%); }
.eco-logo-google { background: linear-gradient(135deg, #4285f4 0%, #34a853 100%); }
.eco-logo-stripe { background: linear-gradient(135deg, #635bff 0%, #4339d0 100%); }
.eco-logo-shutto { background: linear-gradient(135deg, #ff9d4d 0%, #e76f17 100%); }
.eco-logo-de { background: linear-gradient(135deg, #0071e3 0%, #004fb3 100%); }
.eco-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.eco-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eco-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}

@media (max-width: 1024px) {
  .eco-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .eco-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eco-card { padding: 22px 18px 20px; }
}

/* =========================================================================
   HERO heading: allow inline break tweak
   ========================================================================= */
.hero-h .br-sm { display: none; }
@media (max-width: 480px) {
  .hero-h .br-sm { display: inline; }
}

/* =========================================================================
   Logo images
   ========================================================================= */
.nav-brand img {
  height: 22px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav-brand img { height: 20px; }
}
.footer-brand {
  height: 18px;
  width: auto;
  display: block;
}
.eco-logo-de {
  background: #fff;
  border: 1px solid var(--line-soft);
  width: auto;
  min-width: 76px;
  padding: 0 12px;
}
.eco-logo-de img {
  height: 18px;
  width: auto;
  display: block;
}

/* prefers-reduced-motion: kill all animations and force-visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.js-anim .reveal,
  body.js-anim .ai-msg {
    opacity: 1 !important;
    transform: none !important;
  }
  body.js-anim .iphone { animation: none !important; }
}
