:root {
  --ink: #1c2430;
  --paper: #ffffff;
  --main: #22225c;
  --sub: #8558bc;
  --accent: #ea5a54;
  --accent-ink: #931f1b; 
  --line: #d9dee6;
  --faint: #6b7686;
  --wash: #f4f6f9;
  --g-blue: #3f70d4;
  --g-cyan: #35c6c2;
  --g-mid: #a755a8;
  --grad: linear-gradient(115deg, #ea5a54 0%, #a755a8 32%, #3f70d4 64%, #35c6c2 100%);
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

a { color: var(--main); text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--main); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--g-blue); outline-offset: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

.top {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.top::before {
  content: "";
  position: absolute; inset: -40px -20px;
  z-index: -2;
  background:
    radial-gradient(60% 90% at 6% 10%, rgba(234, 90, 84, 0.20), transparent 70%),
    radial-gradient(55% 80% at 40% 0%, rgba(167, 85, 168, 0.18), transparent 70%),
    radial-gradient(60% 90% at 78% 20%, rgba(63, 112, 212, 0.18), transparent 70%),
    radial-gradient(55% 90% at 100% 90%, rgba(53, 198, 194, 0.22), transparent 70%);
  filter: blur(18px);
}
.top::after { 
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.14  0 0 0 0 0.19  0 0 0 0.9 -0.35'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.dots { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; align-items: flex-end; z-index: -1; }
.dots i { display: block; border-radius: 50%; }
.dots i:nth-child(1) { width: 5px; height: 5px; background: var(--accent); }
.dots i:nth-child(2) { width: 11px; height: 11px; background: var(--sub); opacity: 0.8; }
.dots i:nth-child(3) { width: 7px; height: 7px; background: var(--g-blue); }
.dots i:nth-child(4) { width: 14px; height: 14px; background: var(--g-cyan); opacity: 0.85; }

.top .wrap { padding-top: 20px; padding-bottom: 26px; }
.brand { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: var(--main); letter-spacing: 0.06em; }
.brand a { text-decoration: none; }
.brand img { display: block; height: 28px; width: auto; }
h1 { margin: 0; font-size: 26px; line-height: 1.4; font-weight: 700; color: var(--main); letter-spacing: 0.02em; }
h1::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.lead { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink); }
.nw { white-space: nowrap; }
@media (max-width: 360px) { .nw { white-space: normal; } }
.meta { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--faint); }

.draft {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--faint);
  padding: 8px 0;
}
.draft b { color: var(--main); font-weight: 600; }

main { padding: 8px 0 40px; }
h2 {
  margin: 36px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--main);
}
h3 { margin: 24px 0 4px; font-size: 16px; line-height: 1.6; font-weight: 700; color: var(--ink); }
p { margin: 10px 0; }
ol, ul { margin: 10px 0; padding-left: 1.5em; }
li { margin: 6px 0; padding-left: 2px; }
li::marker { color: var(--faint); }
ol.plain { list-style: none; padding-left: 0; }
strong { font-weight: 700; color: var(--main); }

.ph { background: var(--wash); border: 1px dashed var(--faint); border-radius: 4px; padding: 0 6px; color: var(--faint); font-size: 0.94em; }
.ph.filled { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.cards { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.cards li { margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.cards a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 16px 2px; text-decoration: none; color: var(--ink);
}
.cards .t { font-size: 17px; font-weight: 700; color: var(--main); line-height: 1.5; }
.cards .d { grid-column: 1; font-size: 14px; line-height: 1.65; color: var(--faint); }
.cards .go { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--main); font-size: 14px; }
.cards a:hover .go { border-color: var(--main); }

.box { margin: 18px 0; padding: 16px; background: var(--wash); border-radius: 12px; }
.box h3 { margin-top: 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 2px 38px; margin: 12px 0; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--main); color: var(--main); font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}
dl.fields { margin: 12px 0; }
dl.fields dt { margin-top: 14px; font-weight: 700; color: var(--main); font-size: 15px; }
dl.fields dt small { font-weight: 400; color: var(--faint); margin-left: 6px; }
dl.fields dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.btn {
  display: block; width: 100%; margin-top: 14px; padding: 13px 16px;
  text-align: center; font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: var(--main);
  border: 0; border-radius: 12px; text-decoration: none;
}
.btn[aria-disabled="true"] { background: var(--wash); color: var(--faint); border: 1px dashed var(--faint); }
.note { font-size: 13px; line-height: 1.7; color: var(--faint); }
.see { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--line); font-size: 14px; background: var(--wash); border-radius: 0 8px 8px 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; line-height: 1.65; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--wash); color: var(--main); font-weight: 700; white-space: nowrap; }

footer { border-top: 1px solid var(--line); background: var(--wash); padding: 24px 0 32px; font-size: 14px; line-height: 1.8; }
footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
footer li { margin: 0; padding: 0; }
footer a { display: inline-block; padding: 4px 0; }
footer .op { color: var(--faint); font-size: 13px; }
.strip { height: 6px; background: var(--grad); } 

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 30px; }
  body { font-size: 17px; }
}
@media print { .top::before, .top::after, .dots, .draft, .strip { display: none; } }
