/* Page 298: Swing POP installation guide */
.swing-298-body {
    color: #263238;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    background: #fff;
}

.swing-298-body #Flame { display: flex; flex-direction: column; min-height: 100vh; }
.swing-298-body #Bread { width: 70%; margin: 10px auto -10px; }
.swing-298-body #mein-Contents { display: flex; justify-content: center; width: 100%; gap: 1em; margin: 20px auto 0; padding: 0; }
.swing-298-body #sideMenu { width: 18%; padding-bottom: 20px; }
.swing-298-body #Main { width: 52%; min-width: 0; }

.swing-298-page { --red: #b8292f; --red-dark: #8f171d; --pink: #fff1f2; --blue: #196b8d; --ink: #263238; --muted: #607078; --line: #dbe3e7; line-height: 1.9; }
.swing-298-page *, .swing-298-page *::before, .swing-298-page *::after { box-sizing: border-box; }
.swing-298-page img { max-width: 100%; height: auto; vertical-align: bottom; }
.swing-298-page a { color: #0c668a; text-decoration: underline; text-underline-offset: 0.18em; }
.swing-298-page a:hover, .swing-298-page a:focus-visible { color: #7c1117; }
.swing-298-page :focus-visible { outline: 3px solid #f3b423; outline-offset: 3px; }

.swing-298-page__title { margin: 0 0 22px; padding: 1rem 1.35rem; border-left: 7px solid var(--red); border-bottom: 3px solid var(--red); background: linear-gradient(100deg, #fff6f6, #f5f7f8); color: #252525; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.4; }
.swing-298-hero { margin: 0 0 30px; overflow: hidden; border-radius: 16px; box-shadow: 0 12px 30px rgba(29, 47, 56, .13); background: #eef2f3; }
.swing-298-hero img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.swing-298-lead { padding: clamp(24px, 4vw, 38px); border-radius: 16px; background: linear-gradient(135deg, #fff7f7 0%, #fff 58%, #f2f8fa 100%); border: 1px solid #f0d7d9; }
.swing-298-eyebrow { margin: 0 0 8px; color: var(--red); font-weight: 800; letter-spacing: .06em; }
.swing-298-lead h2 { margin: 0 0 16px; color: #222; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.55; }
.swing-298-lead p { margin: 0 0 12px; }
.swing-298-lead p:last-child { margin-bottom: 0; }

.swing-298-summary { margin: 28px 0; padding: 24px 28px; border: 2px solid #d9e8ed; border-radius: 14px; background: #f8fcfd; }
.swing-298-summary h2 { margin: 0 0 12px; color: #174f67; font-size: 1.3rem; }
.swing-298-summary ul { margin: 0; padding-left: 1.35em; }
.swing-298-summary li + li { margin-top: 5px; }

.swing-298-toc { margin: 28px 0 44px; padding: 25px 28px; border-radius: 14px; background: #f6f6f6; border-left: 6px solid var(--red); }
.swing-298-toc__title { margin: 0 0 10px; font-weight: 800; font-size: 1.2rem; color: #222; }
.swing-298-toc ol { margin: 0; padding-left: 1.35em; columns: 2; column-gap: 36px; }
.swing-298-toc li { break-inside: avoid; margin: 0 0 7px; }

.swing-298-section { scroll-margin-top: 28px; margin: 0 0 52px; }
.swing-298-heading { position: relative; margin: 0 0 22px; padding: 14px 18px 14px 22px; border-radius: 8px; background: repeating-linear-gradient(-45deg, #fff0f1, #fff0f1 6px, #ffe3e5 6px, #ffe3e5 12px); color: #5c1519; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.5; }
.swing-298-heading::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; border-radius: 8px 0 0 8px; background: var(--red); }
.swing-298-section > p { margin: 0 0 18px; }
.swing-298-section h3 { line-height: 1.5; }

.swing-298-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.swing-298-check-grid article { position: relative; padding: 22px 20px 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgba(28, 48, 58, .07); }
.swing-298-check-grid__number { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.swing-298-check-grid h3 { margin: 0 0 8px; font-size: 1.08rem; color: #222; }
.swing-298-check-grid p { margin: 0; font-size: .96rem; }

.swing-298-note { margin: 24px 0; padding: 22px 24px; border-radius: 12px; border: 1px solid #bfd9e5; background: #eff8fb; }
.swing-298-note--warning { border-color: #efcf9c; background: #fff9ef; }
.swing-298-note h3 { margin: 0 0 8px; color: #514026; font-size: 1.12rem; }
.swing-298-note p { margin: 0; }

.swing-298-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; }
.swing-298-steps li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.swing-298-steps li:first-child { border-top: 1px solid var(--line); }
.swing-298-steps__number { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .04em; }
.swing-298-steps h3 { margin: 0 0 7px; color: #292929; font-size: 1.18rem; }
.swing-298-steps p { margin: 0; }

.swing-298-table-wrap { width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.swing-298-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.swing-298-table th, .swing-298-table td { padding: 15px 16px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.swing-298-table thead th { background: #8f2025; color: #fff; font-weight: 800; }
.swing-298-table tbody th { width: 21%; background: #fff1f2; color: #5e171b; }

.swing-298-mistakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.swing-298-mistakes article { padding: 20px 22px; border-radius: 12px; border: 1px solid #ead9da; background: #fffafa; }
.swing-298-mistakes h3 { margin: 0 0 8px; color: #7a1d22; font-size: 1.08rem; }
.swing-298-mistakes p { margin: 0; }

.swing-298-checklist { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.swing-298-checklist li { position: relative; padding: 14px 16px 14px 48px; border-radius: 10px; background: #f6fafb; border: 1px solid #dce8ec; }
.swing-298-checklist li::before { content: "✓"; position: absolute; left: 15px; top: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #24748e; color: #fff; font-weight: 900; line-height: 1; }

.swing-298-resource-cards, .swing-298-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.swing-298-resource-cards a, .swing-298-related__grid a { display: flex; flex-direction: column; gap: 5px; min-height: 112px; padding: 20px; border-radius: 12px; border: 1px solid #d6e1e5; background: #fff; color: #263238; text-decoration: none; box-shadow: 0 6px 18px rgba(28, 48, 58, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.swing-298-resource-cards a:hover, .swing-298-resource-cards a:focus-visible, .swing-298-related__grid a:hover, .swing-298-related__grid a:focus-visible { color: #263238; transform: translateY(-2px); border-color: #bb6267; box-shadow: 0 10px 24px rgba(28, 48, 58, .11); }
.swing-298-resource-cards strong, .swing-298-related__grid strong { color: #781b20; font-size: 1.05rem; line-height: 1.5; }
.swing-298-resource-cards span, .swing-298-related__grid span { color: var(--muted); font-size: .94rem; line-height: 1.7; }

.swing-298-faq details { margin: 0 0 12px; border: 1px solid #d7e1e4; border-radius: 10px; background: #fff; overflow: hidden; }
.swing-298-faq summary { position: relative; padding: 17px 50px 17px 20px; cursor: pointer; list-style: none; background: #f7fafb; color: #263238; font-weight: 800; line-height: 1.6; }
.swing-298-faq summary::-webkit-details-marker { display: none; }
.swing-298-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.55rem; font-weight: 400; }
.swing-298-faq details[open] summary::after { content: "−"; }
.swing-298-faq details > div { padding: 18px 20px; border-top: 1px solid #e1e8eb; }
.swing-298-faq details p { margin: 0; }

.swing-298-related { margin: 56px 0 32px; padding: 28px; border-radius: 16px; background: #f4f7f8; }
.swing-298-related h2 { margin: 0; font-size: 1.45rem; color: #263238; }
.swing-298-back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; font-weight: 800; }
.swing-298-back-link::before { content: "←"; }

.swing-298-cta { margin: 32px 0 70px; padding: clamp(28px, 5vw, 45px); border-radius: 18px; background: linear-gradient(135deg, #7f171c, #b92b32); color: #fff; text-align: center; box-shadow: 0 14px 34px rgba(125, 23, 28, .2); }
.swing-298-cta h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.4rem, 2.7vw, 1.85rem); line-height: 1.5; }
.swing-298-cta p { margin: 0 auto; max-width: 760px; color: #fff; }
.swing-298-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.swing-298-button { display: inline-flex; align-items: center; justify-content: center; min-width: 250px; min-height: 56px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none !important; line-height: 1.4; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; }
.swing-298-button--primary { background-color: #fff; color: #7d171c !important; border-color: #fff; }
.swing-298-button--secondary { background-color: #173f52; color: #fff !important; border-color: #173f52; }
.swing-298-button--primary:hover, .swing-298-button--primary:focus-visible { background-color: #fff3d4; color: #5c1014 !important; border-color: #fff3d4; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.swing-298-button--secondary:hover, .swing-298-button--secondary:focus-visible { background-color: #0e2d3a; color: #fff !important; border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }

@media (max-width: 1100px) {
    .swing-298-body #Bread { width: 86%; }
    .swing-298-body #Main { width: 78%; }
    .swing-298-check-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .swing-298-body #Bread { width: 92%; margin-top: 8px; }
    .swing-298-body #mein-Contents { margin-top: 16px; }
    .swing-298-body #Main { width: 92%; }
    .swing-298-page__title { padding: .85rem 1rem; }
    .swing-298-hero { border-radius: 10px; margin-bottom: 22px; }
    .swing-298-lead, .swing-298-summary, .swing-298-toc, .swing-298-related { padding: 20px; }
    .swing-298-toc ol { columns: 1; }
    .swing-298-section { scroll-margin-top: 220px; margin-bottom: 42px; }
    .swing-298-heading { padding: 12px 14px 12px 18px; }
    .swing-298-steps li { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
    .swing-298-steps__number { width: fit-content; min-width: 96px; min-height: 40px; }
    .swing-298-mistakes, .swing-298-resource-cards, .swing-298-related__grid { grid-template-columns: 1fr; }
    .swing-298-resource-cards a, .swing-298-related__grid a { min-height: 0; }
    .swing-298-cta__buttons { flex-direction: column; }
    .swing-298-button { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
    .swing-298-body #Main { width: 94%; }
    .swing-298-lead, .swing-298-summary, .swing-298-toc, .swing-298-related, .swing-298-cta { padding: 18px; }
    .swing-298-check-grid article, .swing-298-mistakes article { padding: 18px; }
    .swing-298-table th, .swing-298-table td { padding: 12px; }
}
