@charset "UTF-8";

/* ==========================================================================
   トップページ（index.html）専用スタイル
   ※ヘッダー・フッター・ボタンなどは common.css にあります
   ========================================================================== */

/* ---------- 共通セクション ---------- */
.section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 70px 20px 0;
}

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 12px;
    position: relative;
}

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

/* 3列グリッド */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    text-align: center;
}

.card p {
    margin-top: 14px;
    font-weight: 500;
}

/* 写真の共通設定（枠いっぱいにトリミングして表示） */
.photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ---------- メインビジュアル ---------- */
.main-visual {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0) 70%),
        url("img/hero.jpg") center / cover no-repeat;
}

.main-visual-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    min-height: 480px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-visual h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.1em;
    border-left: 6px solid var(--orange);
    padding-left: 20px;
}

.main-visual-sub {
    margin-top: 24px;
    font-weight: 700;
    color: var(--orange-dark);
}

.main-visual-tel {
    font-size: 20px;
    font-weight: 700;
}

/* ---------- 来院予約エリア ---------- */
.reservation-box {
    max-width: 800px;
    margin: 70px auto 0;
    padding: 35px 20px;
    text-align: center;
    background-color: var(--orange-light);
    border: 3px solid var(--orange);
}

.reservation-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--orange-dark);
}

.reservation-box .sub-text {
    font-size: 14px;
    color: #555555;
    margin: 12px 0 24px;
}

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

.about-img,
.about-text {
    flex: 1;
}

.about-img .photo {
    height: 300px;
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 6px solid var(--orange);
    padding-left: 14px;
}

.about-text p {
    font-size: 15px;
    margin-bottom: 15px;
}

/* ---------- こんなお悩みありませんか？ ---------- */
.trouble-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #ffffff;
    border: 1px solid var(--line);
    padding: 10px;
}

/* ---------- 患者様の声（カルーセル） ---------- */
.carousel-container {
    position: relative;
    padding: 0 56px; /* 左右の矢印ボタンの分のすき間 */
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-stage {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.voice-card {
    flex: 0 0 calc((100% - 40px) / 3); /* PCは3枚並び（すき間20px×2を引く） */
    background-color: #ffffff;
    border: 1px solid var(--line);
    padding: 15px;
}

.voice-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.voice-info p {
    font-size: 13px;
    margin-bottom: 5px;
}

.voice-info .name {
    font-size: 15px;
    font-weight: 700;
}

.voice-info .comment {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    background-color: var(--orange);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.carousel-btn:hover {
    background-color: var(--text);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ---------- アクセス ---------- */
.access-flex {
    display: flex;
    gap: 40px;
}

.access-map {
    flex: 2;
    min-width: 0;
}

.map-responsive {
    width: 100%;
    height: 340px;
    background-color: #e6e6e6;
}

.map-responsive iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.access-info {
    flex: 1;
}

.access-info .photo {
    height: 180px;
}

.info-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.access-info .desc {
    margin-top: 12px;
    font-size: 15px;
}

/* ==========================================================================
   スマホ
   ========================================================================== */
@media (max-width: 768px) {
    .section {
        padding: 56px 16px 0;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* お悩みは2列でコンパクトに */
    .grid-3.troubles {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .trouble-img {
        height: 130px;
    }

    .main-visual {
        background:
            linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
            url("img/hero.jpg") center / cover no-repeat;
    }

    .main-visual-inner {
        min-height: 360px;
        padding: 40px 16px;
    }

    .main-visual h1 {
        font-size: 26px;
    }

    .reservation-box {
        margin: 56px 16px 0;
        padding: 28px 16px;
    }

    .reservation-title {
        font-size: 18px;
    }

    .about-flex,
    .access-flex {
        flex-direction: column;
        gap: 24px;
    }

    .about-img,
    .access-info {
        width: 100%;
    }

    .photo,
    .about-img .photo {
        height: 220px;
    }

    .carousel-container {
        padding: 0 48px;
    }

    .voice-card {
        flex: 0 0 100%; /* スマホは1枚ずつ */
    }

    .map-responsive {
        height: 260px;
    }
}
