.rich-content {
    width: 100%;
    min-width: 0;
    position: relative;
    padding: clamp(40px, 4.6vw, 72px);
    color: var(--black);
    background:
        radial-gradient(circle at 100% 0, rgba(172, 17, 255, .08), transparent 360px),
        #fff;
    border: 1px solid #f0ecf2;
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(24, 9, 29, .055);
    font-size: 18px;
    line-height: 1.6;
    overflow: hidden;
    overflow-wrap: break-word;
}

.rich-content,
.rich-content * {
    box-sizing: border-box;
}

.rich-content > *,
.rich-content div,
.rich-content section,
.rich-content article,
.rich-content header,
.rich-content footer,
.rich-content aside,
.rich-content main,
.rich-content figure,
.rich-content iframe,
.rich-content video {
    max-width: 100%;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    color: var(--black);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.rich-content h2 {
    position: relative;
    margin: 72px 0 26px;
    padding-left: 24px;
    font-size: clamp(38px, 3.4vw, 52px);
}

.rich-content h2::before {
    width: 8px;
    height: 34px;
    position: absolute;
    top: .12em;
    left: 0;
    content: "";
    background: linear-gradient(180deg, var(--orange), var(--violet));
    border-radius: 8px;
}

.rich-content h3 {
    margin: 54px 0 22px;
    font-size: clamp(30px, 2.5vw, 38px);
}

.rich-content h4 {
    margin: 40px 0 18px;
    font-size: clamp(23px, 1.8vw, 28px);
}

.rich-content h5,
.rich-content h6 {
    margin: 32px 0 14px;
    font-size: 20px;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content dl,
.rich-content table,
.rich-content blockquote,
.rich-content pre,
.rich-content figure,
.rich-content details {
    margin: 0 0 24px;
}

.rich-content p {
    color: #302633;
    text-align: left;
}

.rich-content > p,
.rich-content > ul,
.rich-content > ol,
.rich-content > dl,
.rich-content > h2,
.rich-content > h3,
.rich-content > h4,
.rich-content > h5,
.rich-content > h6 {
    max-width: 1080px;
}

.rich-content > p:first-child {
    color: var(--black);
    font-size: clamp(20px, 1.65vw, 24px);
    line-height: 1.48;
}

.rich-content strong,
.rich-content b {
    color: var(--black);
    font-weight: 700;
}

.rich-content ul,
.rich-content ol {
    padding-left: 26px;
}

.rich-content li {
    padding-left: 7px;
    color: #302633;
}

.rich-content li::marker {
    color: var(--orange);
    font-weight: 800;
}

.rich-content li + li {
    margin-top: 10px;
}

.rich-content a {
    color: var(--indigo);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(57, 8, 148, .3);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.rich-content a:hover,
.rich-content a:focus-visible {
    color: var(--orange);
    text-decoration-color: currentColor;
}

.rich-content blockquote {
    position: relative;
    padding: 34px 40px 34px 72px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(172, 17, 255, .52), transparent 34%),
        linear-gradient(135deg, var(--black), var(--indigo));
    border: 0;
    border-radius: 28px;
    box-shadow: 0 22px 46px rgba(57, 8, 148, .16);
    font-size: clamp(19px, 1.6vw, 23px);
    line-height: 1.45;
    overflow: hidden;
}

.rich-content blockquote::before {
    position: absolute;
    top: 22px;
    left: 26px;
    content: "“";
    color: var(--orange);
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
}

.rich-content blockquote,
.rich-content blockquote p,
.rich-content blockquote strong,
.rich-content blockquote b {
    color: #fff;
}

.rich-content blockquote > :last-child {
    margin-bottom: 0;
}

.rich-content > section,
.rich-content > article,
.rich-content > aside,
.rich-content .content-card {
    margin: 32px 0;
    padding: clamp(24px, 3vw, 40px);
    background: #faf8fb;
    border: 1px solid #eee8f1;
    border-radius: 26px;
}

.rich-content .content-card--accent {
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(253, 91, 3, .3), transparent 34%),
        var(--indigo);
    border-color: transparent;
}

.rich-content .content-card--accent,
.rich-content .content-card--accent p,
.rich-content .content-card--accent h2,
.rich-content .content-card--accent h3,
.rich-content .content-card--accent h4,
.rich-content .content-card--accent strong {
    color: #fff;
}

.rich-content table {
    width: 100%;
    max-width: 100%;
    color: var(--black);
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(127, 117, 130, .18);
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 22px;
    table-layout: auto;
    overflow: hidden;
}

.rich-content caption {
    padding: 0 0 18px;
    color: var(--grey);
    text-align: left;
    font-size: 15px;
}

.rich-content th,
.rich-content td {
    min-width: 140px;
    padding: 20px;
    border-right: 1px solid rgba(127, 117, 130, .18);
    border-bottom: 1px solid rgba(127, 117, 130, .18);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.rich-content th {
    color: var(--black);
    background: #ede8f7;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.rich-content td {
    color: #302633;
    background: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.45;
    transition: background .2s ease;
}

.rich-content tbody tr:nth-child(even) td {
    background: #faf8fb;
}

.rich-content tbody tr:hover td {
    background: #f4eefb;
}

.rich-content tr > :last-child {
    border-right: 0;
}

.rich-content tbody tr:last-child td {
    border-bottom: 0;
}

.rich-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
}

.rich-content figure img {
    margin: 0 auto;
}

.rich-content figcaption {
    margin-top: 12px;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.45;
}

.rich-content iframe,
.rich-content video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
}

.rich-content hr,
.rich-content .service1c-detail__line {
    width: 100%;
    height: 1px;
    margin: 48px 0;
    background: var(--line);
    border: 0;
}

.rich-content pre {
    max-width: 100%;
    padding: 24px;
    color: #fff;
    background: var(--black);
    border-radius: 20px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.rich-content code {
    padding: .12em .36em;
    color: var(--indigo);
    background: #f1ebf8;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

.rich-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
}

.rich-content details {
    padding: 22px 24px;
    background: #faf8fb;
    border: 1px solid #eee8f1;
    border-radius: 18px;
}

.rich-content summary {
    color: var(--black);
    font-weight: 700;
    cursor: pointer;
}

.rich-content details[open] summary {
    margin-bottom: 18px;
}

.rich-content a.button,
.rich-content a.btn,
.rich-content a.rich-content__button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #fff;
    background: var(--orange);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(253, 91, 3, .18);
    text-decoration: none;
}

.rich-content a.button:hover,
.rich-content a.btn:hover,
.rich-content a.rich-content__button:hover {
    color: #fff;
    background: #ff6b18;
}

.rich-content [style*="width"] {
    max-width: 100% !important;
}

.rich-content [style*="min-width"] {
    min-width: 0 !important;
}

.rich-content [style*="white-space"],
.rich-content nobr {
    white-space: normal !important;
}

@media (max-width: 900px) {
    .rich-content {
        padding: 44px 40px;
        border-radius: 26px;
    }

    .rich-content h2 {
        margin-top: 58px;
    }

    .rich-content h3 {
        margin-top: 46px;
    }

    .rich-content th,
    .rich-content td {
        padding: 20px;
    }
}

@media (max-width: 680px) {
    .rich-content {
        padding: 28px 22px;
        border-radius: 20px;
        font-size: 16px;
        line-height: 1.58;
    }

    .rich-content h2 {
        margin: 44px 0 20px;
        padding-left: 18px;
        font-size: 30px;
    }

    .rich-content h2::before {
        width: 6px;
        height: 26px;
    }

    .rich-content h3 {
        margin: 38px 0 18px;
        font-size: 25px;
    }

    .rich-content h4 {
        margin: 32px 0 16px;
        font-size: 21px;
    }

    .rich-content > p:first-child {
        font-size: 18px;
    }

    .rich-content blockquote {
        padding: 28px 22px 28px 52px;
        border-radius: 20px;
        font-size: 17px;
    }

    .rich-content blockquote::before {
        top: 20px;
        left: 18px;
        font-size: 42px;
    }

    .rich-content > section,
    .rich-content > article,
    .rich-content > aside,
    .rich-content .content-card {
        margin: 24px 0;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .rich-content table {
        display: block;
        border-radius: 16px;
        overflow-x: auto;
    }

    .rich-content th,
    .rich-content td {
        min-width: 180px;
        padding: 20px;
    }

    .rich-content img,
    .rich-content iframe,
    .rich-content video {
        border-radius: 16px;
    }

    .rich-content hr,
    .rich-content .service1c-detail__line {
        margin: 36px 0;
    }
}
