/* ===== Tokens ===== */
:root {
  --navy: #1B3A6B;
  --blue: #1F86D6;
  --blue-deep: #1466A8;
  --green: #3BAA5C;
  --green-deep: #2A8446;
  --sky: #EDF5FC;
  --paper: #FFFFFF;
  --ink: #1F2A3A;
  --muted: #56667C;
  --line: #D4E1EE;
  --ct-red: #C8102E;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.4; margin: 0; word-break: auto-phrase; text-wrap: balance; }
.hero-lead, .section-lead, .contact-copy > p { word-break: auto-phrase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--sky); color: var(--navy); border-color: var(--navy); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.header-logo img { height: 32px; width: auto; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.header-nav a:hover { color: var(--blue-deep); }

/* ===== Hero ===== */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-lead { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }
.hero-title { margin-top: 14px; font-weight: 900; letter-spacing: .01em; line-height: 1.25; }
.hero-title span { display: block; white-space: nowrap; font-size: clamp(36px, 5vw, 64px); }
.hero-title span:nth-child(1) { color: var(--blue-deep); }
.hero-title span:nth-child(2) { color: var(--green-deep); }
.hero-title .hero-title-sub { margin-top: 12px; font-size: clamp(24px, 3.2vw, 36px); color: var(--navy); }
.hero-text { margin-top: 24px; max-width: 34em; font-size: clamp(15px, 1.5vw, 17px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.hero-facts li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--sky); font-size: 14px; color: var(--ink);
}
.hero-facts strong { font-family: var(--font-display); color: var(--navy); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-ring { position: relative; }
.ring-svg { width: 100%; max-width: 480px; margin: 0 auto; display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.ring-text { font-family: var(--font-display); font-weight: 700; }
.ring-text-hr { font-size: 17px; fill: var(--blue-deep); }
.ring-text-cr { font-size: 15px; fill: var(--green-deep); }
.ring-rotate { transform-origin: 200px 200px; }
.ring-rotate-cw { animation: spin 90s linear infinite; }
.ring-rotate-ccw { animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-caption { text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .ring-rotate-cw, .ring-rotate-ccw { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Sections ===== */
.section { padding: var(--section-y) 0; }
.section-sky { background: var(--sky); }
.section-tray { background: #DCE7F3; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }
.section-lead { margin-top: 16px; max-width: 40em; color: var(--ink); }
.sub-title { font-size: 22px; margin-top: 64px; }

/* Pains */
.pain-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border-top: 2px solid var(--navy);
}
.pain-list li { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.pain-list li:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.pain-list h3 { font-size: 19px; }
.pain-list p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Split: HR + creative */
.split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; margin-top: 40px; }
.split-col { background: #fff; border-radius: 20px; padding: 28px; border-top: 6px solid; }
.split-hr { border-color: var(--blue); }
.split-cr { border-color: var(--green); }
.split-col h3 { font-size: 22px; }
.split-col p { margin-top: 8px; }
.split-eg { color: var(--muted); font-size: 14px; }
.split-plus { align-self: center; font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--navy); }

/* Flow (real sequence) */
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.flow li { counter-increment: step; position: relative; padding-top: 56px; }
.flow li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 52px; right: -8px;
  border-top: 2px dashed var(--line);
}
.flow h4 { font-size: 17px; }
.flow p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.flow .flow-quote {
  color: var(--navy); font-weight: 700; background: #fff;
  border-radius: 12px; padding: 10px 14px; font-size: 14px;
}

/* Receipts — the signature element */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); margin-top: 48px; align-items: start; }
.receipt {
  --accent: var(--blue);
  background: #fff;
  padding: 28px 32px 32px;
  position: relative;
  margin-bottom: 12px;
  filter: drop-shadow(0 1px 1px rgba(27, 58, 107, .18)) drop-shadow(0 12px 20px rgba(27, 58, 107, .10));
}
/* torn-paper zigzag along the bottom edge */
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background:
    linear-gradient(135deg, #fff 8px, transparent 0) 0 0 / 16px 12px repeat-x,
    linear-gradient(-135deg, #fff 8px, transparent 0) 0 0 / 16px 12px repeat-x;
}
.receipt-cr { --accent: var(--green); transform: rotate(.6deg); }
.receipt-hr { transform: rotate(-.6deg); }
.receipt-head { border-bottom: 2px dashed var(--line); padding-bottom: 16px; }
.receipt-kind { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--accent); }
.receipt-cr .receipt-kind { color: var(--green-deep); }
.receipt-hr .receipt-kind { color: var(--blue-deep); }
.receipt-note { font-size: 14px; color: var(--muted); }
.receipt-lines { margin: 8px 0 0; }
.receipt-lines div { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; }
.receipt-lines dt { flex: none; }
.receipt-lines dd {
  margin: 0; flex: 1; display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.receipt-lines dd::before { content: ""; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.receipt-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 14px;
  border-top: 2px solid var(--navy);
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.receipt-total strong { font-size: 40px; font-weight: 900; line-height: 1; }
.receipt-foot { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Tasks */
.task-grid { display: grid; gap: 24px; margin-top: 40px; }
.task-group { background: #fff; border-radius: 20px; padding: 28px 32px; border-left: 6px solid; }
.task-hr { border-color: var(--blue); }
.task-cr { border-color: var(--green); }
.task-group > h3 { font-size: 22px; }
.task-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.task-cols h4 { font-size: 16px; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.task-cols ul { margin-top: 8px; }
.task-cols li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.9; }
.task-cols li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.quote-box { margin-top: 32px; padding: 28px 32px; border: 2px solid var(--navy); border-radius: 20px; background: #fff; }
.quote-box h3 { font-size: 20px; }
.quote-box p { margin-top: 8px; }
.tasks-note { margin-top: 20px; font-weight: 700; color: var(--navy); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; border: 2px solid var(--line); border-radius: 24px; padding: 32px 28px; background: #fff; }
.plan-popular { border-color: var(--navy); background: var(--navy); color: #fff; }
.plan-popular .plan-name, .plan-popular .plan-price { color: #fff; }
.plan-popular .plan-desc { color: rgba(255,255,255,.8); }
.plan-popular .plan-points { background: rgba(255,255,255,.12); color: #fff; }
.plan-addon { border-style: dashed; }
.plan-badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--green); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  padding: 4px 14px; border-radius: 999px;
}
.plan-name { font-size: 22px; }
.plan-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan-price { margin-top: 20px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.plan-yen { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 13px; font-weight: 500; margin-left: 2px; }
.plan-points { display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 8px; background: var(--sky); font-size: 14px; font-weight: 700; }
.plan-pay { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Rules */
.table-scroll { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rules-table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.rules-table th, .rules-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules-table thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 17px; }
.rules-table tbody th { width: 28%; font-family: var(--font-display); color: var(--navy); }
.rules-table tbody tr:last-child > * { border-bottom: 0; }
.rules-table strong { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin: 0 2px; }
.rules-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 40px; }
.rules-notes h3 { font-size: 17px; }
.rules-notes p { margin-top: 4px; font-size: 15px; }

/* Team */
.team { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.team-copy p { margin-top: 16px; }
.team-checks { display: grid; gap: 12px; }
.team-checks li { padding: 18px 22px; border-radius: 16px; background: var(--sky); font-weight: 700; color: var(--navy); }
.team-checks span { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; gap: 14px; align-items: center;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; font-weight: 900; color: var(--blue); font-size: 20px; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 22px 20px 50px; }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: var(--section-y) 0; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact-title { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
.contact-copy > p { margin-top: 20px; color: rgba(255,255,255,.88); }
.contact-steps { counter-reset: c; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.contact-steps li {
  counter-increment: c;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.contact-steps li::before {
  content: counter(c); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy);
  font-family: var(--font-display); font-weight: 900; font-size: 12px;
}
.contact-card { display: grid; gap: 12px; }
.contact-info { margin: 16px 0 0; font-size: 14px; display: grid; gap: 8px; }
.contact-info div { display: grid; grid-template-columns: 5em 1fr; }
.contact-info dt { color: rgba(255,255,255,.65); }
.contact-info dd { margin: 0; }
.contact-info a { color: #fff; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-inner img { height: 28px; width: auto; }
.footer-inner a { color: var(--muted); }
.copyright { margin-left: auto; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-ring { max-width: 300px; margin: 0 auto; width: 100%; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .flow li:nth-child(2)::after { display: none; }
  .team, .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .pain-list { grid-template-columns: 1fr; }
  .pain-list li, .pain-list li:not(:nth-child(3n+1)) { padding: 18px 0 20px; border-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split-plus { justify-self: center; line-height: 1; }
  .flow { grid-template-columns: 1fr; }
  .flow li { padding: 0 0 0 56px; }
  .flow li::after { display: none; }
  .receipts, .plans, .task-cols, .rules-notes { grid-template-columns: 1fr; }
  .receipt { padding: 24px 22px 40px; }
  .receipt-hr, .receipt-cr { transform: none; }
  .task-group, .quote-box { padding: 24px 20px; }
  .plans { gap: 28px; }
  .copyright { margin-left: 0; }
}
