:root {
    --eight-xtool-navy: #123257;
    --eight-xtool-rose: #9e3d41;
    --eight-xtool-green: #176b70;
    --eight-xtool-gold: #9a6a13;
    --eight-xtool-ink: #2c292a;
    --eight-xtool-muted: #655e60;
    --eight-xtool-line: #ded8d8;
    --eight-xtool-pale: #f4f7fa;
    --eight-xtool-pale-rose: #fff7f7;
}

.eight-xtool-page {
    overflow: clip;
    background: #fff;
    color: var(--eight-xtool-ink);
}

.eight-xtool-page-mv .page_mv_bg_image {
    filter: grayscale(0.15) saturate(0.7) contrast(0.96);
}

.eight-xtool-page-title .jp {
    line-height: 1.45;
}

.eight-xtool-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.eight-xtool-hero,
.eight-xtool-section,
.eight-xtool-final {
    padding: 88px 0;
}

.eight-xtool-hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(18, 50, 87, 0.07), transparent 44%),
        linear-gradient(150deg, #fff 0%, #f1f5f8 100%);
}

.eight-xtool-hero::before,
.eight-xtool-hero::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.eight-xtool-hero::before {
    top: 0;
    right: 7%;
    width: 1px;
    height: 100%;
    background: linear-gradient(transparent, rgba(158, 61, 65, 0.28), transparent);
}

.eight-xtool-hero::after {
    right: -110px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(18, 50, 87, 0.12);
    border-radius: 50%;
}

.eight-xtool-kicker {
    margin: 0 0 16px;
    color: var(--eight-xtool-rose);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.eight-xtool-hero h2,
.eight-xtool-section h2,
.eight-xtool-final h2 {
    margin: 0;
    color: var(--eight-xtool-navy);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.eight-xtool-machine-line {
    margin: 26px 0 0;
    padding-left: 18px;
    border-left: 4px solid var(--eight-xtool-rose);
    color: var(--eight-xtool-navy);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.65;
}

.eight-xtool-machine-line strong {
    color: var(--eight-xtool-rose);
    font-weight: 800;
}

.eight-xtool-hero__lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 980px;
    margin-top: 34px;
}

.eight-xtool-hero__lead p,
.eight-xtool-section-lead,
.eight-xtool-final > .eight-xtool-inner > p,
.eight-xtool-commerce__grid p {
    margin: 0;
    color: var(--eight-xtool-muted);
    font-size: 16px;
    line-height: 2;
}

.eight-xtool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.eight-xtool-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border: 2px solid transparent;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.eight-xtool-button--line {
    background: #007d36;
}

.eight-xtool-button--line:hover {
    background: #006f30;
    transform: translateY(-2px);
}

.eight-xtool-button--chat {
    background: var(--eight-xtool-navy);
}

.eight-xtool-button--chat:hover {
    background: #0c2746;
    transform: translateY(-2px);
}

.eight-xtool-button:focus-visible,
.eight-xtool-related-links a:focus-visible,
.eight-xtool-faq summary:focus-visible {
    outline: 3px solid #06c755;
    outline-offset: 4px;
}

.eight-xtool-hero__note {
    margin: 16px 0 0;
    color: var(--eight-xtool-muted);
    font-size: 13px;
    line-height: 1.8;
}

.eight-xtool-section:nth-of-type(even) {
    background: var(--eight-xtool-pale);
}

.eight-xtool-section-lead {
    max-width: 850px;
    margin-top: 22px;
}

.eight-xtool-badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.eight-xtool-badge-grid li {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid rgba(18, 50, 87, 0.2);
    border-radius: 10px;
    background: #fff;
    color: var(--eight-xtool-navy);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.eight-xtool-machine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.eight-xtool-machine-card {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid var(--eight-xtool-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(18, 50, 87, 0.08);
}

.eight-xtool-machine-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--eight-xtool-rose);
    content: '';
}

.eight-xtool-machine-card--press::before {
    background: var(--eight-xtool-green);
}

.eight-xtool-machine-card__label {
    margin: 0 0 10px;
    color: var(--eight-xtool-rose);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.eight-xtool-machine-card--press .eight-xtool-machine-card__label {
    color: var(--eight-xtool-green);
}

.eight-xtool-machine-card h3 {
    margin: 0;
    color: var(--eight-xtool-navy);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.35;
}

.eight-xtool-machine-card__spec {
    margin: 10px 0 20px;
    color: var(--eight-xtool-rose);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.6;
}

.eight-xtool-machine-card--press .eight-xtool-machine-card__spec {
    color: var(--eight-xtool-green);
}

.eight-xtool-machine-card > p:not([class]) {
    margin: 0;
    color: var(--eight-xtool-muted);
    font-size: 14px;
    line-height: 1.9;
}

.eight-xtool-machine-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.eight-xtool-machine-card li,
.eight-xtool-check-grid li,
.eight-xtool-reservation__grid li {
    position: relative;
    padding-left: 18px;
    color: var(--eight-xtool-muted);
    font-size: 14px;
    line-height: 1.75;
}

.eight-xtool-machine-card li::before,
.eight-xtool-check-grid li::before,
.eight-xtool-reservation__grid li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--eight-xtool-rose);
    content: '';
}

.eight-xtool-card-grid,
.eight-xtool-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.eight-xtool-card-grid article,
.eight-xtool-example-grid article {
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--eight-xtool-line);
    border-radius: 14px;
    background: #fff;
}

.eight-xtool-card-grid span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--eight-xtool-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.eight-xtool-card-grid h3,
.eight-xtool-example-grid h3,
.eight-xtool-flow-list h3 {
    margin: 0 0 10px;
    color: var(--eight-xtool-navy);
    font-size: 19px;
    line-height: 1.55;
}

.eight-xtool-card-grid p,
.eight-xtool-example-grid p,
.eight-xtool-flow-list p {
    margin: 0;
    color: var(--eight-xtool-muted);
    font-size: 14px;
    line-height: 1.9;
}

.eight-xtool-example-grid article {
    min-height: 170px;
    border-top: 4px solid var(--eight-xtool-rose);
}

.eight-xtool-caution {
    margin: 28px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--eight-xtool-gold);
    background: #fffaf0;
    color: var(--eight-xtool-muted);
    font-size: 13px;
    line-height: 1.85;
}

.eight-xtool-commerce {
    background: var(--eight-xtool-navy) !important;
}

.eight-xtool-commerce .eight-xtool-kicker,
.eight-xtool-commerce h2 {
    color: #fff;
}

.eight-xtool-commerce__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-top: 34px;
}

.eight-xtool-commerce__grid p {
    color: rgba(255, 255, 255, 0.82);
}

.eight-xtool-commerce__grid p + p {
    margin-top: 16px;
}

.eight-xtool-commerce__grid ul {
    margin: 0;
    padding: 24px 30px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    list-style: none;
}

.eight-xtool-commerce__grid li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.eight-xtool-commerce__grid li:last-child {
    border-bottom: 0;
}

.eight-xtool-commerce .eight-xtool-caution {
    border-left-color: #d2a13b;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.eight-xtool-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 24px;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
}

.eight-xtool-check-grid li {
    min-height: 58px;
    padding: 16px 18px 16px 42px;
    border: 1px solid var(--eight-xtool-line);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
}

.eight-xtool-check-grid li::before {
    top: 24px;
    left: 20px;
}

.eight-xtool-flow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.eight-xtool-flow-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 180px;
    padding: 25px;
    border: 1px solid var(--eight-xtool-line);
    border-radius: 14px;
    background: #fff;
}

.eight-xtool-flow-list li > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--eight-xtool-rose);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.eight-xtool-reservation__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 36px;
}

.eight-xtool-reservation__grid ul {
    margin: 0;
    padding: 26px 30px;
    border: 1px solid var(--eight-xtool-line);
    border-radius: 14px;
    background: #fff;
    list-style: none;
}

.eight-xtool-reservation__grid li + li {
    margin-top: 10px;
}

.eight-xtool-faq-list {
    margin-top: 38px;
    border-top: 1px solid var(--eight-xtool-line);
}

.eight-xtool-faq details {
    border-bottom: 1px solid var(--eight-xtool-line);
}

.eight-xtool-faq summary {
    position: relative;
    min-height: 58px;
    padding: 20px 48px 20px 20px;
    color: var(--eight-xtool-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    cursor: pointer;
    list-style: none;
}

.eight-xtool-faq summary::-webkit-details-marker {
    display: none;
}

.eight-xtool-faq summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    content: '+';
    transform: translateY(-50%);
}

.eight-xtool-faq details[open] summary::after {
    content: '−';
}

.eight-xtool-faq details p {
    margin: 0;
    padding: 0 20px 22px;
    color: var(--eight-xtool-muted);
    font-size: 14px;
    line-height: 1.95;
}

.eight-xtool-final {
    background:
        linear-gradient(135deg, rgba(158, 61, 65, 0.08), transparent 48%),
        var(--eight-xtool-pale-rose);
}

.eight-xtool-final > .eight-xtool-inner > p:not(.eight-xtool-kicker) {
    margin-top: 22px;
}

.eight-xtool-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 28px;
}

.eight-xtool-related-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--eight-xtool-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 1024px) {
    .eight-xtool-hero,
    .eight-xtool-section,
    .eight-xtool-final {
        padding: 74px 0;
    }

    .eight-xtool-badge-grid,
    .eight-xtool-card-grid,
    .eight-xtool-example-grid,
    .eight-xtool-flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .eight-xtool-inner {
        width: min(100% - 36px, 640px);
    }

    .eight-xtool-hero,
    .eight-xtool-section,
    .eight-xtool-final {
        padding: 58px 0;
    }

    .eight-xtool-hero h2,
    .eight-xtool-section h2,
    .eight-xtool-final h2 {
        font-size: clamp(26px, 7vw, 38px);
    }

    .eight-xtool-hero__lead,
    .eight-xtool-machine-grid,
    .eight-xtool-commerce__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eight-xtool-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .eight-xtool-button {
        width: 100%;
        min-height: 52px;
    }

    .eight-xtool-machine-card {
        padding: 30px 25px;
    }

    .eight-xtool-card-grid article,
    .eight-xtool-example-grid article {
        min-height: 0;
    }

    .eight-xtool-check-grid,
    .eight-xtool-reservation__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .eight-xtool-inner {
        width: calc(100% - 32px);
    }

    .eight-xtool-kicker {
        font-size: 11px;
        letter-spacing: 0.11em;
    }

    .eight-xtool-badge-grid,
    .eight-xtool-card-grid,
    .eight-xtool-example-grid,
    .eight-xtool-flow-list {
        grid-template-columns: 1fr;
    }

    .eight-xtool-badge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .eight-xtool-badge-grid li {
        min-height: 64px;
        padding: 10px;
        font-size: 12px;
    }

    .eight-xtool-machine-card ul {
        grid-template-columns: 1fr;
    }

    .eight-xtool-flow-list li {
        min-height: 0;
        padding: 22px 18px;
    }

    .eight-xtool-faq summary {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .eight-xtool-inner {
        width: calc(100% - 28px);
    }

    .eight-xtool-page-title .jp {
        font-size: clamp(20px, 6.7vw, 25px);
    }

    .eight-xtool-machine-line {
        font-size: 16px;
    }

    .eight-xtool-button {
        padding-inline: 16px;
        font-size: 13px;
    }
}
