/* ===== 全体共通 ===== */

/* iPhone横画面で一部の文字サイズが変わるのを防ぐ */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 商品名など、途中で改行させない文字列 */
.no-break {
    display: inline-block;
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
}

/* PC・スマホ・狭い画面の改行切替用 */
.sp-only-break {
    display: none;
}

.narrow-only-break {
    display: none;
}

/* ===== スマホ(〜600px) ===== */
@media screen and (max-width: 600px) {
    .container {
        width: 100%;
        margin: 24px auto;
        padding: 0 12px;
    }

    .article-header {
        padding: 24px 16px;
        margin-bottom: 20px;
    }

    .article-header h2 {
        font-size: 20px;
        line-height: 1.5;
        text-wrap: balance;
    }

    .article-header h2 br {
        display: none;
    }

    .article-body {
        padding: 24px 16px;
    }

    .article-body .section > p br {
        display: none;
    }

    .section p {
        text-align: left;
        word-break: normal;
        overflow-wrap: break-word;
        line-break: strict;
    }

    .section h3 {
        font-size: 18px;
        line-height: 1.6;
    }

    .section h4 {
        font-size: 16px;
        line-height: 1.6;
    }

    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .article-meta span {
        margin-right: 0;
    }

    /* CTA */
    .cta-box {
        padding: 24px 12px;
    }

    .cta-button {
        display: block;
        width: 100%;
        max-width: none;
        padding: 14px 6px;
        box-sizing: border-box;

        font-size: 15px;
        line-height: 1.5;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .gallery-cta-button {
        max-width: 100%;
        padding: 13px 22px;
    }

    /* PC用の固定改行を解除 */
    br.pc-only-break {
        display: none;
    }

    /* スマホ用の固定改行を有効化 */
    br.sp-only-break {
        display: inline;
    }

    /* パンくず */
    .breadcrumb-nav {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 8px 12px;
    }

    .breadcrumb-nav a,
    .breadcrumb-nav .sep {
        flex: 0 0 auto;
    }

    .breadcrumb-nav .current {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ===== 狭い画面(iPhone拡大時など〜360px) ===== */
@media screen and (max-width: 360px) {
    /* CTAの左右余白を詰める */
    .cta-box {
        padding-left: 8px;
        padding-right: 8px;
    }

    .cta-box p {
        font-size: 14px;
        line-height: 1.75;
    }

    /* ボタンの文字を一行に収める */
    .cta-button {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 13px;
        letter-spacing: 0;
        white-space: nowrap;
    }

    /* 狭い画面では自動折り返しに任せ、固定改行を抑制 */
    .cta-box .no-break {
        white-space: normal;
    }
}
