/* アクセシビリティとSEO向上のためのスタイル */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス時の視覚的な表示を改善 */
a:focus, button:focus, [tabindex]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* CSS変数の定義 */
:root {
    --primary-color: #66cdaa;
    --secondary-color: #5bb89a;
    --dark-primary: #4a9d85;
    --text-primary: #333;
    --text-secondary: #555;
    --text-light: #666;
    --text-accent: #2c3e50;
    --text-muted: #2c5f5d;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --lighter-gray: #fafafa;
    
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 50px;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(102, 205, 170, 0.1);
    --shadow-lg: 0 8px 25px rgba(102, 205, 170, 0.15);
    --shadow-xl: 0 10px 30px rgba(102, 205, 170, 0.15);
    --shadow-2xl: 0 15px 40px rgba(102, 205, 170, 0.15);
    
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-dark: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-primary) 100%);
    --gradient-background: linear-gradient(135deg, #f8fafb 0%, #e8f4f8 100%);
}

body {
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background: var(--gradient-background);
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* 背景パーティクルエフェクト */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(102, 205, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 205, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 205, 170, 0.05) 0%, transparent 50%);
    animation: floatParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatParticles {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        opacity: 0.4;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

/* スクロール時のアニメーション効果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* パララックス効果用要素 */
.parallax-element {
    will-change: transform;
    transform: translateZ(0);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-dark);
}

main {
    width: 100%;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--secondary-color);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

header nav ul li {
    cursor: pointer;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid transparent;
}

header nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

header nav ul li.active {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}
  
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
.logo-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.logo-img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.tel {
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
    color: white;
}

/* 診療科目・診療時間などのテキスト */
.other {
    padding-left: 50px;
}

.other h2 {
    padding-left: 30px;
    margin-top: 2rem;
}

.other h2:first-child {
    margin-top: 0;
    padding-top: 2rem;
}

.other ul,
.other p {
    margin-left: 30px;
}

.other li {
    margin-bottom: 10px;
}

/* テーブル（診療時間） */
table {
    width: 80%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 2rem auto;
    margin-left: 80px;
    margin-right: 50px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 205, 170, 0.2);
}

table th {
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

table tr:hover {
    background-color: rgba(102, 205, 170, 0.05);
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

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

/* 初診の方へ - シンプル版 */
.first-visit-intro {
    background: linear-gradient(135deg, #f0f9f6 0%, #e8f4f0 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0 30px 0;
    border-left: 5px solid #66cdaa;
    box-shadow: 0 4px 15px rgba(102, 205, 170, 0.08);
}

.first-visit-intro p:first-child {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

.first-visit-intro p:last-child {
    margin: 0;
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
}

/* カードグリッド */
.visit-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
    padding-right: 20px;
}

/* 4番目と5番目のカードを下段に配置 - 上段と同じ幅に */
.visit-card:nth-child(4),
.visit-card:nth-child(5) {
    grid-column: span 1;
}

/* 4番目のカードを左寄せで上段と同じ幅に */
.visit-card:nth-child(4) {
    grid-column: 1 / 2;
    margin: 0;
}

/* 5番目のカードを中央に配置し上段と同じ幅に */
.visit-card:nth-child(5) {
    grid-column: 2 / 3;
    margin: 0;
}

.visit-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.15);
    border: 2px solid rgba(102, 205, 170, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #66cdaa, #5bb89a);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.visit-card:hover::before {
    transform: scaleX(1);
}

.visit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(102, 205, 170, 0.25);
    border-color: rgba(102, 205, 170, 0.3);
}

.visit-icon {
    font-size: 36px;
    margin-bottom: 20px;
    display: block;
    color: #66cdaa;
    text-align: center;
    filter: drop-shadow(0 3px 6px rgba(102, 205, 170, 0.3));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.visit-card:hover .visit-icon {
    transform: scale(1.1) rotate(5deg);
}

.visit-card h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

.visit-card p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .visit-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding-right: 15px;
    }
    
    /* タブレットサイズでは2×2＋1の配置 */
    .visit-card:nth-child(4),
    .visit-card:nth-child(5) {
        grid-column: span 1;
        margin: 0;
    }
    
    .visit-card:nth-child(5) {
        grid-column: 1 / 3;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* スマホ・タブレット画面では<br>タグを無効化 */
    .visit-card p br {
        display: none;
    }
    
    .first-visit-intro {
        padding: 18px 20px;
        margin: 15px 0 25px 0;
    }
    
    .first-visit-intro p:first-child {
        font-size: 16px;
    }
    
    .first-visit-intro p:last-child {
        font-size: 14px;
    }
    
    .visit-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 25px 0;
        padding-right: 10px;
    }
    
    /* モバイルでは1列配置なので特別な設定をリセット */
    .visit-card:nth-child(4),
    .visit-card:nth-child(5) {
        grid-column: span 1;
        margin: 0;
        max-width: none;
    }
    
    .visit-card {
        padding: 25px 20px;
        min-height: 180px;
    }
    
    .visit-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .visit-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .visit-card p {
        font-size: 14px;
    }
}

/* より狭いスマホ画面用の追加スタイル */
@media (max-width: 480px) {
    /* スマホ画面では<br>タグを無効化して自然な改行にする */
    .visit-card p br {
        display: none;
    }
    
    .visit-card {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .visit-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .visit-card p {
        font-size: 13px;
        line-height: 1.6;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .visit-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }
}

/* 極狭スマホ画面用（320px以下） */
@media (max-width: 320px) {
    /* 極狭画面でも<br>タグを無効化 */
    .visit-card p br {
        display: none;
    }
    
    .visit-card {
        padding: 18px 12px;
        min-height: 150px;
    }
    
    .visit-card h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .visit-card p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .visit-icon {
        font-size: 26px;
        margin-bottom: 10px;
    }
}

/* お問い合わせセクション */
.contact-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #ffffff;
    border-radius: 15px;
    margin: 2rem 50px 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 205, 170, 0.15);
}

.contact-section h2 {
    color: #2c5f5d;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-section p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* お問い合わせボタン */
.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.3);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 205, 170, 0.4);
}

.contact-button:active {
    transform: translateY(-1px);
}

/* 優先診察のお知らせ（モダンなUI） */
.priority-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #f8fdff 0%, #e6f7ff 100%);
    border: 2px solid rgba(102, 205, 170, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 2rem 50px 2rem 30px;
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.priority-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
}

.priority-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 205, 170, 0.15);
}

.priority-notice-icon {
    font-size: 24px;
    color: #66cdaa;
    margin-top: 2px;
    flex-shrink: 0;
}

.priority-notice-content {
    flex: 1;
}

.priority-notice-content p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 8px 0;
    padding-left: 0;
}

.priority-notice-content p:last-child {
    margin-bottom: 0;
}

.priority-notice-content strong {
    color: #2c5f5d;
    font-weight: 600;
}

/* タブ切り替え */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.6s ease-out forwards;
}

@keyframes fadeInTab {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    padding-left: 30px;
    font-size: 24px;
    color: #2c3e50;
    position: relative;
    margin-bottom: 2rem;
    font-weight: 600;
    display: inline-block;
}

.tab-content h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: calc(100% + 20px);
    height: 4px;
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    border-radius: 2px;
    transform: translateX(-50%);
}

.tab-content p,
.tab-content li {
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.8;
}

/* スライドの設定 */
.swiper-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    filter: brightness(0.7);
}

/* スライド内のキャプション */
.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.slide-caption h2 {
    font-size: 36px;
    margin: 0;
    color: white;
}

.slide-caption p {
    font-size: 18px;
    margin-top: 10px;
    color: white;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* 半透明の白 */
    z-index: 1; /* キャプションの下、画像の上に配置 */
}

/* 院長紹介 */
.director {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    margin-top: 20px;
}

.director img {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.director-education {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
    padding-left: 0;
}

/* 院長から一言セクション */
.director-message {
    background: #ffffff;
    border: 1px solid rgba(102, 205, 170, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 50px;
    box-shadow: 0 10px 30px rgba(102, 205, 170, 0.1);
    border-left: 5px solid #66cdaa;
    transition: all 0.3s ease;
}

.director-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 205, 170, 0.15);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.message-header h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.message-icon {
    font-size: 24px;
    color: #66cdaa;
}

.message-content {
    text-align: left;
    line-height: 1.8;
}

.message-content p {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 100px;
}

.message-signature {
    text-align: right;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid rgba(102, 205, 170, 0.2);
}

.message-signature span {
    color: #66cdaa;
    font-weight: 600;
    font-style: italic;
}

/* 施設紹介 */
.facility-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.facility1, .facility2 {
    width: 45%;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(102, 205, 170, 0.15);
    transition: transform 0.3s ease;
}

.facility1:hover, .facility2:hover {
    transform: translateY(-5px);
}

.facility1 img, .facility2 img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.facility1 img:hover, .facility2 img:hover {
    transform: scale(1.02);
}

/* Googleマップ */
#map {
    width: 100%;
    height: 300px;
    margin-top: 20px;
}

#map iframe {
    display: block;
    margin: 0 auto;
}

/* 症状別案内 */
.symptoms-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 30px 50px;
    padding: 0;
}

.symptom-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.15);
    border: 1px solid rgba(102, 205, 170, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.symptom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #66cdaa, #5bb89a);
    border-radius: 20px 20px 0 0;
}

.symptom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 205, 170, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.symptom-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 205, 170, 0.1);
}

.symptom-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 205, 170, 0.3);
    flex-shrink: 0;
}

.symptom-header h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.symptom-content {
    line-height: 1.8;
}

.symptom-quote {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4f1f4 100%);
    border-left: 4px solid #66cdaa;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-style: italic;
    color: #2c5f5d;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.symptom-quote::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 40px;
    color: #66cdaa;
    line-height: 1;
}

.symptom-quote::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 15px;
    font-size: 40px;
    color: #66cdaa;
    line-height: 1;
}

.symptom-content p {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 0;
}

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

.symptom-content strong {
    color: #2c5f5d;
    font-weight: 600;
    background: linear-gradient(135deg, #e8f4f8 0%, transparent 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 診察のご案内セクション */
.consultation-notice {
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 50px;
    box-shadow: 0 10px 30px rgba(102, 205, 170, 0.3);
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.consultation-notice::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: floatLight 6s ease-in-out infinite;
}

@keyframes floatLight {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -10px) rotate(180deg); }
}

.notice-icon {
    font-size: 60px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.notice-content h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notice-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 25px 0;
    padding-left: 0;
}

.consultation-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.consultation-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* リハビリ機器の説明 */
.rehab-section {
    text-align: center;
}

.rehab-facility {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rehab-main-image {
    max-width: 80%;
}

.rehab-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.rehab-notes {
    margin-top: 2rem;
}

.rehab-notes p {
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.rehab-card {
    background: #ffffff;
    border: 1px solid rgba(102, 205, 170, 0.2);
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    box-shadow: 0 8px 25px rgba(102, 205, 170, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.rehab-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #66cdaa 0%, #5bb89a 100%);
    border-radius: 15px 15px 0 0;
}

.rehab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 205, 170, 0.2);
}

.rehab-card h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.rehab-card p {
    font-size: 14px;
    margin-bottom: 5px;
    padding-left: 5px;
}

.rehab-card .symptom-title {
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 15px;
    padding-left: 5px;
}

.rehab-card .symptom-list {
    margin: 10px 0;
    padding-left: 80px;
    list-style-type: disc;
    text-align: left;
}

.rehab-card .symptom-list li {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.5;
    text-align: left;
    padding-left: 0;
    margin-left: -10px;
}
  
/* アクセス情報 */
.access-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 50px;
    box-shadow: 0 10px 30px rgba(102, 205, 170, 0.15);
    border: 1px solid rgba(102, 205, 170, 0.1);
}

.access-section {
    margin-bottom: 30px;
}

.access-section:last-child {
    margin-bottom: 0;
}

.access-section h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 12px 0;
    border-bottom: 2px solid rgba(102, 205, 170, 0.2);
}

.access-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-section li {
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 8px;
    padding: 8px 0;
}

.access-section li:last-child {
    margin-bottom: 0;
}

.access-section li strong {
    color: #2c5f5d;
    font-weight: 600;
}

/* フッター */
footer {
    text-align: center;
    padding: 10px;
}

.tel {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/*スマホ画面用*/
@media screen and (max-width: 768px) {
    body {
        font-size: 14px !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .swiper-container {
        width: 100%;
        overflow: hidden;
    }

    .swiper-slide {
        width: 100%;
        overflow: hidden;
    }

    p, li {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: left;
    }

    .tab-content h2 {
        text-align: center !important;
        padding-left: 0 !important;
        display: inline-block;
        width: auto;
        margin: 0 auto 2rem auto;
    }
    
    /* 診療案内とアクセスタブのタイトルに左padding */
    #about h2,
    #access h2,
    #symptoms h2 {
        text-align: left !important;
        padding-left: 20px !important;
        display: inline-block !important;
        width: auto !important;
        margin: 0 0 2rem 20px !important;
    }
    
    /* 診療案内とアクセスタブのタイトルのアンダーラインを調整 */
    #about h2:after,
    #access h2:after,
    #symptoms h2:after {
        width: calc(100% + 20px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tab-content h2:after {
        width: calc(100% + 20px);
        left: 50%;
        transform: translateX(-50%);
    }

    .tab-content p,
    .tab-content li {
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
        font-weight: normal !important;
    }

    table td, table th {
        font-size: 12px !important;
    }

    .rehab-card p,
    .rehab-card li {
        font-size: 13px !important;
    }
    
    header {
      flex-direction: column;
      align-items: flex-start;
    }

    /*ロゴ*/
    .logo {
        flex-direction: column;
        align-items: flex-start;
      }
    
      .logo-text h1 {
        font-size: 18px !important;
      }
    
      .tel {
        font-size: 13px !important;
      }

    header nav ul {
      flex-direction: column;
      gap: 0.5rem;
      padding: 0;
      margin-top: 1rem;
    }
    
    .logo-img {
        height: 60px;
        width: 60px;
    }
  
    /*リハビリタイトルとテキストサイズ調整 */
    #rihab h2 {
        font-size: 18px !important;
        text-align: center;
        margin-bottom: 10px;
    }
  
    .rehab-card h3 {
        font-size: 16px !important;
        font-weight: bold !important;
    }
  
    .rehab-card p,
    .symptom-title,
    .symptom-list li {
        font-size: 13px !important;
    }
  
    .rehab-container {
      flex-direction: column;
      align-items: center;
    }
  
    .rehab-card {
      width: 90%;
    }
    
    /* スマホでリハビリカード内を中央寄せ */
    .rehab-card p,
    .rehab-card .symptom-title {
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .rehab-card .symptom-list {
        text-align: left !important;
        padding-left: 70px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        list-style-type: disc !important;
    }
    
    .rehab-card .symptom-list li {
        text-align: left !important;
        margin-bottom: 8px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
  
    .facility-gallery {
      flex-direction: column;
      align-items: center;
    }
  
    .facility1, .facility2 {
      width: 90%;
    }

    .director img {
        max-width: 200px !important;
    }
    
    /* 院長から一言セクション（スマホ版） */
    .director-message {
        margin: 30px 20px !important;
        padding: 20px !important;
    }
    
    .message-header h3 {
        font-size: 18px !important;
        text-align: center !important;
    }
    
    .message-content p {
        font-size: 14px !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .message-signature {
        text-align: center !important;
    }
  
    table {
      width: 90%;
      max-width: 100%;
      margin: 1rem auto;
      font-size: 12px !important;
    }
  
    .slide-caption h2 {
      font-size: 24px !important;
      color: white !important;
    }
  
    .slide-caption p {
      font-size: 14px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      max-width: 90% !important;
      margin: 0 auto !important;
      color: white !important;
    }

    .other {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .other h2 {
        padding-left: 0;
        text-align: center;
    }
    
    .other ul,
    .other p {
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 診療の流れ（スマホ版） */
    .flow-container {
        margin: 20px 15px;
        gap: 15px;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .flow-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .flow-content h3 {
        font-size: 16px !important;
        text-align: center !important;
    }
    
    .flow-content p {
        font-size: 13px !important;
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .access-container {
        margin: 20px;
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .access-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .access-card h3 {
        font-size: 18px;
        margin: 0 0 15px 0;
        padding: 8px 15px;
    }
    
    .access-card li {
        font-size: 14px;
        padding: 10px 15px;
        margin-bottom: 8px;
    }

    /* 症状別案内（スマホ版） */
    .symptoms-container {
        margin: 20px;
        gap: 20px;
    }
    
    .symptom-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .symptom-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .symptom-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
        margin: 0 auto;
    }
    
    .symptom-header h3 {
        font-size: 20px;
        text-align: center;
    }
    
    .symptom-quote {
        padding: 15px 20px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .symptom-quote::before,
    .symptom-quote::after {
        font-size: 30px;
    }
    
    .symptom-content p {
        font-size: 14px !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .consultation-notice {
        margin: 30px 20px;
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .notice-icon {
        font-size: 48px;
    }
    
    .notice-content h3 {
        font-size: 20px;
        text-align: center;
    }
    
    .notice-content p {
        font-size: 14px !important;
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .consultation-button {
        padding: 12px 25px;
        font-size: 15px;
    }

    footer {
        text-align: center !important;
        padding: 10px;
        width: 100% !important;
        margin: 0 auto !important;
    }

    footer p {
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }

    /* お問い合わせセクション（スマホ版） */
    .contact-section {
        margin: 2rem 20px !important;
        padding: 2rem 15px !important;
        text-align: center !important;
        width: calc(100% - 40px) !important;
        box-sizing: border-box !important;
    }
    
    .contact-section h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-section p {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .contact-button {
        display: block !important;
        width: 80% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        text-align: center !important;
    }

    /* 優先診察のお知らせ（スマホ版） */
    .priority-notice {
        margin: 2rem 20px !important;
        padding: 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .priority-notice-icon {
        font-size: 28px !important;
        margin: 0 auto !important;
    }
    
    .priority-notice-content p {
        font-size: 15px !important;
        text-align: center !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 10px !important;
    }
  }
