@charset "utf-8";

/* ============================================================
 * CENTONZE 診断ページ専用 CSS
 * ------------------------------------------------------------
 * 自己完結型：他の CSS（style.css / reset.css 等）に依存しません。
 * 既存サイトに統合する際は、:root の変数を制作会社の確定値に
 * 差し替えてください。
 * ============================================================ */

/* ------------------------------------------------------------
 * CSS 変数（本番 centonze.jp の style.css / top.css と照合・確定済み）
 * gold/blue グラデ・teal・cream 等、全トークンが本番TOPと一致することを確認済み
 * ------------------------------------------------------------ */
:root {
    /* 色：Growcal Sample style.css / top.css より抽出 */
    --gold-top: #a99143;          /* gold_bt グラデ上端 */
    --gold-bottom: #6c5c2a;       /* gold_bt グラデ下端 */
    --gold-text: #a99244;         /* mv_copy のゴールド文字色 */
    --gold-accent: #b68c41;       /* type_box のゴールド */
    --blue-top: #8fc0c5;          /* blue_bt グラデ上端 */
    --blue-bottom: #739b9d;       /* blue_bt グラデ下端 */
    --teal-section: #8fc1c5;      /* section_title のティール */
    --teal-line: #6bb8bc;         /* 区切り線のティール */
    --bg-cream: #f6f5e3;          /* footer / review 背景 */
    --bg-light-teal: #d5e7e7;     /* products 背景 */
    --text-default: #333;
    --text-muted: #777;
    --line-soft: #d8d8d8;
    --white: #fff;

    /* タイポ */
    --font-base: "Zen Kaku Gothic New", sans-serif;
    --font-mincho: "Zen Old Mincho", serif;
    --font-playfair: "Playfair Display", serif;
    --font-cormorant: "Cormorant Infant", serif;

    /* レイアウト */
    --wrap-width: 1200px;
    --bp-sp: 800px;
}

/* ------------------------------------------------------------
 * 最小リセット（reset.css 相当を内包）
 * ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
section,
div,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
input,
label,
button,
footer,
header,
main {
    margin: 0;
    padding: 0;
    border: 0;
}

ul,
ol,
li {
    list-style: none;
}

img,
svg {
    vertical-align: bottom;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    outline: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

/* ------------------------------------------------------------
 * ベースタイポ
 * ------------------------------------------------------------ */
html,
body {
    font-family: var(--font-base);
    font-weight: 400;
    color: var(--text-default);
    background: var(--white);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

.mincho {
    font-family: var(--font-mincho);
}

.Playfair {
    font-family: var(--font-playfair);
    font-optical-sizing: auto;
}

.wrap {
    width: var(--wrap-width);
    max-width: 92%;
    margin: 0 auto;
}

.sp_only {
    display: none;
}

/* ------------------------------------------------------------
 * 共通ボタン（Growcal Sample style.css の .bt_box / .gold_bt 相当）
 * ------------------------------------------------------------ */
.bt_box {
    display: inline-block;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    padding: 16px 48px;
    font-size: 110%;
    letter-spacing: 0.08rem;
    transition: opacity 0.25s ease;
    min-width: 240px;
}

.gold_bt {
    background: linear-gradient(to bottom, var(--gold-top), var(--gold-bottom));
}

.blue_bt {
    background: linear-gradient(to bottom, var(--blue-top), var(--blue-bottom));
}

.bt_box:hover {
    opacity: 0.8;
}

.bt_box:disabled {
    background: var(--line-soft);
    cursor: not-allowed;
    opacity: 1;
}

/* ------------------------------------------------------------
 * ヘッダー / フッター
 * ------------------------------------------------------------ */
#diag_header {
    width: 100%;
    padding: 30px 0;
    background: var(--white);
}

#diag_header .logo img {
    width: 200px;
}

footer {
    background: var(--bg-cream);
    text-align: center;
    font-size: 80%;
    padding: 60px 0 20px;
    margin-top: 100px;
}

/* ------------------------------------------------------------
 * タイトルセクション
 * ------------------------------------------------------------ */
#diagnosis_title {
    padding: 60px 0 40px;
    text-align: center;
}

#diagnosis_title .title_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#diagnosis_title .title_main .Playfair {
    font-size: 320%;
    color: var(--teal-section);
    letter-spacing: 0.15rem;
    line-height: 1;
}

#diagnosis_title .title_main strong {
    font-size: 130%;
    font-weight: 500;
    letter-spacing: 0.1rem;
}

#diagnosis_title .intro {
    margin-top: 30px;
    font-size: 100%;
    line-height: 2;
}

/* ------------------------------------------------------------
 * 設問エリア
 * ------------------------------------------------------------ */
#quiz {
    padding: 40px 0 60px;
}

.quiz_item {
    margin: 60px 0;
    padding: 30px 0;
}

.quiz_item + .quiz_item {
    border-top: 1px solid var(--line-soft);
}

.quiz_q {
    font-family: var(--font-mincho);
    font-weight: 500;
    font-size: 140%;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* スライダー両端ラベル */
.slider_labels {
    display: flex;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto 14px;
    font-size: 90%;
    color: var(--text-default);
    line-height: 1.4;
}

.slider_labels .label_left {
    text-align: left;
    padding-right: 12px;
}

.slider_labels .label_right {
    text-align: right;
    padding-left: 12px;
}

/* スライダー本体 */
.slider_track {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.slider_track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--line-soft);
    transform: translateY(-50%);
    z-index: 0;
}

.slider_track input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.slider_track label {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--line-soft);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.slider_track label:hover {
    transform: scale(1.15);
    border-color: var(--gold-accent);
}

.slider_track input[type="radio"]:checked + label {
    background: var(--gold-top);
    border-color: var(--gold-top);
}

.slider_track input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--teal-line);
    outline-offset: 3px;
}

/* 「結果を見る」「決定する」ボタン */
.quiz_submit {
    text-align: center;
    margin-top: 50px;
}

/* ------------------------------------------------------------
 * タイブレイク
 * ------------------------------------------------------------ */
#tiebreak {
    padding: 60px 0;
}

#tiebreak .tiebreak_q {
    margin-bottom: 40px;
}

.tiebreak_options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.tiebreak_option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tiebreak_option:hover {
    border-color: var(--gold-accent);
    background: #fbf8ef;
}

.tiebreak_option input[type="radio"] {
    margin-top: 6px;
    accent-color: var(--gold-top);
    flex-shrink: 0;
}

.tiebreak_option:has(input:checked) {
    border-color: var(--gold-top);
    background: #fbf6e9;
}

.tiebreak_label {
    font-size: 100%;
    line-height: 1.7;
}

/* ------------------------------------------------------------
 * 結果カード
 * ------------------------------------------------------------ */
#result {
    padding: 60px 0;
}

.result_card {
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 50px 50px 40px;
}

.result_lead {
    text-align: center;
    font-size: 110%;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.result_product_name {
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

.result_product_name .Playfair {
    display: block;
    font-size: 280%;
    color: var(--gold-text);
    letter-spacing: 0.1rem;
}

.result_product_name .name_jp {
    display: block;
    font-size: 110%;
    margin-top: 6px;
    font-weight: 500;
}

.result_product_name .catch {
    display: block;
    font-size: 150%;
    margin-top: 18px;
    color: var(--text-default);
    font-weight: 500;
}

.result_main {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.result_img {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.result_img img {
    max-width: 100%;
    filter: drop-shadow(8px 8px 12px rgba(0, 0, 0, 0.18));
}

.result_info {
    flex: 1 1 auto;
}

.result_desc {
    font-size: 100%;
    line-height: 2;
    margin-bottom: 30px;
}

.result_buy {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.result_buy .buy_label {
    font-size: 110%;
    color: var(--gold-text);
    margin-bottom: 8px;
}

.result_buy .buy_pace {
    font-size: 95%;
    line-height: 1.7;
    margin-bottom: 18px;
}

.result_buy .buy_pace strong {
    font-size: 130%;
    font-weight: 700;
    color: var(--text-default);
}

.result_buy .buy_bt {
    min-width: 220px;
    padding: 14px 36px;
}

/* noscript */
#noscript_fallback {
    padding: 60px 0;
    text-align: center;
}

#noscript_fallback ul {
    margin-top: 16px;
}

#noscript_fallback li {
    margin: 8px 0;
}

#noscript_fallback a {
    color: var(--teal-line);
    text-decoration: underline;
}

/* ------------------------------------------------------------
 * レスポンシブ（800px ブレイクポイント — Growcal Sample resp.css に合わせる）
 * ------------------------------------------------------------ */
@media screen and (max-width: 800px) {
    .sp_only {
        display: inline;
    }

    #diag_header {
        padding: 20px 0;
    }

    #diag_header .logo img {
        width: 150px;
    }

    #diagnosis_title {
        padding: 40px 0 20px;
    }

    #diagnosis_title .title_main .Playfair {
        font-size: 220%;
    }

    #diagnosis_title .title_main strong {
        font-size: 110%;
    }

    #diagnosis_title .intro {
        margin-top: 20px;
        font-size: 90%;
        text-align: left;
    }

    .quiz_item {
        margin: 30px 0;
        padding: 20px 0;
    }

    .quiz_q {
        font-size: 115%;
    }

    .slider_labels {
        font-size: 75%;
    }

    .slider_track label {
        width: 16px;
        height: 16px;
    }

    .bt_box {
        min-width: 200px;
        padding: 14px 32px;
        font-size: 100%;
    }

    /* 結果カードを縦積み */
    .result_card {
        padding: 30px 20px 24px;
    }

    .result_product_name .Playfair {
        font-size: 200%;
    }

    .result_product_name .catch {
        font-size: 125%;
    }

    .result_main {
        flex-direction: column;
        gap: 24px;
    }

    .result_img {
        flex: 0 0 auto;
        max-width: 60%;
        margin: 0 auto;
    }

    .tiebreak_option {
        padding: 16px 16px;
    }

    .tiebreak_label {
        font-size: 90%;
    }
}

/* 375px 想定の微調整 */
@media screen and (max-width: 400px) {
    .slider_labels {
        font-size: 70%;
    }

    .slider_track label {
        width: 14px;
        height: 14px;
    }
}
