:root {
  --bg: #faf7f1;
  --bg-deep: #f0ede6;
  --ink: #27312b;
  --ink-soft: #4a564e;
  --muted: #687168;
  --line: #d9d6cd;
  --leaf: #356b55;
  --leaf-deep: #2e493a;
  --leaf-fog: #e6eadd;
  --gold: #9a6a1e;
  --card: #fffcf7;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(39, 49, 43, 0.08);
  --heading: "IBM Plex Sans", "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif;
  --max: 1120px;
  --prose: 40rem;
  --radius: 16px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--leaf-deep); }
a:hover { color: var(--leaf); }

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  left: 12px;
  top: 8px;
  z-index: 40;
  background: var(--leaf);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #faf7f1;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  position: relative;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(39, 49, 43, 0.1);
}

.brand-copy { min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand-tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  appearance: none;
  pointer-events: none;
}
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-links a:hover {
  color: var(--leaf-deep);
}

.nav-links a[aria-current="page"] {
  color: var(--leaf-deep);
  font-weight: 600;
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:visited {
  color: #fff;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  font-family: var(--body);
  white-space: nowrap;
}

.btn-primary {
  background: var(--leaf);
  color: #fff;
}
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf-deep); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }

.lede {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero {
  padding: 64px 0 20px;
  display: block;
}

.hero-copy {
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.screen-col {
  text-align: center;
  scroll-margin-top: 96px;
  padding: 12px 8px 8px;
  border-radius: 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.screen-col:target {
  background: #fffdf8;
  box-shadow: 0 0 0 2px var(--leaf-fog);
}
#how, #watch, #auto, #privacy, #plans, #when-needed, #night, #who, #trust {
  scroll-margin-top: 96px;
}

.screen-kicker {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--leaf-fog);
  color: var(--leaf-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.screen-col h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.screen-col p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.phone {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto 20px;
}

.hw-left, .hw-right {
  position: absolute;
  width: 3px;
  background: #141a17;
  border-radius: 2px;
}

.hw-left { left: -3px; }
.hw-right { right: -3px; }
.silent { top: 86px; height: 18px; }
.vol-up { top: 118px; height: 42px; }
.vol-down { top: 168px; height: 42px; }
.power { top: 138px; height: 64px; }

.bezel {
  background: #1c2420;
  border-radius: 38px;
  padding: 11px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.phone-screen {
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
  aspect-ratio: 1290 / 2796;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.device {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(100%, 320px);
  background: #1c2420;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.device-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  min-height: 520px;
}

.app-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--heading);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.app-body { padding: 22px 18px 24px; }

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.app-brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.app-brand strong {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 15px;
}

.app-brand span {
  color: var(--muted);
  font-size: 12px;
}

.status-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.status-card .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(53, 107, 85, 0.45);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 107, 85, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(53, 107, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 107, 85, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-card .dot { animation: none; }
}

.status-card strong {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  margin: 8px 0 4px;
}

.status-card small {
  color: var(--muted);
  font-size: 12px;
}

.app-chip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--leaf-fog);
  color: var(--leaf-deep);
  font-size: 12px;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 84px;
}

.section-alt { background: var(--bg-deep); }

.quote {
  max-width: 38rem;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--leaf);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.card p { margin: 0; color: var(--muted); }

.card-feature {
  border-color: color-mix(in srgb, var(--leaf) 28%, var(--line));
}

.feature-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  display: block;
  font-family: var(--heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 36px;
}

.flow-node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px;
  text-align: center;
}

.flow-node img {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 18px;
}

.flow-node strong {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
}

.flow-node span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.flow-arrow {
  color: var(--leaf);
  font-size: 22px;
  font-family: var(--heading);
}

.persona {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.persona img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
}

.persona-faces {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.persona-faces img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid var(--card);
  box-shadow: 0 4px 12px rgba(39, 49, 43, 0.08);
}

.persona-faces img + img {
  margin-left: -16px;
}

.card-fall {
  margin-top: 16px;
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.card-fall h3 {
  color: var(--ink);
}

.card-fall .feature-kicker {
  color: var(--gold);
}

.persona-primary {
  border: 2px solid var(--leaf);
}

.list-quiet {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.list-quiet li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.list-quiet li:last-child { border-bottom: 0; }

.list-quiet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.no-list li::before { background: var(--line); }

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.price.featured {
  border-color: var(--leaf);
  background: #fff;
}

.price .badge {
  display: inline-block;
  margin: 0 6px 10px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--leaf-fog);
  color: var(--leaf-deep);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.price .amount {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.price .period { color: var(--muted); font-size: 14px; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 28px;
}

.compare th, .compare td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.compare th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.compare td:nth-child(2),
.compare td:nth-child(3),
.compare th:nth-child(2),
.compare th:nth-child(3) {
  text-align: center;
  width: 22%;
}

.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--leaf-deep); font-weight: 700; }
.no { color: var(--muted); }

.cta-band {
  background: var(--leaf-deep);
  color: #eef6f1;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e6dc; max-width: 36rem; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--leaf-deep);
}
.cta-band .btn-primary:hover { background: var(--leaf-fog); color: var(--leaf-deep); }
.cta-band .btn-ghost {
  color: #fff;
  border-color: color-mix(in srgb, #fff 28%, transparent);
}

.legal {
  width: min(var(--prose), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.legal h1 { font-size: 2.1rem; }
.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal .meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }

.mobile-cta {
  display: none;
}

.tiny { font-size: 13px; color: var(--muted); }

/* 使い方 */
#connect, #day, #signal, #missing, #nightmode, #now, #share, #how-plans, #care, #download {
  scroll-margin-top: 96px;
}

.how-privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 36rem;
  line-height: 1.7;
}

.how-ico {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--leaf-fog);
  color: var(--leaf-deep);
  display: grid;
  place-items: center;
  margin: 0 0 14px;
}

.how-ico svg {
  width: 20px;
  height: 20px;
}

.how-ico-inline {
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  flex-shrink: 0;
}

.how-ico-inline svg {
  width: 14px;
  height: 14px;
}

.steps-4 {
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

@media (min-width: 1100px) {
  .steps-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps-4 .step h3 {
  margin-top: 4px;
}

.steps-4 .step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.how-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  justify-items: center;
}

.how-screens figure {
  margin: 0;
  width: min(100%, 280px);
}

.how-screens figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.day-clock {
  list-style: none;
  margin: 32px 0 16px;
  padding: 8px 0 8px 8px;
  border-left: 1px solid var(--line);
}

.day-clock li {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 16px;
  padding: 0 0 22px 28px;
}

.day-clock li:last-child { padding-bottom: 0; }

.day-clock li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--leaf);
}

.day-clock time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--leaf-deep);
  letter-spacing: 0.02em;
}

.day-clock strong {
  display: block;
  font-family: var(--heading);
  font-weight: 500;
  color: var(--ink);
}

.day-clock span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.day-clock .is-night::before {
  border-color: #4e7180;
}

.day-clock .is-night time,
.day-clock .is-night strong {
  color: #4e7180;
}

.notify-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.notify-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.notify-step p {
  margin: 0 0 16px;
  color: var(--muted);
}

.notify-step-last {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, var(--card));
}

.notify-pair {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 8px;
  align-items: stretch;
}

.notify-connector {
  align-self: center;
  height: 1px;
  background: var(--line);
}

.notify-side {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--bg);
}

.notify-side.is-on {
  border-color: color-mix(in srgb, var(--leaf) 40%, var(--line));
  background: var(--leaf-fog);
}

.notify-side.is-off {
  opacity: 0.72;
}

.notify-who {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.notify-state {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-family: var(--heading);
}

.notify-side.is-on .notify-state {
  color: var(--leaf-deep);
}

.night-band {
  background: #152229;
  color: #e8f0f4;
}

.night-band h2 { color: #fff; }
.night-band .lede { color: #c5d5dd; max-width: 40rem; }

@media (max-width: 1080px) {
  .hero, .screens, .grid-3, .grid-2, .grid-4, .steps, .split, .price-row, .flow, .how-screens, .notify-pair {
    grid-template-columns: 1fr;
  }
  .phone { width: min(100%, 300px); }
  .flow-arrow { display: none; }
  .notify-connector { display: none; }
  .day-clock li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 80;
    background: #faf7f1;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 16px 32px rgba(39, 49, 43, 0.08);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links .btn { display: none; }
  .nav-links a { padding: 8px 0; }
  .nav-links .btn { width: 100%; }
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    gap: 8px;
  }
  .mobile-cta .btn { flex: 1; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 96px; }
  .site-footer { padding-bottom: 32px; }
}

@media (max-width: 640px) {
  .steps-4 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .section { padding: 56px 0; }
  .brand-tag { display: none; }
}
