@charset "UTF-8";

/* =========================
   共通ページ枠
========================= */
.fortune-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    line-height: 1.9;
}

.fortune-page p,
.fortune-page li {
    font-weight: 400;
    color: #222;
}

/* =========================
   ヒーロー
========================= */
.fortune-hero {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.fortune-hero__text {
    flex: 1;
    min-width: 300px;
}

.fortune-hero__text h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #2c3e50;
}

.fortune-hero__text p {
    font-size: 1.08rem;
    margin-bottom: 16px;
}

.fortune-hero__image {
    flex: 0 0 280px;
    text-align: center;
}

.fortune-hero__image img {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   CTA
========================= */
.fortune-cta {
    margin: 28px 0 10px;
    padding: 24px;
    background: #f7fbff;
    border: 2px solid #9fbce3;
    border-radius: 16px;
    text-align: center;
}

.fortune-cta p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: bold;
    color: #243b5a;
}

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: #356ac3;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 999px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* =========================
   共通セクション
========================= */
.fortune-section {
    margin-top: 42px;
    padding: 28px;
    background: #fffef9;
    border: 2px solid #d8c979;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fortune-section h2 {
    position: relative;
    margin: 0 0 20px 0;
    padding: 8px 0 10px 18px;
    font-size: 1.55rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.fortune-section h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #d8c979);
    border-radius: 999px;
}

.fortune-section ul {
    margin: 14px 0 14px 22px;
}

.fortune-section li {
    margin-bottom: 8px;
}

/* =========================
   トピックパネル
========================= */
.fortune-topic-panel {
    margin-top: 42px;
}

.fortune-topic-panel__head {
    margin-bottom: 18px;
}

.fortune-topic-panel__head h2 {
    font-size: 2rem;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #2c3e50;
}

.fortune-topic-panel__head p {
    margin: 0;
    font-size: 1.02rem;
    color: #44546a;
}

/* =========================
   バッジ
========================= */
.fortune-badges {
    margin-top: 18px;
}

.fortune-badge {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 8px 14px;
    background: #eef5ff;
    border: 1px solid #9fbce3;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #2d4f7c;
    font-weight: 600;
}

/* =========================
   リンクセクション
========================= */
.fortune-links {
    margin-top: 42px;
    padding: 28px;
    background: #f9fafb;
    border: 2px solid #b8c4d6;
    border-radius: 16px;
}

.fortune-links h2 {
    position: relative;
    margin: 0 0 20px 0;
    padding: 8px 0 10px 18px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #274c77;
    border-left: 8px solid #4f7fd6;
    line-height: 1.4;
}

.fortune-links h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, #4f7fd6, #b8c4d6);
    border-radius: 999px;
}

.fortune-links ul {
    margin-left: 22px;
}

.fortune-links a,
.explain-link {
    text-decoration: none;
    color: #2f5fb3;
    font-weight: 600;
}

.fortune-links a:hover,
.explain-link:hover {
    text-decoration: underline;
}

/* =========================
   FAQ
========================= */
.faq-item {
    border: 2px solid #c7d3e6;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: #f5f9ff;
    color: #243b5a;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-question:hover {
    background: #ebf3ff;
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: bold;
    color: #356ac3;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    background: #fff;
}

.faq-answer p {
    margin: 0;
    padding: 18px 20px 20px;
    border-top: 1px solid #d7e3f2;
}

.faq-item.open {
    border-color: #89a9d8;
    box-shadow: 0 3px 10px rgba(53, 106, 195, 0.08);
}

/* =========================
   入力フォーム統一
========================= */
.fortune-form {
    margin-top: 8px;
}

.form-row {
    margin-bottom: 22px;
}

.form-row > label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #243b5a;
}

.fortune-input {
    width: 100%;
    max-width: 360px;
    height: 50px;
    padding: 0 14px;
    border: 2px solid #b7c8e5;
    border-radius: 14px;
    font-size: 1.05rem;
    background: #fff;
    box-sizing: border-box;
}

.fortune-select {
    min-width: 92px;
    height: 46px;
    padding: 0 12px;
    border: 2px solid #b7c8e5;
    border-radius: 14px;
    font-size: 1rem;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.fortune-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fortune-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #243b5a;
}

.birth-selects {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.birth-selects span {
    font-weight: 600;
    color: #44546a;
}

.form-actions {
    margin-top: 8px;
}

/* =========================
   日付切り替えUI
========================= */
.fortune-day-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.fortune-day-switcher__form {
    margin: 0;
}

.fortune-day-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 132px;
    height: 56px;
    padding: 0 22px;
    border: 2px solid #2c2c2c;
    border-radius: 999px;
    background: #5c5ad7;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.fortune-day-button:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.fortune-day-button__arrow {
    font-size: 1.15rem;
    line-height: 1;
}

.fortune-day-current-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.fortune-day-current-label {
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.fortune-day-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: #243b5a;
    letter-spacing: 0.02em;
}

/* =========================
   今日の運勢 結果カードUI
========================= */
.fortune-result-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

.fortune-result-card {
    background: #fffef9;
    border: 2px solid #d9cf92;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.fortune-result-card__label {
    background: #f8f4df;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 18px;
    border-bottom: 1px solid #e7ddb1;
}

.fortune-result-card__body {
    padding: 18px;
    font-size: 1.05rem;
    line-height: 1.95;
    color: #222;
    word-break: break-word;
}

.fortune-meta-card {
    margin-top: 22px;
    padding: 22px 24px;
    background: #f9fbff;
    border: 2px solid #cddcf3;
    border-radius: 16px;
}

.fortune-meta-card h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: #274c77;
}

.fortune-meta-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.95;
}

.fortune-meta-list li {
    margin-bottom: 8px;
}

/* =========================
   未購入者・プロモート
========================= */
.fortune-lock-box {
    margin-top: 30px;
    padding: 28px;
    background: #fffdf4;
    border: 2px solid #d8c979;
    border-radius: 16px;
    text-align: center;
}

.fortune-lock-box h2 {
    margin-top: 0;
}

.premium-preview-list {
    margin: 18px 0;
    padding-left: 0;
    list-style: none;
}

.premium-preview-list li {
    margin: 8px 0;
    font-weight: 600;
    color: #2c3e50;
}

.premium-cta {
    margin-top: 18px;
}

.premium-button {
    display: inline-block;
    padding: 14px 26px;
    background: #d4af37;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.premium-button:hover {
    background: #c59c2e;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =========================
   AI生成待機メッセージ
========================= */

.fortune-ai-note {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #666;
    text-align: center;
}

/* =========================
   AI生成中ボタン
========================= */

.js-ai-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* =========================
   凶殺表示
========================= */

.fortune-meta-list strong {
    font-weight: 700;
}

.fortune-meta-list li {
    line-height: 1.8;
}

/* 凶殺あり時に少し目立たせる */
.fortune-meta-list li strong {
    color: #7a1f1f;
}

/* =========================
   広め画面
========================= */
@media screen and (min-width: 900px) {
    .fortune-result-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   スマホ調整
========================= */
@media (max-width: 768px) {
    .fortune-hero__text h1 {
        font-size: 1.75rem;
    }

    .fortune-page {
        padding: 20px 14px 50px;
    }

    .fortune-section,
    .fortune-links,
    .fortune-cta {
        padding: 20px;
    }

    .fortune-section h2,
    .fortune-links h2 {
        font-size: 1.28rem;
        padding-left: 14px;
        border-left-width: 6px;
    }

    .faq-question {
        padding: 16px;
        font-size: 0.96rem;
    }

    .faq-answer p {
        padding: 16px;
    }

    .fortune-input {
        max-width: 100%;
        height: 46px;
        font-size: 1rem;
    }

    .fortune-select {
        min-width: 78px;
        height: 42px;
        font-size: 0.96rem;
        border-radius: 12px;
    }

    .birth-selects {
        gap: 8px;
    }

    .fortune-radio-group {
        gap: 14px;
    }

    .fortune-day-switcher {
        gap: 12px;
    }

    .fortune-day-button {
        min-width: 118px;
        height: 52px;
        padding: 0 18px;
        font-size: 1rem;
    }

    .fortune-day-current-wrap {
        min-width: 150px;
    }

    .fortune-day-current {
        font-size: 1.15rem;
    }

    .fortune-result-card__label {
        font-size: 1rem;
        padding: 12px 14px;
    }

    .fortune-result-card__body {
        padding: 14px;
        font-size: 1rem;
        line-height: 1.85;
    }

    .fortune-meta-card {
        padding: 18px;
    }

    .fortune-meta-card h3 {
        font-size: 1.05rem;
    }

    .fortune-ai-note {
        font-size: 0.85rem;
        padding: 0 10px;
    }

}