* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: #172b3c; background: #fff; font: 400 1rem/1.8 system-ui, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; }
a { color: #075c8b; text-underline-offset: .2em; }
a:hover { color: #063953; }
a:focus-visible { outline: 3px solid #087fae; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.guide-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 46px); }
.guide-skip { display: block; position: absolute; top: .5rem; left: .5rem; background: #fff; padding: .5rem 1rem; z-index: 2; transform: translateY(-180%); }
.guide-skip:focus { transform: none; }
.guide-header { border-bottom: 1px solid #dbe8ef; }
.guide-top, .guide-footer .guide-wrap { display: flex; gap: 18px; min-height: 72px; align-items: center; justify-content: space-between; }
.guide-top img { width: clamp(135px, 21vw, 200px); }
.guide-top nav { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .92rem; }
.guide-crumb { display: flex; flex-wrap: wrap; gap: 0 .6em; margin: 24px 0; font-size: .91rem; }
.guide-crumb [aria-current] { color: #4b6272; }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); border-radius: 20px; background: #edf5fa; overflow: hidden; }
.guide-hero-copy { padding: clamp(24px, 4vw, 52px); align-self: center; }
.guide-kicker { margin-top: 0; color: #075e89; font-weight: 750; }
.guide-hero h1 { font-size: clamp(1.78rem, 3.5vw, 2.85rem); line-height: 1.38; margin: .3em 0 .55em; overflow-wrap: anywhere; text-wrap: balance; word-break: auto-phrase; }
.guide-hero time { font-size: .9rem; color: #425b6e; }
.guide-hero > img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.guide-columns { display: grid; grid-template-columns: minmax(185px, 230px) minmax(0, 750px); gap: clamp(28px, 5vw, 70px); align-items: start; margin: clamp(32px, 6vw, 72px) 0; }
.guide-toc { position: sticky; top: 24px; padding: 18px 20px; background: #f3f7fa; border-top: 3px solid #15749e; border-radius: 6px 6px 12px 12px; }
.guide-toc ol { padding-inline-start: 1.35em; margin: .55em 0 0; }
.guide-toc li { margin-block: .45em; }
.guide-content { font-size: clamp(1rem, 1.55vw, 1.08rem); line-height: 1.9; overflow-wrap: anywhere; }
.guide-content h2, .guide-related h2, .guide-contact h2 { line-height: 1.48; font-size: clamp(1.35rem, 2.8vw, 1.8rem); }
.guide-content h2 { margin: 0 0 .7em; border-bottom: 2px solid #d8e7ee; padding-bottom: .45em; }
.guide-content h3 { margin-top: 1.6em; font-size: 1.14em; line-height: 1.5; }
.guide-content section + section { margin-top: 3rem; }
.guide-content li + li { margin-top: .48em; }
.guide-content ul, .guide-content ol { padding-inline-start: 1.45em; }
.guide-content figure { margin: 1.55em 0; }
.guide-content figure img { border: 1px solid #d9e6ec; border-radius: 10px; }
.guide-content figcaption { margin-top: .65em; font-size: .9em; color: #425b6e; }
.guide-note { border-left: 4px solid #1680ad; background: #eef6fa; padding: .95em 1.1em; border-radius: 0 9px 9px 0; }
.guide-table { overflow-x: auto; }
.guide-table table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: .96em; line-height: 1.68; }
.guide-table caption { text-align: left; font-weight: 700; margin-bottom: .5em; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; border: 1px solid #d7e5ed; padding: .65em .75em; }
.guide-table th { background: #f1f6fa; }
.guide-table thead th:last-child { background: #e3f2f9; }
.guide-content details { border: 1px solid #d7e5ed; border-radius: 10px; margin: .8em 0; padding: .7em .9em; }
.guide-content summary { cursor: pointer; color: #124c6c; font-weight: 700; }
.guide-content details p { margin-bottom: .3em; }
.guide-related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-related a { display: flex; flex-direction: column; min-height: 100%; border: 1px solid #d8e7ee; border-radius: 12px; padding: 1.1rem; }
.guide-related span { color: #425b6e; text-decoration: none; margin-top: .2em; }
.guide-contact { margin-block: 36px 56px; padding: clamp(20px, 4vw, 36px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: #fff; background: #153d56; border-radius: 14px; }
.guide-contact h2, .guide-contact p { margin: 0; }
.guide-contact a { color: #153d56; background: #fff; text-decoration: none; font-weight: 750; padding: .65em 1em; border-radius: 7px; }
.guide-contact a:focus-visible { outline-color: #fff; }
.guide-footer { border-top: 1px solid #dbe8ef; font-size: .92rem; }
.guide-inline-cta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px 18px; margin: 2rem 0 2.4rem; padding: 18px 20px;
    background: #ecf5fa; border: 1px solid #cfdfeb; border-left: 4px solid #137ba9; border-radius: 8px;
}
.guide-inline-cta strong { flex: 1 1 210px; color: #143b56; line-height: 1.55; }
.guide-inline-cta a {
    display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .45em .8em;
    border-radius: 6px; background: #075f89; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
}
.guide-inline-cta a:hover { background: #08476a; }
.guide-contact a:hover { background: #e7f2fa; }
@media (max-width: 480px) {
    .guide-inline-cta { padding: 15px; }
    .guide-inline-cta a { justify-content: center; width: 100%; }
}

@media (max-width: 760px) {
    .guide-hero, .guide-columns { grid-template-columns: minmax(0, 1fr); }
    .guide-hero > img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
    .guide-toc { position: static; }
}
@media (max-width: 480px) {
    .guide-top { min-height: 64px; gap: 10px; }
    .guide-top nav { justify-content: flex-end; gap: 0 .6rem; }
    .guide-related ul { grid-template-columns: minmax(0, 1fr); }
}
