/* ルーティンラボ LP — AI Office のガラスHUDと同系の淡インディゴ。
   アクセントは1色（--accent）に絞る。装飾は hairline と明度差だけ。 */
:root {
  --ink: #201d33;
  --muted: #6a6584;
  --bg: #f7f6fb;
  --panel: #ffffff;
  --line: #e4e1f0;
  --accent: #5b54d6;
  --accent-ink: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); background: var(--panel); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; letter-spacing: .02em; }
header.site nav { display: flex; gap: 18px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
header.site nav a:hover { color: var(--ink); }

h1 { font-size: 34px; line-height: 1.35; margin: 10px 0 14px; letter-spacing: .01em; }
h2 { font-size: 22px; margin: 0 0 18px; padding-top: 56px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; margin: 0; }
.lead { color: var(--ink); max-width: 44em; }
.fine { color: var(--muted); font-size: 12.5px; }
code { background: #edebf7; border-radius: 5px; padding: 1px 6px; font-size: .92em; }

.hero { display: flex; gap: 40px; align-items: center; padding-top: 56px; flex-wrap: wrap; }
.hero-copy { flex: 1 1 420px; }
.hero-video { margin: 34px auto 0; }
.media-duo { display: flex; gap: 14px; align-items: stretch; }
.media-duo video {
  flex: 1; min-width: 0; width: 100%; height: auto; align-self: center; display: block;
  border: 1px solid var(--line); border-radius: 16px;
}
.duo-phone {
  flex: none; width: 21%; max-width: 185px; height: auto; object-fit: cover;
  border: 1px solid var(--line); border-radius: 18px;
}
.hero-video figcaption { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }

.plans { display: flex; gap: 20px; flex-wrap: wrap; }
.plan {
  flex: 1 1 300px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 22px 20px;
}
.plan.featured { border-color: var(--accent); }
.price { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan ul { margin: 0 0 16px; padding-left: 1.2em; }
.plan li { margin: 4px 0; }

.cards { display: flex; gap: 20px; flex-wrap: wrap; }
#features .card { flex: 1 1 40%; }   /* 4枚を2×2に（3+1の孤立横長を避ける） */
.card {
  flex: 1 1 260px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.card p { margin: 0 0 8px; font-size: 14px; }
.tag { color: var(--muted); font-size: 12px; }

.perks { margin: 0; padding-left: 1.2em; max-width: 44em; }
.perks li { margin: 6px 0; }

#subform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
#subform input {
  flex: 1 1 240px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 15px; background: var(--panel); color: var(--ink);
}
#subform input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

dl { max-width: 44em; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--line); margin-top: 72px; background: var(--panel); }
footer.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; color: var(--muted); font-size: 13px;
}
footer.site a { color: var(--muted); }

main > .wrap:last-of-type { padding-bottom: 24px; }
@media (max-width: 640px) {
  h1 { font-size: 27px; }
  .media-duo { flex-direction: column; align-items: center; }
  .duo-phone { width: 58%; max-width: 215px; }
  .hero { padding-top: 36px; }
  h2 { padding-top: 40px; }
  header.site .wrap { height: auto; flex-wrap: wrap; gap: 4px 14px; padding: 10px 16px; }
  .brand { white-space: nowrap; }
  header.site nav { gap: 12px; flex-wrap: wrap; }
}
