@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ==========================================================================
   LeanSave LP — Simple / Premium / Mobile-first
   ========================================================================== */

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

:root {
  /* Brand */
  --accent: #FF6B35;
  --accent-dark: #E85A27;
  --accent-soft: #FFF3EC;
  --gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);

  /* Neutrals — near-monochrome */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --bg-dark: #0A0A0A;
  --surface: #F5F5F5;
  --surface-2: #EFEFEF;
  --border: #EDEDED;
  --border-strong: #DCDCDC;
  --text-primary: #0A0A0A;
  --text-secondary: #555558;
  --text-tertiary: #9A9AA0;
  --text-on-dark: #FFFFFF;
  --text-on-dark-dim: rgba(255, 255, 255, 0.56);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 10, 10, 0.10), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 32px 80px -24px rgba(10, 10, 10, 0.24), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-accent: 0 12px 32px -10px rgba(255, 107, 53, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Typography */
  --font-display: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--text-primary); text-decoration: none; transition: opacity 0.2s var(--ease); }
a:hover { opacity: 0.7; }

button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ==========================================================================
   Nav
   ========================================================================== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
nav .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-img {
  height: 32px;
  width: 27px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 1; }
.footer-logo-img {
  height: 32px;
  width: 27px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-back {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-cta {
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); }
.nav-cta:active { transform: translateY(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 140px 32px 160px;
  text-align: center;
  overflow: clip;
  overflow-clip-margin: 60px;
  background: #FFFFFF;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.2vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  color: var(--text-primary);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  display: inline;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

/* Hero form — pill shape */
.hero-form {
  display: flex;
  gap: 6px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.hero-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 14px 22px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: var(--text-primary);
}
.hero-form input[type="email"]::placeholder { color: var(--text-tertiary); }

.btn-primary {
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent); }
.btn-primary:active { transform: translateY(0); }

.hero-note {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-bottom: 96px;
}
.hero-note .dot { display: inline-block; margin: 0 10px; opacity: 0.4; }

/* ==========================================================================
   Mockup phones (three screens)
   ========================================================================== */
.mockup-wrap {
  margin-top: 24px;
  position: relative;
}
.mockup-wrap::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -20px;
  transform: translateX(-50%);
  width: 70%; max-width: 500px; height: 80px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.15), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

/* 3D Scene */
.mockup-3d-scene {
  perspective: 1200px;
  perspective-origin: 50% 40%;
}

.mockup-phones {
  transform-style: preserve-3d;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
.mockup-phones > div { display: flex; flex-direction: column; align-items: center; }

.mockup-phone {
  width: 210px; height: 426px;
  background: #0A0A0A;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 56px -18px rgba(10, 10, 10, 0.28),
    0 10px 24px rgba(10, 10, 10, 0.08),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: visible;
  transition: transform 0.6s var(--ease);
}

/* サイドフォン(左) */
.mockup-phones > div:nth-child(1) .mockup-phone {
  transform: rotateY(12deg) rotateX(3deg) translateZ(-20px) scale(0.88);
  transform-origin: center bottom;
}

/* メインフォン(中央)- 最前面 */
.mockup-phone.main {
  width: 244px; height: 496px;
  transform: rotateY(-2deg) rotateX(5deg) translateZ(60px);
  transform-origin: center bottom;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 32px 80px -16px rgba(15,15,16,0.5),
    0 8px 32px rgba(255,107,53,0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  z-index: 2;
}

/* サイドフォン(右) */
.mockup-phones > div:nth-child(3) .mockup-phone {
  transform: rotateY(-12deg) rotateX(3deg) translateZ(-20px) scale(0.88);
  transform-origin: center bottom;
}

/* hover で浮き上がる */
.mockup-phone.main:hover {
  transform: rotateY(-2deg) rotateX(3deg) translateZ(80px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mockup-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, transparent 32%, transparent 78%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}
.mockup-phone::after {
  content: '';
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 17px;
  background: #0A0A0A;
  border-radius: 999px;
  z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mockup-phone.main::after { width: 74px; height: 19px; top: 13px; }

.mockup-statusbar { display: none; }
.mockup-signal {
  width: 14px; height: 8px;
  background:
    linear-gradient(to right, currentColor 22%, rgba(10,10,10,0.22) 22% 46%, currentColor 46% 70%, rgba(10,10,10,0.22) 70% 94%, currentColor 94%);
  border-radius: 1px;
  color: var(--text-primary);
}

/* Screen base */
.mockup-screen {
  position: absolute;
  inset: 6px 6px 6px;
  border-radius: 32px;
  padding: 16px 0 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.mockup-phone.main .mockup-screen {
  inset: 7px 7px 7px;
  border-radius: 36px;
  padding: 18px 0 0;
}

/* Screen header shared */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.screen-title {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.screen-chip {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.screen-chip.chip-ok {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.screen-chip.chip-progress {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* -------- Screen 1: 食費管理 -------- */
.screen-budget {
  background: linear-gradient(180deg, #FFF8F4 0%, #FFFFFF 55%);
  overflow: visible;
  padding-left: 16px;
  padding-right: 16px;
}
.budget-hero {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: center;
  margin: 8px 0 12px;
}
.budget-current {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  line-height: 1;
}
/* 画面1: ¥12,400 を左に飛び出し */
.screen-budget .budget-hero {
  position: absolute;
  top: 32%;
  left: -22px;
  right: auto;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #fff;
  padding: 10px 14px 10px 16px;
  border-radius: 14px;
  box-shadow:
    0 16px 40px -8px rgba(10, 10, 10, 0.18),
    0 4px 14px rgba(255, 107, 53, 0.18),
    0 0 0 1px rgba(10, 10, 10, 0.04);
  z-index: 12;
}
.screen-budget .budget-current {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0A0A0A 0%, #3D2817 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.92;
}
.screen-budget .budget-target {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
/* プログレスバーを左に飛び出し */
.screen-budget .budget-bar {
  position: absolute;
  top: 58%;
  left: -14px;
  right: 14px;
  width: auto;
  height: 10px;
  margin: 0;
  z-index: 11;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 22px -4px rgba(255, 107, 53, 0.28),
    0 0 0 1px rgba(10, 10, 10, 0.06);
}
.screen-budget .budget-bar-fill {
  box-shadow:
    0 0 16px rgba(255, 107, 53, 0.6),
    0 0 4px rgba(255, 107, 53, 0.8);
}
.budget-target {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}
.budget-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.budget-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}
.budget-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
/* hero/bar が絶対配置で飛び出すため、下半分にオフセット */
.screen-budget .budget-meta {
  margin-top: auto;
  margin-bottom: 10px;
}
.screen-budget .budget-day {
  margin-top: 0;
}
.meta-cell {
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 6px;
  text-align: center;
}
.meta-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.meta-label {
  font-size: 9px;
  color: var(--text-tertiary);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.budget-day {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 90, 0.04));
  border: 1px solid rgba(255, 107, 53, 0.16);
  border-radius: 10px;
}
.budget-day-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.budget-day-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.01em;
}

/* -------- Screen 2: AI解析 (center, main) -------- */
.screen-home {
  background: #FFFFFF;
  align-items: center;
  text-align: center;
  padding: 0 16px !important;
  overflow: visible;
}
.ai-badge {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  z-index: 12;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(10, 10, 10, 0.22);
}
.ai-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.35);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
/* 食事写真を画面上半分にフルブリード */
.screen-home .food-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54%;
  width: auto;
  margin: 0;
  border-radius: 0;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  background:
    radial-gradient(circle at 35% 38%, rgba(240, 200, 110, 0.75), transparent 36%),
    radial-gradient(circle at 68% 30%, rgba(210, 155, 70, 0.60), transparent 32%),
    radial-gradient(circle at 22% 72%, rgba(245, 240, 220, 0.50), transparent 30%),
    radial-gradient(circle at 75% 70%, rgba(100, 140, 70, 0.38), transparent 32%),
    radial-gradient(circle at 52% 55%, rgba(180, 110, 45, 0.50), transparent 42%),
    linear-gradient(160deg, #2C1A0E 0%, #5C3317 22%, #8B5E2A 44%, #C4923E 66%, #E8BC68 84%, #D4A84B 100%);
  box-shadow:
    inset 0 -60px 80px rgba(20, 10, 5, 0.55),
    inset 0 20px 50px rgba(220, 180, 80, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px -10px rgba(120, 70, 20, 0.28);
  overflow: hidden;
  z-index: 1;
}
.screen-home .food-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.65), transparent 38%),
    radial-gradient(circle at 78% 80%, rgba(255, 140, 40, 0.25), transparent 36%);
  z-index: 3;
}
.screen-home .food-photo-tag {
  position: absolute;
  top: 54px;
  right: 12px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  z-index: 3;
}
/* 下半分のコンテンツ配置 */
.screen-home .food-name {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  padding: 0 20px;
  z-index: 6;
  text-align: left;
}
.screen-home .food-name::before {
  content: 'MEAL';
  display: block;
  font-size: 8px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
/* カロリー数値を右に飛び出し */
.screen-home .food-calories {
  position: absolute;
  top: 50%;
  right: -44px;
  transform: translateY(-54%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  padding: 10px 16px 10px;
  border-top: 2px solid var(--accent);
  box-shadow:
    0 18px 44px -6px rgba(255, 107, 53, 0.48),
    0 6px 18px rgba(10, 10, 10, 0.14),
    0 0 0 1px rgba(255, 107, 53, 0.14);
  z-index: 14;
}
.screen-home .cal-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 60%, #FFB347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.92;
}
.screen-home .cal-unit {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.cal-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.cal-unit {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.food-photo {
  width: 100%;
  height: 96px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 200, 80, 0.95), transparent 44%),
    radial-gradient(circle at 72% 58%, rgba(255, 107, 53, 0.80), transparent 48%),
    radial-gradient(circle at 50% 82%, rgba(34, 197, 94, 0.55), transparent 42%),
    linear-gradient(135deg, #FFD7A8 0%, #FFB080 50%, #F9A46A 100%);
  position: relative;
  margin-bottom: 14px;
}
.food-photo-tag {
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}
.food-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.food-calories {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 16px;
}
/* PFC バーをメイン画面下部から飛び出し */
.screen-home .pfc-bars {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 14px 14px;
  background: #fff;
  border-radius: 18px;
  border-top: 2px solid var(--surface-2);
  box-shadow:
    0 20px 48px -10px rgba(10, 10, 10, 0.22),
    0 6px 20px rgba(255, 107, 53, 0.16),
    0 0 0 1px rgba(10, 10, 10, 0.04);
  z-index: 11;
}
.pfc-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}
.pfc-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pfc-label {
  width: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.pfc-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.pfc-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.pfc-fill.pfc-p { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.pfc-fill.pfc-f { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.pfc-fill.pfc-c { background: linear-gradient(90deg, #10B981, #34D399); }
.pfc-value {
  width: 24px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* -------- Scan animation elements -------- */
/* スキャンライン */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.9) 40%, rgba(255, 200, 80, 0.95) 50%, rgba(255, 107, 53, 0.9) 60%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.7), 0 0 20px rgba(255, 107, 53, 0.3);
  z-index: 4;
  animation: scan-move 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan-move {
  0%   { top: 10%; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* スキャングリッド */
.scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 53, 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 2;
  pointer-events: none;
  animation: grid-pulse 2.4s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* コーナーマーカー（カメラフォーカス枠） */
.scan-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 5;
  pointer-events: none;
}
.scan-corner::before,
.scan-corner::after {
  content: '';
  position: absolute;
  background: rgba(255, 107, 53, 0.95);
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.8);
}
/* 横線 */
.scan-corner::before { height: 2.5px; width: 100%; top: 0; left: 0; }
/* 縦線 */
.scan-corner::after  { width: 2.5px; height: 100%; top: 0; left: 0; }

.scan-corner-tl { top: 10px; left: 10px; }
.scan-corner-tr { top: 10px; right: 10px; transform: scaleX(-1); }
.scan-corner-bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.scan-corner-br { bottom: 10px; right: 10px; transform: scale(-1); }

/* -------- カロリーカード：AIラベル追加 -------- */
.cal-ai-label {
  display: block;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
  white-space: nowrap;
}

/* -------- PFCカード：ヘッダー -------- */
.pfc-header {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* -------- Screen 3: 目標の身体 -------- */
.screen-goal {
  background: linear-gradient(180deg, #FFF8F4 0%, #FFFFFF 65%);
  overflow: visible;
  padding-left: 16px;
  padding-right: 16px;
}
.goal-ring {
  width: 112px; height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0% 40%, var(--surface-2) 40% 100%);
  margin: 6px auto 14px;
  position: relative;
  box-shadow: 0 6px 22px -6px rgba(255, 107, 53, 0.38);
}
/* 画面3: goal-ring を上右に飛び出し */
.screen-goal .goal-ring {
  position: absolute;
  top: -36px;
  right: -26px;
  margin: 0;
  width: 116px;
  height: 116px;
  background: conic-gradient(var(--accent) 0% 40%, var(--surface-2) 40% 100%);
  box-shadow:
    0 20px 48px -6px rgba(255, 107, 53, 0.48),
    0 8px 22px rgba(10, 10, 10, 0.18),
    inset 0 0 0 6px rgba(255, 255, 255, 0.9);
  z-index: 12;
}
.screen-goal .goal-ring::before {
  inset: 10px;
  background: #fff;
  box-shadow: inset 0 2px 6px rgba(255, 107, 53, 0.18);
}
.goal-ring::before {
  content: '';
  position: absolute;
  inset: 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.goal-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.goal-ring-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.035em;
  line-height: 1;
}
.goal-ring-num span {
  font-size: 13px;
  color: var(--accent);
  margin-left: 1px;
}
.goal-ring-sub {
  font-size: 9px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.goal-weights {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
/* goal-ring が飛び出すため、重なりを回避して下寄せ */
.screen-goal .goal-weights {
  margin-top: 88px;
}
.screen-goal .goal-cal {
  margin-top: 12px;
}
.weight-cell {
  flex: 1;
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 4px;
  text-align: center;
}
.weight-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.weight-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1;
}
.weight-value span {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-left: 1px;
}
.weight-value.goal {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.weight-arrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-tertiary);
}
.goal-cal {
  margin-top: auto;
  padding: 11px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.goal-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.goal-cal-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.goal-cal-num .u {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-left: 1px;
}
.goal-cal-bar {
  height: 5px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.goal-cal-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
}

/* Mockup label under phone */
.mockup-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Section base
   ========================================================================== */
section { padding: 160px 32px; position: relative; }
.section-head { text-align: center; margin-bottom: 112px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   Features — numbered vertical blocks
   ========================================================================== */
.features-section {
  background: #FFFFFF;
}
.features-list {
  max-width: 880px;
  margin: 0 auto;
}
.feature-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 8px;
}
.feature-body h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.feature-body p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ==========================================================================
   CTA Section — dark
   ========================================================================== */
.cta-section {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 160px 32px;
  color: #fff;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.24), transparent 55%);
  pointer-events: none;
}
.cta-section > * { position: relative; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #fff;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section p {
  font-size: 17px;
  color: var(--text-on-dark-dim);
  margin-bottom: 56px;
  line-height: 1.8;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark form — white pill on dark bg */
.cta-form {
  display: flex;
  gap: 6px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 16px;
  padding: 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 14px 22px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: var(--text-primary);
}
.cta-form input[type="email"]::placeholder { color: var(--text-tertiary); }
.btn-dark-cta {
  background: var(--text-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn-dark-cta:hover { transform: translateY(-1px); background: var(--accent); }
.cta-note {
  font-size: 12px;
  color: var(--text-on-dark-dim);
  letter-spacing: 0.04em;
}
.cta-note .dot { display: inline-block; margin: 0 10px; opacity: 0.4; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 32px 56px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-links {
  display: flex; gap: 36px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: #fff;
  opacity: 1;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sub-page common (privacy / contact)
   ========================================================================== */
.page-header {
  padding: 120px 32px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}
.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
  letter-spacing: 0.01em;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 32px 140px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 56px 0 18px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p,
.page-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 10px;
}
.page-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  transition: border-color 0.2s var(--ease);
}
.page-content a:hover {
  border-color: var(--accent);
  opacity: 1;
}
.page-content ul { padding-left: 22px; }
.page-content strong { color: var(--text-primary); font-weight: 700; }
.page-content .updated {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-lead {
  margin-bottom: 48px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
}
.contact-lead a { color: var(--accent); border-bottom: 1px solid rgba(255, 107, 53, 0.3); }
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 28px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group label .required {
  color: var(--accent);
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: #fff;
  color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.06);
}
.form-group textarea { resize: vertical; min-height: 160px; line-height: 1.75; }
.form-submit { margin-top: 20px; }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0 4px;
}
.form-privacy input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form-privacy label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}
.form-privacy label a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.btn-primary-full {
  width: 100%;
  padding: 17px;
  border-radius: 999px;
  border: none;
  background: var(--text-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  letter-spacing: 0.01em;
}
.btn-primary-full:hover { transform: translateY(-1px); background: var(--accent); }

.btn-outline {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* Success message */
.success-panel {
  display: none;
  text-align: center;
  padding: 56px 0;
}
.success-panel .success-icon {
  width: 68px; height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.success-panel .success-icon svg { width: 32px; height: 32px; }
.success-panel h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.success-panel p {
  color: var(--text-secondary);
  line-height: 1.8;
}
.success-panel .btn-outline {
  margin-top: 32px;
}

/* FAQ panel */
.faq-panel {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.faq-panel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.faq-item { margin-bottom: 24px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item .q {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.6;
}
.faq-item .a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease) forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  section { padding: 120px 32px; }
  .section-head { margin-bottom: 80px; }
  .feature-row {
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .hero { padding: 112px 24px 128px; }
  .hero-note { margin-bottom: 72px; }
}

@media (max-width: 640px) {
  nav { padding: 14px 0; }
  nav .inner { padding: 0 24px; }
  .nav-logo { font-size: 17px; }
  .nav-cta { padding: 9px 18px; font-size: 12px; }
  .container, .container-narrow { padding: 0 24px; }

  .hero { padding: 88px 24px 96px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 24px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 40px; }
  .hero-note { margin-bottom: 56px; }

  .hero-form,
  .cta-form {
    flex-direction: column;
    padding: 8px;
    border-radius: 22px;
    gap: 6px;
  }
  .hero-form input[type="email"],
  .cta-form input[type="email"] { min-width: unset; width: 100%; padding: 14px 18px; }
  .hero-form .btn-primary,
  .cta-form .btn-dark-cta { width: 100%; padding: 15px; }

  .mockup-wrap { margin-top: 16px; overflow: visible; }
  .mockup-3d-scene { perspective: 800px; }
  .mockup-phones { gap: 6px; }
  .mockup-phone { width: 112px; height: 230px; border-radius: 24px; }
  .mockup-phone.main { width: 132px; height: 268px; }
  .mockup-phones > div:nth-child(1) .mockup-phone {
    transform: rotateY(6deg) rotateX(2deg) translateZ(-10px) scale(0.88);
  }
  .mockup-phone.main {
    transform: rotateY(-1deg) rotateX(3deg) translateZ(30px);
  }
  .mockup-phones > div:nth-child(3) .mockup-phone {
    transform: rotateY(-6deg) rotateX(2deg) translateZ(-10px) scale(0.88);
  }
  .mockup-phone::after { width: 42px; height: 12px; top: 8px; }
  .mockup-phone.main::after { width: 48px; height: 13px; top: 9px; }
  .mockup-statusbar { top: 30px; left: 14px; right: 14px; font-size: 8px; }
  .mockup-phone.main .mockup-statusbar { top: 32px; left: 16px; right: 16px; font-size: 8px; }
  .mockup-signal { width: 12px; height: 6px; }

  .mockup-screen { inset: 5px 5px 5px; padding: 14px 0 0; border-radius: 22px; }
  .mockup-phone.main .mockup-screen { inset: 5px 5px 5px; padding: 16px 0 0; border-radius: 24px; }

  .screen-header { margin-bottom: 9px; }
  .screen-title { font-size: 8.5px; }
  .screen-chip { font-size: 7px; padding: 2px 6px; }

  /* Screen 1 */
  .budget-current { font-size: 18px; }
  .budget-target { font-size: 8px; }
  .budget-bar { height: 5px; margin-bottom: 8px; }
  .budget-meta { gap: 5px; margin-bottom: 7px; }
  .meta-cell { padding: 5px 3px; border-radius: 7px; }
  .meta-value { font-size: 10px; }
  .meta-label { font-size: 7px; }
  .budget-day { padding: 5px 7px; border-radius: 7px; }
  .budget-day-label { font-size: 7px; }
  .budget-day-value { font-size: 10px; }
  /* 飛び出し要素のモバイル調整 */
  .screen-budget .budget-hero {
    top: 30%;
    left: -14px;
    padding: 6px 9px 6px 10px;
    border-radius: 9px;
  }
  .screen-budget .budget-current { font-size: 18px; }
  .screen-budget .budget-target { font-size: 6.5px; }
  .screen-budget .budget-bar {
    top: 60%;
    left: -8px;
    right: 8px;
    height: 6px;
  }
  .screen-budget .budget-meta { margin-top: auto; margin-bottom: 6px; }

  /* Screen 2 */
  .ai-badge { font-size: 7px; padding: 3px 7px; margin-bottom: 7px; }
  .ai-dot { width: 4px; height: 4px; }
  .food-photo { height: 58px; margin-bottom: 8px; border-radius: 10px; }
  .food-photo-tag { font-size: 8px; padding: 2px 6px; top: 5px; right: 5px; }
  .food-name { font-size: 10px; margin-bottom: 2px; }
  .food-calories { margin-bottom: 10px; }
  .cal-num { font-size: 22px; }
  .cal-unit { font-size: 8px; }
  .pfc-bars { gap: 5px; }
  .pfc-row { gap: 5px; }
  .pfc-label { width: 10px; font-size: 7.5px; }
  .pfc-track { height: 4px; }
  .pfc-value { width: 18px; font-size: 7px; }
  /* Screen 2 飛び出し調整 */
  .screen-home .ai-badge {
    top: 30px;
    padding: 4px 8px;
    font-size: 7px;
  }
  .screen-home .food-photo {
    height: 55%;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .screen-home .food-photo-tag {
    top: 36px;
    right: 8px;
    font-size: 8px;
    padding: 3px 7px;
  }
  .screen-home .food-name {
    top: 60%;
    font-size: 11px;
    padding: 0 12px;
  }
  .screen-home .food-name::before { font-size: 6px; margin-bottom: 2px; }
  .screen-home .food-calories {
    right: -26px;
    padding: 7px 10px 6px;
    border-radius: 11px;
  }
  .screen-home .cal-num { font-size: 26px; }
  .screen-home .cal-unit { font-size: 7px; }
  .screen-home .pfc-bars {
    left: 8px;
    right: 8px;
    bottom: -16px;
    padding: 8px 9px 10px;
    gap: 5px;
    border-radius: 11px;
  }

  /* Screen 3 */
  .goal-ring { width: 72px; height: 72px; margin: 0 auto 10px; }
  .goal-ring::before { inset: 6px; }
  .goal-ring-num { font-size: 15px; }
  .goal-ring-num span { font-size: 8px; }
  .goal-ring-sub { font-size: 6.5px; }
  /* 飛び出し調整 */
  .screen-goal {
    padding-left: 8px;
    padding-right: 8px;
    overflow: visible;
  }
  .screen-goal .goal-ring {
    width: 60px;
    height: 60px;
    top: -16px;
    right: -6px;
    box-shadow:
      0 8px 20px -4px rgba(255, 107, 53, 0.5),
      0 4px 10px rgba(10, 10, 10, 0.14);
  }
  .screen-goal .goal-ring::before { inset: 5px; }
  .screen-goal .goal-weights { margin-top: 42px; }
  .screen-goal .goal-cal { margin-top: 6px; }
  .goal-weights { gap: 3px; margin-bottom: 6px; }
  .weight-cell { padding: 4px 2px; border-radius: 6px; }
  .weight-label { font-size: 5.5px; }
  .weight-value { font-size: 9px; }
  .weight-value span { font-size: 6px; }
  .weight-arrow { font-size: 8px; }
  .goal-cal { padding: 5px; border-radius: 6px; }
  .goal-cal-head { font-size: 6px; margin-bottom: 3px; white-space: nowrap; }
  .goal-cal-num { font-size: 7.5px; white-space: nowrap; }
  .goal-cal-num .u { font-size: 6px; }
  .goal-cal-bar { height: 3px; }

  .mockup-label { font-size: 9.5px; margin-top: 14px; }

  section { padding: 96px 24px; }
  .section-head { margin-bottom: 64px; }
  .section-eyebrow { font-size: 11px; margin-bottom: 16px; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 44px 0;
  }
  .feature-num { font-size: 15px; padding-top: 0; }
  .feature-body h3 { margin-bottom: 14px; }
  .feature-body p { font-size: 15px; }

  .cta-section { padding: 96px 24px; }
  .cta-section p { margin-bottom: 40px; font-size: 15px; }

  .page-header { padding: 80px 24px 56px; }
  .page-content { padding: 64px 24px 96px; }
  .page-content h2 { font-size: 19px; margin: 44px 0 14px; }
  .contact-form { padding: 32px 24px; }
  .faq-panel { padding: 28px; }

  footer { padding: 56px 24px 40px; }
  .footer-links { gap: 24px; }
}

@media (max-width: 380px) {
  .mockup-phones { gap: 7px; }
  .mockup-phone { width: 108px; height: 222px; }
  .mockup-phone.main { width: 128px; height: 262px; }
  .budget-current { font-size: 16px; }
  .cal-num { font-size: 19px; }
  .goal-ring { width: 62px; height: 62px; }
  .goal-ring-num { font-size: 13px; }
  .weight-value { font-size: 10px; }
}
