/* ========================================
   症状ページ専用スタイル
   ======================================== */

/* スマホ横スクロール防止 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ページヘッダー（パンくず＋タイトル） */
.symptom-page-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 140px 0 60px;
    overflow: hidden;
    max-width: 100%;
}

.symptom-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/treatment-back.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.symptom-page-header .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb .separator {
    opacity: 0.6;
}

.breadcrumb .current {
    color: var(--color-accent);
    font-weight: 600;
}

.symptom-hero-label {
    display: inline-block;
    font-family: var(--font-mincho);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.symptom-hero-title {
    font-family: var(--font-mincho);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.symptom-hero-sub {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 720px;
}

/* チェックリスト（こんな症状ありませんか？） */
.symptom-checklist {
    background: var(--color-bg);
    padding: 80px 0;
}

.checklist-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--color-accent);
}

.checklist-title {
    font-family: var(--font-mincho);
    font-size: clamp(22px, 3.5vw, 30px);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.checklist-title strong {
    color: var(--color-accent-dark, #c89800);
    background: linear-gradient(transparent 60%, rgba(245, 197, 24, 0.3) 60%);
    padding: 0 4px;
}

.check-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 30px;
}

.check-items li {
    position: relative;
    padding: 12px 12px 12px 40px;
    border-bottom: 1px dashed var(--color-border);
    font-size: 15px;
    line-height: 1.6;
}

.check-items li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 8px;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 700px) {
    .checklist-box { padding: 30px 20px; }
    .check-items { grid-template-columns: 1fr; }
}

/* コンテンツセクション共通 */
.symptom-content {
    padding: 80px 0;
}

.symptom-content.alt {
    background: var(--color-bg);
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block + .content-block {
    margin-top: 60px;
}

.content-heading {
    font-family: var(--font-mincho);
    font-size: clamp(22px, 3.5vw, 30px);
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--color-primary);
    position: relative;
}

.content-heading::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
}

.content-sub-heading {
    font-family: var(--font-mincho);
    font-size: 20px;
    color: var(--color-primary);
    margin: 32px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--color-accent);
}

.content-block p {
    font-size: 16px;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.content-block .lead {
    font-size: 17px;
    font-weight: 500;
}

/* 原因リスト */
.cause-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.cause-card {
    background: white;
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.symptom-content.alt .cause-card {
    background: var(--color-bg);
}

.cause-card .cause-num {
    display: inline-block;
    font-family: var(--font-mincho);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.cause-card h4 {
    font-family: var(--font-mincho);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.cause-card p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* 施術案内ボックス */
.treatment-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-top: 24px;
}

.symptom-content.alt .treatment-info-box {
    background: white;
}

.treatment-info-box img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media (max-width: 768px) {
    .treatment-info-box {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
}

/* CTAバナー */
.symptom-cta {
    background: linear-gradient(135deg, var(--color-primary-dark, #136a9e), var(--color-primary));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.symptom-cta h3 {
    font-family: var(--font-mincho);
    font-size: clamp(24px, 4vw, 34px);
    margin-bottom: 16px;
}

.symptom-cta p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 240px;
}

.cta-buttons .btn-tel {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.cta-buttons .btn-line {
    background: #06c755;
    color: white;
    border-color: #06c755;
}

.cta-buttons .btn-line:hover {
    background: #04a544;
    border-color: #04a544;
}

/* 関連症状ナビ */
.related-symptoms {
    padding: 70px 0;
    background: white;
}

.related-symptoms .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-bg);
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.related-card:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-card i {
    font-size: 20px;
    color: var(--color-primary);
    transition: var(--transition);
}

.related-card:hover i {
    color: var(--color-accent);
}

.related-card .label {
    font-size: 14px;
    font-weight: 600;
}

/* 症状一覧ページ */
.symptoms-index {
    padding: 80px 0;
    background: var(--color-bg);
}

.symptoms-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.sym-index-card {
    display: block;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sym-index-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sym-index-card .thumb {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--color-primary);
}

.sym-index-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sym-index-card:hover .thumb img {
    transform: scale(1.08);
}

.sym-index-card .thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 56px;
    background: linear-gradient(135deg, rgba(28, 128, 196, 0.65), rgba(19, 106, 158, 0.65));
}

.sym-index-card .body {
    padding: 22px 22px 24px;
}

.sym-index-card h3 {
    font-family: var(--font-mincho);
    font-size: 19px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.sym-index-card p {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.sym-index-card .more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-accent-dark, #c89800);
    font-weight: 700;
}

/* ========================================
   症状ページ モバイル表示の調整
   ======================================== */
@media (max-width: 768px) {
    .symptom-page-header { padding: 110px 0 50px; }
    .symptom-hero-title {
        font-size: clamp(22px, 6.5vw, 30px);
        line-height: 1.45;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-break: strict;
    }
    .symptom-hero-sub { font-size: 13px; line-height: 1.9; }
    .symptom-hero-sub br,
    .checklist-title br,
    .content-block p br,
    .symptom-cta p br { display: none; }
    br.sp-only { display: inline; }

    .symptom-checklist { padding: 50px 0; }
    .checklist-title { font-size: 19px; line-height: 1.5; }
    .check-items li { font-size: 13px; padding-left: 36px; }

    .symptom-content { padding: 50px 0; }
    .content-heading {
        font-size: 20px;
        line-height: 1.5;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    .content-sub-heading { font-size: 16px; line-height: 1.5; }
    .content-block p { font-size: 13.5px; line-height: 1.95; }
    .content-block .lead { font-size: 14px; }

    .cause-card h4 { font-size: 16px; }
    .cause-card p { font-size: 13px; }

    .symptom-cta { padding: 60px 0; }
    .symptom-cta h3 { font-size: 22px; line-height: 1.5; }
    .symptom-cta p { font-size: 13px; line-height: 1.9; }

    .related-symptoms { padding: 50px 0; }
    .related-card .label { font-size: 13px; }

    .symptoms-index { padding: 50px 0; }
    .sym-index-card h3 { font-size: 16px; }
    .sym-index-card p { font-size: 12px; line-height: 1.7; }
}

@media (max-width: 480px) {
    .symptom-hero-title { font-size: 22px; }
    .checklist-title { font-size: 17px; }
    .content-heading { font-size: 18px; }
    .content-sub-heading { font-size: 15px; }
    .symptom-cta h3 { font-size: 19px; }
}
