@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    /* Pure White */
    --color-bg-alt: #FAFAFA;
    /* Off White */
    --color-primary: #8E8E8E;
    /* Soft Grey for text */
    --color-text-main: #4F4F4F;
    /* Darker Grey for reading text */
    --color-accent-light: #FCE4EC;
    /* Very pale pink */
    --color-accent: #F8BBD0;
    /* Soft Pink */
    --color-accent-dark: #F06292;
    /* Stronger Pink for buttons/links */
    --color-white: #FFFFFF;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Fonts */
    /* Mincho for headings to give a gentle/elegant feel */
    --font-serif: "Zen Old Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    /* Gothic for body text for readability */
    --font-sans: "Zen Kaku Gothic New", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-main);
}

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

a:hover {
    color: var(--color-accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1480px;
    margin: 0 auto;
}

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

.lh-md {
    line-height: 2.3;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

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

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    border-radius: 30px;
    /* Pillow shape */
    font-size: 1rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 10px rgba(248, 187, 208, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    color: var(--color-white);
    text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-main);
    font-family: var(--font-serif);
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title a:hover {
    color: var(--color-text-main);
}

.header-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.sp-br {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent-dark);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-dark);
    transition: all 0.3s linear;
    border-radius: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg) 0 20px;
    border-top: 5px solid var(--color-accent-light);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-info h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
    /* flex-shrink: 0; */
    object-fit: cover;
}


.footer-info p {
    margin-bottom: var(--spacing-xs);
}

.footer-info a img {
    width: 320px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-primary);
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ==========================================================================
   Main Visual (Top Page)
   ========================================================================== */
.main-visual {
    min-height: calc(100vh - 74px);
    /* Full viewport height minus header */
    background-image: url('../images/top/mv.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align text to left */
}

.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.mv-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: var(--spacing-lg);
}

.mv-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-dark);
    /* Text Shadow for readability if needed, but background overlay handles it */
}

.mv-lead {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-main);
}

/* ==========================================================================
   Page Header (Sub pages)
   ========================================================================== */
.page-header {
    background-color: var(--color-accent-light);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.page-title {
    font-size: 2rem;
    color: var(--color-text-main);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Service Item */
.service-item {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-fast);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.service-icon-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent-light);
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-dark);
    font-size: 1.5rem;
}

/* News List */
.list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
}

.news-date {
    color: var(--color-primary);
    font-size: 0.9rem;
    min-width: 100px;
}

.news-title {
    flex-grow: 1;
}

.news-cat {
    display: inline-block;
    width: 100px;
    text-align: center;
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    padding: 2px 0;
    /* Remove horizontal padding since width is fixed */
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0;
    /* Let flex gap handle spacing */
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* Table */
.clinic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.clinic-table th,
.clinic-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.clinic-table th {
    width: 120px;
    background-color: var(--color-bg-alt);
    font-weight: normal;
    color: var(--color-text-main);
    text-align: center;
}

/* Clinic Info Grid in Footer or Top Page */
.clinic-info-grid {
    display: grid;
    gap: var(--spacing-sm);
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    body {
        max-width: 100%;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .main-visual {
        min-height: calc(100vh - 74px);
        /* Adjust for mobile header */
        background-image: url('../images/top/mv-sp.jpg');
        justify-content: center;
        text-align: center;
    }

    .sp-br {
        display: block;
    }

    .title-text {
        font-size: 1.2rem;
        line-height: 1.3;
        text-align: left;
    }

    .mv-content {
        position: absolute;
        top: 43%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .mv-title {
        font-size: 2rem;
    }

    .mv-lead {
        font-size: 1.1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    /* Mobile News Layout */
    .news-item {
        flex-wrap: wrap;
        gap: var(--spacing-xs) var(--spacing-md);
    }

    .news-title {
        width: 100%;
        margin-top: 4px;
    }

    .news-date {
        min-width: auto;
    }

    /* Mobile News Layout */
    #menopause {
        padding-bottom: 0;
    }

    /* Mobile Footer Layout */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-info h2 {
        font-size: 1.3rem;
        justify-content: center;
    }

    .footer-logo {
        height: 35px;
    }
}

/* ==========================================================================
   New Utilities & Helper Classes (Extracted from Inline Styles)
   ========================================================================== */

/* Spacing */
.mt-sm {
    margin-top: var(--spacing-sm) !important;
}

.mt-md {
    margin-top: var(--spacing-md) !important;
}

.mt-lg {
    margin-top: var(--spacing-lg) !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-xl {
    margin-bottom: var(--spacing-xl) !important;
}

/* Sizing & Shape */
.w-100 {
    width: 100%;
}

.h-200 {
    height: 200px;
}

.h-300 {
    height: 300px;
}

.h-400 {
    height: 400px;
}

.rounded-md {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 10px;
}

.object-cover {
    object-fit: cover;
}

/* Effects */
.shadow-sm {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Typography */
.font-sm {
    font-size: 0.8rem;
}

.font-md {
    font-size: 0.9rem;
}

.font-lg {
    font-size: 1.1rem;
}

.font-xl {
    font-size: 1.2rem;
}

.font-xxl {
    font-size: 1.5rem;
}

.c-accent-dark {
    color: var(--color-accent-dark);
}

.c-text-sub {
    color: #888;
}

.c-text-note {
    color: #666;
}

/* Components */

/* Buttons */
.btn-news {
    background-color: var(--color-primary);
    font-size: 0.9rem;
    padding: 10px 24px;
    box-shadow: none;
}

/* Service Page Alternating Layout */
.section-full-width {
    margin: 0 -5%;
    padding: 40px 5%;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

/* Maps & Placeholders */
.map-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Pagination */
.pagination {
    margin-bottom: 60px;
}

.page-link-item {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
}

.page-link-active {
    background: var(--color-accent-dark);
    color: white;
}

.page-link-inactive {
    background: #eee;
    color: #666;
}

/* Doctor Profile */
.doctor-profile-box {
    background-color: var(--color-bg-alt);
    padding: 20px;
    border-radius: 8px;
}

.doctor-profile-box span {
    font-size: 1.3rem;
}