/* Dencho Keeper service site — Paper Trail Utility: paper ground, deep indigo, single vermilion accent.
   No web font CDN, no gradients, no glow: the product promises no outbound requests and the site keeps that promise. */
:root {
  --paper: #f6f5ef;
  --surface: #fffdf7;
  --surface-tint: #edf0eb;
  --line: #d9ddd8;
  --line-strong: #c3cac3;
  --ink: #17354a;
  --ink-soft: #4a6270;
  --muted: #6c7e85;
  --accent: #b04f3d;
  --sage: #557e77;
  --font-sans: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
p { margin: 0; color: var(--muted); }
a { color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.label { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.section.tinted { background: var(--surface-tint); }
.section-head { max-width: 760px; margin-bottom: 48px; display: grid; gap: 16px; }
.section-head p { font-size: 1.02rem; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 239, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 5px; text-decoration: none; margin-right: auto; }
.brand strong { font: 700 19px/1 var(--font-serif); letter-spacing: -.02em; }
.brand span { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.site-nav a:hover { color: var(--accent); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #fffdf7;
  padding: 11px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background .16s ease, color .16s ease;
}
.button:hover { background: #22506e; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.button.large { padding: 15px 28px; font-size: 15px; }

/* hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7vw; align-items: center; }
.hero h1 { margin: 14px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.06rem; max-width: 560px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 18px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-note div { font-size: 12px; color: var(--ink-soft); }
.hero-note strong { display: block; font-family: var(--font-mono); font-size: 17px; color: var(--ink); font-weight: 500; }
.hero-card { background: var(--surface); border: 1px solid var(--line); padding: 26px 26px 20px; box-shadow: 16px 20px 0 rgba(23, 53, 74, .05); transform: rotate(1.1deg); }
.hero-card .label { color: var(--sage); }
.hero-step { display: flex; gap: 15px; padding: 18px 0; align-items: baseline; }
.hero-step + .hero-step { border-top: 1px solid var(--line); }
.hero-step b { font: 500 12px/1 var(--font-mono); color: var(--accent); }
.hero-step strong { display: block; font-family: var(--font-serif); font-size: 17px; }
.hero-step small { color: var(--muted); font-size: 12px; }
.hero-card-foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 15px; font-size: 12px; color: var(--sage); }

/* problem strip */
.problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.problem-list > div { background: var(--paper); padding: 30px 26px; }
.problem-list h3 { margin-bottom: 10px; }
.problem-list p { font-size: 13px; }
.problem-list .fix { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--sage); font-size: 13px; }

/* plan chooser table */
.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.plan-table th, .plan-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { background: var(--surface-tint); font-size: 12px; letter-spacing: .02em; }
.plan-table thead th:first-child { width: 210px; }
.plan-table th[scope="row"] { color: var(--ink-soft); font-weight: 500; }
.plan-table td strong { color: var(--ink); }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; display: block; }
.plan-for { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* setup flows */
.flow-block { display: grid; gap: 26px; padding: 40px 0; border-top: 1px solid var(--line); }
.flow-block:first-of-type { border-top: 0; }
.flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.flow-head h3 { font-size: 1.6rem; }
.flow-head .time { font: 500 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .06em; }
.flow-lead { max-width: 720px; font-size: .95rem; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps-row article { background: var(--surface); border: 1px solid var(--line); padding: 20px; display: grid; gap: 9px; align-content: start; }
.steps-row b { font: 500 11px/1 var(--font-mono); color: var(--accent); }
.steps-row h4 { margin: 0; font-size: 14px; }
.steps-row p { font-size: 12.5px; }

.steps-timeline { display: grid; gap: 0; }
.steps-timeline > div { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps-timeline > div:first-child { border-top: 1px solid var(--line); }
.steps-timeline .when { font: 500 12px/1.6 var(--font-mono); color: var(--accent); }
.steps-timeline h4 { margin: 0 0 6px; font-size: 15px; }
.steps-timeline p { font-size: 13px; }
.steps-timeline .who { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--sage); border: 1px solid #cfded6; padding: 3px 8px; }

.steps-check { display: grid; gap: 10px; }
.steps-check > div { display: grid; grid-template-columns: 26px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.steps-check i { width: 18px; height: 18px; border: 1px solid var(--sage); display: grid; place-items: center; color: var(--sage); font-style: normal; font-size: 11px; margin-top: 3px; }
.steps-check h4 { margin: 0 0 4px; font-size: 14px; }
.steps-check p { font-size: 12.5px; }

/* daily use */
.daily { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 60px; }
.daily-step { display: grid; grid-template-columns: 54px 1fr; gap: 20px; }
.daily-step span { font: 500 12px/1.5 var(--font-mono); color: var(--accent); padding-top: 4px; }
.daily-step h3 { margin-bottom: 8px; }
.daily-step p { font-size: 13.5px; }
.daily-visual { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); padding: 13px 15px; font: 400 11.5px/1.8 var(--font-mono); color: var(--ink-soft); overflow-wrap: anywhere; }
.daily-visual b { color: var(--ink); font-weight: 500; }

/* compliance */
.compliance { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compliance > div { padding: 28px 30px; border: 1px solid var(--line); background: var(--surface); }
.compliance > div.caution { background: #f4e8e3; border-color: #e0c4ba; }
.compliance h3 { margin-bottom: 14px; }
.compliance ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.compliance li { margin-bottom: 8px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--line); padding: 30px 26px; display: grid; gap: 16px; }
.price-card.featured { border-color: var(--ink); box-shadow: 8px 10px 0 rgba(23, 53, 74, .07); }
.price-card .tag { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card.featured .tag { color: var(--accent); }
.price-card h3 { font-size: 1.35rem; }
.price-value { font-family: var(--font-mono); font-size: 30px; color: var(--ink); letter-spacing: -.03em; }
.price-value small { font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.price-card li { display: grid; grid-template-columns: 16px 1fr; gap: 9px; }
.price-card li::before { content: "—"; color: var(--sage); }
.price-note { font-size: 12px; color: var(--muted); margin-top: 20px; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 40px 20px 0; font-size: 13.5px; }

/* form */
.apply { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; align-items: start; }
.apply-aside { display: grid; gap: 22px; position: sticky; top: 96px; }
.apply-aside ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13.5px; display: grid; gap: 10px; }
.apply-aside ol strong { color: var(--ink); }
.form-card { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--ink-soft); }
.field label .req { color: var(--accent); margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 53, 74, .08); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-status { font-size: 13px; }
.form-status.error { color: var(--accent); }
.form-status.ok { color: var(--sage); }
.form-done { display: none; padding: 26px; border: 1px solid #cfded6; background: #f2f7f3; }
.form-done h3 { margin-bottom: 10px; color: var(--sage); }
.form-done p { font-size: 13.5px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 60px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); font-size: 12.5px; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--accent); }
.site-footer small { color: var(--muted); font-size: 12px; }

@media (max-width: 940px) {
  .hero-grid, .apply, .compliance { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .steps-row, .problem-list, .price-grid, .daily { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .apply-aside { position: static; }
  .field-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .plan-table, .plan-table thead, .plan-table tbody, .plan-table th, .plan-table td, .plan-table tr { display: block; }
  .plan-table thead { display: none; }
  .plan-table th[scope="row"] { background: var(--surface-tint); }
}
