/* ===================================
   Sapporo International Clinic - Styles
   Minimal & Clean Medical Design
   =================================== */

/* --- CSS Variables --- */
:root {
    --primary: #2B6CB0;
    --primary-dark: #1E4E8C;
    --primary-light: #EBF4FF;
    --primary-soft: #BEE3F8;
    --text-dark: #1A202C;
    --text-body: #4A5568;
    --text-light: #A0AEC0;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --border: #E2E8F0;
    --border-soft: #EDF2F7;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --transition: all 0.25s ease;
    --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en), var(--font-jp);
    color: var(--text-body);
    line-height: 1.8;
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-divider {
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto 16px;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-jp);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-soft {
    background: var(--primary-light);
    color: var(--primary);
    border-color: transparent;
}

.btn-soft:hover {
    background: var(--primary-soft);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--primary-light);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 0.95rem;
}

/* --- Header --- */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    line-height: 1;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.logo-sub {
    font-family: var(--font-en);
    font-size: 0.6rem;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-list {
    display: flex;
    gap: 0;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.header-cta {
    font-size: 0.82rem;
    padding: 8px 20px;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: 8px;
}

.lang-switcher a {
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
}

.lang-switcher a:hover,
.lang-switcher .lang-active {
    color: var(--primary);
    background: var(--primary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Collage Section --- */
/* --- Hero Collage --- */
.hero-collage {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.collage-title {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    color: var(--primary);
    text-align: center;
    padding: 52px 20px 36px;
    letter-spacing: 6px;
    margin: 0;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: 240px 16px 160px;
    gap: 0;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

.collage-item {
    overflow: hidden;
    position: relative;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Row 1: skiing (small left) | house call (LARGE center) | online consultation (medium right) */
.collage-item--1 {
    grid-column: 1 / 6;
    grid-row: 1 / 2;
    clip-path: polygon(0 0, 95% 0, 75% 100%, 0 100%);
}

.collage-item--2 {
    grid-column: 6 / 15;
    grid-row: 1 / 2;
    clip-path: polygon(5% 0, 97% 0, 92% 100%, 0 100%);
    z-index: 1;
}

.collage-item--4 {
    grid-column: 15 / 21;
    grid-row: 1 / 2;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 5% 100%);
}

/* Row 2: accent strip */
.collage-accent--1 {
    grid-column: 1 / 21;
    grid-row: 2 / 3;
    background: linear-gradient(90deg, var(--primary-soft) 0%, var(--primary) 35%, #5BA3D9 65%, var(--primary-soft) 100%);
    opacity: 0.5;
}

/* Row 3: susukino (left) | TV tower (center) | sapporo park (right) — smaller/subtler */
.collage-item--3 {
    grid-column: 2 / 8;
    grid-row: 3 / 4;
    clip-path: polygon(0 0, 95% 0, 78% 100%, 0 100%);
}

.collage-item--5 {
    grid-column: 8 / 15;
    grid-row: 3 / 4;
    clip-path: polygon(8% 0, 95% 0, 88% 100%, 0 100%);
    z-index: 1;
}

.collage-item--6 {
    grid-column: 15 / 21;
    grid-row: 3 / 4;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 5% 100%);
}

/* Accent strips */
.collage-accent {
    z-index: 0;
}

.collage-accent--2 {
    display: none;
}

.collage-accent--3 {
    display: none;
}

.collage-cta {
    text-align: center;
    padding: 52px 20px 60px;
    background: #fff;
}

.collage-cta .hero-subtitle {
    font-family: var(--font-en);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.collage-cta .hero-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .collage-title {
        font-size: 1.1rem;
        padding: 28px 16px 20px;
        letter-spacing: 2px;
    }
    .collage-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 140px 6px 110px;
        gap: 4px;
        padding: 0 16px;
        max-width: 100%;
    }
    .collage-item { border-radius: 4px; }
    .collage-item--1 { grid-column: 1 / 2; grid-row: 1; clip-path: none; }
    .collage-item--2 { grid-column: 2 / 3; grid-row: 1; clip-path: none; }
    .collage-item--3 { grid-column: 1 / 2; grid-row: 3; clip-path: none; }
    .collage-item--4 { grid-column: 2 / 3; grid-row: 3; clip-path: none; }
    .collage-item--5 { display: none; }
    .collage-item--6 { display: none; }
    .collage-accent { display: none !important; }
    .collage-cta { padding: 24px 16px 32px; }
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.service-card {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}

.service-body {
    padding: 24px;
}

.service-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-body p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* --- About Brief Section --- */
.about-brief {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
}

.about-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.about-text > p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-features {
    margin-bottom: 28px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 6px 0;
}

.about-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* --- News Section --- */
.news {
    padding: 64px 0;
    background: var(--bg-white);
}

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

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
    border-radius: var(--radius);
}

.news-item:first-child {
    border-top: 1px solid var(--border-soft);
}

.news-item:hover {
    background: var(--bg-light);
}

.news-date {
    font-family: var(--font-en);
    font-size: 0.82rem;
    color: var(--text-light);
    flex-shrink: 0;
    font-weight: 500;
}

.news-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.tag-info {
    background: var(--primary-light);
    color: var(--primary);
}

.tag-important {
    background: #FED7D7;
    color: #C53030;
}

.news-title {
    font-size: 0.88rem;
    color: var(--text-body);
}

/* --- CTA Section --- */
.cta-section {
    padding: 64px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-soft);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: #2D3748;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-logo .logo-main {
    color: #fff;
    font-size: 0.88rem;
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.4);
}

.footer-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 18px;
}

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

.footer-col ul li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-col ul li a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px !important;
}

.footer-contact li i {
    color: var(--primary-soft);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.footer-contact li a {
    color: rgba(255,255,255,0.45);
}

.footer-contact li a:hover {
    color: rgba(255,255,255,0.9);
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a,
.footer-links span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

.footer-links a:hover {
    color: rgba(255,255,255,0.6);
}

/* --- Mobile Bottom Bar --- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    z-index: 998;
}

.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.mobile-bottom-bar .mobile-phone {
    color: var(--primary);
}

.mobile-bottom-bar .mobile-book {
    background: var(--primary);
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .header-cta { display: none; }
    .lang-switcher { display: none; }

    .hamburger { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-md);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 24px 30px;
        overflow-y: auto;
    }

    .nav.active { right: 0; }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--border-soft);
        font-size: 0.95rem;
        border-radius: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

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

    .services { padding: 56px 0; }

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

    .about-brief { padding: 56px 0; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-text {
        text-align: center;
    }

    .about-features li {
        justify-content: center;
    }

    .about-text .btn {
        width: 100%;
    }

    .news { padding: 48px 0; }

    .news-item {
        flex-wrap: wrap;
        gap: 6px;
        padding: 14px 12px;
    }

    .cta-section { padding: 48px 0; }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    .footer {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .service-image {
        height: 180px;
    }
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}
