/* 地域別ランディングページ専用CSS */
/* サーチュインクリニック - 地域別NMN/NAD+療法ページ */
/* Version 2.62.0 - 2026-07-15 */
/* レスポンシブデザイン完全対応: 全画面、640px、768px、480px */
/* 修正: 縦線範囲調整、テーブル切れ、NMN位置揃え */

/* ========================================
   Regional Hero Section
======================================== */
.regional-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #234E52 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.regional-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.regional-hero > * {
    position: relative;
    z-index: 1;
}

.regional-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.regional-hero .location-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.regional-hero .access-info {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.95;
}

.regional-hero .access-info i {
    margin: 0 0.5rem;
}

/* ========================================
   Price Section
======================================== */
.price-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 4rem 2rem;
}

.price-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.price-table {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 122, 123, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row:not(.header):hover {
    background-color: rgba(44, 122, 123, 0.02);
}

.price-row.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #234E52 100%);
    color: white;
    font-weight: 600;
}

.price-row .item {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.price-row .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    margin-left: 16px;
}

.price-row.header .item,
.price-row.header .amount {
    color: white;
}

/* ========================================
   Female Doctor Badge (京都院専用)
======================================== */
.female-doctor-badge {
    background: linear-gradient(135deg, #FED7E2 0%, #FBB6CE 100%);
    color: #702459;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 700px;
    box-shadow: 0 4px 15px rgba(251, 182, 206, 0.3);
    border: 2px solid rgba(112, 36, 89, 0.1);
}

.female-doctor-badge i {
    margin-right: 0.5rem;
}

/* ========================================
   Access Section
======================================== */
.access-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.access-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-top: 5px solid var(--accent-color);
}

.access-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.access-card h3 i {
    margin-right: 0.8rem;
    color: var(--accent-color);
}

.station-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.station-badge {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.station-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.2);
}

.station-badge i {
    margin-right: 0.5rem;
}

/* ========================================
   FAQ Section
======================================== */
.faq-section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.faq-section > h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.faq-section > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.faq-question::before {
    content: "Q.";
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-right: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.faq-answer {
    color: #4A5568;
    line-height: 1.8;
    padding-left: 3.5rem;
    font-size: 1rem;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #234E52 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%);
    color: #2C7A7B;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 209, 197, 0.4);
}

.cta-button i {
    font-size: 1.1rem;
}

/* ========================================
   インラインスタイルのレスポンシブ上書き
======================================== */
/* グリッドレイアウトの基本設定（全画面サイズ） */
div[style*="display: grid"][style*="minmax(300px"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

@media (max-width: 640px) {
    div[style*="display: grid"][style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
}

/* NMN療法の仕組み：番号ボックスとテキストの位置揃え（全画面） */
div[style*="display: flex; align-items: start; gap: 16px"] {
    align-items: flex-start !important;
}

div[style*="display: flex; align-items: start; gap: 16px"] > div[style*="width: 48px"] {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
}

div[style*="display: flex; align-items: start; gap: 16px"] > div:last-child {
    flex: 1 !important;
}

div[style*="display: flex; align-items: start; gap: 16px"] h4 {
    margin-top: 0 !important;
}

div[style*="display: flex; align-items: start; gap: 16px"] p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 治療の流れセクションの縦線位置調整 */
div[style*="position: absolute"][style*="left: 36px"][style*="width: 2px"] {
    left: 36px !important;
    top: 36px !important; /* 円の中心（72px / 2） */
    bottom: 36px !important;
}

@media (max-width: 768px) {
    /* モバイルで円が小さくなるので縦線の位置も調整 */
    div[style*="position: absolute"][style*="left: 36px"][style*="width: 2px"] {
        left: 28px !important; /* 56px / 2 = 28px */
        top: 28px !important;
        bottom: 28px !important;
    }
}

@media (max-width: 480px) {
    /* 小画面モバイルでさらに調整 */
    div[style*="position: absolute"][style*="left: 36px"][style*="width: 2px"] {
        left: 24px !important; /* 48px / 2 = 24px */
        top: 24px !important;
        bottom: 24px !important;
    }
}

/* CTAボタンのレスポンシブ対応（全画面サイズ） */
div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] {
    flex-wrap: wrap;
    gap: 16px !important;
}

div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] > a,
div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] > button {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 100%;
}

@media (max-width: 768px) {
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }
    
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] > a,
    div[style*="display: flex"][style*="justify-content: center"][style*="gap: 20px"] > button {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
}

/* STEPセクションのレスポンシブ対応 */
@media (max-width: 768px) {
    /* STEP円形バッジの調整 */
    section [style*="width: 72px"][style*="height: 72px"] {
        width: 56px !important;
        height: 56px !important;
        font-size: 0.9rem !important;
    }
    
    section [style*="width: 72px"][style*="height: 72px"] span:first-child {
        font-size: 0.65rem !important;
    }
    
    section [style*="width: 72px"][style*="height: 72px"] span:last-child {
        font-size: 1.2rem !important;
    }
    
    /* STEPコンテンツボックスの調整 */
    section [style*="display: flex"][style*="gap: 24px"] {
        gap: 16px !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] > div[style*="padding: 24px"] {
        padding: 16px !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] p {
        font-size: 0.9rem !important;
    }
    
    /* 診療時間テーブルのレスポンシブ */
    div[style*="overflow: hidden"] > table,
    table[style*="width: 100%"] {
        font-size: 0.8rem !important;
        min-width: 600px !important;
    }
    
    div[style*="overflow: hidden"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    table[style*="width: 100%"] thead th {
        font-size: 0.7rem !important;
        padding: 10px 6px !important;
        white-space: nowrap !important;
    }
    
    table[style*="width: 100%"] tbody td {
        font-size: 0.8rem !important;
        padding: 12px 6px !important;
        white-space: nowrap !important;
    }
    
    /* テーブル親要素にスクロールヒントを追加 */
    div[style*="overflow-x: auto"]::after {
        content: "← 左右にスクロール →";
        display: block;
        text-align: center;
        font-size: 0.7rem;
        color: #718096;
        margin-top: 8px;
        padding: 4px;
        opacity: 0.8;
        font-weight: 500;
    }
    
    /* グリッドレイアウトのレスポンシブ */
    div[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* グリッド内の要素の幅を確実に制限 */
    div[style*="display: grid"][style*="grid-template-columns"] > * {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* NMN療法の仕組みセクション内の要素 */
    div[style*="display: grid"][style*="grid-template-columns"] div[style*="display: flex"] {
        flex-wrap: nowrap !important;
    }
    
    div[style*="display: grid"][style*="grid-template-columns"] div[style*="width: 48px"] {
        flex-shrink: 0 !important;
    }
    
    /* NMN療法の仕組みの各項目を確実に揃える */
    div[style*="display: flex; align-items: start; gap: 16px"] {
        align-items: flex-start !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] > div:first-child {
        flex-shrink: 0 !important;
        align-self: flex-start !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] > div:last-child {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    /* アクセス情報ボックスの調整 */
    div[style*="background: linear-gradient(135deg, #E6FFFA"][style*="padding: 40px"] {
        padding: 24px !important;
    }
    
    div[style*="background: linear-gradient(135deg, #E6FFFA"] h3,
    div[style*="background: linear-gradient(135deg, #E6FFFA"] h4 {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }
    
    div[style*="background: linear-gradient(135deg, #E6FFFA"] p {
        font-size: 0.95rem !important;
    }
    
    /* セクションパディングの調整 */
    section[style*="padding: 80px 20px"],
    section[style*="padding: 100px 20px"] {
        padding: 48px 16px !important;
    }
    
    /* 大きなテキストの調整 */
    h2[style*="font-size: clamp"] {
        font-size: 1.6rem !important;
    }
    
    /* 特徴カードの調整 */
    div[style*="display: flex"][style*="flex-direction: column"][style*="gap: 24px"] {
        gap: 16px !important;
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .regional-hero {
        padding: 3rem 1.5rem;
    }

    .regional-hero h1 {
        font-size: 1.8rem;
    }

    .regional-hero .location-badge {
        font-size: 1rem;
        padding: 0.4rem 1.2rem;
    }

    .regional-hero .access-info {
        font-size: 1rem;
        line-height: 1.6;
    }

    .price-section {
        padding: 3rem 1rem;
    }

    .price-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }

    .price-row .item {
        font-size: 1rem;
    }

    .price-row .amount {
        font-size: 1.5rem;
        margin-top: 0.3rem;
    }

    .female-doctor-badge {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .access-card {
        padding: 1.5rem;
    }

    .access-card h3 {
        font-size: 1.5rem;
    }

    .station-info {
        gap: 0.8rem;
    }

    .station-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .faq-section {
        padding: 0 1rem;
    }

    .faq-section > h2 {
        font-size: 1.6rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
        flex-direction: column;
    }

    .faq-question::before {
        margin-bottom: 0.5rem;
    }

    .faq-answer {
        padding-left: 0;
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ========================================
   より小さい画面用（480px以下）
======================================== */
@media (max-width: 480px) {
    /* STEP円形バッジをさらに小さく */
    section [style*="width: 72px"][style*="height: 72px"] {
        width: 48px !important;
        height: 48px !important;
    }
    
    /* NMN療法の仕組みの番号ボックス */
    div[style*="width: 48px"][style*="height: 48px"] {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    div[style*="width: 48px"][style*="height: 48px"] span {
        font-size: 1rem !important;
    }
    
    /* NMN療法の仕組みのテキスト調整 */
    div[style*="display: flex; flex-direction: column; gap: 20px"] {
        gap: 12px !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] {
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] > div:first-child {
        margin-top: 0 !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] h4 {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
        margin-top: 0 !important;
    }
    
    div[style*="display: flex; align-items: start; gap: 16px"] p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }
    
    section [style*="width: 72px"][style*="height: 72px"] span:first-child {
        font-size: 0.6rem !important;
    }
    
    section [style*="width: 72px"][style*="height: 72px"] span:last-child {
        font-size: 1rem !important;
    }
    
    /* STEPコンテンツをさらにコンパクトに */
    section [style*="display: flex"][style*="gap: 24px"] {
        gap: 12px !important;
        flex-direction: row !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] > div[style*="padding: 24px"] {
        padding: 12px !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] h3 {
        font-size: 1rem !important;
    }
    
    section [style*="display: flex"][style*="gap: 24px"] p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* テーブルをさらに小さく */
    table[style*="width: 100%"] thead th {
        font-size: 0.65rem !important;
        padding: 8px 4px !important;
    }
    
    table[style*="width: 100%"] tbody td {
        font-size: 0.75rem !important;
        padding: 10px 4px !important;
    }
    
    /* セクションパディングをさらに削減 */
    section[style*="padding: 80px 20px"],
    section[style*="padding: 100px 20px"] {
        padding: 32px 12px !important;
    }
    
    /* 見出しサイズ調整 */
    h2[style*="font-size: clamp"] {
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }
    
    /* アクセス情報ボックス */
    div[style*="background: linear-gradient(135deg, #E6FFFA"][style*="padding: 40px"] {
        padding: 16px !important;
    }
    
    div[style*="background: linear-gradient(135deg, #E6FFFA"] h3 {
        font-size: 1.1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #E6FFFA"] h4 {
        font-size: 1rem !important;
    }
    
    div[style*="background: linear-gradient(135deg, #E6FFFA"] p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    /* 駅情報カードを縦並びに */
    div[style*="display: flex"][style*="flex-direction: column"] > div[style*="background: rgba(255, 255, 255, 0.7)"] {
        padding: 10px 12px !important;
    }
    
    div[style*="display: flex"][style*="flex-direction: column"] > div[style*="background: rgba(255, 255, 255, 0.7)"] p {
        font-size: 0.8rem !important;
    }
}

/* ========================================
   モバイルメニュー初期状態の確実な非表示化
   （地域別ランディングページで確実にメニューを閉じた状態にする）
======================================== */
.mobile-menu-overlay:not(.active) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-menu:not(.active) {
    right: -100% !important;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .regional-hero::before,
    .cta-section::before {
        display: none;
    }

    .cta-button {
        border: 2px solid var(--primary-color);
    }

    .mobile-cta-container,
    #scrollTopBtn {
        display: none !important;
    }
}
