/* ===========================================
   Symptom Single Page Styles / 症状別ページ個別ページスタイル
   =========================================== */


/* セクション共通スタイル */

.l-section {
    position: relative;
}

.symptom-step {
    margin-top: clamp(36px, 2.8vw, 72px) !important;
}


/* ===========================================
   セクション1: こんなお悩みありませんか？
   =========================================== */

.p-symptomConcern {
    background: none !important;
    padding: clamp(60px, 4.7vw, 120px) 0 !important;
}

.p-symptomConcern__title {
    font-size: clamp(28px, 2.1vw, 40px) !important;
    font-weight: 700 !important;
    color: #5A5A5A !important;
    text-align: center !important;
    margin-bottom: clamp(40px, 3.5vw, 60px) !important;
    line-height: 1.4 !important;
}

.p-symptomConcern__accent {
    color: #94B49F !important;
}

.p-symptomConcern__content {
    max-width: 1000px;
    margin: 0 auto;
}

.p-symptomConcern__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 1.4vw, 24px);
    max-width: 800px;
    margin: 0 auto;
}

.p-symptomConcern__item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1vw, 16px);
    width: 100%;
}

.p-symptomConcern__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: clamp(32px, 2.5vw, 40px) !important;
    height: clamp(32px, 2.5vw, 40px) !important;
    min-width: clamp(32px, 2.5vw, 40px) !important;
    border-radius: 50% !important;
    background: #94B49F !important;
    color: #ffffff !important;
    font-size: clamp(16px, 1.25vw, 20px) !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

.p-symptomConcern__text {
    font-size: clamp(16px, 1.4vw, 20px);
    color: #5A5A5A;
    line-height: 1.8;
    flex: 1;
}


/* ===========================================
   セクション2: よくある原因
   =========================================== */

.p-symptomCauses {
    background: #94B49F;
    padding: clamp(60px, 4.7vw, 120px) clamp(20px, 4vw, 40px);
    overflow: hidden;
}

.p-symptomCauses__container {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.p-symptomCauses__title {
    font-size: clamp(28px, 2.1vw, 48px);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: clamp(40px, 3.1vw, 60px);
}

.p-symptomCauses__content {
    color: #ffffff;
    line-height: 1.8;
    font-size: clamp(16px, 1.25vw, 20px);
}

.p-symptomCauses__content h2 {
    font-size: clamp(24px, 2vw, 36px);
    font-weight: 700;
    color: #ffffff;
    margin-top: clamp(30px, 2.5vw, 40px);
    margin-bottom: clamp(20px, 1.6vw, 24px);
}

.p-symptomCauses__content h3 {
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 700;
    color: #ffffff;
    margin-top: clamp(24px, 2vw, 32px);
    margin-bottom: clamp(16px, 1.4vw, 20px);
}

.p-symptomCauses__content p {
    margin-bottom: clamp(16px, 1.4vw, 24px);
    color: #ffffff;
}

.p-symptomCauses__content ul,
.p-symptomCauses__content ol {
    margin-bottom: clamp(16px, 1.4vw, 24px);
    padding-left: clamp(24px, 2vw, 32px);
    color: #ffffff;
}

.p-symptomCauses__content li {
    margin-bottom: clamp(8px, 0.7vw, 12px);
    color: #ffffff;
}

.p-symptomCauses__content a {
    color: #D88363;
    text-decoration: underline;
}

.p-symptomCauses__content a:hover {
    color: #ffffff;
}


/* ===========================================
   セクション3: 自分でできる対処法
   =========================================== */

.p-symptomSelfcare {
    position: relative;
    background-color: none;
    overflow: visible;
    padding: clamp(60px, 4.7vw, 120px) 0;
}

.p-symptomSelfcare__container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background-color: #FAF9F6;
    overflow: hidden;
}

.p-symptomSelfcare__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(60px, 4.68vw, 100px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

.p-symptomSelfcare__wrapper {
    background: #ffffff;
    border-radius: clamp(24px, 1.9vw, 36px);
    padding: clamp(32px, 2.5vw, 48px);
}

.p-symptomSelfcare__icon {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(24px, 2vw, 40px);
}

.p-symptomSelfcare__icon img {
    width: clamp(60px, 4.7vw, 120px);
    height: auto;
}

.p-symptomSelfcare__title {
    font-size: clamp(24px, 2vw, 40px);
    font-weight: 700;
    color: #5A5A5A;
    text-align: center;
    margin-bottom: clamp(60px, 4.7vw, 100px);
}

.p-symptomSelfcare__intro {
    font-size: clamp(16px, 1.25vw, 20px);
    color: #5A5A5A;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto clamp(48px, 3.7vw, 72px);
    max-width: 760px;
}

.p-symptomSelfcare__item {
    padding: 0;
    margin-bottom: clamp(80px, 6.2vw, 160px);
}

.p-symptomSelfcare__item:last-child {
    margin-bottom: 0;
}

.p-symptomSelfcare__itemHeader {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.2vw, 24px);
    margin-bottom: clamp(24px, 2vw, 32px);
}

.p-symptomSelfcare__badge {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    white-space: nowrap !important;
    width: clamp(60px, 4.7vw, 100px) !important;
    height: clamp(60px, 4.7vw, 100px) !important;
    min-width: clamp(60px, 4.7vw, 100px) !important;
    border-radius: 50% !important;
    background: #94B49F !important;
    padding: 0 !important;
    gap: clamp(4px, 0.3vw, 8px) !important;
    box-sizing: border-box !important;
}

.p-symptomSelfcare__badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(clamp(60px, 4.7vw, 100px) * 0.2);
    height: calc(clamp(60px, 4.7vw, 100px) * 0.2);
    border-radius: 50%;
    background: #FAF9F6;
    z-index: -1;
}

.p-symptomSelfcare__badgeText {
    font-size: clamp(12px, 0.93vw, 20px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.p-symptomSelfcare__badgeNumber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(20px, 1.56vw, 40px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.p-symptomSelfcare__itemTitle {
    font-size: clamp(24px, 1.8vw, 44px) !important;
    font-weight: 700 !important;
    color: #94B49F !important;
    white-space: nowrap !important;
}

.p-symptomSelfcare__line {
    flex: 1 !important;
    height: 2px !important;
    background: #94B49F !important;
}

.p-symptomSelfcare__itemContent {
    display: flex;
    gap: clamp(24px, 2vw, 32px);
    margin-bottom: clamp(24px, 2vw, 32px);
}

.p-symptomSelfcare__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.25vw, 26px);
}

.p-symptomSelfcare__right {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.25vw, 24px);
}

.p-symptomSelfcare__itemText {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1vw, 16px);
    margin: clamp(16px, 1.25vw, 26px) 0;
}

.p-symptomSelfcare__itemText p {
    font-size: clamp(14px, 1.1vw, 16px);
    color: #5A5A5A;
    line-height: 2;
}

.p-symptomSelfcare__itemImage {
    border-radius: clamp(20px, 1.56vw, 40px);
    overflow: hidden;
}

.p-symptomSelfcare__itemImage img {
    width: 100%;
    height: auto;
    display: block;
}

.p-symptomSelfcare__referencesBlock {
    background: #FAF9F6;
    border-radius: clamp(24px, 1.9vw, 36px);
    padding: clamp(32px, 2.5vw, 48px);
    margin-top: clamp(40px, 3.1vw, 60px);
}

.p-symptomSelfcare__referencesTitle {
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 700;
    color: #5A5A5A;
    margin-bottom: clamp(12px, 1vw, 16px);
}

.p-symptomSelfcare__reference {
    font-size: clamp(14px, 1.1vw, 16px);
    color: #5A5A5A;
    line-height: 1.8;
    margin-bottom: clamp(8px, 0.6vw, 12px);
}

.p-symptomSelfcare__reference a {
    color: #94B49F;
    text-decoration: underline;
}

.p-symptomSelfcare__reference a:hover {
    color: #65A373;
}


/* ===========================================
   セクション4: 対応メニュー
   =========================================== */

.single-symptom .p-priceMenuSection {
    background-color: #FAF9F6;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: visible;
    padding-bottom: 0;
}

.single-symptom .p-priceMenuSection__inner {
    overflow: hidden;
}

.single-symptom .p-priceMenuSection__inner--menus {
    background-color: #FAF9F6;
    border-top: 4px solid #fff;
}

.single-symptom .p-priceMenuSection__inner--faq {
    background-color: #FFFFFF;
}

.symptom-menu-sub {
    color: #5A5A5A;
}

.single-symptom .p-priceMenuSection__inner--faq {
    background-color: transparent;
}


/* ===========================================
   セクション5: CTA
   =========================================== */

.p-symptomCta {
    background: #65A373;
    padding: clamp(60px, 4.7vw, 120px) clamp(20px, 4vw, 40px);
    overflow: hidden;
}

.p-symptomCta__inner {
    display: flex;
    align-items: center;
    gap: clamp(32px, 2.5vw, 60px);
    background: #ffffff;
    border-radius: clamp(36px, 2.8vw, 72px);
    padding: clamp(32px, 2.5vw, 48px);
}

.p-symptomCta__image {
    flex-shrink: 0;
}

.p-symptomCta__image img {
    display: block;
    width: clamp(260px, 20vw, 360px);
    height: auto;
    border-radius: clamp(24px, 1.9vw, 36px);
}

.p-symptomCta__content {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.25vw, 24px);
    flex: 1;
}

.p-symptomCta__title {
    font-size: clamp(28px, 2.1vw, 48px);
    font-weight: 700;
    color: #5A5A5A;
}

.p-symptomCta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 1.5vw, 24px) clamp(32px, 3vw, 48px);
    background: #94B49F;
    color: #ffffff;
    text-decoration: none;
    border-radius: clamp(60px, 4.68vw, 100px);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.p-symptomCta__button:hover {
    background: #D88363;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 180, 159, 0.3);
}


/* ===========================================
   レスポンシブ対応
   =========================================== */

@media (max-width: 960px) {
    .p-symptomCauses {
        padding: clamp(40px, 3.1vw, 60px) clamp(20px, 4vw, 40px);
    }
    .p-symptomCauses__container {
        width: 90%;
        padding: clamp(32px, 2.5vw, 48px) clamp(24px, 2vw, 32px);
    }
    .p-symptomSelfcare__inner {
        padding: clamp(40px, 3.1vw, 60px) clamp(20px, 4vw, 40px);
    }
    .p-symptomSelfcare__itemContent {
        flex-direction: column;
    }
    .p-symptomCta {
        padding: clamp(40px, 3.1vw, 60px) clamp(20px, 4vw, 40px);
    }
    .p-symptomCta__inner {
        flex-direction: column;
        text-align: center;
    }
    .p-symptomCta__button {
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .p-symptomSelfcare__itemHeader {
        flex-direction: column;
        align-items: flex-start;
    }
    .p-symptomSelfcare__itemTitle {
        white-space: normal;
    }
    .p-symptomSelfcare__line {
        width: 100%;
    }
    .p-symptomCta__image img {
        width: 100%;
    }
}


/* ===========================================
   レスポンシブブレイクポイント
   =========================================== */


/* タブレット以下（960px以下） */

@media (max-width: 960px) {
    /* ここに960px以下のスタイルを追加 */
    /* min-widthを無効化（スマホでの左右はみ出し防止） */
    .p-symptomPage,
    .p-symptomSection__inner {
        min-width: auto !important;
    }
}


/* スマートフォン以下（460px以下） */

@media (max-width: 460px) {
    /* ここに460px以下のスタイルを追加 */
    /* min-widthを無効化（スマホでの左右はみ出し防止） */
    .p-symptomPage,
    .p-symptomSection__inner {
        min-width: auto !important;
    }
    .p-symptomCauses__container {
        width: 90%;
        padding: 0;
    }
}


/* =========================================
   symptom causes chat UI
========================================= */

.p-symptomCauses__chat {
    width: 100%;
    display: grid;
    gap: 16px;
}

.p-symptomCauses__chatItem {
    display: grid;
    gap: 10px;
}


/* 共通：行（質問/回答） */

.p-symptomCauses__question,
.p-symptomCauses__answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


/* 相談者：左並び（デフォルトのまま） */

.p-symptomCauses__question {
    justify-content: flex-start;
}


/* スタッフ：右並び（バブル→アイコンの順なので右寄せでOK） */

.p-symptomCauses__answer {
    justify-content: flex-end;
}


/* アイコン */

.p-symptomCauses__avatar {
    flex: 0 0 56px;
    width: 56px;
}

.p-symptomCauses__avatar img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #94B49F;
    display: block;
    background: #FAF9F6;
}


/* 吹き出し（共通） */

.p-symptomCauses__bubble {
    position: relative;
    display: inline-block;
    max-width: 680px;
    padding: 14px 12px;
    border-radius: 12px;
    line-height: 1.7;
    word-break: break-word;
    box-sizing: border-box;
}


/* 質問：背景色 + しっぽ（左向き） */

.p-symptomCauses__bubble--question {
    background: rgba(148, 180, 159, 0.2);
    border: 2px solid;
}


/* しっぽのボーダー部分（外側、少し大きめ） */

.p-symptomCauses__bubble--question::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -20px;
    border: 12px solid transparent;
    border-right: 14px solid currentColor;
    z-index: -1;
}


/* しっぽの塗りつぶし部分（内側、少し小さめ） */

.p-symptomCauses__bubble--question::after {
    content: "";
    position: absolute;
    top: 20px;
    left: -18px;
    border: 10px solid transparent;
    border-right: 10px solid rgba(148, 180, 159, 0.2);
}


/* 回答：背景色 + しっぽ（右向き） */

.p-symptomCauses__bubble--answer {
    background: #FAF9F6;
    color: #94B49F;
}

.p-symptomCauses__bubble--answer::after {
    content: "";
    position: absolute;
    top: 18px;
    right: -18px;
    border: 10px solid transparent;
    border-left: 10px solid #FAF9F6;
}


/* モバイル最適化 */

@media (max-width: 460px) {
    /* 行コンテナを重ね配置の基準にする */
    .p-symptomCauses__question,
    .p-symptomCauses__answer {
        position: relative;
        gap: 0;
    }
    /* アイコン共通（モバイルは吹き出し上に重ねる） */
    .p-symptomCauses__question .p-symptomCauses__avatar,
    .p-symptomCauses__answer .p-symptomCauses__avatar {
        position: absolute;
        width: 56px;
        height: 56px;
        flex: none;
        z-index: 2;
    }
    .p-symptomCauses__question .p-symptomCauses__avatar img,
    .p-symptomCauses__answer .p-symptomCauses__avatar img {
        width: 56px;
        height: 56px;
    }
    /* 吹き出しは横幅いっぱい */
    .p-symptomCauses__bubble {
        max-width: 100%;
        width: 100%;
    }
    /* ===== 質問：アイコンを左上に配置 ===== */
    .p-symptomCauses__question .p-symptomCauses__avatar {
        top: -14px;
        left: 12px;
    }
    /* アイコン分、本文に余白を作る（左上に乗る想定） */
    .p-symptomCauses__bubble--question {
        padding-top: 20px;
        padding-left: 76px;
    }
    /* しっぽ位置をモバイル用に調整（左上アイコンの近く） */
    .p-symptomCauses__bubble--question::before {
        top: 24px;
        left: 38px;
        border-width: 12px;
    }
    .p-symptomCauses__bubble--question::after {
        top: 26px;
        left: 40px;
        border-width: 10px;
        border-right-color: rgba(148, 180, 159, 0.2);
    }
    /* ===== 回答：アイコンを右下に配置 ===== */
    .p-symptomCauses__answer .p-symptomCauses__avatar {
        bottom: -14px;
        right: 12px;
    }
    /* アイコン分、本文に余白を作る（右下に乗る想定） */
    .p-symptomCauses__bubble--answer {
        padding-bottom: 28px;
        padding-right: 76px;
    }
    /* しっぽ位置をモバイル用に調整（右下寄せ） */
    .p-symptomCauses__bubble--answer::after {
        top: auto;
        bottom: 18px;
        right: 44px;
        left: auto;
        border-width: 10px;
        border-left-color: #FAF9F6;
    }
    .p-symptomSelfcare {
        position: relative;
        background-color: none;
        overflow: visible;
        padding: 0;
    }
    .p-symptomSelfcare__itemTitle {
        font-size: clamp(18px, 1.4vw, 32px) !important;
        font-weight: 700 !important;
        color: #94B49F !important;
        white-space: normal !important;
    }
    .p-symptomSelfcare__title {
        font-size: clamp(24px, 2vw, 40px);
        font-weight: 700;
        color: #5A5A5A;
        text-align: center;
        margin-bottom: clamp(16px, 1.25vw, 26px);
    }
    .p-symptomSelfcare__itemHeader {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: clamp(16px, 1.2vw, 24px);
        margin-bottom: 0;
    }
    .p-symptomSelfcare__item {
        padding: 0;
        margin-bottom: clamp(28px, 2.1vw, 40px);
    }
    .p-symptomSelfcare__referencesBlock {
        background: #FAF9F6;
        border-radius: clamp(24px, 1.9vw, 36px);
        padding: clamp(32px, 2.5vw, 48px);
        margin-top: 0;
    }
    .p-priceMenuSection__container {
        width: auto !important;
        min-width: auto !important;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
}