@charset "UTF-8";

/* Variables */
:root {
    --color-text: #4a3940;
    --color-primary: #f27480;
    --color-primary-text: #f4616f;
    --color-white: #ffffff;
    --color-bg-gray: #ebecee;
    --color-border-card: #d7d0cb;
    --color-scroll-track: #eae6de;
    --color-scroll-thumb: #fdbbc1;
    --color-blue-btn: #4d9ede;
    --color-gray-label: #a38b95;
    
    --color-feature-bg-pink: #fdf1f4;
    --color-feature-border-pink: #fdbbc1;
    --color-feature-bg-orange: #fdf4f1;
    --color-feature-border-orange: #ffd5ca;
    --color-number-pink: #ff8f9a;

    --color-menu-obstetrics-bg: #ffe5e7;
    --color-menu-gynecology-bg: #efe6d7;
    --color-menu-gynecology-text: #9e8e73;

    --color-category-other: #9e8e73;

    --font-base: 'Zen Maru Gothic', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;
    
    --base-size: 16px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
    height: 92px;
    display: flex;
    justify-content: center;
}

.header__inner {
    width: 100%;
    padding: 0 40px; /* Padding for smaller screens */
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .header__inner {
        padding: 0 20px;
    }
}

.header__logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

@media (max-width: 768px) {
    .header__logo {
        left: 20px;
    }
}

.header__logo-link {
    display: block;
}

.header__logo-img {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .header__logo-img {
        height: 40px;
    }
}

.header__nav {
    margin-right: 100px;
    display: none;
}

@media (min-width: 1025px) {
    .header__nav {
        display: block;
    }
}

body.is-menu-open .header__nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list__link {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--color-text);
}

.hamburger {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .hamburger {
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

.hamburger__img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: min(90vh, 98vw * 0.468);
    overflow: hidden;
}

.hero__bg-shape {
    display: none;
}

.hero__image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    width: 98vw;
    height: min(90vh, 98vw * 0.468);
    max-width: none;
    border-bottom-left-radius: 20px;
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 20px;
    overflow: hidden;
}

.swiper-slide {
    overflow: hidden;
}

.hero__image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: scale(1);
    border-bottom-left-radius: 20px;
}

@keyframes zoomUp {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .hero__image-wrapper {
        position: relative;
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 1240 / 580;
        margin-top: 92px;
    }
}

.hero__content {
    position: absolute;
    top: 55%;
    left: 9vw;
    transform: translateY(-50%);
    z-index: 10;
    width: 40vw;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero__content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        transform: none;
        padding: 40px 20px;
        text-align: center;
    }
}

.hero__title {
    font-size: 2.8vw; 
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 1.5rem;
    }
}

.hero__title .text-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.hero__description {
    font-size: 1.7vw;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .hero__description {
        font-size: 1rem;
    }
}

.hero__text-line {
    margin-bottom: 0.5rem;
}

.hero__description .text-highlight {
    color: var(--color-primary);
    font-weight: 700;
}

.hero__decoration {
    position: absolute;
    bottom: 50px;
    left: 0vw;
    width: 25.5vw;
    max-width: none;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero__decoration {
        position: relative;
        bottom: auto;
        left: auto;
        width: 50%;
        margin: 0 auto;
        margin-top: 20px;
    }
}

/* Notice */
.notice {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 40px;
    margin-top: 80px;
    position: relative;
    z-index: 20;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .notice {
        padding: 0 20px;
        margin-top: 40px;
    }
}

.notice__container {
    width: 100%;
    max-width: 960px;
    height: 280px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border-card);
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 64px 64px 0 64px;
}

@media (max-width: 1024px) {
    .notice__container {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        padding: 30px 20px;
        gap: 30px;
    }
}

.notice__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: auto;
    flex-shrink: 0;
    margin-right: 0;
}

@media (max-width: 1024px) {
    .notice__header {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.notice__title {
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
    line-height: 1.4;
}

.notice__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
    .notice__link {
        font-size: 0.875rem;
    }
}

.notice__link-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.notice__list-wrapper {
    width: 678px;
    flex-shrink: 0;
    height: 152px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--color-scroll-thumb) var(--color-scroll-track);
    margin-left: 0;
    padding-right: 0;
}

@media (max-width: 1024px) {
    .notice__list-wrapper {
        width: 100%;
        height: 200px;
    }
}

.notice__list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.notice__list-wrapper::-webkit-scrollbar-track {
    background: var(--color-scroll-track);
    border-radius: 2px;
}

.notice__list-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-scroll-thumb);
    border-radius: 2px;
    min-height: 40px;
}

.notice__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 24px; 
    width: 100%; 
}

.notice__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: none;
    background-image: radial-gradient(circle, #d7d0cb 20%, transparent 20%);
    background-position: bottom;
    background-size: 8px 2px;
    background-repeat: repeat-x;
}

@media (max-width: 768px) {
    .notice__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.notice__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.notice__date {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
}

.notice__category {
    font-family: var(--font-jp);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: 3px 12px 5px;
    border-radius: 12.5px;
    line-height: 1.2;
}

.notice__text {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Greeting */
.greeting {
    width: 100%;
    padding: 0 24px; /* Updated padding */
    margin-bottom: 120px;
    display: flex;
    justify-content: center;
}



.greeting__container {
    width: calc(100% - 70px); /* Updated from 40px */
    max-width: 1000px;
    display: flex;
    justify-content: flex-end;
    gap: 85px;
    position: relative;
    margin: 0 auto;
    left: 40px;
}

@media (max-width: 1024px) {
    .greeting__container {
        width: 100%; /* Restore full width */
        flex-direction: column-reverse; /* Updated to column-reverse */
        gap: 60px;
        left: 0; /* Reset horizontal shift */
    }
}

.greeting__left {
    width: auto;
    flex: 1;
    max-width: 455px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
}

@media (max-width: 1024px) {
    .greeting__left {
        width: 100%;
        max-width: none;
        padding-top: 0;
    }
}

.greeting__label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.greeting__label-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.greeting__label-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray-label);
}

.greeting__title {
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .greeting__title {
        font-size: 1.25rem;
        white-space: normal;
    }
}

.greeting__title .text-highlight {
    color: var(--color-primary-text);
    font-weight: 700;
}

.greeting__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
}

.greeting__p {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    font-weight: 500;
}

.greeting__p .text-highlight {
    color: var(--color-primary-text);
    font-weight: 700;
}

.greeting__p .font-normal {
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 50px;
    background-color: var(--color-blue-btn);
    border-radius: 35px;
    position: relative;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.07em;
    overflow: hidden;
}

.btn-primary__text {
    position: relative;
    z-index: 1;
}

.btn-primary__icon-wrapper {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: transparent; 
}

.btn-primary__icon {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .btn-primary {
        margin: auto;
    }
}

.greeting__right {
    flex: 1;
    max-width: 435px;
    position: relative;
    flex-shrink: 1;
}

@media (max-width: 1024px) {
    .greeting__right {
        width: 100%;
        max-width: none; /* Added max-width: none */
        margin-top: 40px;
    }
}

.greeting__image-group {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.greeting__image-box {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .greeting__image-box {
        width: 100%;
        max-width: none;
    }
}

.greeting__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature */
.feature {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
    padding: 0 8px; /* Added padding */
}

.feature__container {
    width: 100%;
    max-width: 1200px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border-card);
    border-radius: 20px;
    padding: 80px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

@media (max-width: 1024px) {
    .feature__container {
        padding: 60px 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .feature__container {
        padding: 40px 20px;
    }
}

.feature__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .feature__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.feature__title-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.feature__label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature__label-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray-label);
}

.feature__label-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.feature__title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.5;
    color: var(--color-text);
}

.feature__intro {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    width: auto;
    max-width: 747px;
    margin-top: 15px;
}

.feature__intro .text-highlight {
    color: var(--color-primary-text);
    font-weight: 600;
}

.feature__grid-top {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .feature__grid-top {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card--large {
    border: 2px solid;
    padding-bottom: 30px;
}

.feature-card--pink {
    background-color: var(--color-feature-bg-pink);
    border-color: var(--color-feature-border-pink);
}

.feature-card--orange {
    background-color: var(--color-feature-bg-orange);
    border-color: var(--color-feature-border-orange);
}

.feature-card__image-area {
    position: relative;
    width: 100%;
    height: auto;
}

.feature-card__image {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
}

.feature-card__number {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--color-number-pink);
    line-height: 1;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
    z-index: 10;
}

.feature-card--large .feature-card__number {
    left: auto;
    right: 40px;
    transform: none;
    bottom: -28px;
}

.feature-card__content {
    padding: 40px 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    flex-grow: 1;
}

.feature-card__title {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.feature-card__title .text-highlight {
    font-weight: 700;
    color: var(--color-primary-text);
}

.feature-card__text {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.feature-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-primary-text);
    font-size: 1rem;
    margin-top: auto;
    align-self: flex-end;
}

.feature-card__link-icon {
    width: 20px;
    height: 20px;
}

.feature__grid-bottom {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .feature__grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .feature__grid-bottom {
        grid-template-columns: 1fr;
    }
}

.feature-card--small .feature-card__image {
    border-radius: 10px;
}

.feature-card--small .feature-card__number {
    font-size: 1.5rem;
    bottom: -12px;
    left: auto;
    right: 20px;
    transform: none;
}

.feature-card--small .feature-card__content {
    padding: 20px 0 0;
    align-items: center;
    text-align: center;
}

.feature-card--small .feature-card__text {
    font-size: 1rem;
    text-align: left;
}

.feature__btn {
    width: 300px;
}

/* Menu */
.menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 120px;
    padding: 0 24px; /* Updated padding */
}



.menu__header {
    width: 100%;
    max-width: 1120px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 60px;
    padding-left: 80px; /* Added padding */
}

@media (max-width: 768px) {
    .menu__header {
        flex-direction: column;
        gap: 20px;
        padding-left: 0; /* Reset padding */
    }
}

.menu__title-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu__label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu__label-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.menu__label-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray-label);
}

.menu__title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.menu__intro {
    font-family: var(--font-jp);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
    margin-top: 15px;
}

.menu__tab-container {
    width: 100%;
    max-width: 1120px;
    margin-bottom: 60px;
}

.menu__tabs {
    display: flex;
    gap: 0; /* Tabs touch each other or precise positioning */
    /* Design shows tabs spread but content container matches width. */
    /* Tabs are left aligned or centered? Design has them centered relative to content. */
    width: 100%;
    justify-content: center;
    /* Design: Tabs are 200-300px wide each? */
    margin-bottom: -2px; /* Overlap container border if any, but here bg extends */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .menu__tabs {
        justify-content: flex-start;
    }
}

.menu__tab {
    width: 200px; /* Approx */
    height: 60px;
    border-radius: 15px 15px 0 0;
    border: none;
    font-family: var(--font-base);
    font-size: 1.375rem; /* 22px */
    font-weight: 700;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text */
    gap: 0;
    cursor: pointer;
    position: relative;
}

@media (max-width: 768px) {
    .menu__tab {
        width: 130px;
        height: 40px;
        font-size: 1rem; /* Adjust font size for smaller tab */
        justify-content: flex-start; /* Added */
        padding-left: 16px; /* Added */
    }
}

.menu__tab--obstetrics {
    background-color: var(--color-menu-obstetrics-bg);
    color: var(--color-primary-text);
}

.menu__tab--gynecology {
    background-color: var(--color-menu-gynecology-bg);
    color: var(--color-menu-gynecology-text);
    margin-left: 20px; /* Gap between tabs? Design 255:5560 node layout */
}

@media (max-width: 768px) {
    .menu__tab--gynecology {
        margin-left: 10px;
    }
}

.menu__tab-arrow {
    width: 20px;
    height: 20px;
    display: block;
    transform: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu__content {
    width: 100%;
    background-color: var(--color-menu-obstetrics-bg); /* Match active tab */
    border-radius: 20px;
    /* If tabs are on top, we might need different radius for top-left/right if tabs attach there.
       Design shows rounded corners all around, tabs sitting on top.
    */
    padding: 60px 40px;
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .menu__content {
        padding: 32px 24px;
        border-top-left-radius: 0;
        /* border-top-right-radius: 0; Removed per instruction */
    }
}

.menu__card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .menu__card-list {
        grid-template-columns: 1fr;
        gap: 16px; /* Updated gap */
    }
}

.menu-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: transform 0.3s;
    height: 168px;
    min-height: auto;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card--event {
    background-color: #ffa8a9;
    overflow: hidden;
    padding: 0;
    align-items: center;
}

.menu-card__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.menu-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary-text);
    letter-spacing: 0.1em;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0;
}

.menu-card__arrow {
    width: 16px;
    height: 16px;
    margin-top: 5px;
    position: absolute;
    bottom: 20px;
}

.menu-card:not(.menu-card--event) {
    padding-bottom: 40px;
}

.menu-card--event .menu-card__arrow {
    bottom: 10px;
    right: 10px;
    position: absolute;
    margin: 0;
}

.menu-card__arrow--white {
    /* filter: brightness(0) invert(1); Removed */
}

.menu-card__balloon--image {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.menu-card__balloon-bg {
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.menu-card__balloon-text {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
    padding: 8px 15px 12px;
}

.menu-card__balloon--top-right {
    width: 192px;
    left: auto;
    right: 10px;
    top: -22px;
    transform: none;
}

.menu-card__balloon--top-right .menu-card__balloon-text {
    font-size: 0.8125rem;
    padding: 10px 10px 14px;
}

.menu-card__balloon--white {
    width: 149px;
    top: 61px;
    left: 20px;
    transform: none;
}

.menu-card__balloon--white .menu-card__balloon-text {
    color: var(--color-primary-text);
    font-size: 0.8125rem;
    padding: 8px 10px 10px;
}

.menu-card__bg-flower {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    z-index: 0;
}

.menu-card__bg-flower img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
}

.menu-card__text-group {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 20px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    text-align: left;
}

.menu-card__title-large {
    font-size: 1.3125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.menu__banners {
    width: 100%;
    max-width: 878px;
    display: grid;
    grid-template-columns: 1fr 362px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .menu__banners {
        grid-template-columns: 1fr;
    }
}

.banner {
    overflow: hidden;
    position: relative;
    display: block;
    height: 160px;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .banner {
        height: auto;
        margin-bottom: 0;
    }
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .banner__image {
        object-fit: contain;
    }
}

.banner__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

/* Doctor */
.doctor {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .doctor {
        padding: 0 20px;
    }
}

.doctor__container {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.doctor__header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.doctor__title-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor__label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctor__label-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.doctor__label-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray-label);
}

.doctor__title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.doctor__content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

@media (max-width: 1024px) {
    .doctor__content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

.doctor__image-area {
    width: 500px;
    height: 549px;
    position: relative;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    margin-top: 46px; /* Push down to align with design relative to card */
}

@media (max-width: 1024px) {
    .doctor__image-area {
        width: 100%;
        height: auto;
        aspect-ratio: 500/549;
        margin-top: 0;
    }
}

.doctor__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Gradient at bottom of image */
.doctor__image-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Approximate */
    background: linear-gradient(to bottom, rgba(242,247,250,0), #f2f7fa);
    z-index: 2;
    pointer-events: none;
}

.doctor__info-card {
    width: 500px;
    background-color: var(--color-white);
    border: 2px solid var(--color-border-card);
    border-radius: 15px;
    padding: 60px 40px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    /* Overlap adjustments */
    margin-left: -40px; /* Overlap left by 40px */
    margin-top: 0; /* Align top (image is pushed down) */
    z-index: 5;
    flex-shrink: 0; /* Prevent shrinking */
}

@media (max-width: 1024px) {
    .doctor__info-card {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }
}

.doctor__balloon {
    position: absolute;
    top: -32px;
    right: -20px;
    width: 226px;
    height: 80px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor__balloon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.doctor__balloon-text {
    position: relative;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-white);
    text-align: center;
    line-height: 1.2;
    padding-bottom: 8px;
    letter-spacing: 0.05em;
}

.doctor__profile {
    width: 100%;
    margin-bottom: 10px;
}

.doctor__role {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary-text);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.doctor__name {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 1.375rem;
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.doctor__name-en {
    font-size: 1rem;
    color: var(--color-gray-label);
    margin-left: 10px;
}

.doctor__cert-list {
    list-style: none;
    font-family: var(--font-jp);
    font-size: 0.875rem;
    color: var(--color-gray-label);
    font-weight: 500;
    line-height: 1.6;
}

.doctor__desc {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 20px;
}

.doctor__desc p {
    margin-bottom: 1rem;
}

.doctor__btn {
    width: 100%;
    max-width: 300px;
    align-self: center;
}

/* Column */
.column {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 120px;
    padding: 0 40px;
    overflow: hidden; /* Prevent overflow */
}

@media (max-width: 768px) {
    .column {
        padding: 0 20px;
    }
}

.column__container {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.column__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 768px) {
    .column__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

.column__header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 500px) {
    .column__header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.column__title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-text);
    margin-right: 0;
    line-height: 1;
}

.column__link {
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-primary-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.1em;
}

.column__link-icon {
    width: 20px;
    height: 20px;
}

.column__nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.column-button-prev,
.column-button-next {
    width: 30px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-button-prev img,
.column-button-next img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.column-button-prev {
    transform: none;
}

.column-button-next {
    transform: rotate(180deg);
}

.columnSwiper {
    width: 100%;
    overflow: visible;
}

.column-card {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
}

.column-card__image {
    width: 100%;
    aspect-ratio: 304/170;
    border-radius: 10px;
    overflow: hidden;
}

.column-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.column-card:hover .column-card__image img {
    transform: scale(1.05);
}

.column-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.column-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
}

.column-card__text {
    font-family: var(--font-jp);
    font-size: 0.8125rem;
    color: var(--color-gray-label);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.column-card__category {
    background-color: var(--color-category-other);
    color: var(--color-white);
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1;
}

.column-card__date {
    font-family: var(--font-en);
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Access Section */
.access {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 180px; /* Updated from 120px */
    padding: 0 40px;
}

@media (max-width: 768px) {
    .access {
        padding: 0 20px;
    }
}

.access__container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.access__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

@media (max-width: 1024px) {
    .access__row {
        flex-direction: column;
        gap: 60px;
    }
}

.access__col-left {
    width: 100%;
    max-width: 526px;
}

.access__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text);
    line-height: 1.6;
}

.access__desc {
    font-family: var(--font-jp);
    font-size: 0.875rem;
    color: var(--color-gray-label);
    line-height: 1.6;
    margin-top: 15px;
}

.access__info-area {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

@media (max-width: 500px) {
    .access__info-area {
        flex-direction: column;
        align-items: flex-start;
    }
}

.access__address-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.access__address {
    font-family: var(--font-jp);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
}

.access__transport {
    font-family: var(--font-jp);
    font-size: 0.875rem;
    color: var(--color-gray-label);
    line-height: 1.4;
}

.access__link {
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-primary-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

.access__parking {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.access__parking-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.access__col-right {
    width: 100%;
    max-width: 530px;
}

.access__schedule-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.access__schedule-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.access__schedule-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

.access__table-wrapper {
    background-color: var(--color-feature-bg-orange);
    border: 2px solid var(--color-feature-border-pink);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    overflow-x: auto;
}

.access__table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 400px;
}

.access__table th {
    padding: 10px 5px;
    font-family: var(--font-jp);
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 15px;
}

.access__table thead tr {
    background-image: linear-gradient(to right, #a38b95 50%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

.access__table td {
    padding: 10px 5px;
    font-family: var(--font-jp);
    font-weight: 500;
    color: var(--color-gray-label);
    font-size: 1rem;
    text-align: center;
}

.access__time {
    text-align: left;
    white-space: nowrap;
    color: var(--color-text) !important;
}

.mark-circle {
    color: var(--color-gray-label);
}

.mark-triangle {
    color: var(--color-primary-text);
}

.mark-square {
    color: var(--color-primary-text);
}

.access__note {
    font-family: var(--font-jp);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-top: 15px;
}

.text-pink {
    color: var(--color-primary-text);
}

.access__map-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.access__map {
    width: 100%;
    height: 300px;
    background-color: #eee;
    border-radius: 20px;
    overflow: hidden;
}

.access__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.access__map-link {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-primary-text);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-top: 0;
}

/* Footer */
.footer {
    width: 100%;
}

/* CTA */
.footer__cta {
    width: 100%;
    background: transparent;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    margin-top: -80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.footer__cta-inner {
    width: 100%;
    max-width: 960px;
    height: 230px;
    background-image: url('../assets/images/common/bg-cta.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
}

@media (max-width: 768px) {
    .footer__cta-inner {
        flex-direction: column;
        height: auto;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }
}

.footer__cta-text {
    color: var(--color-text);
    text-align: left;
}

.footer__cta-label {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #a38b95;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.footer__cta-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #fdbbc1;
    border-radius: 50%;
}

.footer__cta-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.footer__cta-btns {
    display: flex;
    gap: 10px;
}

@media (max-width: 500px) {
    .footer__cta-btns {
        flex-direction: column;
    }
}

.footer__btn-web,
.footer__btn-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;
    height: 102px; /* Updated height */
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    text-decoration: none;
}

.footer__btn-web {
    background-color: #f4616f;
    color: #fff;
}

.footer__btn-tel {
    background-color: #fff;
    color: #2d8fdb;
    border: 2px solid #76c2fd;
}

.footer__btn-icon {
    width: 24px;
    height: auto;
}

/* Main Footer */
.footer__main {
    background-color: #fcf9f7;
    padding: 80px 40px 40px;
}

@media (max-width: 768px) {
    .footer__main {
        padding: 60px 20px;
    }
}

.footer__container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 208px; /* Updated from 60px */
}

@media (max-width: 1024px) {
    .footer__container {
        flex-direction: column;
    }
}

/* Footer Left */
.footer__left {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__logo {
    width: 200px;
    margin-bottom: 10px;
}

.footer__name {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer__address {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.8;
}

.footer__map-link {
    font-family: var(--font-base);
    font-weight: 700;
    color: var(--color-primary-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.footer__link-icon {
    width: 16px;
    height: 16px;
}

.footer__sns {
    margin-top: 100px;
    position: relative;
    width: fit-content; /* Ensure relative positioning aligns with content */
}

.footer__sns-balloon {
    position: absolute;
    top: -70px;
    left: 84px; /* Explicit user request */
    width: 240px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
}

.footer__sns-balloon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer__sns-balloon-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding-bottom: 5px;
}

.footer__sns-btns {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Removed .footer__sns-insta-wrap */

.footer__sns-btn {
    width: 50px;
    height: 50px;
    display: block;
    transition: opacity 0.3s;
}

.footer__sns-btn:hover {
    opacity: 0.8;
}

.footer__sns-btn--line {
    background-color: #06c755;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    position: relative;
}

.line-icon {
    font-family: sans-serif;
    letter-spacing: 0;
}

/* Footer Right */
.footer__right {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer__section {
    width: 100%;
}

.footer__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-text);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer__section-title--obstetrics {
    color: #a38b95;
    margin-top: 20px;
}

.footer__link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px; /* Row gap 20px, Column gap 32px */
    width: 100%;
    max-width: 500px; /* Force wrapping to match design */
}

/* Remove media queries forcing grid columns if no longer needed, 
   or adjust flex behavior for smaller screens */
@media (max-width: 1024px) {
    .footer__link-grid {
        gap: 15px 20px;
    }
}

@media (max-width: 500px) {
    .footer__link-grid {
        flex-direction: column;
        gap: 10px;
    }
}

.footer__link-grid li {
    /* No fixed width, let content dictate width */
}

.footer__link-grid li a {
    font-family: var(--font-jp);
    font-size: 1rem; /* 16px */
    color: var(--color-text);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    transition: color 0.3s;
}

.footer__link-grid li a:hover {
    color: var(--color-primary);
}

.footer__banners {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .footer__banners {
        flex-direction: column;
    }
}

.footer__banner {
    display: block;
    flex: 1;
    overflow: hidden;
}

/* Footer Bottom */
.footer__bottom {
    background-color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
}

.footer__nav-list li a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
}

.footer__copyright {
    font-family: var(--font-en);
    font-size: 0.8125rem;
    color: var(--color-primary-text);
    font-weight: 500;
}

/* ============================================================
 * SP Menu (Full Screen Overlay)
 * ============================================================ */
.sp-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    z-index: 2000; /* Above header (100) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex; /* Flexbox for centering */
    /* Removed align-items/justify-content to allow margin: auto to work */
    padding-top: 92px; /* Space for fixed header */
    padding-bottom: 40px; /* Bottom spacing */
}

.sp-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.sp-menu__inner {
    width: 100%;
    max-width: 1200px;
    padding: 40px; /* Uniform padding */
    position: relative;
    margin: auto; /* Centers vertically and horizontally, safe for overflow */
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .sp-menu__inner {
        padding: 20px;
    }
}

/* Body Layout */
.sp-menu__body {
    display: flex;
    justify-content: center; /* Center the content group */
    gap: 80px;
    width: fit-content; /* Ensure body fits content for centering */
    margin: 0 auto; /* Ensure centering */
}

@media (max-width: 1024px) {
    .sp-menu__body {
        flex-direction: column;
        gap: 60px;
    }
}

/* Left Nav (Main Links) */
.sp-menu__nav {
    flex: 0 0 auto;
    width: 200px;
}

@media (max-width: 1024px) {
    .sp-menu__nav {
        width: 100%;
        display: flex; /* Center items on mobile if needed */
        justify-content: flex-start;
    }
}

.sp-menu__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sp-menu__item a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
    display: block;
    transition: color 0.3s;
}

.sp-menu__item a:hover {
    color: var(--color-primary);
}

/* Right Content (Categories) */
.sp-menu__content {
    flex: 0 1 auto; /* Don't expand to fill space, just fit content */
    display: flex;
    flex-direction: column;
    gap: 50px;
    width: fit-content; /* Ensure container only wraps content */
}

.sp-menu__columns {
    display: flex;
    flex-direction: column; /* Stack vertically as per design */
    gap: 40px;
    width: fit-content;
}

.sp-menu__col {
    width: fit-content;
}

.sp-menu__cat-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.sp-menu__cat-title--gynecology {
    color: var(--color-primary-text); /* Pink */
}

.sp-menu__cat-title--obstetrics {
    color: #9e8e73; /* Beige/Gold */
}

/* Sub List - Grid Layout */
.sp-menu__sub-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px; /* Row gap 20px, Col gap 32px */
    /* Removed width: 100% to prevent unnecessary expansion */
    max-width: fit-content; /* Allow full width, breaks handles by elements */
}

.sp-menu__break {
    flex-basis: 100%;
    height: 0;
    width: 0; /* Prevent width expansion */
    margin: 0;
}

@media (max-width: 500px) {
    .sp-menu__sub-list {
        flex-direction: column;
        gap: 10px;
    }
    .sp-menu__break {
        display: none;
    }
}

.sp-menu__sub-item {
    /* No fixed width, let content dictate or set approx width if needed */
}

.sp-menu__sub-item a {
    font-family: var(--font-jp);
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    color: var(--color-text);
    display: block;
    transition: color 0.3s;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.sp-menu__sub-item a::before {
    content: '- ';
    margin-right: 5px;
}

.sp-menu__sub-item a:hover {
    color: var(--color-primary);
}

/* Banners in Menu */
.sp-menu__banners {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .sp-menu__banners {
        flex-direction: column;
    }
}

.sp-menu__banner {
    display: block;
    width: 246px; /* Fixed width from design if needed, or flexible */
    max-width: 100%;
}

.sp-menu__banner img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.sp-menu__banner:hover img {
    opacity: 0.8;
}

/* ============================================================
 * Page Header (Lower Pages)
 * ============================================================ */
.page-header {
    position: relative;
    width: 100%;
    height: 333px;
    margin-top: 120px; /* Push down below header */
}

.page-header__bg {
    position: absolute;
    top: 0;
    right: 0; /* Align to right */
    left: auto; /* Unset left */
    width: 98vw; /* Mimic TOP FV */
    height: 100%;
    z-index: 0;
    border-radius: 20px 0 0 20px; /* Round left corners */
    overflow: hidden;
    background-color: #fffcf7;
}

.page-header__bg-inner {
    width: 100%;
    height: 100%;
}

.page-header__container {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 10;
    width: 100%;
    max-width: 1120px;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start; /* Align left */
    align-items: center; /* Center vertically */
}

@media (max-width: 768px) {
    .page-header__container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 20px;
    }
}

.page-header__title-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-header__title {
    font-family: var(--font-base);
    font-size: 2.25rem; /* 36px */
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.page-header__subtitle {
    font-family: var(--font-base);
    font-size: 1.375rem; /* 22px */
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #f3858f; /* Specific pink from design */
    margin-top: 10px; /* Add space between title and subtitle */
}

.page-header__decoration {
    position: absolute;
    bottom: -40px;
    left: -10px;
    z-index: 20;
}

.page-header__flower {
    width: 200px; /* Approx size */
    height: auto;
}

.text-note {
    color: var(--color-primary-text);
    font-size: 0.875rem;
}

.check-list--red li::before {
    background-image: url('../assets/images/confinement/check-icon-red.svg');
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: var(--font-base);
    font-size: 0.875rem;
    color: var(--color-primary-text);
    font-weight: 500;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.breadcrumbs__item a {
    text-decoration: none;
    color: var(--color-primary-text);
}

/* ============================================================
 * Page Content (Generic Container)
 * ============================================================ */
.page-content {
    width: 100%;
    padding: 80px 40px 120px;
    background-color: var(--color-white);
}

@media (max-width: 768px) {
    .page-content {
        padding: 60px 20px 100px;
    }
}

.content-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    /* Removed flex/gap to allow individual margin control */
    display: block; 
}

/* Content Block */
.content-block {
    width: 100%;
    margin-bottom: 120px; /* Standard section spacing */
}

.content-block__header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    color: var(--color-gray-label);
}

.section-label::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background-color: var(--color-gray-label);
    border-radius: 50%;
    flex-shrink: 0;
}

.content-heading {
    font-family: var(--font-base);
    font-size: 1.625rem; /* 26px */
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-primary-text);
    line-height: 1.6;
}

.content-subheading {
    font-family: var(--font-base);
    font-size: 1.375rem; /* 22px */
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text); /* Base text color, but might need pink in some contexts */
}

.content-heading-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.content-heading-group::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url('../assets/images/confinement/ellipse-19.svg');
    background-color: transparent;
    border-radius: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Legacy support - deprecated, use .content-heading-group::before instead */
.section-label__dot-large {
    width: 20px;
    height: 20px;
    background-image: url('../assets/images/confinement/ellipse-19.svg');
    background-color: transparent;
    border-radius: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Content Body */
.content-block__body {
    width: 100%;
}

.content-block__body--with-image {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .content-block__body--with-image {
        flex-direction: column;
    }
}

.content-block__text {
    flex: 1;
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-highlight {
    color: var(--color-primary-text);
}

/* 画像のデフォルトは100%幅 */
.content-block__image,
.wp-block-image.content-block__image {
    width: 100%;
    max-width: 100%;
}

/* 横並びレイアウト内の画像のみ500px幅 */
.content-block__body--with-image .content-block__image,
.content-block__body--with-image .wp-block-image.content-block__image {
    width: 500px;
    flex-shrink: 0;
    max-width: 500px;
}

/* 横並びレイアウト内の画像 */
.content-block__body--with-image .content-block__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
    border-radius: 20px !important;
}

/* 単独配置の画像（バナー風・全幅） */
.content-block__img,
.content-block > .wp-block-image img,
.content-block > .wp-block-image.content-block__image img {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    display: block;
    border-radius: 20px !important;
}

@media (max-width: 1024px) {
    .content-block__body--with-image .content-block__image,
    .content-block__body--with-image .wp-block-image.content-block__image {
        width: 100%;
        max-width: 100%;
    }
}

/* Info Box */
.info-box {
    background-color: var(--color-white);
    border: 2px solid var(--color-border-card);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
}

.info-box--large {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-label {
    background-color: #fbdddf; /* Light pink bg */
    border-radius: 10px;
    padding: 4px 20px;
    display: inline-block;
    width: fit-content;
    color: var(--color-primary-text);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    margin-bottom: 18px; /* Added for spacing */
}

/* Check List */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-list li {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
    color: var(--color-text);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background-image: url('../assets/images/confinement/check-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Bullet List */
.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-group .bullet-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px; /* Row gap 4px, Column gap 16px */
}

.bullet-list li {
    font-family: var(--font-jp);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 16px; /* Space for bullet */
    position: relative;
    color: var(--color-text);
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px; /* Adjust vertical align */
    width: 6px;
    height: 6px;
    background-color: var(--color-primary-text); /* Simple dot */
    border-radius: 50%;
}

.bullet-dot {
    color: var(--color-primary-text);
    margin-right: 5px;
}

.sub-group {
    border-bottom: 2px dotted #fdbbc1;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.sub-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Divider */
.divider-wave,
hr.divider-wave,
.wp-block-separator.divider-wave {
    width: 100%;
    margin-top: -80px;
    margin-bottom: 40px;
    border: none;
    border-bottom: 2px dotted #fdbbc1;
    height: 0;
    background-color: transparent;
    opacity: 1;
}

/* Check List Item (Sub Header) */
.check-list-item {
    color: var(--color-primary-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.check-list-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url('../assets/images/confinement/check-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.check-list-item--red::before {
    background-image: url('../assets/images/confinement/check-icon-red.svg');
}

/* Legacy support - deprecated, use .check-list-item::before instead */
.check-list-item__icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('../assets/images/confinement/check-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    flex-shrink: 0;
}

/* Full Width Image Container */
.full-width-image-container {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: none;
    margin-bottom: 120px; /* Keep the bottom spacing */
}