/* ==========================================
   2026年 Choose!&Cheese! キャンペーン 第4弾
   追加スタイル
   ========================================== */


/* ============================================
   ユーティリティ
   ============================================ */

/* SP のみ改行、PC では非表示 */
.sp-br {
    display: none;
}

@media (min-width: 768px) {
    .sp-br {
        display: none;
    }
}

@media (max-width: 767px) {
    .sp-br {
        display: block;
    }
}


/* ============================================
   ナビゲーション
   ============================================ */

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .nav__inner {
        padding-top: 20px !important;
        padding-bottom: 0 !important;
    }
}

@media (min-width: 768px) {
    .nav__inner {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}


/* ============================================
   ヒーロー
   ============================================ */

/* hero 縦幅・クリップ
   aspect-ratio は style.min.css の同セレクタより後に読まれるが
   詳細度が同じため !important で確実に上書き（GSAP と競合しない箇所） */
.hero {
    aspect-ratio: 748 / 980 !important;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        aspect-ratio: 3836 / 2900 !important;
    }
}

/* キャンペーンタイトル：SP のみ拡大・最前面
   GSAP が transform を上書きするため !important が必要 */
@media (max-width: 767px) {
    .hero__mainTitle {
        top: 12% !important;
        transform: scale(1.25) !important;
        transform-origin: center top !important;
        z-index: 20 !important;
    }
}

/* メイン写真：GSAP アニメーションと競合するため !important で位置固定 */
.hero__mainPH {
    top: 0% !important;
    bottom: auto !important;
}

@media (max-width: 767px) {
    .hero__mainPH--cheese {
        top: 4% !important;
    }
}

@media (min-width: 768px) {
    .hero__mainPH {
        top: 6% !important;
    }
}

/* スクロールアイコン（今すぐ応募の直上）
   style.min.css の top 値を上書きするため !important */
.hero__scroll {
    top: 48% !important;
}

@media (min-width: 768px) {
    .hero__scroll {
        top: 52% !important;
    }
}

/* CTA（今すぐ応募ボタン）：SP/PC で position 調整 */
.hero__cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 52%;
    z-index: 21;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vw;
    width: 100%;
}

@media (min-width: 768px) {
    .hero__cta {
        top: 60%;
        gap: 1vw;
    }
}

/* 今すぐ応募ボタン画像 */
.hero__apply--center {
    display: block;
    width: 29.33vw;
}

.hero__apply--center img {
    width: 100%;
    animation: upDown 1s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
    .hero__apply--center {
        width: 14.58vw;
    }
}

@keyframes upDown {
    from { transform: translateY(-8px); }
    to   { transform: translateY(8px); }
}

/* 応募要項ボタン（詳しくはこちら）
   style.min.css の top/left/transform を上書きするため !important */
.hero__detail.hero__detail--center {
    width: 35.2vw;
    top: 78% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 21 !important;
}

.hero__detail--center img {
    width: 100%;
}

@media (min-width: 768px) {
    .hero__detail.hero__detail--center {
        width: 14.27vw;
        top: 82% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}


/* ============================================
   apply セクション（応募期間・方法）
   #apply を使って詳細度を上げ !important を排除
   ============================================ */

/* apply > div の上下パディング
   style.min.css: SP 18.13vw / 26.67vw、PC 4.22vw / 5.1vw */
#apply > div {
    padding-top: 26vw;
    padding-bottom: 10vw;
}

@media (min-width: 768px) {
    #apply > div {
        padding-top: 2.5vw;
        padding-bottom: 3vw;
    }
}

/* apply > div::before の背景を白に（applyセクション上部の波線） */
.apply:not(.apply--terms) > div::before {
    background-image: url(../images/apply-top-white-sp.svg) !important;
}

@media (min-width: 768px) {
    .apply:not(.apply--terms) > div::before {
        background-image: url(../images/apply-top-white-pc.svg) !important;
    }
}

/* 吹き出し（豪華賞品当たる！）
   JS のインラインスタイルを削除したため、CSS のみで制御 */
.apply__bubble--resized {
    width: 49vw;
}

.apply__bubble--resized img {
    width: 100%;
}

@media (max-width: 767px) {
    .apply__bubble--resized {
        width: 49vw;
        top: -8vw;
    }
}

@media (min-width: 768px) {
    .apply__bubble--resized {
        width: 14.2vw;
    }
}

/* apply-title 画像：SP で拡大 */
@media (max-width: 767px) {
    .apply__title img {
        width: 92vw;
    }
}

/* 応募期間 */
#apply .apply__term {
    margin-top: 6vw;
}

@media (min-width: 768px) {
    #apply .apply__term {
        margin-top: 3.5vw;
    }
}

/* 応募期間：第4弾（1行）対応 */
.apply__term__list--single {
    display: flex;
    justify-content: center;
}

.apply__term__list--single li {
    max-width: 600px;
    width: 100%;
}

/* 応募方法 */
.apply__method {
    margin: 60px auto;
    width: 84vw;
    max-width: 84vw;
}

@media (min-width: 768px) {
    .apply__method {
        margin: 80px auto;
        width: 71.25vw;
        max-width: 71.25vw;
    }
}

.apply__method .content__apply__note {
    width: 100%;
    padding-right: 0;
    text-align: right;
    box-sizing: border-box;
}

.content__apply__note__sp-br {
    display: none;
}

@media (max-width: 767px) {
    .content__apply__note__sp-br {
        display: block;
    }

    .apply__method .content__apply__note {
        text-align: left;
        padding-left: 0;
        margin-left: 28px;
    }
}

/* 応募可能テキスト */
.apply__note {
    text-align: center;
    font-size: 18pt !important;
    font-weight: 700;
    margin: 0 auto 10px;
    color: #E4007F;
}

.apply__note::before {
    content: "＼";
}
.apply__note::after {
    content: "／";
}

.apply__note__br {
    display: none;
}

.apply__note__sp-br {
    display: none;
}

@media (max-width: 767px) {
    .apply__note {
        font-size: 14pt !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0 16px;
    }

    .apply__note::before,
    .apply__note::after {
        content: "";
        display: block;
        width: 3px;
        background-color: #E4007F;
        border-radius: 2px;
        align-self: stretch;
        flex-shrink: 0;
    }

    .apply__note::before {
        transform: rotate(-12deg);
    }

    .apply__note::after {
        transform: rotate(12deg);
    }

    .apply__note__text {
        display: block;
        text-align: center;
        line-height: 1.4;
    }

    .apply__note__br {
        display: block;
    }

    .apply__note__sp-br {
        display: block;
    }
}

/* 応募 CTA ボタン */
.apply__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px auto;
}

@media (max-width: 767px) {
    .apply__cta {
        margin: 12vw auto;
    }
}

@media (min-width: 768px) {
    .apply__cta {
        margin: 5.5vw auto;
    }
}

.apply__cta__btn {
    display: block;
    position: relative;
    max-width: 400px;
    width: 80%;
    cursor: pointer;
}

.apply__cta__btn img {
    width: 100%;
}

.apply__cta__btn .active {
    display: none;
}

.apply__cta__btn:hover .non-active,
.apply__cta__btn:focus .non-active {
    display: none;
}

.apply__cta__btn:hover .active,
.apply__cta__btn:focus .active {
    display: block;
}

@media (min-width: 768px) {
    .apply__cta__btn {
        max-width: 500px;
    }
}


/* ============================================
   content セクション（対象商品・賞品・応募方法）
   ============================================ */

/* 背景グラデ・横はみ出しのみクリップ
   style.min.css の background-color を上書きするため !important */
.content {
    overflow-x: clip !important;
    overflow-y: visible !important;
    background: linear-gradient(to bottom, #ffffff, #ddeaf8) !important;
}


/* content__box 下パディング共通
   style.min.css 各セクション固有値を上書きするため !important */
.content__box {
    padding-bottom: 10vw !important;
}

@media (min-width: 768px) {
    .content__box {
        padding-bottom: 3vw !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .apply--terms .content__box,
    .apply--notice .content__box {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}

/* チーズ対象商品：カラー変数
   CSS カスタムプロパティはスコープで制御するため !important 不要 */
#content-goods-cheese {
    --primary-color: #FF7300;
    --text-color: #3D3200;
}

/* SP 余白詰め */
@media (max-width: 767px) {
    .content__prize {
        margin-top: 8vw;
    }

    .content__prize__title {
        margin-top: 10vw;
    }

    .content__prize__course {
        margin-top: 4vw;
    }

    .content__prize__course__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 0;
        padding: 24px;
        align-items: start;
    }

    .content__prize__course__grid img,
    .content__prize__course__grid picture {
        width: 100%;
        display: block;
        margin: 0 auto;
    }

    .content__prize__course__grid picture img {
        width: 100%;
    }

    .content-prize-course-milk-full {
        display: block;
        width: 100%;
        margin-top: 3vw;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .content-prize-course-milk-full img {
        width: 100%;
        display: block;
    }

    .content__apply {
        margin-top: 5vw;
    }

    .content__goods {
        margin-top: 5vw;
    }
}

/* 対象商品：縦並びレイアウト */
.content__goods--unified {
    position: relative;
}

.content__goods__section {
    margin-bottom: 60px;
}

.content__goods__section:last-of-type {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .content__goods__section {
        margin-bottom: 80px;
    }
}

@media (min-width: 768px) {
    .content__prize__course {
        margin-top: 40px;
    }

    .content__prize__course__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 32px;
        row-gap: 56px;
        margin-top: 0;
        padding: 40px 50px 50px;
        align-items: start;
    }

    .content__prize__course__grid img,
    .content__prize__course__grid picture {
        width: 100%;
        display: block;
        margin: 0;
    }

    .content__prize__course__grid picture img {
        width: 100%;
    }

    .content-prize-course-milk-full {
        display: block;
        width: 100%;
        margin-top: 32px;
        padding: 0 50px;
        box-sizing: border-box;
    }

    .content-prize-course-milk-full img {
        width: 100%;
        display: block;
    }
}

/* 牛乳 対象商品：注記 */
.content__goods__note {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

@media (min-width: 768px) {
    .content__goods__note {
        font-size: 1vw;
        margin-top: 1vw;
    }
}


/* ============================================
   応募要項・注意事項セクション
   ============================================ */

/* primary-color 設定 */
.apply--terms {
    --primary-color: #FF7300;
}

/* before 要素を上に移動
   style.min.css の transform を上書きするため !important */
.apply--terms > div::before {
    transform: translateY(-30%) !important;
    -webkit-transform: translateY(-30%) !important;
}

.apply--terms,
.apply--notice {
    background: linear-gradient(to bottom, #fff8f0, #ffe8cc);
    padding: 60px 0;
}

@media (max-width: 767px) {
    .apply--terms .content__box {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

.terms__list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

@media (min-width: 768px) {
    .terms__list {
        padding-left: 3vw;
        padding-right: 3vw;
    }
}

.terms__list dt {
    font-weight: 700;
    font-size: 14px;
    margin-top: 20px;
    color: #333;
}

.terms__list dd {
    margin: 8px 0 0 16px;
    line-height: 1.8;
    font-size: 14px;
    color: #555;
}

.terms__list a {
    color: #2a7d4f;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .terms__list dt {
        font-size: 13px;
    }

    .terms__list dd {
        margin-left: 8px;
        font-size: 13px;
    }
}

.terms__notice {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding-left: 0;
    padding-right: 0;
}

.terms__notice li {
    position: relative;
    padding-left: 1em;
    line-height: 1.8;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.terms__notice li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.terms__notice a {
    color: #2a7d4f;
    text-decoration: underline;
}

.terms__contact {
    max-width: 800px;
    margin: 30px auto 0;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.terms__contact h4 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.terms__contact p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms__contact__btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2a7d4f;
    color: #fff;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.terms__contact__btn:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .terms__contact {
        padding: 16px;
    }
}


/* ============================================
   フッター
   ============================================ */

.footer__nav {
    text-align: center;
    margin-top: 20px;
}

.footer__nav__link {
    color: #fff;
    text-decoration: underline;
    font-size: 13px;
}

.footer__copy {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}


/* ============================================
   追従応募ボタン
   ============================================ */

.fixed-apply-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    width: 160px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.fixed-apply-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fixed-apply-btn a {
    display: block;
}

.fixed-apply-btn img {
    width: 100%;
}

.fixed-apply-btn .active {
    display: none;
}

.fixed-apply-btn a:hover .non-active,
.fixed-apply-btn a:focus .non-active {
    display: none;
}

.fixed-apply-btn a:hover .active,
.fixed-apply-btn a:focus .active {
    display: block;
}

@media (min-width: 768px) {
    .fixed-apply-btn {
        width: 200px;
        bottom: 30px;
        right: 30px;
    }
}

/* トーストイラスト（チーズセクション左下）位置調整 */
.content__items.item-7 {
    bottom: -10vw;
}

/* チーズ商品画像：高さを揃える */
.content__goods__item__wrap--cheese .content__goods__item img {
    height: 24vw;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .content__goods__item__wrap--cheese .content__goods__item img {
        height: 9vw;
        width: auto;
        max-width: 100%;
    }
}

/* 牛乳商品画像：高さを揃える */
.content__goods__item__wrap--milk .content__goods__item img {
    height: 24vw;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .content__goods__item__wrap--milk .content__goods__item img {
        height: 9vw;
        width: auto;
        max-width: 100%;
    }
}


/* ============================================
   キャンペーンに関するお問い合わせ
   ============================================ */

.contact {
    background: linear-gradient(to bottom, #fff8f0, #ffe8cc);
    padding: 40px 5vw 60px;
}

.contact__box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 32px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 24px;
}

.contact__name {
    font-size: 14px;
    color: #333;
    margin: 0 0 20px;
}

.contact__text {
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px;
}

.contact__link {
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.contact__link a {
    color: #333;
    text-decoration: underline;
}

/* SP専用改行: SPでは表示、PCでは非表示 */
.contact__br-pc {
    display: none;
}

@media (min-width: 768px) {
    .contact {
        padding: 60px 3vw 80px;
    }

    .contact__box {
        padding: 48px 40px;
    }

    .contact__title {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .contact__name {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .contact__text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .contact__link {
        font-size: 15px;
        white-space: normal;
    }

    .contact__br-sp {
        display: none;
    }

    .contact__br-pc {
        display: inline;
    }
}
