@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-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-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-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;
}

/* =========================
   CTAボタン
========================= */
.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);
}

/* =========================
   性格診断カード
========================= */
.personality-layer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

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

.personality-layer-card__head {
    padding: 16px 18px;
    background: #f8f4df;
    border-bottom: 1px solid #e7ddb1;
}

.personality-layer-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
}

.personality-layer-card__sub {
    margin-top: 6px;
    font-size: 0.98rem;
    color: #5c6f82;
}

.personality-layer-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 18px;
    background: #fcfcff;
    border-bottom: 1px solid #e4ebf5;
    color: #4a5c73;
    font-size: 0.95rem;
    font-weight: 600;
}

.personality-layer-card__body {
    padding: 18px;
}

.personality-block + .personality-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ece4be;
}

.personality-block h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #274c77;
}

.personality-block p {
    margin: 0;
    line-height: 1.95;
}

/* =========================
   補足
========================= */
.fortune-meta-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.95;
}

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

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

.explain-link:hover {
    text-decoration: underline;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 900px) {
    .personality-layer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fortune-page {
        padding: 20px 14px 50px;
    }

    .fortune-hero__text h1 {
        font-size: 1.75rem;
    }

    .fortune-section {
        padding: 20px;
    }

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

    .fortune-topic-panel__head h2 {
        font-size: 1.6rem;
    }

    .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;
    }

    .personality-layer-card__head {
        padding: 14px 16px;
    }

    .personality-layer-card__title {
        font-size: 1.05rem;
    }

    .personality-layer-card__meta {
        padding: 10px 16px;
        font-size: 0.92rem;
    }

    .personality-layer-card__body {
        padding: 16px;
    }
}