/* RINGOリストと同じ540pxの本文枠。MA/SFAのトップLPだけに適用する。 */
body:has(.ringo-guide-shell) {
    --ringo-frame-width: 540px;
}
.ringo-guide-shell {
    --frame-wine: #6e0d14;
    --frame-red: #a5121c;
    --frame-line: #efd9d9;
    width: min(100%, var(--ringo-frame-width));
    margin-inline: auto;
    background: #fff;
    isolation: isolate;
    overflow: clip;
}
.ringo-guide-shell :is(p, li, dd) { overflow-wrap: anywhere; }
.ringo-guide-shell .container,
.ringo-guide-shell .ringo-guide__grid {
    width: auto;
    max-width: none;
    margin-inline: clamp(18px, 5.4vw, 26px);
    padding-inline: 0;
}
.ringo-guide-shell section { padding-block: clamp(45px, 6.5vw, 65px); }
.ringo-guide-shell section[id] { scroll-margin-top: 90px; }
body:has(.ringo-guide-shell) .rsc .rei-header--service {
    width: min(100%, var(--ringo-frame-width));
    height: 70px;
    margin-inline: auto;
    background: #fffffff7;
    border-bottom: 1px solid #efd9d9;
}
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-header__inner {
    width: calc(100% - 40px);
    gap: 10px;
}
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-logo { gap: 7px; white-space: nowrap; }
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-logo__mark { width: 28px; }
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-logo__type {
    font-size: clamp(18px, 4.9vw, 23px);
    font-weight: 800;
    letter-spacing: -.04em;
    color: #a5121c;
}
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-gnav { display: none; }
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-header__cta {
    padding: 7px 11px;
    font-size: 11px;
    min-height: 38px;
}
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-header__cta svg { display: none; }
body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-menu {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #6e0d14;
}
body:has(.ringo-guide-shell) .rsc .rei-mobile-nav {
    width: min(100%, var(--ringo-frame-width));
    margin-inline: auto;
}
body:has(.ringo-guide-shell) .rsc .rei-mobile-nav:not(.is-open) {
    visibility: hidden;
    pointer-events: none;
}
body:has(.ringo-guide-shell) .rsc .rei-footer {
    width: min(100%, var(--ringo-frame-width));
    margin-inline: auto;
}
body:has(.ringo-guide-shell) .rsc .rei-footer__main { grid-template-columns: minmax(0, 1fr); }
body:has(.ringo-guide-shell) .rsc .rei-footer__bottom nav { flex-wrap: wrap; }
body:has(.ringo-guide-shell) [data-okojo-credit] {
    width: min(100%, var(--ringo-frame-width));
    margin-inline: auto;
}

.ringo-guide-shell .ringo-frame-hero {
    padding-top: 88px;
    background: #fff;
}
.ringo-frame-hero__masthead {
    margin-bottom: 14px;
}
.ringo-frame-hero .hero-content { max-width: none; }
.ringo-frame-hero .hero-eyebrow,
.ringo-guide-shell .section-label,
.ringo-guide-shell .ringo-guide__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--frame-red);
    letter-spacing: .08em;
    font-weight: 750;
}
.ringo-frame-hero .hero-eyebrow { margin: 0 0 8px; }
.ringo-frame-hero .hero-eyebrow::before,
.ringo-guide-shell .section-label::before,
.ringo-guide-shell .ringo-guide__label::before {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #c8161f;
    content: "";
}
.ringo-frame-hero .hero-title {
    display: block;
    width: max-content;
    max-width: none;
    margin: 0;
    color: var(--frame-wine);
    font-family: var(--ringo-font-en);
    font-size: clamp(32px, 8.3vw, 51px);
    font-weight: 800;
    letter-spacing: -.067em;
    line-height: 1;
    white-space: nowrap;
}
.ringo-frame-hero .hero-line {
    margin-bottom: 10px;
    color: #281c1d;
    font-size: clamp(18px, 4.8vw, 22px);
    font-weight: 750;
    line-height: 1.52;
    letter-spacing: -.015em;
}
.ringo-frame-hero .hero-subtitle { color: #422d30; }
.ringo-frame-hero .hero-description,
.ringo-frame-hero .hero-subtitle { font-size: 14px; line-height: 1.85; }
.ringo-frame-hero .hero-description { margin-bottom: 17px; }
.ringo-frame-hero .hero-note { margin: 13px 0 0; font-size: 12px; line-height: 1.7; }
.ringo-frame-hero .hero-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: 8px;
}
.ringo-frame-hero .hero-buttons .button {
    width: auto;
    min-height: 46px;
    padding-inline: 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0;
}
.ringo-frame-hero .hero-buttons .button-secondary { border-color: #dba9aa; color: var(--frame-wine); }
.ringo-frame-hero .hero-buttons .button-secondary:hover { color: #fff; background: var(--frame-wine); }
.ringo-frame-hero .hero-flow,
.ringo-frame-hero .hero-flow.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 22px;
}
.ringo-frame-hero .hero-flow-item,
.ringo-frame-hero .hero-flow-item.is-ours {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    border: 1px solid var(--frame-line);
    background: #fff9f8;
    color: #3b2629;
    font-size: 12px;
    text-align: left;
}
.ringo-frame-hero .hero-flow-item span,
.ringo-frame-hero .hero-flow-item.is-ours span {
    display: grid;
    place-items: center;
    flex: 0 0 23px;
    height: 23px;
    margin: 0;
    border-radius: 50%;
    background: var(--frame-red);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0;
}
.ringo-frame-hero div.hero-flow .hero-flow-item:last-child { grid-column: 1 / -1; }
.ringo-frame-hero a.hero-flow-item:hover { border-color: var(--frame-red); }
.ringo-frame-hero .hero-flow-caption { font-size: 12px; }

.ringo-guide-shell .ringo-guide--request {
    background:
        radial-gradient(circle at 95% 22px, #fae2e0 0 14px, transparent 15px),
        radial-gradient(circle at 88% 8px, #f4cecc 0 5px, transparent 6px),
        linear-gradient(180deg, #fff8f7, #fff);
    border-block: 1px solid var(--frame-line);
}
.ringo-guide-shell .ringo-guide__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}
.ringo-guide-shell .ringo-guide__form-card { padding: 20px; border-radius: 14px; }
.ringo-guide-shell .ringo-guide__title { font-size: clamp(29px, 8vw, 43px); }
.ringo-guide-shell .ringo-guide__book img { border-radius: 12px; }
.ringo-guide-shell .ringo-guide__book { margin-top: 18px; }

.ringo-guide-shell .section-header {
    display: block;
    padding-bottom: 13px;
    margin-bottom: 24px;
}
.ringo-guide-shell .section-title { margin-top: 6px; letter-spacing: -.01em; }
.ringo-guide-shell .section-description { margin-top: 11px; }
.ringo-guide-shell :is(
    .rs-pair, .rs-premise, .rs-stages, .problem-grid, .service-features,
    .scope-flow, .condition-grid, .reason-grid, .pricing-main, .pricing-plans, .contact-methods,
    .spec-row, .stats-grid, .related-links, .lineup-grid, .svc-grid, .concept-chain,
    .concept-compare, .concept-repeat-track
) {
    grid-template-columns: minmax(0, 1fr);
}
.ringo-guide-shell :is(.svc-side, .rs-pair) { position: static; }
.ringo-guide-shell .rs-pair { padding: clamp(17px, 5vw, 27px); }
.ringo-guide-shell .rs-pair-diagram { min-width: 0; padding: 15px 11px; }
.ringo-guide-shell .rs-pair-node { padding-inline: 4px; }
.ringo-guide-shell .rs-pair-nodes { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); }
.ringo-guide-shell .rs-pair-flows li { gap: 8px; }
.ringo-guide-shell .rs-weeks > li { grid-template-columns: minmax(0,1fr); gap: 6px; }
.ringo-guide-shell .rs-stage:not(:last-child)::after {
    right: 50%;
    top: auto;
    bottom: calc(var(--lp-gap) / -2 - 5px);
    transform: translateX(50%) rotate(135deg);
}
.ringo-guide-shell .rs-saas { flex-direction: column; align-items: stretch; }
.ringo-guide-shell .concept-step:not(:last-child)::after,
.ringo-guide-shell .concept-repeat-track::before { display: none; }
.ringo-guide-shell .concept-repeat-dot { padding: 7px 0 11px 27px; text-align: left; }
.ringo-guide-shell .concept-repeat-dot::before { left: 9px; top: 8px; }
.ringo-guide-shell .compare-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.ringo-guide-shell .compare-wrap:focus-visible { outline: 2px solid #a5121c; outline-offset: 2px; }
.ringo-guide-shell .problem-cta { flex-direction: column; align-items: stretch; }
@media (max-width: 375px) {
    body:has(.ringo-guide-shell) .rsc .rei-header--service .rei-header__inner { width: calc(100% - 28px); }
    .ringo-frame-hero .hero-buttons { grid-template-columns: minmax(0, 1fr); }
}
