:root {
    /* カラーパレット (白ベース + 北欧グリーン) */
    --color-bg: #FFFFFF; /* ベース: クリアな白 */
    --color-bg-alt: #F4F8F5; /* セクション差分用の淡いグリーン */
    --color-text: #2F3531; /* 落ち着いたダークグレー */
    --color-primary: #2E6B57; /* 深いフォレストグリーン */
    --color-accent: #5FA98A; /* 北欧グリーンのアクセント */
    --color-warm: #D8E6DD; /* 淡いミントグレー */
    --color-white: #FFFFFF;
    
    /* フォント */
    --font-main: 'Noto Sans JP', sans-serif;
    
    /* その他 */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* リセット & 基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: var(--border-radius);
}

/* 共通クラス */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
    opacity: 0.6;
}

.btn {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(46, 107, 87, 0.2);
    text-align: center;
    letter-spacing: 0.05em;
}

.btn:hover {
    background-color: #245643;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 107, 87, 0.3);
}

/* アニメーション用クラス */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.header-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--color-accent);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item .nav-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.nav-item .nav-btn::after {
    display: none;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 6px 0;
    transition: 0.4s;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #FFFFFF 0%, #ECF3EF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 0;
    position: relative;
    overflow: hidden;
}

/* 背景装飾（幾何学的な円） */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 45vw;
    height: 45vw;
    background-color: rgba(95, 169, 138, 0.08); /* アクセントカラーの薄い版 */
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 35vw;
    height: 35vw;
    background-color: rgba(46, 107, 87, 0.08); /* グリーンの薄い版 */
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    display: block;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 32px;
    color: var(--color-text);
    font-weight: 500;
}

.hero-title span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-top: 16px;
    color: var(--color-primary);
}

.hero-desc {
    font-size: 1rem;
    margin-bottom: 48px;
    color: #5d5d5d;
}

/* 当院について */
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.about-text p {
    margin-bottom: 24px;
    text-align: justify;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 350px;
    background-color: #F0F0F0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.dummy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #E4ECE7; /* グレイッシュグリーンのプレースホルダー */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E6B57;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 診療案内 */
.bg-alt {
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #E1E8E4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    border-color: transparent;
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-bg-alt);
    padding-bottom: 10px;
    display: inline-block;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: left;
    position: relative;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.step-num {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: #666;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.hours-table th, .hours-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #E1E8E4;
    font-size: 0.95rem;
}

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

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

.hours-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.circle {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: #ddd;
}

/* 医師紹介 */
.doctor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.doctor-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #E4ECE7;
    margin-bottom: 30px;
    overflow: hidden;
    border: 4px solid var(--color-bg-alt);
}

.doctor-name {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.doctor-title {
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* 特徴・内装 */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: left;
}

.feature-img-box {
    height: 220px;
    background-color: #E4ECE7;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E6B57;
    font-weight: 500;
}

.feature-item h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* ご予約 CTA */
.reservation-cta {
    background-color: #ECF3EF;
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #E1E8E4;
}

.reservation-cta h2 {
    margin-bottom: 24px;
}

/* アクセス */
.access-info {
    text-align: center;
    margin-bottom: 40px;
}

.map-box {
    width: 100%;
    height: 350px;
    background-color: #E8EFEC;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* FAQ */
.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    border: 1px solid #E1E8E4;
}

.faq-q {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.faq-q::before {
    content: 'Q.';
    margin-right: 12px;
    color: var(--color-accent);
}

.faq-a {
    padding-left: 30px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* お問い合わせフォーム */
.form-box {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid #E1E8E4;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #d3ded8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F9FBFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #FFFFFF;
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    background-color: var(--color-primary);
}

.btn-submit:hover {
    background-color: #245643;
}

/* フッター */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: block;
    letter-spacing: 0.05em;
}

.footer-nav {
    margin-bottom: 40px;
}

.footer-nav a {
    margin: 0 15px;
    font-size: 0.9rem;
    color: #D7E6DD;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    font-size: 0.8rem;
    color: #E4EFE9;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background-color: #FFFFFF;
        flex-direction: column;
        padding: 40px;
        box-shadow: -5px 0 10px rgba(0,0,0,0.05);
        transition: 0.4s;
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title span {
        font-size: 2.2rem;
    }
    
    .step {
        width: 100%;
    }
    
    .form-box {
        padding: 30px 20px;
    }

    .hours-table {
        display: inline-table;
        min-width: 600px;
    }

    .hours-table th, .hours-table td {
        padding: 12px;
        font-size: 0.85rem;
    }

    .scroll-hint {
        display: block;
    }
}

.scroll-hint {
    display: none;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
    margin-top: 8px;
}
