@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

:root {
    --primary: #f43f5e;
    --ink: #172033;
    --muted: #5f6f85;
    --line: #e3e9f1;
    --soft: #f6fafc;
    --paper: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
    line-height: 1.8;
}

a {
    color: #d91f4f;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 13px;
    font-weight: 700;
}

nav a,
footer a {
    color: var(--ink);
    text-decoration: none;
}

main {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 56px;
}

.hero {
    padding: 64px 0 30px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.18;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
}

.content {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 5vw, 44px);
}

h2 {
    margin: 34px 0 12px;
    font-size: 24px;
    line-height: 1.35;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

p,
li {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 8px;
}

.grid article,
.timeline article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfdff;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline time {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.note {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 13px;
}

.policy-note {
    margin: 30px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff8fb;
    color: var(--muted);
    font-size: 13px;
}

.related-guides {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.related-guides h2 {
    margin-top: 0;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.related-links a {
    display: block;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
}

.related-links small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
}

.visual-panel {
    margin: 28px 0;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.visual-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.flow-visual,
.check-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.visual-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-step,
.info-card,
.device-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #ffffff;
}

.flow-step {
    min-height: 128px;
}

.device-card {
    background: #fbfdff;
}

.flow-step svg,
.info-card svg,
.device-card svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-step strong,
.info-card strong,
.device-card strong {
    color: var(--ink);
    font-size: 14px;
}

.flow-step span,
.info-card span,
.device-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.check-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff5f7;
    color: #8f1d3d;
    font-size: 13px;
    font-weight: 800;
}

.check-strip span::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.mini-screen {
    max-width: 360px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 8px;
    background: #eadcf7;
    border: 1px solid #decbed;
}

.mini-screen-card {
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e4e9f1;
    box-shadow: 0 8px 18px rgba(56, 36, 70, 0.12);
}

.mini-screen-head {
    padding: 10px 12px;
    background: #ea8018;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.mini-screen-body {
    padding: 14px;
}

.mini-screen-body strong {
    display: block;
    color: var(--ink);
    font-size: 16px;
}

.mini-screen-body span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.mini-screen-chip {
    display: inline-flex;
    margin-top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid #d9e2ec;
    color: #283548;
    font-size: 11px;
    font-weight: 800;
}

.update-hero {
    padding-bottom: 22px;
}

.update-summary {
    display: grid;
    gap: 22px;
}

.update-lead {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.update-lead h2 {
    margin-top: 0;
}

.update-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d91f4f;
    background: #fff1f5;
    border: 1px solid #ffd4df;
    flex-shrink: 0;
}

.update-icon svg {
    width: 22px;
    height: 22px;
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.update-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfdff;
}

.update-grid h3 {
    margin-top: 12px;
}

.update-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.button-link.secondary {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.associate-review-link {
    margin-top: 10px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.associate-review-label {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.associate-review-link h2 {
    margin: 12px 0 8px;
}

.associate-review-link p {
    margin: 0 0 10px;
}

.associate-review-disclosure {
    color: var(--muted);
    font-size: 12px;
}

footer {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 42px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

footer .footer-note {
    flex-basis: 100%;
    max-width: 760px;
    margin: 4px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .update-lead,
    .update-grid {
        grid-template-columns: 1fr;
    }

    .related-links,
    .flow-visual,
    .visual-grid,
    .visual-grid.two,
    .check-strip {
        grid-template-columns: 1fr;
    }

    .flow-step {
        min-height: auto;
    }
}
