/* ともカロ portal: the app's colours (sage ground, green accent), light only like the app. */
:root {
  --bg: #f3f5f0;
  --card: #ffffff;
  --text: #18211c;
  --muted: #5b6b62;
  --accent: #2e7a55;
  --accent-dark: #1f5a3e;
  --accent-soft: #e3efe7;
  --border: #e2e7df;
  --protein: #2f63b5;
  --fat: #d9901f;
  --carb: #2e7a55;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  line-height: 1.8;
}
a { color: var(--accent); }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; background: rgba(243, 245, 240, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 1; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--accent); }

.hero { padding: 64px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; font-size: 14px; }
h1 { margin: 8px 0 16px; font-size: clamp(32px, 6vw, 52px); line-height: 1.3; letter-spacing: 0.01em; }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 27px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.button:hover { background: var(--accent-dark); }
.button.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.button.ghost:hover { background: var(--accent-soft); }

.phone {
  justify-self: center; width: min(280px, 80vw); aspect-ratio: 9 / 18;
  background: #18211c; border-radius: 40px; padding: 12px;
  box-shadow: 0 24px 48px rgba(24, 33, 28, 0.18);
}
.screen { height: 100%; background: var(--bg); border-radius: 30px; padding: 32px 22px; display: flex; flex-direction: column; align-items: center; }
.screen-label { margin: 0; font-size: 13px; color: var(--muted); font-weight: 500; }
.ring { width: 78%; margin: 8px 0 20px; }
.ring circle { fill: none; stroke-width: 18; }
.ring-track { stroke: var(--accent-soft); }
.ring-bar { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.ring-num { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 40px; text-anchor: middle; fill: var(--text); }
.ring-unit { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 15px; text-anchor: middle; fill: var(--muted); }
.pfc { width: 100%; background: var(--card); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; }
.pfc div { display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--muted); }
.pfc b { display: block; height: 6px; border-radius: 3px; }
.pfc .p { background: var(--protein); }
.pfc .f { background: var(--fat); }
.pfc .c { background: var(--carb); }
.meals { list-style: none; margin: 12px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.meals li { background: var(--card); border-radius: 14px; padding: 10px 14px; font-size: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.meals span { color: var(--accent); font-weight: 700; }
.meals b { font-family: 'Outfit', sans-serif; font-weight: 600; }

h2 { font-size: 28px; margin: 0 0 24px; }
.features, .start { padding: 48px 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: 16px; padding: 24px; border: 1px solid var(--border); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { color: var(--muted); margin: 0 0 20px; }
.contact { margin: 28px 0 0; }

.foot { border-top: 1px solid var(--border); margin-top: 32px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .features, .start { padding: 32px 16px; }
}
