/* EDクリニック専用カラー変数 */
:root {
    --ed-primary: #1e88e5;
    --ed-secondary: #0d47a1;
    --ed-accent: #00acc1;
    --ed-light: #e3f2fd;
    --ed-gray: #546e7a;
    --ed-success: #43a047;
    --ed-warning: #fb8c00;
}

/* ヒーローセクション */
.ed-hero-section {
    padding: 80px 0;
    border-bottom: 3px solid var(--ed-primary);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    color: var(--ed-secondary);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--ed-gray);
    margin-bottom: 30px;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.point-item {
    background: white;
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid var(--ed-primary);
    color: var(--ed-primary);
    font-weight: 600;
}

/* インフォセクション */
.ed-info-section {
    padding: 60px 0;
    background: white;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-card:hover {
    border-color: var(--ed-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    color: var(--ed-secondary);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--ed-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* 統計セクション */
.ed-stats-section {
    background: var(--ed-secondary);
    padding: 40px 0;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-box {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* 都道府県セクション */
.ed-prefecture-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: var(--ed-secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ed-primary);
}

.region-group {
    margin-bottom: 40px;
}

.region-label {
    background: var(--ed-light);
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    color: var(--ed-secondary);
    font-size: 18px;
    margin-bottom: 20px;
}

.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.prefecture-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.prefecture-card:hover {
    background: var(--ed-light);
    border-color: var(--ed-primary);
}

.pref-name {
    color: var(--ed-secondary);
    font-weight: 500;
}

.pref-count {
    background: var(--ed-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* 知識セクション */
.ed-knowledge-section {
    background: #fafafa;
    padding: 60px 0;
}

.knowledge-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.knowledge-box h3 {
    color: var(--ed-primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.knowledge-box ul {
    list-style: none;
    padding: 0;
}

.knowledge-box li {
    padding: 8px 0;
    color: var(--ed-gray);
}

.drug-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.drug-table th {
    background: var(--ed-light);
    padding: 10px;
    text-align: left;
    color: var(--ed-secondary);
}

.drug-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--ed-gray);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .knowledge-container {
        grid-template-columns: 1fr;
    }
    
    .prefecture-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.ed-hero-section {
    padding: 40px 0;
    color: white;
}

.hero-container {
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.point-item {
    background: rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 都道府県セクション */
.ed-prefecture-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

.region-group {
    margin-bottom: 35px;
}

.region-label {
    background: #2c3e50;
    color: white;
    padding: 8px 20px;
    display: inline-block;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.prefecture-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.prefecture-card:hover {
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.prefecture-card:hover .pref-name {
    color: white;
}

.prefecture-card:hover .pref-count {
    background: white;
    color: #3498db;
}

.pref-name {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.pref-count {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 統計セクション */
.ed-stats-section {
    background: #2c3e50;
    padding: 40px 0;
    margin: 40px 0;
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-box {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
    color: #3498db;
}

.stat-label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

/* ED完全ガイドセクション */
.ed-complete-guide {
    padding: 60px 0;
}

.guide-block {
    margin-bottom: 50px;
}

.guide-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

/* 症状レベル */
.symptom-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.level-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.level-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-badge.mild {
    background: #d4edda;
    color: #155724;
}

.level-badge.moderate {
    background: #fff3cd;
    color: #856404;
}

.level-badge.severe {
    background: #f8d7da;
    color: #721c24;
}

.level-card p {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.level-card ul {
    list-style: none;
    padding: 0;
}

.level-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #495057;
    font-size: 14px;
}

.level-card li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: #3498db;
}

/* 年代別ガイド */
.age-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.age-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.age-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.age-content p {
    margin-bottom: 10px;
    color: #495057;
}

.age-content strong {
    color: #2c3e50;
}

.age-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.age-content li {
    color: #6c757d;
    padding: 3px 0;
}

/* 治療薬比較 */
.drug-comparison-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.drug-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.drug-name {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.drug-name.viagra {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.drug-name.levitra {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.drug-name.cialis {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.drug-details {
    padding: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row .label {
    font-weight: 600;
    color: #495057;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.pros h5, .cons h5 {
    font-size: 14px;
    margin-bottom: 10px;
}

.pros h5 {
    color: #28a745;
}

.cons h5 {
    color: #dc3545;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    font-size: 13px;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc3545;
}

/* 治療の流れ */
.treatment-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.flow-step {
    background: white;
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.step-number {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.flow-step h4 {
    color: #2c3e50;
    margin: 10px 0;
}

.flow-step p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
}

.time {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

/* 費用テーブル */
.cost-guide {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.cost-guide h4 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.cost-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
}

.cost-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.cost-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.cost-table tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq-list {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #3498db;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 15px;
    color: #495057;
    line-height: 1.6;
}

/* 警告ブロック */
.warning-block {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 25px;
}

.warning-block .guide-title {
    color: #dc3545;
    border-left-color: #dc3545;
}

.warning-item {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.warning-item.critical {
    border-left: 4px solid #dc3545;
}

.warning-item h4 {
    color: #dc3545;
    margin-bottom: 10px;
}

.warning-item ul {
    list-style: none;
    padding: 0;
}

.warning-item li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.warning-item li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #dc3545;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .prefecture-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    
    .symptom-levels,
    .age-guide,
    .drug-comparison-detail,
    .treatment-flow {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .stats-wrapper {
        flex-direction: column;
        align-items: center;
    }
}