/*
 * guide.css — ガイド記事（guide子ページ）固有スタイル
 * ============================================
 *
 * 対象: /guide/ 配下の子ページ11ページ
 * 共通スタイルは common.css で読み込み済み
 *
 * ============================================
 */

/* ===================================
 * ページタイトル（白背景・文字色変更）
 * =================================== */
.page-title--guide-white {
    background-color: #fff;
    background-image: none !important;
    color: #464646;
}

.page-title--guide-white .page-title__text {
    font-size: clamp(21px, calc(0.78vw + 15px), 30px);
}

@media (max-width: 768px) {
    .page-title--guide-white .page-title__text {
        font-size: clamp(15px, calc(1.17vw + 11.02px), 20px);
    }
}

/* ===================================
 * 全体ラッパー
 * =================================== */
.p-guide {
    position: relative;
    color: var(--service-color-text);
    display: flex;
    flex-direction: column;
    gap: clamp(60px, calc(3.47vw + 33.32px), 100px);
    max-width: calc(var(--content--width--large) - 18.75em - var(--margin-2xl));
    margin-inline: auto;
    padding-block: calc(var(--section) / 2);
    padding-inline: var(--margin--use--outside);
}

.p-guide > .edit-link {
    position: absolute;
    top: 8px;
    right: var(--margin--use--outside);
    font-size: 13px;
}

@media (max-width: 768px) {
    .p-guide {
        gap: clamp(39px, calc(4.91vw + 22.31px), 60px);
        padding-block: calc(var(--section-s) / 2) var(--section-s);
    }
    .p-guide > .edit-link {
        top: -16px;
    }
}

/* ===================================
 * ヒーローセクション
 * =================================== */
.p-guide-hero__title {
    font-size: clamp(35px, calc(1.30vw + 25px), 50px);
    font-weight: 700;
    line-height: 1.4;
    background-color: #faf3e6;
    padding: 0.5em 1em;
    margin-bottom: clamp(12px, calc(0.35vw + 9.31px), 16px);
}

.p-guide-hero__subtitle {
    font-size: clamp(20px, calc(0.35vw + 17.3px), 24px);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 8px;
}

.p-guide-hero__meta {
    font-size: clamp(16px, calc(0.35vw + 13.3px), 20px);
    line-height: 1.6;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
}

.p-guide-hero__meta-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 4px clamp(16px, 2vw, 32px);
    margin: 0;
}

.p-guide-hero__meta-separator {
    font-weight: 300;
    opacity: 0.5;
}

.p-guide-hero__meta-profile {
    margin: 0;
}

.p-guide-hero__meta-profile a {
    text-decoration: underline;
}

.p-guide-hero__meta-updated {
    margin: 0;
}

.p-guide-hero__lead {
    margin-bottom: clamp(40px, calc(1.39vw + 29.31px), 56px);
}

.p-guide-hero__inner > *:last-child {
    margin-bottom: 0;
}

.p-guide-hero__images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 48px);
}

.p-guide-hero__figure img {
    max-width: 100%;
    height: auto;
}

.p-guide-hero__caption {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .p-guide-hero__title {
        font-size: clamp(19px, calc(2.63vw + 9.79px), 30px);
        margin-bottom: 6px;
    }

    .p-guide-hero__subtitle {
        font-size: clamp(16px, calc(0.93vw + 12.84px), 20px);
        margin-bottom: 4px;
    }

    .p-guide-hero__meta {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
        font-weight: 500;
        font-size: clamp(13px, calc(0.93vw + 9.84px), 17px);
    }

    .p-guide-hero__meta-credits {
        flex-direction: column;
        gap: 0;
    }

    .p-guide-hero__meta-separator {
        display: none;
    }


    .p-guide-hero__lead {
        margin-bottom: 20px;
    }

    .p-guide-hero__images {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p-guide-hero__caption {
        margin-top: 16px;
    }
}

/* ===================================
 * 目次（この記事でわかること）
 * =================================== */
.p-guide-toc__title {
    font-size: clamp(26px, calc(0.52vw + 22px), 32px);
    font-weight: 700;
    margin-bottom: 12px;
}

.p-guide-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p-guide-toc__item {
    font-size: clamp(16px, calc(0.35vw + 13.3px), 20px);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.p-guide-toc__item::before {
    content: '';
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    background: url('../../../images/check_green.png') no-repeat center / contain;
    vertical-align: baseline;
    position: relative;
    top: 0.2em;
}

.p-guide-toc__item a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .p-guide-toc__title {
        font-size: clamp(18px, calc(1.44vw + 12.96px), 24px);
    }

    .p-guide-toc__item {
        font-size: clamp(13px, calc(0.93vw + 9.84px), 17px);
    }
}

/* ===================================
 * h2セクション
 * =================================== */
.p-guide-section__title {
    font-size: clamp(26.6px, calc(0.99vw + 19px), 38px);
    font-weight: 700;
    line-height: 1.4;
    color: #232323;
    border-top: 4px solid #75cd27;
    border-bottom: 4px solid #75cd27;
    padding: 0.5em 1em;
    margin-bottom: clamp(16px, calc(0.35vw + 13.31px), 20px);
}

.p-guide-section__body {
    margin-bottom: clamp(20px, calc(0.87vw + 13.31px), 30px);
}

.p-guide-section__subtitle {
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: clamp(16px, calc(0.35vw + 13.31px), 20px);
}

.p-guide-section__inner > *:last-child {
    margin-bottom: 0;
}

/* WYSIWYG内リンク色 */
.p-guide a {
    color: var(--service-color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 共通テキストサイズ PC: 18〜24px */
.p-guide-hero__caption,
.p-guide-cards__text {
    font-size: clamp(18px, calc(0.52vw + 14px), 24px);
}

/* 共通テキストサイズ PC: 20〜24px */
.p-guide .p-service-section-text,
.p-guide-images__caption,
.p-guide-section__subtitle,
.p-guide-checklist__number,
.p-guide-checklist__text,
.p-guide-summary__text,
.p-guide-faq .p-service-faq__question-text {
    font-size: clamp(20px, calc(0.35vw + 17.3px), 24px);
}

@media (max-width: 768px) {
    .p-guide .p-service-section-text,
    .p-guide-hero__caption,
    .p-guide-images__caption,
    .p-guide-cards__text,
    .p-guide-section__subtitle,
    .p-guide-checklist__number,
    .p-guide-checklist__text,
    .p-guide-summary__text,
    .p-guide-faq .p-service-faq__question-text {
        font-size: clamp(16px, calc(0.93vw + 12.84px), 20px);
    }
}

@media (max-width: 768px) {
    .p-guide .p-service-section-text {
        line-height: 1.6;
    }
}

.p-guide-hero__caption,
.p-guide-images__caption,
.p-guide-cards__text,
.p-guide-section__subtitle,
.p-guide-checklist__number,
.p-guide-checklist__text,
.p-guide-summary__text,
.p-guide-faq .p-service-faq__question-text {
    line-height: 1.6;
}

/* 本文テキストサイズ上書き PC: 16〜18px（ボックスのみ） */
.p-guide .p-guide-box__body {
    font-size: clamp(16px, calc(0.17vw + 14.7px), 18px);
}

/* WYSIWYG・キャプション系: weight 500 */
.p-guide .p-service-section-text,
.p-guide-images__caption {
    font-weight: 500;
}

.p-guide-hero__caption {
    font-weight: 700;
}

.p-guide-summary__text.p-service-section-text {
    font-weight: 700;
}

/* ボックス（枠囲みレイアウト） */
.p-guide-box {
    border: 1px solid var(--service-color-text);
    padding: clamp(30px, calc(1.74vw + 16.6px), 50px) clamp(30px, calc(6.08vw - 16.76px), 100px);
}

.p-guide-box > *:last-child {
    margin-bottom: 0;
}

.p-guide-box__title {
    font-size: clamp(26.6px, calc(0.99vw + 19px), 38px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: clamp(12px, calc(0.35vw + 9.31px), 16px);
}


@media (max-width: 768px) {
    .p-guide-section__title {
        font-size: clamp(18px, calc(2.15vw + 10.47px), 27px);
        margin-bottom: 12px;
    }

    .p-guide-section__body {
        margin-bottom: 24px;
    }

    .p-guide .p-guide-box__body {
        font-size: clamp(14px, calc(0.93vw + 10.84px), 18px);
    }

    .p-guide-box {
        padding: clamp(20px, calc(2.34vw + 12.04px), 30px) clamp(14px, calc(2.34vw + 6.04px), 24px);
    }

    .p-guide-box__title {
        font-size: clamp(19px, calc(3.04vw + 8.66px), 32px);
        margin-bottom: 12px;
    }
}

/* ===================================
 * 画像群
 * =================================== */
.p-guide-images {
    margin-bottom: clamp(20px, calc(0.87vw + 13.31px), 30px);
}

.p-guide-images__item {
    text-align: center;
    margin-bottom: 24px;
}

.p-guide-images__item:last-child {
    margin-bottom: 0;
}

.p-guide-images__item img {
    max-width: 100%;
    height: auto;
}

.p-guide-images__caption {
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .p-guide-images {
        margin-bottom: 24px;
    }

    .p-guide-images__item {
        margin-bottom: 20px;
    }
}

/* ===================================
 * 画像1枚: テキスト + 画像 横並び (2:7)
 * =================================== */
.p-guide-section--img-single .p-guide-section__inner {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 0 clamp(30px, 3.91vw, 75px);
}

.p-guide-section--img-single .p-guide-section__title,
.p-guide-section--img-multi .p-guide-section__title {
    margin-bottom: clamp(30px, calc(0.87vw + 23.31px), 40px);
}

.p-guide-section--img-single .p-guide-section__title {
    grid-column: 1 / -1;
}

.p-guide-section--img-single .p-guide-section__body {
    margin-bottom: 0;
}

.p-guide-section--img-single .p-guide-images {
    max-width: 380px;
    margin-bottom: 0;
}

.p-guide-section--img-single .p-guide-images__item {
    margin-bottom: 0;
}

.p-guide-section--img-single .p-guide-images__item img {
    width: 100%;
}

/* ===================================
 * 画像2枚以上: テキスト100% + 画像2列グリッド
 * =================================== */
.p-guide-section--img-multi .p-guide-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3vw, 48px);
}

.p-guide-section--img-multi .p-guide-images__item {
    margin-bottom: 0;
}

@media (max-width: 1280px) {
    .p-guide-section--img-single .p-guide-section__inner {
        grid-template-columns: 7.3fr 2.7fr;
    }
}

@media (max-width: 768px) {
    .p-guide-section--img-single .p-guide-section__title,
    .p-guide-section--img-multi .p-guide-section__title {
        margin-bottom: 20px;
    }

    .p-guide-section--img-single .p-guide-section__inner {
        display: block;
    }

    .p-guide-section--img-single .p-guide-section__body {
        margin-bottom: 24px;
    }

    .p-guide-section--img-multi .p-guide-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.p-guide-section:has(.p-guide-cards) .p-guide-section__title {
    margin-bottom: clamp(20px, calc(0.35vw + 17.31px), 24px);
}

.p-guide-section:has(.p-guide-checklist) .p-guide-section__title,
.p-guide-section--text-only .p-guide-section__title {
    margin-bottom: clamp(24px, calc(0.70vw + 18.62px), 32px);
}

/* ===================================
 * カード（3列グリッド）
 * =================================== */
.p-guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: clamp(20px, calc(0.87vw + 13.31px), 30px);
}

.p-guide-cards__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.56vw, 30px);
    padding: clamp(28px, calc(2.09vw + 11.9px), 52px) clamp(10px, calc(1.22vw + 0.6px), 24px);
    border: 1px solid var(--service-color-text);
}

.p-guide-cards__number {
    font-size: clamp(20px, calc(1.04vw + 12px), 32px);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.p-guide-cards__text {
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .p-guide-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .p-guide-cards__item {
        padding: 16px 20px;
        justify-content: flex-start;
        gap: 16px;
    }

    .p-guide-section:has(.p-guide-cards) .p-guide-section__title {
        margin-bottom: 16px;
    }

    .p-guide-section:has(.p-guide-checklist) .p-guide-section__title,
    .p-guide-section--text-only .p-guide-section__title {
        margin-bottom: 16px;
    }
}

/* ===================================
 * チェックリスト
 * =================================== */
.p-guide-section:has(.p-guide-checklist) .p-guide-section__subtitle {
    margin-bottom: clamp(24px, calc(0.70vw + 18.62px), 32px);
    font-weight: 500;
}

.p-guide-checklist {
    margin-bottom: clamp(24px, calc(0.70vw + 18.62px), 32px);
}

.p-guide-checklist__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
}

.p-guide-checklist__item:first-child {
    padding-top: 0;
}

.p-guide-checklist__number {
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    min-width: 24px;
}

.p-guide-checklist__text {
    flex: 1;
}

@media (max-width: 768px) {
    .p-guide-checklist {
        margin-bottom: 20px;
    }

    .p-guide-section:has(.p-guide-checklist) .p-guide-section__subtitle {
        margin-bottom: 20px;
    }

    .p-guide-checklist__item {
        padding: 6px 0;
        align-items: center;
    }

    .p-guide-checklist__number {
        font-size: clamp(20px, calc(1.40vw + 15.24px), 26px);
    }

    .p-guide .p-guide-checklist__text {
        font-size: clamp(15px, calc(0.70vw + 12.62px), 18px);
    }
}

/* ===================================
 * まとめセクション
 * =================================== */
.p-guide-summary__box {
    border: none;
    padding: 0;
}

.p-guide-summary__box > *:last-child {
    margin-bottom: 0;
}

.p-guide-summary__title {
    font-weight: 700;
    padding: 0.5em 1em;
    margin: 0 0 0.8em;
    color: #232323;
    background: #ffffff;
    border-bottom: solid 4px #75cd27;
    border-top: solid 4px #75cd27;
    font-size: 38px;
    line-height: 1.4;
}

.p-guide-summary__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* まとめ内の本文・リスト間の余白 */
.p-guide-summary__body + .p-guide-summary__list,
.p-guide-summary__list + .p-guide-summary__body,
.p-guide-summary__body + .p-guide-summary__body {
    margin-top: clamp(28px, calc(1.74vw + 14.62px), 48px);
}

.p-guide-summary__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.p-guide-summary__item:first-child {
    padding-top: 0;
}

.p-guide-summary__number {
    display: block;
    flex-shrink: 0;
    width: clamp(22px, calc(0.52vw + 18px), 28px);
    height: clamp(22px, calc(0.52vw + 18px), 28px);
    background: url('../../../images/check_red.png') no-repeat center / contain;
    font-size: 0;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 5px;
}

.p-guide-summary__text {
    flex: 1;
    padding-top: 0;
}

@media (max-width: 768px) {
    .p-guide-summary__box {
        padding: 0;
    }



    .p-guide-summary__title {
        font-size: clamp(20px, calc(1.44vw + 14.96px), 26px);
        padding: 0.4em 0.8em;
        margin: 1em 0;
    }

    .p-guide-summary__item {
        padding: 6px 0;
    }

    .p-guide-summary__number {
        width: clamp(18px, calc(0.96vw + 14.65px), 22px);
        height: clamp(18px, calc(0.96vw + 14.65px), 22px);
    }

    .p-guide-summary__text {
        padding-top: 0;
    }

    .p-guide-summary__body + .p-guide-summary__list,
    .p-guide-summary__list + .p-guide-summary__body,
    .p-guide-summary__body + .p-guide-summary__body {
        margin-top: clamp(16px, calc(1.91vw + 9.3px), 24px);
    }
}

/* ===================================
 * よくある質問（FAQラッパー）
 * common.cssの .p-service-faq__* を再利用
 * =================================== */
.p-guide-faq__title {
    font-size: clamp(35px, calc(1.3vw + 25px), 50px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
}

.p-guide-faq__inner > *:last-child {
    margin-bottom: 0;
}

.p-guide-faq .p-service-faq__list {
    max-width: 1100px;
}

.p-guide-faq .p-service-faq__question-text {
    font-weight: 700;
}

/* FAQアイコンサイズ・色をguide向けに調整 */
.p-guide-faq .p-service-faq__icon {
    width: clamp(40px, calc(1.74vw + 26.62px), 60px);
    height: clamp(40px, calc(1.74vw + 26.62px), 60px);
    font-size: clamp(27px, calc(1.13vw + 18.31px), 40px);
    padding: 0;
    padding-bottom: clamp(3px, calc(0.17vw + 1.69px), 5px);
    box-sizing: border-box;
}


.p-guide-faq .p-service-faq__answer {
    background-color: var(--service-color-cream);
}

.p-guide-faq .p-service-faq__answer .p-service-section-text {
    font-size: clamp(18px, calc(0.17vw + 16.69px), 20px);
}

@media (max-width: 768px) {
    .p-guide-faq__title {
        font-size: clamp(21px, calc(3.27vw + 9.88px), 35px);
        margin-bottom: 20px;
    }

    .p-guide-faq .p-service-faq__question {
        padding: 12px 0;
    }

    .p-guide-faq .p-service-faq__answer .p-service-section-text {
        font-size: clamp(16px, calc(0.93vw + 12.84px), 20px);
        padding-top: 0;
    }

    .p-guide-faq .p-service-faq__icon {
        width: clamp(25px, calc(3.50vw + 13.10px), 40px);
        height: clamp(25px, calc(3.50vw + 13.10px), 40px);
        font-size: clamp(18px, calc(1.40vw + 13.24px), 24px);
    }
}

/* ===================================
 * CTAセクション
 * =================================== */
.p-guide-cta__heading {
    font-size: clamp(42px, calc(1.56vw + 30px), 60px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: clamp(12px, calc(0.35vw + 9.31px), 16px);
}

.p-guide .p-guide-cta__subheading {
    font-size: clamp(26.6px, calc(0.99vw + 19px), 38px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: clamp(17px, calc(0.35vw + 14.31px), 21px);
}

.p-guide-cta__subheading a:hover {
    text-decoration: underline;
}

.p-guide .p-guide-cta__body {
    font-size: clamp(18px, calc(0.35vw + 15.3px), 22px);
    line-height: 1.8;
}

.p-guide-cta__inner {
    max-width: calc(1100px + var(--margin--use--outside) * 2);
    margin-inline: auto;
}

.p-guide-cta__inner > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .p-guide-cta__inner {
    }

    .p-guide-cta__heading {
        font-size: clamp(19px, calc(5.37vw + 0.74px), 42px);
    }

    .p-guide .p-guide-cta__subheading,
    .p-guide .p-guide-cta__body {
        font-size: clamp(15px, calc(1.20vw + 10.81px), 20px);
        font-weight: 500;
    }
}

/* ===================================
 * 青本・赤本誘導カード
 * =================================== */
.p-guide-book-card {
    margin-top: clamp(-20px, calc(-0.87vw + -13.31px), -10px);
}

.p-guide-book-card__inner {
    background-color: #FFFFF0;
    border-radius: 20px;
    padding: clamp(24px, calc(1.74vw + 10.6px), 44px) clamp(30px, calc(2.61vw + 9.9px), 60px);
    max-width: 800px;
    text-align: left;
}

.p-guide-book-card__body {
    margin-bottom: clamp(12px, calc(0.70vw + 6.6px), 20px);
}

.p-guide-book-card__link {
    font-size: clamp(18px, calc(0.35vw + 15.3px), 22px);
    font-weight: 700;
    margin-bottom: clamp(8px, calc(0.35vw + 5.31px), 12px);
}

.p-guide-book-card__link a {
    color: var(--service-color-link);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 calc(100% - 1px);
    background-repeat: repeat-x;
    background-size: 100% 1px;
    padding-bottom: 3px;
    transition: opacity 0.3s ease;
}

.p-guide-book-card__link a::after {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform: rotate(45deg) translateY(-0.2em);
    margin-left: 0.25em;
    vertical-align: middle;
}

.p-guide-book-card__link a:hover {
    opacity: 0.7;
}

.p-guide-book-card__note {
    font-size: clamp(12px, calc(0.17vw + 10.69px), 14px);
    color: var(--service-color-text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .p-guide-book-card {
        margin-top: clamp(-12px, calc(-1.2vw + -3.8px), -5px);
    }

    .p-guide-book-card__inner {
        border-radius: 14px;
        padding: 20px clamp(12px, calc(2.87vw + 1.95px), 24px);
        margin-inline: auto;
    }

    .p-guide-book-card .p-guide-book-card__body {
        font-size: 14px;
        letter-spacing: -0.03em;
    }

    .p-guide-book-card .p-guide-book-card__link {
        font-size: clamp(12px, calc(0.47vw + 10.40px), 14px);
        letter-spacing: -0.03em;
    }

    .p-guide-book-card__link a {
        background-size: 100% 0.5px;
    }

    .p-guide-book-card__link a::after {
        width: 0.4em;
        height: 0.4em;
        border-top-width: 2px;
        border-right-width: 2px;
    }

    .p-guide-book-card__note {
        font-size: 11px;
    }
}

/* ===================================
 * エディタ出力内のリスト装飾復元
 * =================================== */
.p-guide-section__body ul,
.p-guide-hero__lead ul,
.p-guide-box__body ul,
.p-guide-summary__body ul,
.p-guide-cta__subheading ul,
.p-guide-cta__body ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-block: 0.5em;
}

.p-guide-section__body ol,
.p-guide-hero__lead ol,
.p-guide-box__body ol,
.p-guide-summary__body ol,
.p-guide-cta__subheading ol,
.p-guide-cta__body ol {
    list-style: decimal;
    padding-left: 1.5em;
    margin-block: 0.5em;
}

/* ===================================
 * エディタ出力内のテーブル装飾復元
 * =================================== */
.p-guide-section__body table,
.p-guide-hero__lead table,
.p-guide-box__body table,
.p-guide-summary__body table,
.p-guide-cta__subheading table,
.p-guide-cta__body table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 1em;
}

.p-guide-section__body th,
.p-guide-section__body td,
.p-guide-hero__lead th,
.p-guide-hero__lead td,
.p-guide-box__body th,
.p-guide-box__body td,
.p-guide-summary__body th,
.p-guide-summary__body td,
.p-guide-cta__subheading th,
.p-guide-cta__subheading td,
.p-guide-cta__body th,
.p-guide-cta__body td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}

.p-guide-section__body th,
.p-guide-hero__lead th,
.p-guide-box__body th,
.p-guide-summary__body th,
.p-guide-cta__subheading th,
.p-guide-cta__body th {
    background-color: #f5f5f5;
    font-weight: 700;
}

/* ===================================
 * エディタ出力内のblockquote・hr復元
 * =================================== */
.p-guide-section__body blockquote,
.p-guide-hero__lead blockquote,
.p-guide-box__body blockquote,
.p-guide-summary__body blockquote,
.p-guide-cta__subheading blockquote,
.p-guide-cta__body blockquote {
    border-left: 4px solid #ccc;
    padding: 8px 16px;
    margin-block: 1em;
    color: #666;
}

.p-guide-section__body hr,
.p-guide-hero__lead hr,
.p-guide-box__body hr,
.p-guide-summary__body hr,
.p-guide-cta__subheading hr,
.p-guide-cta__body hr {
    border: none;
    border-top: 1px solid #ccc;
    margin-block: 1.5em;
}

/* ===================================
 * エディタ出力内のインライン装飾復元
 * =================================== */
.p-guide-section__body del,
.p-guide-section__body s,
.p-guide-hero__lead del,
.p-guide-hero__lead s,
.p-guide-box__body del,
.p-guide-box__body s,
.p-guide-summary__body del,
.p-guide-summary__body s,
.p-guide-cta__subheading del,
.p-guide-cta__subheading s,
.p-guide-cta__body del,
.p-guide-cta__body s {
    text-decoration: line-through;
}

.p-guide-section__body sub,
.p-guide-hero__lead sub,
.p-guide-box__body sub,
.p-guide-summary__body sub,
.p-guide-cta__subheading sub,
.p-guide-cta__body sub {
    vertical-align: sub;
    font-size: 0.75em;
}

.p-guide-section__body sup,
.p-guide-hero__lead sup,
.p-guide-box__body sup,
.p-guide-summary__body sup,
.p-guide-cta__subheading sup,
.p-guide-cta__body sup {
    vertical-align: super;
    font-size: 0.75em;
}

/* ===================================
 * エディタ出力内の見出しスタイル
 * =================================== */
.p-guide-section__body h2,
.p-guide-hero__lead h2,
.p-guide-box__body h2,
.p-guide-summary__body h2,
.p-guide-cta__subheading h2,
.p-guide-cta__body h2 {
    font-size: clamp(32px, calc(1.13vw + 23.3px), 45px);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.4em;
}

.p-guide-section__body h3,
.p-guide-hero__lead h3,
.p-guide-box__body h3,
.p-guide-summary__body h3,
.p-guide-cta__subheading h3,
.p-guide-cta__body h3 {
    font-size: clamp(22px, calc(0.70vw + 16.6px), 30px);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.3em;
}

/* h3見出し背景（block-bgクラス付き） */
.p-guide-section__body h3.block-bg,
.p-guide-hero__lead h3.block-bg,
.p-guide-box__body h3.block-bg,
.p-guide-summary__body h3.block-bg {
    background-color: #e6f6d8;
    padding: 0.35em 0.7em;
    border-radius: 4px;
    margin-top: 0.8em;
    margin-bottom: 0.6em;
}

.p-guide-section__body h4,
.p-guide-hero__lead h4,
.p-guide-box__body h4,
.p-guide-summary__body h4,
.p-guide-cta__subheading h4,
.p-guide-cta__body h4 {
    font-size: clamp(20px, calc(0.52vw + 16px), 26px);
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.2em;
}

.p-guide-section__body h5,
.p-guide-hero__lead h5,
.p-guide-box__body h5,
.p-guide-summary__body h5,
.p-guide-cta__subheading h5,
.p-guide-cta__body h5 {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.2em;
}

.p-guide-section__body h6,
.p-guide-hero__lead h6,
.p-guide-box__body h6,
.p-guide-summary__body h6,
.p-guide-cta__subheading h6,
.p-guide-cta__body h6 {
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.2em;
}

@media (max-width: 768px) {
    .p-guide-section__body h2,
    .p-guide-hero__lead h2,
    .p-guide-box__body h2,
    .p-guide-summary__body h2,
    .p-guide-cta__subheading h2,
    .p-guide-cta__body h2 {
        font-size: clamp(19px, calc(3.04vw + 8.66px), 32px);
    }

    .p-guide-section__body h3,
    .p-guide-hero__lead h3,
    .p-guide-box__body h3,
    .p-guide-summary__body h3,
    .p-guide-cta__subheading h3,
    .p-guide-cta__body h3 {
        font-size: clamp(19px, calc(1.20vw + 14.81px), 24px);
    }

    .p-guide-section__body h4,
    .p-guide-hero__lead h4,
    .p-guide-box__body h4,
    .p-guide-summary__body h4,
    .p-guide-cta__subheading h4,
    .p-guide-cta__body h4 {
        font-size: clamp(17px, calc(0.96vw + 13.65px), 21px);
    }
}

/* CTA内の見出しはpと同じスタイルにする */
.p-guide-cta__subheading h2,
.p-guide-cta__subheading h3,
.p-guide-cta__subheading h4,
.p-guide-cta__subheading h5,
.p-guide-cta__subheading h6,
.p-guide-cta__body h2,
.p-guide-cta__body h3,
.p-guide-cta__body h4,
.p-guide-cta__body h5,
.p-guide-cta__body h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    margin: 0;
}

