/* KeyPaneLink のサイト。紙と文字の色は ToLineOn Studio、強調の色はアプリのアイコンに合わせる。 */
:root {
  color-scheme: light dark;
  --paper: #f6efe1; --card: #fffaf0; --ink: #3a2c1e; --soft: #6b5b47; --line: #d8c9a8;
  --accent: #0c447c; --green: #1f7a5c; --care: #9a3b12; --art: #0c447c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c2230; --card: #2b3345; --ink: #f0e6d4; --soft: #c5b79d; --line: #4a556e;
    --accent: #9cc6ef; --green: #7ed6b5; --care: #ffb58a; --art: #0a3560;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }
h1 { font-size: clamp(30px, 5.2vw, 50px); letter-spacing: -.01em; }
h2 { font-size: 24px; margin-bottom: 18px; }
h3 { font-size: 18px; }
.nb { white-space: nowrap; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section { padding-block: 34px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; color: inherit; text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.top a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-block: 26px 40px; }
.hero p { margin-top: 16px; font-size: 18px; }
.hero .status { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.hero .need { font-size: 15px; color: var(--soft); }
.hero figure { margin: 0; width: 100%; max-width: 560px; }
.hero figure svg { display: block; width: 100%; height: auto; }

.cards, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; }
.cards > *, .steps > * { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.cards p, .steps p { margin-top: 8px; font-size: 16px; }
.steps { counter-reset: step; }
.steps > * { counter-increment: step; }
.steps h3::before { content: counter(step) ". "; color: var(--green); }
.steps > * { display: flex; flex-direction: column; }
.steps .care { margin-top: auto; padding-top: 14px; color: var(--care); font-weight: 600; font-size: 15px; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 10px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--green); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.pair p + p { margin-top: 12px; }
.contact { font-size: 18px; }

footer { border-top: 1px solid var(--line); margin-top: 20px; padding-block: 24px 40px; font-size: 14px; color: var(--soft); }
footer nav { display: flex; flex-wrap: wrap; column-gap: 24px; margin-bottom: 10px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer p + p { margin-top: 8px; }

.policy { max-width: 800px; }
.policy h1 { font-size: clamp(28px, 4.4vw, 38px); margin-block: 20px; }
.policy h2 { font-size: 21px; margin: 36px 0 12px; }
.policy p, .policy ul { margin-block: 12px; }
.policy ul { padding-left: 1.3em; }
.policy li + li { margin-top: 8px; }
.blank { background: #fff0a8; color: #3a2c1e; padding: 1px 6px; border-radius: 4px; }
.stored { margin: 14px 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.stored dt { font-weight: 600; margin-top: 12px; }
.stored dt:first-child { margin-top: 0; }
.stored dd { margin: 2px 0 0; }

/* 幅の切り替えは1か所だけ。iPad の縦向きも1列にする。 */
@media (max-width: 900px) {
  .hero, .pair { grid-template-columns: 1fr; gap: 28px; }
  .hero figure { margin-inline: auto; }
  .cards, .steps { grid-template-columns: 1fr; gap: 12px; }
  section { padding-block: 26px; }
  .hero { padding-block: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
