.swing-311-body {
    --s311-red: #9b2027;
    --s311-red-dark: #70161b;
    --s311-gold: #d99a28;
    --s311-teal: #1e6871;
    --s311-ink: #283438;
    --s311-muted: #5e6d71;
    --s311-line: #d9e1e2;
    --s311-cream: #fff9ef;
    color: var(--s311-ink);
}

.swing-311-body #Bread { width: 78%; max-width: 1180px; margin: 12px auto 0; }
.swing-311-body #mein-Contents { align-items: flex-start; }
.swing-311-page { width: 100%; max-width: 100%; margin: 0; font-family: "Noto Sans JP", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.9; }
.swing-311-page a { color: #8b1d23; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.swing-311-page a:hover, .swing-311-page a:focus-visible { color: #571015; }
.swing-311-page__title { margin-bottom: 20px; padding: 1rem 1.2rem; border-left: 8px solid var(--s311-red); background: linear-gradient(90deg, #fff2f0 0%, #fff 72%); color: #2f2929; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.45; }

.swing-311-hero { margin: 0 0 28px; border-radius: 18px; overflow: hidden; background: #eee8df; box-shadow: 0 12px 30px rgba(45, 50, 50, .13); }
.swing-311-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.swing-311-lead { padding: clamp(25px, 4vw, 40px); border: 1px solid #f0d9bd; border-radius: 18px; background: linear-gradient(135deg, #fff7e8 0%, #fff 55%, #eef7f6 100%); }
.swing-311-eyebrow { margin: 0 0 8px; color: var(--s311-red); font-weight: 800; letter-spacing: .05em; }
.swing-311-lead h2 { margin: 0 0 16px; color: #2c3030; font-size: clamp(1.35rem, 2.5vw, 1.82rem); line-height: 1.55; }
.swing-311-lead p { margin: 0 0 12px; }
.swing-311-lead p:last-child { margin-bottom: 0; }

.swing-311-summary { margin: 28px 0; padding: 25px 28px; border: 2px solid #d2e5e3; border-radius: 15px; background: #f6fbfa; }
.swing-311-summary h2 { margin: 0 0 12px; color: #165b63; font-size: 1.3rem; }
.swing-311-summary ul { margin: 0; padding-left: 1.4em; }
.swing-311-summary li + li { margin-top: 5px; }

.swing-311-toc { margin: 28px 0 46px; padding: 25px 28px; border-radius: 15px; border-left: 6px solid var(--s311-gold); background: #f7f6f3; }
.swing-311-toc__title { margin: 0 0 10px; color: #2c3030; font-size: 1.2rem; font-weight: 800; }
.swing-311-toc ol { margin: 0; padding-left: 1.35em; columns: 2; column-gap: 36px; }
.swing-311-toc li { break-inside: avoid; margin: 0 0 7px; }

.swing-311-section { scroll-margin-top: 28px; margin: 0 0 54px; }
.swing-311-heading { position: relative; margin: 0 0 22px; padding: 14px 18px 14px 23px; border: 1px solid #eadbd5; border-radius: 9px; background: linear-gradient(90deg, #fff1ed, #fffaf5); color: #64161a; font-size: clamp(1.35rem, 2.6vw, 1.78rem); line-height: 1.5; }
.swing-311-heading::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; border-radius: 9px 0 0 9px; background: var(--s311-red); }
.swing-311-section > p { margin: 0 0 18px; }
.swing-311-section h3 { line-height: 1.55; }

.swing-311-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.swing-311-role-grid article { position: relative; min-height: 180px; padding: 24px 22px 21px; border: 1px solid var(--s311-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 23px rgba(40, 60, 62, .07); }
.swing-311-role-grid article > span { display: inline-grid; place-items: center; width: 43px; height: 43px; margin-bottom: 12px; border-radius: 50%; background: var(--s311-red); color: #fff; font-weight: 800; }
.swing-311-role-grid h3 { margin: 0 0 8px; color: #2e3435; font-size: 1.12rem; }
.swing-311-role-grid p { margin: 0; color: var(--s311-muted); }

.swing-311-table-wrap { width: 100%; margin: 25px 0; overflow-x: auto; border: 1px solid var(--s311-line); border-radius: 13px; -webkit-overflow-scrolling: touch; }
.swing-311-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.swing-311-table th, .swing-311-table td { padding: 15px 16px; border: 1px solid var(--s311-line); vertical-align: top; text-align: left; }
.swing-311-table thead th { background: #7e1d22; color: #fff; font-weight: 800; }
.swing-311-table tbody th { width: 19%; background: #fff2ee; color: #65181c; }

.swing-311-note { margin: 25px 0; padding: 22px 24px; border: 1px solid #bcd9d6; border-radius: 13px; background: #eff8f7; }
.swing-311-note--warning { border-color: #e7c78f; background: #fff8e9; }
.swing-311-note h3 { margin: 0 0 8px; color: #594226; font-size: 1.12rem; }
.swing-311-note p { margin: 0; }

.swing-311-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 25px 0; }
.swing-311-spec-grid article { padding: 23px; border: 1px solid #e4d8cc; border-radius: 15px; background: linear-gradient(145deg, #fff 0%, #fffaf1 100%); }
.swing-311-spec-grid__label { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--s311-gold); color: #fff; font-weight: 800; }
.swing-311-spec-grid h3 { margin: 0 0 8px; color: #4e3420; font-size: 1.1rem; }
.swing-311-spec-grid p:last-child { margin: 0; color: var(--s311-muted); }

.swing-311-steps { list-style: none; margin: 25px 0; padding: 0; }
.swing-311-steps li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--s311-line); }
.swing-311-steps li:first-child { border-top: 1px solid var(--s311-line); }
.swing-311-steps li > span { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 12px; border-radius: 999px; background: var(--s311-teal); color: #fff; font-weight: 800; }
.swing-311-steps h3 { margin: 0 0 7px; color: #2d3435; font-size: 1.16rem; }
.swing-311-steps p { margin: 0; }

.swing-311-checklist { list-style: none; display: grid; gap: 10px; margin: 25px 0; padding: 0; }
.swing-311-checklist li { position: relative; padding: 14px 17px 14px 49px; border: 1px solid #d7e5e3; border-radius: 11px; background: #f7fbfa; }
.swing-311-checklist li::before { content: "✓"; position: absolute; left: 15px; top: 12px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--s311-teal); color: #fff; font-weight: 900; line-height: 1; }

.swing-311-formula { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 13px; align-items: stretch; margin: 26px 0; }
.swing-311-formula div { display: flex; flex-direction: column; justify-content: center; min-height: 132px; padding: 20px; border: 1px solid #e2d4c8; border-radius: 14px; background: #fffaf3; text-align: center; }
.swing-311-formula strong { display: block; margin-bottom: 7px; color: #7f1d22; font-size: 1.08rem; }
.swing-311-formula span { color: var(--s311-muted); font-size: .94rem; }
.swing-311-formula > b { align-self: center; color: var(--s311-gold); font-size: 1.8rem; }

.swing-311-resource-cards, .swing-311-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.swing-311-resource-cards a, .swing-311-related__grid a { display: flex; flex-direction: column; gap: 5px; min-height: 112px; padding: 20px; border: 1px solid #d6e0e1; border-radius: 13px; background: #fff; color: #283438; text-decoration: none; box-shadow: 0 6px 18px rgba(32, 54, 57, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.swing-311-resource-cards a:hover, .swing-311-resource-cards a:focus-visible, .swing-311-related__grid a:hover, .swing-311-related__grid a:focus-visible { color: #283438; transform: translateY(-2px); border-color: #c17348; box-shadow: 0 10px 24px rgba(32, 54, 57, .11); }
.swing-311-resource-cards strong, .swing-311-related__grid strong { color: #7a1b20; font-size: 1.05rem; line-height: 1.5; }
.swing-311-resource-cards span, .swing-311-related__grid span { color: var(--s311-muted); font-size: .94rem; line-height: 1.7; }

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

.swing-311-related { margin: 58px 0 32px; padding: 29px; border-radius: 17px; background: #f4f7f6; }
.swing-311-related h2 { margin: 0; color: #2c3738; font-size: 1.46rem; }
.swing-311-back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; font-weight: 800; }
.swing-311-back-link::before { content: "←"; }

.swing-311-cta { margin: 32px 0 70px; padding: clamp(29px, 5vw, 46px); border-radius: 19px; background: linear-gradient(135deg, #75171c 0%, #a7242a 52%, #b85a26 100%); color: #fff; text-align: center; box-shadow: 0 14px 34px rgba(117, 23, 28, .23); }
.swing-311-cta h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.42rem, 2.7vw, 1.88rem); line-height: 1.5; }
.swing-311-cta p { max-width: 780px; margin: 0 auto; color: #fff; }
.swing-311-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 25px; }
.swing-311-button { display: inline-flex; align-items: center; justify-content: center; min-width: 260px; min-height: 57px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 800; line-height: 1.4; text-decoration: none !important; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
.swing-311-button--primary { background-color: #fff; color: #214f55 !important; border-color: #fff; }
.swing-311-button--secondary { background-color: #5d394d; color: #fff !important; border-color: #5d394d; }
.swing-311-button--primary:hover, .swing-311-button--primary:focus-visible { background-color: #fff1c9; color: #15383d !important; border-color: #fff1c9; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.swing-311-button--secondary:hover, .swing-311-button--secondary:focus-visible { background-color: #402635; color: #fff !important; border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.swing-311-button:focus-visible, .swing-311-resource-cards a:focus-visible, .swing-311-related__grid a:focus-visible, .swing-311-page a:focus-visible { outline: 3px solid #d7a63d; outline-offset: 3px; }

@media (max-width: 1100px) {
    .swing-311-body #Bread { width: 86%; }
    .swing-311-formula { grid-template-columns: 1fr; }
    .swing-311-formula > b { transform: rotate(90deg); }
}

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

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

/* Page 311 content-specific adjustments */
.swing-311-body {
    --s311-red: #245d63;
    --s311-red-dark: #173f44;
    --s311-gold: #c88a2d;
    --s311-teal: #6f405c;
}
.swing-311-page a { color: #1f5960; }
.swing-311-page a:hover, .swing-311-page a:focus-visible { color: #123c41; }
.swing-311-page__title { border-left-color: var(--s311-red); background: linear-gradient(90deg, #edf8f7 0%, #fff 72%); color: #23383b; }
.swing-311-lead { border-color: #cfe3df; background: linear-gradient(135deg, #f1faf8 0%, #fff 55%, #fff7e8 100%); }
.swing-311-heading { border-color: #cfe0dd; background: linear-gradient(90deg, #edf8f6, #fffaf3); color: #1d5157; }
.swing-311-table thead th { background: #245d63; }
.swing-311-spec-grid h3, .swing-311-resource-cards strong, .swing-311-related__grid strong { color: #23565b; }
.swing-311-cta { background: linear-gradient(135deg, #214f55 0%, #2e6970 52%, #6f405c 100%); box-shadow: 0 14px 34px rgba(33, 79, 85, .23); }
.swing-311-cta__label { margin: 0 0 7px !important; font-weight: 800; letter-spacing: .06em; }

.swing-311-note ol { margin: 0; padding-left: 1.4em; }
.swing-311-note li + li { margin-top: 8px; }

.swing-311-checklist { margin: 25px 0; padding: 22px 24px; border: 1px solid #d7e5e3; border-radius: 14px; background: #f7fbfa; }
.swing-311-checklist h3 { margin: 0 0 13px; color: #245d63; }
.swing-311-checklist ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.swing-311-checklist li { position: relative; padding: 12px 14px 12px 46px; border: 1px solid #d7e5e3; border-radius: 10px; background: #fff; }
.swing-311-checklist li::before { content: "✓"; position: absolute; left: 13px; top: 10px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--s311-red); color: #fff; font-weight: 900; line-height: 1; }

.swing-311-formula { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); }
.swing-311-formula span, .swing-311-formula strong { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 16px; border: 1px solid #d9e3e1; border-radius: 13px; background: #f7fbfa; text-align: center; }
.swing-311-formula strong { margin: 0; color: #214f55; background: #fff6e6; border-color: #ead5af; font-size: 1.05rem; }

.swing-311-faq details > p { margin: 0; padding: 18px 20px; border-top: 1px solid #e1e7e8; }
.swing-311-back { margin: 10px 0 0; font-weight: 800; }
.swing-311-back a::before { content: "←"; margin-right: 7px; }

@media (max-width: 1100px) {
    .swing-311-formula { grid-template-columns: 1fr; }
    .swing-311-formula > b { transform: none; }
}
