/* tabeta ランディングページ。デザイン: tabeta Design Spec（ヘルシー・信頼・あたたかみ）準拠。
   元の design-tool 出力（web/LP）からインラインstyleを抽出し、トークン化＋レスポンシブ化した。 */

:root {
  /* surfaces */
  --bg: #f8f4ec;
  --section: #fffdf7;
  --surface: #fffdf7;
  --surface-alt: #f2eee3;
  --nested: #eee3cf;
  --ink: #2e2a24;
  --border: rgba(122, 107, 89, 0.1);
  --border-card: rgba(122, 107, 89, 0.08);

  /* text */
  --text: #41382d;
  --text-body: #6e6052;
  --text-mute: #8a7d6e;
  --text-faint: #a0937f;
  --text-logo: #6e5a45;

  /* brand green */
  --green: #5e8c44;
  --green-deep: #4f7a3e;
  --green-mid: #6fa254;
  --green-soft: #7fb069;
  --green-light: #b8d49a;
  --green-fill: #e8f0df;
  --green-tint: #eef4e5;

  /* accent orange (limited) */
  --orange: #d9885f;
  --orange-deep: #c97b52;
  --orange-fill: #fbeee5;

  /* nutrition */
  --fat: #d6a93e;

  --radius-pill: 100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 10px 30px rgba(74, 63, 53, 0.05);
  --shadow-card-hover: 0 18px 40px rgba(74, 63, 53, 0.1);

  --font-ui: "Zen Maru Gothic", sans-serif;
  --font-num: "Quicksand", sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(56px, 7vw, 100px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: #c9deb4; color: #3a4d2c; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* scroll-reveal: 既定は表示（JS無効/失敗でも内容が見える）。JS有効時(html.js)のみ初期非表示にして
   .is-visible で出現させる。<head> のインラインスクリプトが html に .js を付ける。 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
}

/* ============ レイアウト ============ */
.container { max-width: var(--maxw); margin: 0 auto; }
.section { padding: var(--pad-y) var(--pad-x); }
.section--surface { background: var(--section); }
.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 68px); }
.eyebrow {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--green-soft);
  margin-bottom: 12px;
}
.eyebrow--green { color: var(--green); }
h2.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.section-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 540px;
  margin: 14px auto 0;
}

/* ============ ロゴ ============ */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(150deg, var(--green-light) 0%, var(--green-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(127, 176, 105, 0.35);
}
.brand__leaf {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0;
  background: var(--surface); transform: rotate(-45deg);
}
.brand__name {
  font-family: var(--font-num); font-weight: 700; font-size: 25px;
  color: var(--text-logo); letter-spacing: -0.5px;
}

/* ============ ナビ ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  background: rgba(248, 244, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav__link { text-decoration: none; color: var(--text-logo); font-weight: 500; font-size: 15px; }
.nav__link:hover { color: var(--green); }
.nav__menu { display: contents; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: var(--radius-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn--primary {
  background: var(--green); color: var(--surface);
  box-shadow: 0 6px 16px rgba(94, 140, 68, 0.3);
}
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(60px, 7vw, 110px); }
.hero__blob { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.hero__blob--green {
  top: -80px; right: -60px; width: 460px; height: 460px;
  background: radial-gradient(circle at 30% 30%, rgba(184, 212, 154, 0.55), rgba(184, 212, 154, 0) 70%);
  filter: blur(8px);
}
.hero__blob--orange {
  bottom: 0; left: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(238, 155, 121, 0.3), rgba(238, 155, 121, 0) 70%);
}
.hero__inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-fill); color: var(--green-deep);
  font-weight: 700; font-size: 13px; padding: 8px 15px;
  border-radius: var(--radius-pill); margin-bottom: 24px;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-soft); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.12; font-weight: 900;
  color: var(--text); letter-spacing: -1px; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--green); }
.hero__lead {
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.85; color: var(--text-body);
  max-width: 480px; margin-bottom: 34px;
}
.hero__disclaimer { font-size: 12.5px; color: var(--text-faint); line-height: 1.6; max-width: 420px; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--ink); color: var(--surface);
  padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(46, 42, 36, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46, 42, 36, 0.28); }
.store-badge--light { background: var(--surface); color: var(--ink); box-shadow: 0 10px 24px rgba(46, 42, 36, 0.18); }
.store-badge__sub { font-size: 10px; opacity: 0.8; font-family: var(--font-num); }
.store-badge__main { font-size: 18px; font-weight: 600; font-family: var(--font-num); }
.store-badge__txt { text-align: left; line-height: 1.1; }

/* phone mockup */
.hero__visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero__visual-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: linear-gradient(150deg, #c9e0ac, #8fbe6e); z-index: 0; filter: blur(2px); opacity: 0.55;
}
.phone {
  position: relative; z-index: 1; width: 286px; height: 588px;
  background: var(--ink); border-radius: 44px; padding: 11px;
  box-shadow: 0 34px 70px rgba(74, 63, 53, 0.32), 0 8px 20px rgba(74, 63, 53, 0.18);
  animation: floaty 6s ease-in-out infinite;
}
.phone__screen { width: 100%; height: 100%; background: #fbf8f1; border-radius: 34px; overflow: hidden; position: relative; }
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 4;
}
.phone__status {
  display: flex; justify-content: space-between; padding: 14px 22px 6px;
  font-family: var(--font-num); font-size: 12px; font-weight: 600; color: var(--text-logo);
}
.phone__photo {
  margin: 8px 14px 0; height: 218px; border-radius: 22px;
  background-image: repeating-linear-gradient(135deg, #eee3cf 0, #eee3cf 11px, #e6d9c1 11px, #e6d9c1 22px);
  position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.tag-mono {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(46, 42, 36, 0.78);
  color: #fbf8f1; font-family: monospace; font-size: 9px; padding: 4px 8px; border-radius: 7px;
}
/* 料理写真（生成AI画像）。枠いっぱいに cover 表示し、ラベルやチップは前面に重ねる */
.meal-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.phone__chip {
  position: relative; z-index: 2;
  margin-bottom: 14px; background: rgba(251, 248, 241, 0.92); backdrop-filter: blur(4px);
  border-radius: 13px; padding: 8px 13px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(74, 63, 53, 0.15);
}
.phone__chip span:first-child { width: 9px; height: 9px; border-radius: 50%; background: var(--green-soft); }
.phone__chip span:last-child { font-size: 12px; font-weight: 700; color: var(--green-deep); }
.phone__body { padding: 14px 18px; }
.phone__dish { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.phone__ingredients { font-size: 11px; color: var(--text-faint); margin-bottom: 12px; }
.kcal { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.kcal__label { font-size: 11px; color: var(--text-mute); }
.kcal__num { font-family: var(--font-num); font-size: 30px; font-weight: 700; color: var(--green); }
.kcal__unit { font-size: 13px; color: var(--text-mute); font-weight: 700; }
.pfc { display: flex; gap: 8px; margin-bottom: 14px; }
.pfc__cell { flex: 1; background: var(--surface-alt); border-radius: 10px; padding: 8px 9px; }
.pfc__k { font-size: 9px; color: var(--text-mute); }
.pfc__v { font-size: 13px; font-weight: 700; }
.pfc__v--p { color: var(--orange-deep); }
.pfc__v--f { color: var(--fat); }
.pfc__v--c { color: var(--green); }
.phone__note {
  background: var(--green-fill); border-radius: 13px; padding: 11px 13px; display: flex; gap: 9px;
}
.phone__note p { font-size: 11px; line-height: 1.55; color: var(--green-deep); font-weight: 500; }

/* ============ HOW（3ステップ） ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.step { text-align: center; }
.step__icon {
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.step__icon--green { background: var(--green-fill); }
.step__icon--orange { background: var(--orange-fill); }
.step__num {
  position: absolute; top: -6px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  color: var(--surface); font-family: var(--font-num); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.step__num--green { background: var(--green); }
.step__num--orange { background: var(--orange); }
.step h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.75; color: var(--text-mute); max-width: 260px; margin: 0 auto; }

/* ============ FEATURES ============ */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.feature {
  background: var(--surface); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feature__icon--green { background: var(--green-fill); }
.feature__icon--orange { background: var(--orange-fill); }
.feature h3 { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feature p { font-size: 15px; line-height: 1.8; color: var(--text-mute); }

/* ============ PERSONAL REVIEW（インタラクティブ） ============ */
.reviews { background: linear-gradient(180deg, #eef4e5 0%, #e6efd9 100%); }
.reviews__inner { max-width: 1040px; margin: 0 auto; }
.toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.toggle__btn {
  font-family: var(--font-ui); font-weight: 700; font-size: 15px;
  padding: 12px 26px; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface); color: var(--text-body);
  border: 1.5px solid rgba(122, 107, 89, 0.18);
  transition: all 0.2s ease;
}
.toggle__btn[aria-selected="true"] { color: var(--surface); border-color: transparent; }
.toggle__btn[data-goal="diet"][aria-selected="true"] { background: #5e8c44; box-shadow: 0 8px 18px #5e8c4455; }
.toggle__btn[data-goal="muscle"][aria-selected="true"] { background: #c97b52; box-shadow: 0 8px 18px #c97b5255; }
.toggle__btn[data-goal="health"][aria-selected="true"] { background: #4f7a3e; box-shadow: 0 8px 18px #4f7a3e55; }

.review-panel {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0;
  background: var(--surface); border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 56px rgba(74, 63, 53, 0.12); max-width: 880px; margin: 0 auto;
}
.review-meal {
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--border-card);
}
.review-meal__photo {
  height: 180px; border-radius: 18px; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, #eee3cf 0, #eee3cf 11px, #e6d9c1 11px, #e6d9c1 22px);
}
.review-meal__dish { font-size: 18px; font-weight: 700; color: var(--text); }
.review-meal__ingredients { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.review-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; transition: background 0.35s ease; }
.review-body__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.review-body__icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 26px; transition: background 0.35s ease; }
.review-body__label { font-size: 12px; color: var(--text-mute); font-weight: 700; }
.review-body__title { font-size: 20px; font-weight: 700; transition: color 0.35s ease; }
.review-body__text { font-size: 15.5px; line-height: 1.95; color: #5a4f42; min-height: 90px; }
.review-tags { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.review-tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: var(--radius-pill); transition: background 0.35s ease, color 0.35s ease; }

/* ============ COMMUNITY ============ */
.community__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 52px);
}
.community__head p { font-size: 15px; line-height: 1.8; color: var(--text-mute); max-width: 360px; }
.community__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post-card { background: #fbf8f1; border-radius: 22px; overflow: hidden; border: 1px solid rgba(122, 107, 89, 0.07); }
.post-card__photo { height: 150px; position: relative; }
.post-card__body { padding: 15px; }
.post-card__user { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.post-card__avatar { width: 26px; height: 26px; border-radius: 50%; }
.post-card__handle { font-size: 12.5px; font-weight: 700; color: var(--text); }
.post-card__dish { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.post-card__kcal { font-size: 11.5px; color: var(--green); font-weight: 700; margin-bottom: 12px; }
.post-card__stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-faint); font-weight: 700; }

/* ============ TRUST ============ */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.trust-card { background: var(--surface); border-radius: 22px; padding: 30px; border: 1px solid var(--border-card); }
.trust-card__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--green-fill); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.trust-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.trust-card p { font-size: 13.5px; line-height: 1.75; color: var(--text-mute); }
.disclaimer-box { background: var(--surface-alt); border-radius: 20px; padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; }
.disclaimer-box__icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--nested); display: flex; align-items: center; justify-content: center; }
.disclaimer-box h4 { font-size: 14.5px; font-weight: 700; color: var(--text-body); margin-bottom: 6px; }
.disclaimer-box p { font-size: 13px; line-height: 1.8; color: var(--text-mute); }
.disclaimer-box strong { color: var(--text-body); }

/* ============ FINAL CTA ============ */
.cta { padding: clamp(20px, 4vw, 48px) var(--pad-x) clamp(40px, 6vw, 80px); }
.cta__panel {
  max-width: 1080px; margin: 0 auto; position: relative; border-radius: 36px; overflow: hidden;
  background: linear-gradient(150deg, #6fa254 0%, #5e8c44 55%, #4f7a3e 100%);
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px); text-align: center;
}
.cta__blob { position: absolute; border-radius: 50%; }
.cta__blob--1 { top: -60px; right: -40px; width: 280px; height: 280px; background: rgba(255, 253, 247, 0.12); }
.cta__blob--2 { bottom: -80px; left: -50px; width: 260px; height: 260px; background: rgba(255, 253, 247, 0.08); }
.cta__inner { position: relative; z-index: 1; }
.cta__mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px; background: rgba(255, 253, 247, 0.18); display: flex; align-items: center; justify-content: center; }
.cta__mark .brand__leaf { width: 26px; height: 26px; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; color: var(--surface); letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.25; }
.cta__lead { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.8; color: rgba(255, 253, 247, 0.92); max-width: 480px; margin: 0 auto 36px; }
.cta__badges { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============ FOOTER ============ */
.footer { padding: clamp(32px, 4vw, 48px) var(--pad-x); border-top: 1px solid var(--border); }
.footer__inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand__mark { width: 32px; height: 32px; border-radius: 10px; }
.footer .brand__leaf { width: 13px; height: 13px; }
.footer .brand__name { font-size: 21px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: var(--text-mute); font-size: 13.5px; }
.footer__links a:hover { color: var(--green); }
.footer__copy { font-size: 12px; color: var(--text-faint); font-family: var(--font-num); }

/* ============ レスポンシブ（元LPには無かったので追加） ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .review-panel { grid-template-columns: 1fr; }
  .review-meal { border-right: none; border-bottom: 1px solid var(--border-card); }
  .community__grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__menu .nav__link { display: none; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .trust { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -0.5px; }
}
@media (max-width: 460px) {
  .community__grid { grid-template-columns: 1fr; }
  .store-badge { flex: 1; }
}
