@charset "UTF-8";

/* ==========================================================================
   WordPress LP用：究極の二択 独自スタイルスコープ
   ========================================================================== */

/* 🌟【最強のはみ出し防止】他CSSからの干渉を完全に遮断し、すべてのサイズ計算を内側に統一 */
.lp-ultimate-choice,
.lp-ultimate-choice * {
    box-sizing: border-box !important;
}

/* 1. 全体共通・安全設計
   -------------------------------------------------------------------------- */
.lp-ultimate-choice {
    width: 100%;
    /* スマホで絶対に画面が右側にガタガタ動かない（横スクロールバグ防止）ためのお守り */
    overflow-x: hidden; 
    background-color: #fff9e6; /* 子供向けに少しワクワクする明るい背景色 */
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.6;
}

.lp-ultimate-choice .lp-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3px;
}

.lp-ultimate-choice .lp-section {
    padding: 30px 0;
}

/* メインビジュアルのレスポンシブ化 */
.lp-ultimate-choice .lp-mv img {
    width: 100%;
    height: auto;
    display: block;
}

/* コーナーの概要エリア専用デザイン
   -------------------------------------------------------------------------- */
.lp-ultimate-choice .lp-summary-section {
    padding-bottom: 10px; /* 下のお題看板と綺麗に繋げるために下の隙間を狭く */
}

.lp-ultimate-choice .lp-summary-box {
    background-color: #ffffff;
    border: 3px solid #ffde6a; /* 看板と同じ黄色系の優しいボーダー線 */
    border-radius: 20px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.lp-ultimate-choice .lp-summary-lead {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c72; /* キッズサイトで目立つ可愛いピンクマゼンタ */
    margin-bottom: 12px;
}

.lp-ultimate-choice .lp-summary-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.lp-ultimate-choice .lp-summary-text strong {
    color: #ec081f; /* 「次の週の結果発表で〜」の部分を赤文字で強調 */
}

/* ==========================================================================
   2. 今週のお題エリア（Flexboxを用いた看板レイアウト）
   -------------------------------------------------------------------------- */
.lp-ultimate-choice .lp-odai-section {
    background: linear-gradient(180deg, #ffde6a 0%, #ffb834 100%);
    border: 6px solid #fff;
    border-radius: 30px;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(231, 76, 114, 0.15);
    max-width: 920px;
}

/* 🌟 共通CSSから引き継がれる960pxの固定幅を破壊して看板に収める */
.lp-ultimate-choice .lp-odai-section .lp-container {
    width: auto !important;
    max-width: 100% !important;
}

/* 横並びの魔法「Flexbox」 */
.lp-ultimate-choice .lp-odai-board {
    display: flex;
    align-items: center; 
    justify-content: center; /* space-betweenから中央寄せに変更して突き抜けを防止 */
    gap: 20px;
    padding: 25px;
}

/* 左右のひよりん画像ボックス */
.lp-ultimate-choice .lp-hiyorin {
    flex-shrink: 0; /* 画面が狭くなってもひよりんの画像が潰れないように固定 */
    width: 140px;   /* パソコン画面でのひよりんのちょうどいい横幅 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-ultimate-choice .lp-hiyorin img {
    width: 100%;
    height: auto;
    display: block;
}

/* 中央のお題テキストエリア */
.lp-ultimate-choice .lp-odai-content {
    /* flex: 1（無限に広がる）をやめて、看板に一番綺麗に収まる「500px」に固定 */
    flex: 0 1 500px; /* 最大500px、画面が狭くなれば自動で縮む設定 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* お題のテーマとリード文のスタイル（PC版） */
.lp-ultimate-choice .lp-odai-theme {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px 0;
    text-align: center;
}

.lp-ultimate-choice .lp-odai-theme small {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

.lp-ultimate-choice .lp-odai-lead {
    font-size: 1.15rem;
    font-weight: bold;
    color: #ec081f; /* キッズサイトで目立つパキッとした赤 */
    background-color: #fff; /* 白いカプセル風の背景を敷いて文字を引き立てる */
    padding: 4px 20px;
    border-radius: 50px;
    margin: 0 0 4px 0;
}

/* AとBの選択肢カード */
.lp-ultimate-choice .lp-choice-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}
.lp-ultimate-choice .lp-choice-a { border-left: 8px solid #ec081f; }
.lp-ultimate-choice .lp-choice-b { border-left: 8px solid #00b0f0; }

.lp-ultimate-choice .lp-choice-badge {
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
}

.lp-ultimate-choice .lp-choice-text {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    color: #111;
    /* 🌟 超長文や連続記号が来ても絶対にカード外へ突き抜けないための保険 */
    overflow-wrap: break-word;
    word-break: break-all;
}

.lp-ultimate-choice .lp-vs-zone {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}


/* 3. 投票フォームエリア（ぷっくり動くボタンデザイン）
   -------------------------------------------------------------------------- */
.lp-ultimate-choice .lp-btn-wrapper {
    text-align: center;
    padding: 10px 0;
}

.lp-ultimate-choice .lp-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 520px;
    padding: 20px 30px;
    background: linear-gradient(180deg, #ff5e62 0%, #ff9966 100%);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 0 #d13b3e, 0 12px 20px rgba(0,0,0,0.15);
    transition: all 0.15s ease;
    box-sizing: border-box;
}

/* 押したときに少し沈み込む子供が喜ぶアクション効果 */
.lp-ultimate-choice .lp-cta-btn:hover,
.lp-ultimate-choice .lp-cta-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #d13b3e, 0 6px 10px rgba(0,0,0,0.15);
}

/* スマホ用のサイズ調整 */
@media screen and (max-width: 768px) {
    .lp-ultimate-choice .lp-cta-btn {
        font-size: 1.15rem;
        padding: 16px 20px;
        box-shadow: 0 6px 0 #d13b3e, 0 10px 15px rgba(0,0,0,0.15);
    }
}


/* ==========================================================================
   4. 結果発表セクション
   ========================================================================== */
.lp-ultimate-choice .lp-result-section {
    background-color: #fff;
    border-radius: 30px;
    margin: 30px 20px;
    padding: 40px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.lp-ultimate-choice .lp-result-title {
    text-align: center;
    font-size: 1.6rem;
    color: #e74c72;
    margin-bottom: 25px;
    font-weight: bold;
}

.lp-ultimate-choice .lp-result-summary {
    background-color: #fff9fa;
    padding: 25px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px dashed #fbcdd6;
    text-align: center; /* 子要素のバッジやお題を中央に寄せる */
}

/* 何回目の発表かわかる回数バッジ */
.lp-ultimate-choice .lp-result-edition {
    display: inline-block;
    background-color: #e74c72;
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 4px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(231, 76, 114, 0.15);
}

.lp-ultimate-choice .lp-result-lead {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* 勝敗カードレイアウト（PC版：左右並び） */
.lp-ultimate-choice .lp-result-box-group {
    display: flex;
    gap: 20px;
    max-width: 600px;
    margin: 20px auto 0;
}

.lp-ultimate-choice .lp-result-box-item {
    flex: 1;
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 22px 15px 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* 勝利した側の目立つスタイル（ゴールド枠） */
.lp-ultimate-choice .lp-result-box-item.is-winner {
    border: 3px solid #ffb834;
    background-color: #fffdf6;
}

/* 勝者だけに自動表示される「👑かち！」バッジ */
.lp-ultimate-choice .lp-res-badge {
    display: none;
}
.lp-ultimate-choice .is-winner .lp-res-badge {
    display: inline-block;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffb834;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 2px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255, 184, 52, 0.2);
}

.lp-ultimate-choice .lp-res-name {
    font-size: 1.05rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 8px;
    /* 🌟 はみ出し防止の自動改行 */
    overflow-wrap: break-word;
    word-break: break-all;
}
.lp-ultimate-choice .is-winner .lp-res-name {
    color: #000;
}

.lp-ultimate-choice .lp-res-num {
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}
.lp-ultimate-choice .lp-res-a .lp-res-num { color: #ec081f; }
.lp-ultimate-choice .lp-res-b .lp-res-num { color: #00b0f0; }

.lp-ultimate-choice .lp-res-unit {
    font-size: 1.1rem;
    margin-left: 2px;
}

/* 理由を載せるカードエリア */
.lp-ultimate-choice .lp-reason-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #5c493c;
}

.lp-ultimate-choice .lp-reason-container {
    display: flex;
    gap: 20px; /* カード同士の隙間を開ける */
}

.lp-ultimate-choice .lp-reason-card {
    flex: 1; /* 2本のカードを同じ幅（50%ずつ）で広げる設定 */
    padding: 20px;
    border-radius: 20px;
}
.lp-ultimate-choice .lp-card-a { background-color: #fff2f3; }
.lp-ultimate-choice .lp-card-b { background-color: #f2faff; }

.lp-ultimate-choice .lp-reason-heading {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.lp-ultimate-choice .lp-reason-list {
    list-style: none;
}

.lp-ultimate-choice .lp-reason-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow-wrap: break-word;
}
.lp-ultimate-choice .lp-reason-list li:last-child {
    margin-bottom: 0;
}

/* 🌟【追加】勝敗カードと理由エリアを繋ぐスタイル */
.lp-ultimate-choice .lp-reason-container {
    display: flex;
    gap: 20px;
    margin-top: 30px; /* 勝敗カードとの間に程よい隙間を作る */
    text-align: left; /* 子供たちのコメントを左揃えにして読みやすくする */
}

.lp-ultimate-choice .lp-reason-card {
    flex: 1; /* 左右のカードを50%ずつの同じ幅で綺麗に広げる */
    padding: 20px;
    border-radius: 20px;
}
.lp-ultimate-choice .lp-card-a { background-color: #fff2f3; }
.lp-ultimate-choice .lp-card-b { background-color: #f2faff; }

.lp-ultimate-choice .lp-reason-heading {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.lp-ultimate-choice .lp-reason-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lp-ultimate-choice .lp-reason-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
}
.lp-ultimate-choice .lp-reason-list li:last-child {
    margin-bottom: 0; /* 一番下の箇条書きだけは余白をゼロにして枠に収める */
}

/* ==========================================================================
   5. レスポンシブ対応（スマホ向け：768px以下）
   ========================================================================== */
@media screen and (max-width: 768px) {
    .lp-ultimate-choice .lp-section {
        padding: 20px 0;
    }

    /* スマホ時の概要エリア調整 */
    .lp-ultimate-choice .lp-summary-section {
        margin: 0 10px;
    }
    .lp-ultimate-choice .lp-summary-box {
        padding: 15px;
    }
    .lp-ultimate-choice .lp-summary-lead {
        font-size: 1.15rem;
    }
    .lp-ultimate-choice .lp-summary-text {
        font-size: 0.95rem;
        text-align: left;
    }

    /* お題看板のスマホ最適化 */
    .lp-ultimate-choice .lp-odai-section {
        margin: 10px;
    }

    /* 🌟 お題看板の中のコンテナだけ左右余白をゼロにして横幅を最大化 */
    .lp-ultimate-choice .lp-odai-section .lp-container {
        padding: 0 !important;
    }

    .lp-ultimate-choice .lp-odai-board {
        position: relative;
        /* 🌟 上の100px（ひよりん退避用）を維持しつつ、左右下を2pxに詰める */
        padding: 100px 2px 2px 2px; 
        flex-direction: column; /* 縦並びにスイッチ */
        gap: 15px;
    }

    .lp-ultimate-choice .lp-hiyorin {
        position: absolute;
        top: 10px;
        width: 90px; /* スマホ画面に合わせてサイズを調整 */
    }
    .lp-ultimate-choice .lp-hiyorin-a { left: 15px; }
    .lp-ultimate-choice .lp-hiyorin-b { right: 15px; }

    /* 中央のお題テキストエリア */
    .lp-ultimate-choice .lp-odai-content {
        /* 🌟 flex-basisを440pxにしつつ、width: 100% でどんなスマホ幅にも自動追従 */
        flex: 0 1 440px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* スマホ用にお題テキストのサイズを最適化 */
    .lp-ultimate-choice .lp-odai-theme {
        font-size: 1.2rem;
    }
    .lp-ultimate-choice .lp-odai-lead {
        font-size: 0.95rem;
        padding: 3px 15px;
    }

    .lp-ultimate-choice .lp-choice-card {
        padding: 12px;
        gap: 10px;
    }

    .lp-ultimate-choice .lp-choice-text {
        font-size: 1.05rem; /* スマホでもはみ出さないように文字サイズを縮小 */
    }

    /* [スマホ版フォームの高さ設定] 縦に伸びる項目が収まるよう引き伸ばす */
    .lp-ultimate-choice .lp-iframe-wrapper iframe {
        height: 800px !important; 
    }

    /* スマホ時は結果カードを縦並びにして、テキストの文字溢れを完全に防ぐ */
    .lp-ultimate-choice .lp-result-box-group {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }
    
    .lp-ultimate-choice .lp-result-box-item {
        padding: 15px;
    }

    .lp-ultimate-choice .lp-res-num {
        font-size: 1.8rem;
    }

    /* 回数バッジのスマホ調整 */
    .lp-ultimate-choice .lp-result-edition {
        font-size: 0.85rem;
        padding: 3px 14px;
        margin-bottom: 10px;
    }

    /* 結果発表セクション全体のスマホ調整 */
    .lp-ultimate-choice .lp-result-section {
        margin: 25px 10px;
        padding: 25px 3px;
    }

    .lp-ultimate-choice .lp-result-title {
        font-size: 1.3rem;
    }

    /* 理由カードを横並びから「縦並び」に変形させて幅崩れを防ぐ */
    .lp-ultimate-choice .lp-reason-container {
        flex-direction: column;
        gap: 15px;
    }

    /* 🌟【追加】スマホ時は理由カードを縦並びに変形 */
    .lp-ultimate-choice .lp-reason-container {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }
}