/* ================================
   共通スタイル
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4FC3F7;
    --secondary-color: #81C784;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'YuGothic', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0288D1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #66BB6A);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.4);
}

/* ================================
   ヘッダー
   ================================ */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s;
}

header.scrolled {
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* ================================
   ヒーローセクション
   ================================ */
.hero {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.9), rgba(129, 199, 132, 0.8)),
                url('../images/hero.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 180px 0 120px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s 0.4s both;
}

/* ================================
   特徴セクション
   ================================ */
.features {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ================================
   診療内容
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px;
    text-align: center;
    font-size: 3rem;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ================================
   強みセクション
   ================================ */
.strengths {
    background: var(--light-gray);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.strength-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

.strength-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ================================
   院長紹介
   ================================ */
.director {
    background: var(--white);
}

.director-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.director-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.director-image img {
    width: 100%;
    height: auto;
    display: block;
}

.director-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.director-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.director-credentials {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.director-credentials h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.director-credentials ul {
    list-style: none;
    padding-left: 0;
}

.director-credentials li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.director-credentials li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* ================================
   院内紹介
   ================================ */
.facility {
    background: var(--light-gray);
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.facility-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.facility-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-item-content {
    padding: 25px;
}

.facility-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ================================
   治療の流れ
   ================================ */
.flow {
    background: var(--white);
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ================================
   患者様の声
   ================================ */
.testimonials {
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-text {
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ================================
   料金案内
   ================================ */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-list {
    list-style: none;
    margin: 20px 0;
}

.pricing-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.pricing-note {
    margin-top: 30px;
    padding: 20px;
    background: #E3F2FD;
    border-radius: 10px;
    color: var(--text-color);
}

/* ================================
   よくある質問
   ================================ */
.faq {
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 25px;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ================================
   アクセス
   ================================ */
.access {
    background: var(--white);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.access-info {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hours-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.hours-table th,
.hours-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.hours-table th {
    background: var(--primary-color);
    color: var(--white);
}

.access-map {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   予約セクション
   ================================ */
.reservation {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.reservation h2 {
    color: var(--white);
}

.reservation h2::after {
    background: var(--white);
}

.reservation p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

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

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ================================
   フッター
   ================================ */
footer {
    background: #263238;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   アニメーション
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* ================================
   レスポンシブデザイン
   ================================ */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    nav li {
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .menu-toggle {
        display: block;
    }

    .director-content,
    .access-content {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .services-grid,
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .flow-step {
        flex-direction: column;
    }

    section {
        padding: 50px 0;
    }

    .access-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .feature-card,
    .service-card,
    .strength-item {
        padding: 25px 20px;
    }
}
