:root {
  color-scheme: light;
  --ink: #073c5b;
  --ink-strong: #063651;
  --muted: #526d7b;
  --blue: #2d77ec;
  --blue-deep: #2468df;
  --green: #3bc587;
  --mint: #e9f8f2;
  --mint-soft: #f5fbf8;
  --cream: #fffdf8;
  --surface: #ffffff;
  --border: #dcebea;
  --shadow: 0 18px 44px rgba(13, 72, 95, .11);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(202, 223, 225, .78);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand img { border-radius: 13px; box-shadow: 0 5px 16px rgba(30, 105, 128, .14); }
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}
.desktop-nav a {
  color: #174c68;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.desktop-nav a:hover { color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(105deg, var(--blue-deep), #3884ec 55%, var(--green));
  box-shadow: 0 12px 24px rgba(43, 118, 229, .24);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(43, 118, 229, .3); }
.button:focus-visible, .desktop-nav a:focus-visible, .brand:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #82bfff;
  outline-offset: 4px;
}
.button-small { min-width: 148px; padding: 0 18px; font-size: .86rem; }
.button-large { min-width: 220px; padding: 0 28px; min-height: 60px; font-size: 1rem; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(117, 213, 192, .18), transparent 24%),
    radial-gradient(circle at 28% 48%, rgba(101, 168, 241, .12), transparent 27%),
    linear-gradient(180deg, var(--cream), #f8fcfb 70%, #f1faf6);
}
.hero-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--content));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 34px;
  padding: 64px 0 70px;
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.2vw, 3.7rem);
  line-height: 1.27;
  letter-spacing: -.045em;
}
.hero-copy p {
  margin: 28px 0 34px;
  color: #214f66;
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  font-weight: 650;
  line-height: 1.9;
}
.hero-product {
  position: relative;
  min-height: 555px;
}
.hero-product::before {
  content: "";
  position: absolute;
  inset: 7% 2% 2% 0;
  border-radius: 50% 44% 46% 52%;
  background: rgba(214, 241, 230, .7);
  filter: blur(1px);
}
.phone-shot {
  position: absolute;
  z-index: 2;
  width: 242px;
  height: 526px;
  margin: 0;
  overflow: hidden;
  border: 8px solid #10242d;
  border-radius: 42px;
  background: #f5f6f8;
  box-shadow: 0 26px 50px rgba(12, 49, 67, .2);
}
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-shot-home { left: 4%; top: 12px; transform: rotate(-3deg); }
.phone-shot-meal { right: 4%; top: 32px; transform: rotate(3deg); }
.mascot { position: absolute; z-index: 4; object-fit: contain; }
.hero-bimimaru { left: -2%; bottom: -12px; width: 165px; height: 165px; }
.hero-pakumaru { right: -2%; bottom: -4px; width: 155px; height: 155px; }

.section { padding: 88px 0; }
.section-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -.03em; }
.section-heading > span { display: block; width: 64px; height: 4px; margin: 16px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.section-heading.compact { margin-bottom: 36px; }
.section-heading p { margin: 10px auto 0; color: var(--muted); }

.flow { background: #fff; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flow-step { min-width: 0; display: flex; flex-direction: column; }
.step-title { display: flex; align-items: center; gap: 12px; }
.step-title span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 1.15rem;
  font-weight: 800;
}
.flow-step:nth-child(2) .step-title span { background: #36b976; }
.flow-step:nth-child(3) .step-title span { background: #4d70df; }
.step-title h3 { margin: 0; font-size: 1.55rem; }
.step-lead { margin: 8px 0 18px 52px; color: var(--muted); font-weight: 650; }
.step-body {
  position: relative;
  flex: 1;
  min-height: 360px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, #fbfefd);
  box-shadow: 0 10px 30px rgba(24, 79, 95, .06);
}
.step-body h4 { margin: 0 0 12px; font-size: 1.1rem; }
.step-body p { margin: 0 0 18px; color: var(--muted); }
.step-body ul { margin: 0; padding: 0; list-style: none; }
.step-body li { position: relative; padding: 7px 0 7px 24px; }
.step-body li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.step-body img { position: absolute; right: 12px; bottom: -6px; width: 150px; height: 150px; object-fit: contain; }
.trend-summary { margin-top: 34px; border-top: 1px solid var(--border); }
.trend-summary > div { padding: 13px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.trend-summary span { color: var(--blue); font-weight: 800; }
.next-body { padding-bottom: 132px; }

.features { background: linear-gradient(180deg, #f7fbfa, #fff); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  min-height: 350px;
  padding: 25px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 74, 91, .055);
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.feature-card > p { min-height: 88px; margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.bmi-scale { display: grid; gap: 7px; }
.bmi-scale span { padding: 8px 10px; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; border-radius: 9px; background: #f7fafb; font-size: .78rem; }
.bmi-scale i { width: 8px; height: 8px; border-radius: 2px; }
.scale-blue { background: #60b8dc; }
.scale-green { background: #57c986; }
.scale-orange { background: #f5ae4b; }
.scale-coral { background: #ee7f70; }
.weight-reference { display: grid; gap: 12px; }
.weight-reference span { padding: 12px; border: 1px solid #bde8cf; border-radius: 12px; color: #32705b; background: #f2fbf5; font-size: .8rem; }
.weight-reference span:last-child { border-color: #b9d7fa; color: #296399; background: #f2f8ff; }
.weight-reference strong { margin-top: 4px; display: block; color: var(--ink); font-size: 1.55rem; }
.weight-reference small { font-size: .75rem; }
.meal-slot-preview { display: grid; gap: 7px; }
.meal-slot-preview > div {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: #f7fafb;
  font-size: .72rem;
}
.meal-slot-preview b { color: var(--ink); }
.meal-slot-preview span { color: #39735e; font-weight: 700; }
.meal-slot-preview small { color: var(--blue); font-weight: 800; }
.meal-slot-preview > div:nth-child(n+3) span { color: #7b8c93; }
.trend-card canvas { width: 100%; height: 122px; }
.range-switch { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dbe6e7; border-radius: 12px; font-size: .74rem; text-align: center; }
.range-switch span, .range-switch b { padding: 6px; }
.range-switch b { color: #fff; background: var(--blue); }

.calculators { padding-top: 78px; }
.calculator-list { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: 0 12px 30px rgba(20, 74, 91, .06); }
.calculator-list article { min-height: 210px; padding: 30px; border-right: 1px solid var(--border); }
.calculator-list article:last-child { border-right: 0; }
.calculator-list img { width: 58px; height: 58px; object-fit: contain; }
.calculator-list h3 { margin: 13px 0 8px; font-size: 1.22rem; }
.calculator-list p { margin: 0; color: var(--muted); font-size: .9rem; }

.privacy { padding-top: 46px; }
.privacy-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 270px;
  margin: 0 auto;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 110px 1fr 220px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid #d7ebe5;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #f1fbf6, #eaf7f3 58%, #f5fbf8);
}
.privacy-icon { width: 104px; height: 104px; object-fit: contain; }
.privacy h2 { margin: 0 0 12px; font-size: clamp(1.65rem, 2.5vw, 2.35rem); }
.privacy ul { margin: 0; padding-left: 1.2em; color: #315f70; }
.privacy-mascot { align-self: end; width: 220px; height: 220px; object-fit: contain; }

.site-footer { padding: 36px 20px 24px; border-top: 1px solid var(--border); background: #f9fcfb; }
.footer-inner { width: min(100%, var(--content)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 12px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: var(--muted); font-size: .76rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: #2a6077; font-size: .83rem; font-weight: 700; text-decoration: none; }
.medical-note { width: min(100%, var(--content)); margin: 26px auto 0; padding-top: 20px; border-top: 1px solid var(--border); color: #5b727d; font-size: .76rem; text-align: center; }
.copyright { margin: 14px 0 0; color: #78909b; font-size: .72rem; text-align: center; }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .header-inner .button { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-copy { max-width: 690px; text-align: center; margin: 0 auto; }
  .hero-product { width: min(100%, 760px); margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-list { grid-template-columns: repeat(2, 1fr); }
  .calculator-list article:nth-child(2) { border-right: 0; }
  .calculator-list article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .header-inner { width: min(calc(100% - 24px), var(--content)); min-height: 68px; }
  .brand { gap: 8px; font-size: 1.02rem; }
  .brand img { width: 40px; height: 40px; }
  .button-small { min-width: 0; min-height: 44px; padding: 0 14px; font-size: .74rem; }
  .hero-inner, .section-inner { width: min(calc(100% - 28px), var(--content)); }
  .hero-inner { gap: 28px; min-height: 0; padding: 46px 0 48px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); line-height: 1.25; }
  .hero-copy p { margin: 20px 0 28px; font-size: 1rem; }
  .hero-product { min-height: 470px; transform: scale(.86); transform-origin: top center; margin-bottom: -58px; }
  .phone-shot { width: 213px; height: 463px; }
  .phone-shot-home { left: 3%; }
  .phone-shot-meal { right: 3%; }
  .hero-bimimaru { left: -6%; width: 130px; height: 130px; }
  .hero-pakumaru { right: -6%; width: 122px; height: 122px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 34px; }
  .flow-grid { grid-template-columns: 1fr; gap: 34px; }
  .step-body { min-height: 320px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card > p { min-height: 0; }
  .calculator-list { grid-template-columns: 1fr; }
  .calculator-list article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .calculator-list article:last-child { border-bottom: 0; }
  .privacy-inner { width: min(calc(100% - 28px), var(--content)); grid-template-columns: 1fr; padding: 30px 26px 0; text-align: left; }
  .privacy-icon { width: 80px; height: 80px; }
  .privacy-mascot { justify-self: center; width: 180px; height: 180px; }
  .footer-inner { display: grid; }
  .site-footer nav { gap: 16px 24px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .brand span { display: none; }
  .hero-copy h1 { font-size: 2.08rem; letter-spacing: -.055em; }
  .hero-product { left: 50%; width: 570px; margin-left: -285px; transform: scale(.68); margin-bottom: -145px; }
  .phone-shot-home { left: 8%; }
  .phone-shot-meal { right: 8%; }
  .button-large { width: 100%; }
}

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