/* =====================================================
   数命占術 鑑定エンジン — MUJI 原則 × 全体明朝体
   全テキストを Shippori Mincho B1 / Noto Serif JP に統一。
   ===================================================== */

.sumei-fortune-form,
.sumei-fortune-result,
.sumei-fortune-deepen li,
.sumei-fortune-related__card,
.sumei-fortune-resources__card,
.sumei-fortune-compat-cta,
.sumei-fortune-history,
.sumei-compatibility-form,
.sumei-compat-result,
.sumei-fortune-share__btn,
.sumei-fortune-again__link,
.sumei-fortune-cta__link,
.sumei-fortune-error,
.sumei-fortune-history__item a,
.sumei-fortune-form__submit,
.sumei-fortune-form__field select,
.sumei-fortune-form__name input[type="text"] {
    font-family: "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", "Yu Mincho", serif;
}

/* ===== 入力フォーム ===== */
.sumei-fortune-form {
    max-width: 560px;
    margin: 32px auto 48px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #d8d8d9;
    border-radius: 0;
    line-height: 1.6;
}

.sumei-fortune-form__lead { margin-bottom: 32px; }
.sumei-fortune-form__eyebrow { display: none; }
.sumei-fortune-form__intro {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #3c3c43;
    margin: 0;
}

.sumei-fortune-form__step {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8d8d9;
}
.sumei-fortune-form__step-num {
    font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: #6b46c1;
}
.sumei-fortune-form__step-title {
    font-size: 16px;
    color: #1b0d36;
    font-weight: 700;
    line-height: 1.6;
}
.sumei-fortune-form__step-hint {
    font-weight: 400;
    font-size: 12px;
    color: #6d6d72;
    margin-left: 8px;
}

.sumei-fortune-form__date {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr 1.1fr;
    gap: 8px;
}
.sumei-fortune-form__field { display: flex; flex-direction: column; gap: 4px; }
.sumei-fortune-form__field-label { display: none; }
.sumei-fortune-form__field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 36px 12px 14px;
    font-size: 16px;
    font-weight: 400;
    color: #1b0d36;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path fill='%233c3c43' d='M5 7L1 3h8z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 10px;
    border: 1px solid #d8d8d9;
    border-radius: 0;
    cursor: pointer;
    transition: border-color .2s ease;
    width: 100%;
    line-height: 1.6;
}
.sumei-fortune-form__field select:hover { border-color: #3c3c43; }
.sumei-fortune-form__field select:focus {
    outline: none;
    border-color: #3c3c43;
}

.sumei-fortune-form__name input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 400;
    color: #1b0d36;
    background: #fff;
    border: 1px solid #d8d8d9;
    border-radius: 0;
    transition: border-color .2s ease;
    line-height: 1.6;
}
.sumei-fortune-form__name input[type="text"]::placeholder { color: #9d9da0; }
.sumei-fortune-form__name input[type="text"]:focus {
    outline: none;
    border-color: #3c3c43;
}

.sumei-fortune-form__submit {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 40px 0 16px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    background: #1b0d36;
    color: #fff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: normal;
    transition: background .2s ease;
}
.sumei-fortune-form__submit:hover { background: #3d1e7a; }
.sumei-fortune-form__submit-arrow { transition: transform .2s ease; }
.sumei-fortune-form__submit:hover .sumei-fortune-form__submit-arrow { transform: translateX(2px); }

.sumei-fortune-form__notice {
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    color: #6d6d72;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .sumei-fortune-form { padding: 24px 20px; }
    .sumei-fortune-form__date {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 6px;
    }
    .sumei-fortune-form__field select {
        padding: 10px 28px 10px 10px;
        font-size: 14px;
        background-position: right 10px center;
    }
}

/* ===== 鑑定結果ページの sum 強調 ===== */
.sumei-fortune-result { line-height: 1.6; }
.sumei-fortune-result .sum {
    display: inline-block;
    padding: 0 8px;
    background: #fbf6ef;
    color: #1b0d36;
    font-weight: 700;
}

/* ===== 3つの問い ===== */
.sumei-fortune-deepen {
    counter-reset: deepen;
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    display: grid;
    gap: 8px;
}
.sumei-fortune-deepen li {
    counter-increment: deepen;
    background: #fbf6ef;
    padding: 20px 24px 20px 56px;
    border-left: 2px solid #1b0d36;
    position: relative;
    line-height: 1.6;
}
.sumei-fortune-deepen li::before {
    content: counter(deepen);
    position: absolute; left: 16px; top: 16px;
    font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #6b46c1;
}

/* ===== 関連記事カード ===== */
.sumei-fortune-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 24px 0 32px;
}
.sumei-fortune-related__card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #d8d8d9;
    color: #1b0d36;
    text-decoration: none;
    transition: border-color .2s ease;
    line-height: 1.6;
}
.sumei-fortune-related__card:hover {
    border-color: #6b46c1;
    text-decoration: none;
}
.sumei-fortune-related__icon {
    width: 56px; height: 56px;
    background: #fbf6ef;
    color: #6b46c1;
    display: flex; align-items: center; justify-content: center;
    font-family: "Shippori Mincho B1", serif;
    font-size: 24px;
    font-weight: 700;
}
.sumei-fortune-related__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6b46c1;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.sumei-fortune-related__title {
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 6px;
    font-size: 15px;
}
.sumei-fortune-related__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #6d6d72;
    font-weight: 400;
}

/* ===== リソース ===== */
.sumei-fortune-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 24px 0 32px;
}
.sumei-fortune-resources__card {
    padding: 20px 24px;
    background: #fbf6ef;
    border: 1px solid #d8d8d9;
    text-decoration: none;
    color: #1b0d36;
    transition: border-color .2s ease;
    line-height: 1.6;
}
.sumei-fortune-resources__card:hover { border-color: #6b46c1; text-decoration: none; }
.sumei-fortune-resources__label {
    font-family: "Shippori Mincho B1", serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1b0d36;
    line-height: 1.6;
}
.sumei-fortune-resources__desc {
    font-size: 13px;
    color: #6d6d72;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== 相性鑑定 CTA ===== */
.sumei-fortune-compat-cta {
    margin: 32px 0;
    padding: 28px 32px;
    background: #1b0d36;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 0;
}
.sumei-fortune-compat-cta__lead h3 {
    margin: 0 0 6px;
    font-family: "Shippori Mincho B1", serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
    letter-spacing: normal;
}
.sumei-fortune-compat-cta__lead p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
}
.sumei-fortune-compat-cta__btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff;
    color: #1b0d36 !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background .2s ease;
}
.sumei-fortune-compat-cta__btn:hover {
    background: #d4af37;
    color: #1b0d36 !important;
    text-decoration: none;
}

/* ===== 鑑定履歴 ===== */
.sumei-fortune-history {
    margin: 48px 0 16px;
    padding: 28px 32px;
    background: #fbf6ef;
    border: 1px solid #d8d8d9;
}
.sumei-fortune-history h2 {
    font-family: "Shippori Mincho B1", serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8d8d9;
    line-height: 1.6;
    letter-spacing: normal;
}
.sumei-fortune-history__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.sumei-fortune-history__item a {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    text-decoration: none;
    color: #1b0d36;
    border: 1px solid #d8d8d9;
    transition: border-color .2s ease;
    line-height: 1.6;
}
.sumei-fortune-history__item a:hover { border-color: #6b46c1; text-decoration: none; }
.sumei-fortune-history__num {
    font-family: "Shippori Mincho B1", serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    color: #6b46c1;
}
.sumei-fortune-history__body { display: flex; flex-direction: column; min-width: 0; }
.sumei-fortune-history__name { font-weight: 700; font-size: 14px; line-height: 1.6; }
.sumei-fortune-history__date {
    font-size: 12px; font-weight: 400;
    color: #6d6d72;
    line-height: 1.6;
}
.sumei-fortune-history__master {
    margin-top: 2px;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
}
.sumei-fortune-history__ago {
    font-size: 12px; font-weight: 400;
    color: #6d6d72;
    white-space: nowrap;
}
.sumei-fortune-history__hint {
    margin: 16px 0 0;
    font-size: 12px; font-weight: 400;
    color: #6d6d72;
    line-height: 1.6;
}

/* ===== 相性鑑定（フォーム + 結果） ===== */
.sumei-compatibility-form {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    max-width: 720px;
    margin: 32px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #d8d8d9;
    line-height: 1.6;
}
@media (max-width: 760px) { .sumei-compatibility-form { grid-template-columns: 1fr; } }
.sumei-compat__person {
    background: #fbf6ef;
    padding: 24px;
    border: 1px solid #d8d8d9;
}
.sumei-compat__person h3 {
    margin: 0 0 16px;
    text-align: center;
    font-family: "Shippori Mincho B1", serif;
    font-size: 16px; font-weight: 700;
    color: #1b0d36;
    line-height: 1.6;
    letter-spacing: normal;
}
.sumei-compat__label {
    margin: 16px 0 8px;
    font-size: 12px; font-weight: 400;
    color: #6d6d72;
    line-height: 1.6;
}
.sumei-compat__date { display: flex; gap: 6px; flex-wrap: wrap; }
.sumei-compat__date select { flex: 1; min-width: 0; }
.sumei-compat__person input[type="text"] { width: 100%; }
.sumei-compat__divider {
    font-family: "Shippori Mincho B1", serif;
    font-size: 32px;
    font-weight: 700;
    color: #6b46c1;
    text-align: center;
    align-self: center;
}
.sumei-compatibility-form .sumei-fortune-form__submit { grid-column: 1 / -1; }

.sumei-compat-result { margin: 32px 0; line-height: 1.6; }
.sumei-compat-result__pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}
.sumei-compat-result__person {
    text-align: center;
    padding: 24px 16px;
    background: #fbf6ef;
    border: 1px solid #d8d8d9;
}
.sumei-compat-result__name {
    font-size: 16px;
    font-weight: 700;
    color: #1b0d36;
    margin-bottom: 4px;
    line-height: 1.6;
}
.sumei-compat-result__num {
    font-family: "Shippori Mincho B1", serif;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1;
    font-weight: 700;
    color: #6b46c1;
}
.sumei-compat-result__master {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
}
.sumei-compat-result__heart {
    font-size: 24px;
    color: #ec4899;
}
.sumei-compat-result__score {
    text-align: center;
    margin: 32px auto;
    max-width: 480px;
}
.sumei-compat-result__score-label {
    font-family: "Shippori Mincho B1", serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #1b0d36;
}
.sumei-compat-result__score-bar {
    height: 8px;
    background: #fbf6ef;
    border: 1px solid #d8d8d9;
    overflow: hidden;
    margin-bottom: 8px;
}
.sumei-compat-result__score-fill {
    height: 100%;
    background: #6b46c1;
    transition: width 1s ease-out;
}
.sumei-compat-result__score-num {
    font-family: "Shippori Mincho B1", serif;
    font-size: 28px;
    font-weight: 700;
    color: #1b0d36;
    line-height: 1.6;
}
.sumei-compat-result__score-num small { color: #9d9da0; font-size: .55em; }
.sumei-compat-result__title {
    text-align: center;
    margin: 16px 0;
    font-family: "Shippori Mincho B1", serif;
    font-size: 20px;
    font-weight: 700;
    color: #1b0d36;
    line-height: 1.6;
    letter-spacing: normal;
}
.sumei-compat-result__desc { line-height: 1.6; color: #3c3c43; }
.sumei-compat-result__advice {
    margin: 32px 0;
    padding: 24px 28px;
    background: #fbf6ef;
    border-left: 2px solid #d4af37;
}
.sumei-compat-result__advice h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.6;
}
.sumei-compat-result__advice p { margin: 0; line-height: 1.6; }
.sumei-compat-result__again { text-align: center; margin: 40px 0 0; }

.sumei-compat-level--soulmate .sumei-compat-result__score-fill { background: #d4af37; }
.sumei-compat-level--challenge .sumei-compat-result__score-fill { background: #6b46c1; }

/* シェア・もう一度・エラー */
.sumei-fortune-share {
    display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 32px;
}
.sumei-fortune-share__btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 0; cursor: pointer; text-decoration: none;
    transition: opacity .2s ease;
    letter-spacing: normal;
    line-height: 1;
}
.sumei-fortune-share__btn:hover { opacity: .85; text-decoration: none; }
.sumei-fortune-share__btn--x    { background: #000; color: #fff; }
.sumei-fortune-share__btn--fb   { background: #1877f2; color: #fff; }
.sumei-fortune-share__btn--line { background: #06c755; color: #fff; }
.sumei-fortune-share__btn--copy { background: #6b46c1; color: #fff; }

.sumei-fortune-again { text-align: center; margin: 48px 0 16px; }
.sumei-fortune-again__link {
    display: inline-flex; align-items: center; gap: 6px;
    background: #1b0d36;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    line-height: 1;
    transition: background .2s ease;
}
.sumei-fortune-again__link:hover { background: #3d1e7a; color: #fff !important; text-decoration: none; }

.sumei-fortune-cta { text-align: center; margin: 32px 0; }
.sumei-fortune-cta__link {
    display: inline-block; padding: 14px 28px;
    background: #1b0d36; color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700; font-size: 14px;
    line-height: 1;
}

.sumei-fortune-error {
    background: #fbf6ef;
    border-left: 2px solid #ec4899;
    padding: 20px 24px;
    margin: 24px 0;
    line-height: 1.6;
}
