/* === レシピポケット LP ===
   トンマナはアプリ DESIGN.md / DESIGN-web.md を継承（トマトレッド + ウォームクリーム / ライトモード固定）。
   構成・コード流儀は Pieto Timer LP を踏襲（素の HTML/CSS/JS）。 */

:root {
  /* Brand / Accent（アプリ Light 値を継承） */
  --accent: #E2503D;          /* トマトレッド */
  --accent-pressed: #C53F2E;
  --accent-soft: #F3D9D3;
  --accent-secondary: #4E7A55; /* ハーブグリーン */
  --accent-secondary-soft: #DCE7DA;

  /* Surface & Background */
  --bg: #FBF7F0;              /* ウォームクリーム */
  --surface: #FFFFFF;
  --surface-warm: #F6E3CA;    /* かぼちゃ */
  --surface-tomato: #F3D9D3;  /* トマト */
  --surface-herb: #DCE7DA;    /* バジル */

  /* Text & Border */
  --text: #2A211C;           /* ウォーム・ダークブラウン */
  --text-secondary: #6B5E55;
  --text-tertiary: #9C9087;
  --border: #E8DFD3;
  --footer-bg: #2A211C;
  --footer-text: #F5EFE7;

  /* Elevation（ウォーム rgba・純黒影は使わない） */
  --shadow-1: 0 1px 3px rgba(42, 33, 28, 0.06), 0 4px 12px rgba(42, 33, 28, 0.05);
  --shadow-2: 0 8px 24px rgba(42, 33, 28, 0.10);
  --shadow-3: 0 16px 48px rgba(42, 33, 28, 0.14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* 見出しもゴシックに統一（明朝＝Noto Serif JP は不使用）。
     階層は font-weight（500/600/700）とサイズ・字間で付ける。 */
  --font-serif: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;        /* 17px */
  line-height: 1.8;            /* 日本語最適化 */
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  font-feature-settings: "kern" 1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-pressed); }

img, svg { max-width: 100%; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.container.narrow { max-width: 760px; }

.muted { color: var(--text-secondary); }

/* 見出しヘルパー（ゴシック・明朝不使用。.serif はクラス名のみ歴史的に残す） */
.serif {
  font-family: var(--font-serif);
  font-feature-settings: "palt" 1;
  word-break: keep-all;
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;       /* 17px */
  border: 1.5px solid transparent;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  cursor: pointer;
}
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-pressed); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-pressed); transform: translateY(-2px); }
.btn-text { color: var(--accent); text-decoration: underline; font-weight: 500; padding: 0; min-height: 0; }

/* App Store バッジ（未リリース＝準備中プレースホルダ） */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--footer-text);
  cursor: default;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
a.appstore-badge { cursor: pointer; }
a.appstore-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--footer-text); }
.appstore-badge .apple-glyph { flex: 0 0 auto; }
.appstore-badge .badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-badge .badge-text small { font-size: 0.6875rem; opacity: 0.8; font-weight: 400; letter-spacing: 0.04em; }
.appstore-badge .badge-text strong { font-size: 1.1875rem; font-weight: 600; }
.appstore-badge .coming-tag {
  margin-left: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  align-self: center;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-1);
  background: rgba(251, 247, 240, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(20px, 5vw, 40px);
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.0625rem;
}
.brand:hover { color: var(--text); }
.brand-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-1); }
.brand-name { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0.01em; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
}
.header-nav a:not(.btn):not(.appstore-badge) { color: var(--text-secondary); font-weight: 500; }
.header-nav a:not(.btn):not(.appstore-badge):hover { color: var(--text); }
.header-nav .appstore-badge { min-height: 40px; padding: 6px 14px; }
.header-nav .appstore-badge .badge-text strong { font-size: 0.9375rem; }
.header-nav .appstore-badge .badge-text small { font-size: 0.5625rem; }

/* ===== Hero ===== */
.hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(72px, 12vw, 130px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-warm) 140%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-pressed);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-feature-settings: "palt" 1;
  word-break: keep-all;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
}
.hero-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0 0 32px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  margin: 22px 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg { flex: 0 0 auto; }

/* Hero visual — 端末2台斜め重ね（Crouton 型） */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.device {
  position: relative;
  width: clamp(190px, 24vw, 230px);
  border-radius: 38px;
  background: var(--text);
  padding: 8px;
  box-shadow: var(--shadow-3);
}
.device img { display: block; width: 100%; border-radius: 30px; }
.device .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: var(--text);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.device-front { transform: rotate(3deg); z-index: 2; }
.device-back {
  position: absolute;
  left: 8%;
  top: 4%;
  transform: rotate(-5deg) scale(0.92);
  z-index: 1;
  box-shadow: var(--shadow-2);
  opacity: 0.96;
}
/* 食材アクセント */
.food-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.food-dot.tomato { width: 88px; height: 88px; background: var(--surface-tomato); top: 2%; right: 4%; }
.food-dot.herb { width: 62px; height: 62px; background: var(--accent-secondary-soft); bottom: 6%; left: 0; }

/* ===== Sections ===== */
.section { padding: clamp(72px, 12vw, 130px) 0; }
.section.alt-warm { background: var(--surface-warm); }
.section.alt-herb { background: var(--surface-herb); }
.section.alt-surface { background: var(--surface); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 60px); }
.section-title {
  font-family: var(--font-serif);
  font-feature-settings: "palt" 1;
  word-break: keep-all;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Intro ===== */
.intro .container { text-align: center; }
.intro-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 16px rgba(42, 33, 28, 0.14));
}
@media (max-width: 600px) { .intro-logo { width: 96px; height: 96px; } }
.intro-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 0;
}
.intro-lead strong { color: var(--text); font-weight: 700; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-icon.green { background: var(--accent-secondary-soft); color: var(--accent-secondary); }
.feature-card h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

/* ===== Cook Mode band（Jullienne 型・端末1台 + 説明） ===== */
.cookband { background: var(--surface-tomato); overflow: hidden; }
.cookband-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.cookband-text .eyebrow { background: rgba(226, 80, 61, 0.16); }
.cookband-text h2 {
  font-family: var(--font-serif);
  word-break: keep-all;
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.cookband-text p { font-size: 1.0625rem; color: var(--text-secondary); margin: 0 0 12px; }
.cookband-visual { display: flex; justify-content: center; }
.cookband-visual .device { width: clamp(200px, 26vw, 240px); transform: rotate(-3deg); }

/* ===== Pricing ===== */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.toggle {
  display: inline-flex;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-pressed);
  padding: 9px 22px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.toggle .save-note {
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: 6px;
  color: var(--accent-secondary);
}
.toggle button[aria-pressed="true"] .save-note { color: #fff; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-2); }
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 700; margin: 0 0 6px; }
.plan-tagline { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 20px; min-height: 1.6em; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.plan-price .amount {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.plan-price .per { font-size: 0.9375rem; color: var(--text-secondary); font-family: var(--font-sans); }
.plan-price .alt-price { font-size: 0.8125rem; color: var(--accent-secondary); font-family: var(--font-sans); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 7px 0;
}
.plan-features li svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent-secondary); }
.plan .btn { width: 100%; }
.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 28px auto 0;
  max-width: 560px;
}

/* ===== Other apps ===== */
.otherapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent-soft); color: var(--text); }
.app-card .app-icon { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; box-shadow: var(--shadow-1); }
.app-card .app-body { flex: 1; min-width: 0; }
.app-card .app-name { font-weight: 700; font-size: 1.0625rem; margin: 0 0 2px; }
.app-card .app-desc { font-size: 0.875rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.app-card .app-arrow { flex: 0 0 auto; color: var(--text-tertiary); transition: transform 0.2s ease, color 0.2s ease; }
.app-card:hover .app-arrow { transform: translateX(3px); color: var(--accent); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: box-shadow 0.2s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-1); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-list p { margin: 14px 0 0; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.8; }

/* ===== Company (WATRIX) ===== */
.section.company { background: var(--surface-herb); }
.company-inner { text-align: center; }
.company-name { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 16px; }
.company-inner p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 28px; }

/* ===== CTA ===== */
.section.cta { background: var(--bg); text-align: center; }
.cta-inner h2 {
  font-family: var(--font-serif);
  word-break: keep-all;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cta-inner p { color: var(--text-secondary); margin: 0 0 32px; font-size: 1.0625rem; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(48px, 8vw, 72px) 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand span { font-family: var(--font-serif); font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.01em; }
.footer-tagline { color: rgba(245, 239, 231, 0.72); font-size: 0.9375rem; margin: 0; max-width: 360px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--footer-text); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  margin-top: clamp(32px, 6vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(245, 239, 231, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(245, 239, 231, 0.62);
}
.footer-bottom a { color: rgba(245, 239, 231, 0.78); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== Scroll fade-in ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Mobile nav ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; min-height: 420px; }
  .hero-cta, .hero-meta { justify-content: center; }
  .cookband-inner { grid-template-columns: 1fr; text-align: center; }
  .cookband-visual { order: -1; }
  .cookband-text .eyebrow { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .plan.featured { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  /* モバイル: ナビリンクを隠してトグル表示 */
  .header-nav { gap: 14px; }
  .header-nav .nav-anchor { display: none; }
  .device-back { display: none; }
  .device-front { transform: rotate(0deg); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .fade-in { opacity: 1; transform: none; }
  .btn:hover, .feature-card:hover, .app-card:hover, .plan:hover { transform: none; }
}
