/* =============================================
   Pattern 18: Medical Clean
   Clarity Clinic — 品質向上版
   ============================================= */

:root {
    --c-ice: #E8F4FD;
    --c-blue: #2196F3;
    --c-blue-dark: #1565C0;
    --c-blue-deep: #0D47A1;
    --c-white: #ffffff;
    --c-text: #333333;
    --c-text-light: #666666;
    --c-bg: #F8FBFF;

    --f-main: "Noto Sans JP", "Inter", "Hiragino Kaku Gothic ProN", sans-serif;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.8;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.08);
    transition: box-shadow 0.3s;
}

.header--scrolled {
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.15);
}

.header-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== ロゴ ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-cross {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-white);
    background: var(--c-blue);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 1;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--c-blue-dark);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--c-text-light);
    margin-left: -3px;
}

/* ===== ナビ ===== */
.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--c-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-blue);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--c-blue);
}

.nav-cta {
    background: var(--c-blue) !important;
    color: var(--c-white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--c-blue-dark) !important;
}

/* ===== ヒーロー ===== */
.hero {
    padding-top: 100px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--c-ice) 0%, var(--c-white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--c-ice);
    border: 1px solid rgba(33, 150, 243, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--c-blue-dark);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-blue-dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--c-text-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15);
}

.hero-visual img {
    width: 100%;
    display: block;
    transition: transform 0.6s;
}

.hero-visual:hover img {
    transform: scale(1.03);
}

/* ===== ボタン ===== */
.btn-medical {
    display: inline-block;
    padding: 14px 35px;
    background: var(--c-blue);
    color: var(--c-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-medical:hover {
    background: var(--c-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

.btn-medical--outline {
    background: transparent;
    color: var(--c-blue);
    border: 2px solid var(--c-blue);
}

.btn-medical--outline:hover {
    background: var(--c-blue);
    color: var(--c-white);
}

.btn-medical--white {
    background: var(--c-white);
    color: var(--c-blue-dark);
}

.btn-medical--white:hover {
    background: var(--c-ice);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.btn-medical--outline-white {
    background: transparent;
    color: var(--c-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-medical--outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--c-white);
}

/* ===== インフォバー ===== */
.info-bar {
    background: var(--c-blue);
    color: var(--c-white);
    padding: 15px 0;
}

.info-bar .container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.info-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== セクション ===== */
.section {
    padding: 80px 0;
}

.section--light {
    background: var(--c-white);
}

.section--blue {
    background: linear-gradient(135deg, var(--c-blue-dark) 0%, var(--c-blue-deep) 100%);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--c-blue-dark);
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--c-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.title-en {
    display: block;
    font-size: 0.85rem;
    color: var(--c-blue);
    letter-spacing: 0.15em;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    margin-top: 5px;
    opacity: 0.8;
}

.section-title--light {
    color: var(--c-white);
}

.section-title--light::after {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== About ===== */
.about-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-body {
    padding: 40px;
}

.about-body h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--c-blue-dark);
}

.about-body p {
    font-size: 0.95rem;
    line-height: 2;
}

.doctor-name {
    margin-top: 20px;
    font-size: 0.85rem !important;
    color: var(--c-text-light);
}

/* --- 実績数字 --- */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--c-white);
    border-radius: var(--radius);
    border: 1px solid var(--c-ice);
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--c-blue);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.1);
    transform: translateY(-3px);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-blue);
    line-height: 1.2;
    font-family: "Inter", sans-serif;
}

.feature-label {
    font-size: 0.85rem;
    color: var(--c-text-light);
    margin-top: 5px;
}

/* ===== 写真帯 ===== */
.photo-band {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.8) 0%, rgba(33, 150, 243, 0.6) 100%);
}

.band-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.band-quote {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.band-cite {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

/* ===== サービスカード（写真付き） ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--c-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-ice);
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--c-blue);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.1);
    transform: translateY(-3px);
}

.service-img {
    height: 180px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-body {
    padding: 25px;
}

.service-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--c-blue-dark);
}

.service-body p {
    font-size: 0.85rem;
    color: var(--c-text-light);
}

/* ===== 院内紹介ギャラリー ===== */
.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.facility-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.facility-item--large {
    grid-row: 1 / 3;
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.facility-item:hover img {
    transform: scale(1.05);
}

.facility-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--c-white);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Access ===== */
.access-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--c-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid var(--c-ice);
}

.access-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background: var(--c-ice);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--c-blue);
}

/* ===== コンタクト ===== */
.contact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FAQ ── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--c-white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.05);
    border-left: 4px solid var(--c-blue);
}

.faq-q {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-blue-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-q::before {
    content: 'Q';
    color: var(--c-blue);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

.faq-a {
    color: var(--c-text);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-a::before {
    content: 'A';
    color: var(--c-blue-dark);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

/* ===== フッター ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--c-white);
    border-top: 1px solid var(--c-ice);
}

.footer .logo {
    justify-content: center;
    margin-bottom: 10px;
}

.footer p {
    font-size: 0.75rem;
    color: var(--c-text-light);
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim.anim-up {
    transform: translateY(40px);
}

.anim.anim-left {
    transform: translateX(-40px);
}

.anim.anim-right {
    transform: translateX(40px);
}

.anim.anim-scale {
    transform: scale(0.95);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.anim-delay-1 {
    transition-delay: 0.15s;
}

.anim-delay-2 {
    transition-delay: 0.3s;
}

.anim-delay-3 {
    transition-delay: 0.45s;
}

/* ヒーローテキストアニメーション */
.anim-hero-text {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-hero-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .about-body {
        padding: 25px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .facility-grid {
        grid-template-columns: 1fr;
    }

    .facility-item--large {
        grid-row: auto;
    }

    .access-card {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .band-quote {
        font-size: 1.3rem;
    }

    .photo-band {
        height: 280px;
    }
}