﻿@charset "UTF-8";

:root {
  --pink: #d28296;
  --white: #ffffff;
  --btn-hover: #b9808f;
  --fs-20_24: clamp(20.00px, calc(0.94vw + 14.38px), 24.00px);
  --fs-18_20: clamp(18.00px, calc(0.47vw + 15.19px), 20.00px);
  --fs-15_16: clamp(15.00px, calc(0.23vw + 13.59px), 16.00px);
}

body {
    margin: 0;
    padding: 0;
    font-size: clamp(14px, 2vw + 7px, 16px);
    font-family: "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    color: #555;
}
p,ul,li {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}

h4 {
    font-weight: normal;
}

/* 診断コンテンツのコンテナ */
#diagnosis-container {
    background-color: #fef8f9;
    /* 薄いピンク */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    padding: 30px;
    text-align: center;
    margin: 10px auto 50px auto;
}

/* STARTボタン */
#start-btn {
    background-color: #d198a6;
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

/* 開始画面の画像スタイル */
.start-image {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.q-image {
    width: 100%;
    max-width: 200px;
    height: auto;
}

#diagnosis-container h1 {
    color: var(--pink);
    /* テーマカラー */
    font-size: var(--fs-20_24);
    white-space: nowrap;
    margin-bottom: 10px;
}

#diagnosis-container h2 {
    color: var(--pink);
    /* テーマカラー */
    font-size: var(--fs-18_20);
    margin-bottom: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.pcOnly {
    display: inline;
}

.spOnly {
    display: none;
}

/* 質問と結果の表示領域 */
.question,
.result {
    display: none;
    /* 初期状態では非表示 */
}

.question.active,
.result.active {
    display: block;
    /* activeクラスがついたら表示 */
}

/* 選択肢ボタンのスタイル */
.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.choices button {
    background-color: #d198a6;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: var(--fs-15_16);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.choices button:hover {
    background-color: var(--btn-hover);
    /* マウスを乗せた時に少し暗いピンクに */
}

/* 結果表示のスタイル */
#results-area h2 {
    font-size: 16px;
    /* color: #555; */
    /* border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px; */
}

/* 訴求メッセージ */
.catchphrase {
    background-color: var(--pink);
    color: var(--white);
    font-weight: bold;
    padding: 10px;
    margin: 20px 0;
    font-size: 18px;
}

/* おすすめする商品名（大見出し） */
.product-title-main {
    font-size: var(--fs-20_24);
    margin-bottom: 20px;
    font-weight: bold;
}

/* 商品画像 */
.product-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 商品名（リンク付き） */
.product-name-price {
    text-align: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.product-name-price a {
    text-decoration: none;
    color: inherit;
    /* 親要素から色を継承（h4の色になる） */
}

.product-name-price a:hover h4 {
    text-decoration: underline;
    /* ホバー時に商品名に下線を引く */
}

.product-name-price h4 {
    margin: 0;
    display: inline-block;
    /* ホバー時の下線がテキスト幅に収まるように */
}

/* 商品説明文 */
.product-description {
    text-align: left;
    margin-bottom: 25px;
}

/* 注釈などの小さい文字用のスタイル */
.small-note {
    font-size: 0.70em;
    /* 親の文字サイズの70%の大きさに */
    vertical-align: super;
    line-height: 1;
}

/* こだわりポイント */
.commitment-points__wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6%;
    margin-bottom: 20px;
}

.commitment-points {
    position: relative;
    max-width: 500px;
    padding: 15px 20px;
    background-color: var(--white);
    text-align: left;
    border-radius: 8px;
    border: 2px solid #d7e2f6;
    color: #435b88;
    font-size: 14px;
}

.commitment-points::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: 15px;
    border-style: solid;
    border-width: 10px 0 10px 22px;
    border-color: transparent transparent transparent #d7e2f6;
}

.commitment-points::before {
    content: "";
    position: absolute;
    right: -15px;
    bottom: 15px;
    border-style: solid;
    border-width: 10px 0 10px 22px;
    border-color: transparent transparent transparent var(--white);
    z-index: 1;
}

.commitment-points__wrapper .icon-thumb {
    width: 15%;
    height: auto;
    flex-shrink: 0;
}

.commitment-points__wrapper .icon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commitment-points h5 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: bold;
}

.commitment-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commitment-points li {
    align-items: flex-start;
}

/* 「購入はこちら」のリンク */
.purchase-button {
    display: block;
    background-color: #d198a6;
    color: var(--white);
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    /* paddingを含めて幅100%にする */
}

.purchase-button:hover {
    background-color: var(--btn-hover);
}

/* 補足説明のラッパー（ブロック全体を囲むdiv） */
.notes-wrapper {
    margin-left: 0.5em;
    margin-bottom: 25px;
}

/* 補足説明 */
.supplementary-note {
    font-size: 10px;
    color: #888;
    text-align: left;
    margin-bottom: 5px;
    padding-left: 1.5em;
    text-indent: -2em;
}

/* もう一度診断するボタン */
.restart-btn {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    background-color: #555;
    color: var(--white);
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.restart-btn:hover {
    background-color: #333;
}

/* 最初に戻るボタン */
.back-to-start-btn {
    margin-top: 35px;
    padding: 5px;
    font-size: 14px;
    cursor: pointer;
    background-color: transparent;
    /* 背景なし */
    color: #888;
    /* 控えめな文字色 */
    border: none;
    /* 枠線なし */
    text-decoration: underline;
    /* 下線をつける */
    transition: color 0.3s;
}

.back-to-start-btn:hover {
    color: var(--pink);
    /* ホバー時にテーマカラーに */
}


/* header */
#simple-header {
    border-bottom: none;
}

.simple-header_all h1 {
    width: 30%;
}

.simple-header_all img {
    max-width: 100%;
}

/* footer */
.simple-footer ul {
    margin: 0;
}

.simple-footer li {
    list-style: none;
}

/* タブレット用の設定 */
@media (min-width: 600px) and (max-width: 1024px) {}

/* スマホ用の設定 */
@media (max-width: 599px) {
    #diagnosis-container {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 7% 4% 12%;
        margin: 0 auto;
    }

    .spOnly {
        display: inline;
    }

    .pcOnly {
        display: none;
    }
    .catchphrase {
        padding: 1%;
    }
    .choices button {
        padding: 13px;
    }
    .product-image {
        width: 60%;
    }
    .product-name-price {
        margin-bottom: 7%;
    }
    .product-name-price h4 {
        font-size: 12px;
    }
    .product-description {
        line-height: 1.8;
        margin-bottom: 9%;
    }
    .commitment-points__wrapper {
        flex-direction: column;
        align-items: center;
        gap: 27px;
    }

    /* .commitment-points {
        max-width: 100%;
        width: 100%;
    } */

    .commitment-points::after {
        right: auto;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 12px 10px 0 10px;
        border-color: #d7e2f6 transparent transparent transparent;
    }

    .commitment-points::before {
        right: auto;
        bottom: -9px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 12px 10px 0 10px;
        border-color: var(--white) transparent transparent transparent;
    }
    .commitment-points__wrapper .icon-thumb {
        width: 100px;
    }
}