:root {
    /* Color Palette - Premium & Trust */
    --primary: #005bac; /* Deeper, more trustworthy blue */
    --primary-light: #e6f1fb;
    --primary-gradient: linear-gradient(135deg, #005bac 0%, #0078d4 100%);
    --accent: #f86d8d; /* Softened logo heart color */
    --accent-light: #fff0f3;
    
    --text-main: #1a1a1a;
    --text-sub: #4a4a4a;
    --bg-main: #f9f6f0;
    --bg-sub: #f0f4f8;
    --white: #ffffff;
    
    /* Typography - Accessibility First */
    --font-family: "Noto Sans JP", sans-serif;
    --fz-base: 20px;
    --fz-h1: clamp(2rem, 4vw, 2.6rem); /* Variable 40px - 52px */
    --fz-h2: 2.25rem;
    --fz-h3: 1.75rem;
    --fz-nav: 1.1rem;
    --fz-small: 0.9rem;
    
    /* Spacing & Borders */
    --space-unit: 8px;
    --container-max: 1200px;
    --radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--fz-base);
}

html, body {
    width: 100%;
}

body {
    overflow-x: hidden; /* stickyを阻害しないようbodyのみに適用 */
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

.bg-decoration-cloud {
    position: absolute;
    top: 0;
    left: 0;
    width: 346px;
    height: 155px;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

.bg-decoration-cloud img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretches to exact requested dimensions if necessary */
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
}

.section-spacing {
    padding: 100px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 12px;
}

.btn__icon-right {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--primary); /* Matched with header button */
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 91, 172, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 91, 172, 0.35);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Header */
.header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav {
    background: var(--white);
    padding: 12px 40px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav__link--contact {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 50px;
    margin-left: 8px;
}

.nav__link--contact:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.nav__icon {
    width: 18px;
    height: 18px;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav__link.is-active {
    cursor: default;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #c1dcd6;
    height: 720px;
    display: flex;
    align-items: center;
    margin-top: -90px;
    padding-top: 90px;
}

.hero__waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 500px; /* Increased by another 100px */
    z-index: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 500px; /* Increased by another 100px */
    margin-bottom: 0;
    display: block;
}

/* Animation */
.parallax > use {
    animation: move-forever 15s cubic-bezier(.55,.5,.45,.5) infinite;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% {
        transform: translate3d(85px,0,0);
    }
}

.hero__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; /* Requested 40px interval */
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.hero__image {
    flex: 0 0 40vw; /* Strictly 40% of viewport width */
    position: relative;
}

.hero .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: 100%;
}

/* About Section Decorations */
.about-section {
    position: relative;
    overflow: hidden;
}

.about__bg-left,
.about__bg-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7; /* Maintain readability while showing illustrations */
}

.about__bg-left {
    left: 0;
}

.about__bg-right {
    right: 0;
}

.about__bg-left img,
.about__bg-right img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 40px;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Slightly smoother transition */
    z-index: 1;
}

/* 1枚目を基準に高さを確保するが、表示はactiveクラスに従う */
.hero__slide:first-child {
    position: relative;
    z-index: 1;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    display: block;
}

.hero__slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}
.hero__sparrow {
    position: absolute;
    top: -8vw; /* Variable position */
    right: -2vw;
    width: 4.5vw; /* Variable size */
    min-width: 40px;
    max-width: 80px;
    height: auto;
    z-index: 10;
    transform: scaleX(-1); /* Flip horizontally */
    pointer-events: none;
}
.hero__sparrow--secondary {
    top: -20px;
    left: -20px;
    transform: none; /* Facing right */
}

.hero__sparrow img {
    width: 100%;
    height: auto;
    display: block;
}
.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.hero__content {
    flex: 0 0 80%; /* Further expanded to prevent line break */
    max-width: 900px;
}

.hero__content-inner {
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.hero__text {
    flex: 0 0 auto; /* Changed from 35vw to fit content */
    width: min-content; /* Align container width to title */
    min-width: 320px;
    max-width: 560px;
}

.hero__illustration {
    flex: 0 0 18vw; /* Variable size */
    max-width: 300px;
    min-width: 150px;
    margin-bottom: -40px;
    transform: translateY(60px); /* Move down 60px */
    position: relative; /* Base for sparrow */
}

.hero__illustration img {
    width: 100%;
    height: auto;
    display: block;
}

.hero__title {
    font-size: var(--fz-h1);
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--primary);
    white-space: nowrap; /* Prevent wrapping except at <br> to define container width */
}

.hero__lead {
    font-size: clamp(0.9rem, 1.4vw, 1.0rem); /* Variable 18px - 20px */
    color: var(--text-sub);
    margin-bottom: 40px;
}

.hero__image-wrapper {
    position: relative;
}

.placeholder-box {
    background: #e1e8ed;
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #99abb4;
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

/* Ticket Feature - Standout */
.ticket-feature {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    margin-top: -80px; /* Adjusted negative margin */
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--primary-light);
}

.ticket-feature__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.ticket-feature__content h3 {
    font-size: var(--fz-h3);
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-feature__icon {
    font-size: 2.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

/* Decoration Illustrations */
.bg-decoration-therapists {
    position: absolute;
    left: 20px; /* Moved inside to show full image */
    top: 100px;
    width: 210px; /* Reduced to 70% */
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

.bg-decoration-reception {
    position: absolute;
    right: 20px; /* Moved inside to show full image */
    bottom: 100px;
    width: 210px; /* Reduced to 70% */
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

.service-section {
    position: relative;
    overflow: hidden;
}

.service-section .container {
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 18px; /* 18px */
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px; /* Unified to 20px */
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    transition: var(--transition);
    position: relative; /* Added for badge positioning */
}

.service-card__badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem; /* Enlarged for icons */
    z-index: 10;
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-card__image {
    width: calc(100% + 80px);
    margin: -40px -40px 24px -40px;
    aspect-ratio: 16 / 9;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: var(--primary-light);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card__list {
    list-style: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.service-card__list li {
    font-size: 0.8rem;
    color: var(--text-sub);
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card__list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent);
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Info Section */
.info-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.news-list {
    border-top: 1px solid #eee;
}

.news-item {
    padding: 32px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.news-item:hover {
    padding-left: 12px;
    background: var(--primary-light);
}

.news-arrow {
    margin-left: auto;
    color: #ccc;
    transition: var(--transition);
}

.news-item:hover .news-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

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

.news-tag {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 12px;
    border-radius: 4px;
    height: fit-content;
    min-width: 88px;
    text-align: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-new {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: bold;
    line-height: 1.4;
}

.news-new.is-hidden {
    visibility: hidden;
}

.news-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    flex: 1;
    line-height: 1.5;
}

/* CTA Section */
.cta-banner {
    background: var(--primary-gradient);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
    border-radius: 32px;
}

.cta-banner h2 {
    font-size: var(--fz-h2);
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.2;
}

/* Header Buttons & Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 2000;
    transition: 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mobile-nav.is-active {
    right: 0;
}

.mobile-nav__list {
    list-style: none;
    text-align: center;
}

.mobile-nav__link {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 0;
    transition: var(--transition);
}

.mobile-nav__link:hover {
    color: var(--primary);
}

.mobile-nav__link--contact {
    color: var(--primary);
    margin-top: 20px;
}

.overflow-hidden {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container-fluid {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header__inner {
        padding: 0 20px 10px 20px; /* Set top padding to 0 */
    }

    .logo {
        transform: translate(-10px, -10px) scale(1.2);
        transform-origin: top left;
        max-width: calc(100vw - 40px); /* 画面端へのはみ出しを防止 */
    }

    .logo img {
        height: 38px;
        width: auto;
    }

    .nav {
        display: none; /* Hide PC Menu */
    }

    .hamburger-btn {
        display: flex; /* Show Hamburger */
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }

    .hero__waves,
    .waves {
        height: 160px; /* イラストの膝付近に頂点が来るよう高さを再調整 */
    }

    .hero__waves {
        bottom: 120px; /* さらに40px上へ（合計120px）移動 */
    }

    .hero__waves::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 120px;
        background: #f9f6f0; /* 隙間を埋める高さを調整 */
    }

    .hero__slider-nav {
        bottom: 10px; /* 10px上へ移動 */
    }

    .hero .container {
        padding: 0 20px; /* Secure 20px padding on left/right */
        width: 100%;
        max-width: none;
    }

    .hero__main {
        flex-direction: column;
        text-align: center;
        gap: 0;
        width: 100%;
        padding: 0; /* Remove 40px padding that was causing the issue */
    }

    .hero__image {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        height: 300px;
        margin: 0;
        box-shadow: none;
        border-radius: 20px !important;
        overflow: visible; /* Allow sparrow to overflow */
        position: relative;
    }

    .hero__slider {
        height: 100%;
        width: 100%;
        border-radius: 20px !important;
        overflow: hidden; /* Clip slides only */
    }

    .hero__slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px !important;
    }

    .hero__content {
        order: 2;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero__content-inner {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }

    .hero__text {
        order: 1;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 30px 0;
    }

    .hero__title {
        white-space: normal !important; /* 768px以下で折り返しを許可 */
    }

    .hero__illustration {
        order: 2;
        flex: 0 0 180px;
        width: 180px;
        transform: none;
        margin: 20px auto 20px;
        display: block;
    }

    .hero__sparrow {
        width: 40px;
        top: -26px;
        left: auto;
        right: -25px; /* さらに右へ */
        display: block;
        z-index: 10;
    }

    .hero__sparrow--secondary {
        left: 10px !important;
        right: auto !important;
    }

    .bg-decoration-cloud {
        width: 216px;
        height: auto;
    }

    /* 団体概要セクションのスマホ調整 */
    .about-section .info-layout > div {
        padding-right: 0 !important;
    }

    .about-section p br {
        display: none; /* メインコピーの成り行き改行 */
    }

    .about-section .info-layout > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: left; /* 左寄せに変更 */
        gap: 20px !important;
    }

    .about-section .info-layout img[src*="therapists.png"] {
        width: 173px !important; /* 216px * 0.8 = 172.8px */
        height: auto;
    }

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

    .info-layout {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 0;
    }

    .news-meta {
        width: 100%;
        gap: 12px;
    }

    .news-title {
        width: 100%;
        padding-right: 30px; /* Space for arrow */
    }

    .news-arrow {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .news-item {
        position: relative;
    }

    .news-item:hover {
        padding-left: 0;
        background: transparent;
    }

    .news-item:hover .news-arrow {
        transform: translateY(-50%); /* Restore original mobile position without transition */
        color: #ccc;
    }

    .about__bg-left,
    .about__bg-right,
    .bg-decoration-therapists,
    .bg-decoration-reception {
        display: none;
    }

    .service-intro {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
    }

    .service-intro h3 {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .service-intro div {
        min-width: 100% !important;
    }

    .service-intro div:last-child {
        width: 225px !important; /* 現在の161pxからさらに1.4倍に拡大 */
        min-width: auto !important;
        flex: none !important;
        margin: 0 auto;
    }

    .service-intro h3 span {
        width: 54px !important; /* 36px * 1.5 */
        height: 54px !important;
        font-size: 1.8rem !important; /* 1.2rem * 1.5 */
    }

    .service-intro p {
        text-align: left !important;
    }

    .service-section .btn {
        white-space: nowrap;
        padding-left: 20px;
        padding-right: 20px;
        min-width: auto !important;
        width: 90%;
    }

    /* 治療院検索セクションのスマホ調整 */
    .clinic-slider-section p {
        white-space: normal !important; /* 折り返しを許可 */
        margin-bottom: 24px;
    }

    .slider-controls {
        position: static !important; /* 絶対配置を解除 */
        justify-content: center;
        margin-top: 16px;
    }

    .clinic-card {
        flex: 0 0 100% !important; /* 1枚のみ表示 */
    }

    /* 入会案内セクションのスマホ調整 */
    .admission-flow {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }

    .admission-step {
        width: 80% !important;
        height: auto !important;
        aspect-ratio: auto !important;
        margin: 0 auto 10px !important; /* 間隔を短縮 */
        padding: 30px 20px !important;
    }

    .admission-arrow {
        margin: 5px 0 !important; /* 矢印の上下間隔を短縮 */
    }

    .admission-step__content h4 {
        font-size: 20px !important; /* 18pxから2px拡大 */
    }

    .admission-step__content p {
        font-size: 18px !important;
    }

    /* お問い合わせセクション（CTA）のスマホ調整 */
    .cta-banner {
        padding: 60px 20px !important;
        border-radius: 20px !important;
        width: 100% !important; /* バナー自体の幅を確実にする */
        box-sizing: border-box !important;
    }

    .cta-banner h2 {
        font-size: 1.3rem !important; /* さらにもう一段階（1.4remから1.3remへ）縮小 */
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .cta-banner p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .cta-button-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        gap: 12px !important; /* 20pxから短縮 */
    }

    .cta-banner .btn {
        min-width: 0 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        gap: 15px;
        padding: 18px 15px !important;
        margin: 0 !important; /* gapで制御するためマージンは削除 */
        box-sizing: border-box !important;
    }

    .cta-banner .btn:last-child {
        margin-bottom: 0 !important;
    }

    .cta-illustration {
        display: block !important; /* 再表示 */
        opacity: 1; /* 透明にならないように設定 */
        height: 144px !important; /* 現在の180pxからさらに80%に縮小 */
    }

    .cta-illustration--left {
        top: -90px !important; /* -30pxからさらに60px上へ移動 */
        left: -20px !important;
        bottom: auto !important;
        right: auto !important;
    }

    .cta-illustration--right {
        bottom: -90px !important; /* -30pxからさらに60px下へ移動 */
        right: -20px !important;
        top: auto !important;
        left: auto !important;
    }

    /* お問い合わせセクション全体の背景画像調整 */
    .cta-banner-parent {
        background-position: calc(50% + 180px) center !important;
    }

    /* フッターのスマホ調整 */
    footer {
        padding-bottom: 60px !important; /* コピーライトの下に余白を追加 */
    }

    footer > .container > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        margin-bottom: 40px !important;
        text-align: center !important; /* センター揃え */
    }

    footer > .container > div:first-child > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center; /* ロゴなどもセンターに */
    }

    footer > .container > div:first-child > div:nth-child(2),
    footer > .container > div:first-child > div:nth-child(3) {
        display: none !important; /* サービスとサイト案内を非表示 */
    }

    footer .container > div:last-child {
        padding-top: 30px !important;
    }

    .footer-copyright {
        padding-top: 32px !important;
        padding-bottom: 60px !important; /* 下に余白を追加 */
        font-size: 13px !important; /* 14pxからさらに1px小さい13pxに調整 */
        color: #fff !important;
        text-align: center !important;
        white-space: nowrap !important; /* 改行を防止 */
        display: block !important;
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    :root {
        --fz-h1: 1.8rem;
        --fz-h2: 1.5rem;
    }
    .hero__title {
        line-height: 1.3;
        white-space: normal; /* Allow wrapping on small mobile screens */
    }
    .section-spacing {
        padding: 60px 0;
    }
}

/* Clinic Slider Section */
.clinic-slider-section {
    overflow: hidden;
}

.clinic-slider-wrapper {
    margin: 0 -20px;
    padding: 0 20px;
}

.clinic-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.clinic-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.clinic-card {
    flex: 0 0 calc((100% - 48px) / 3); /* Exactly 3 cards with gaps */
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.clinic-card:hover {
    transform: translateY(-8px);
}

.clinic-card__image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
}

.clinic-card__info {
    padding: 20px 0;
}

.clinic-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.clinic-card__date {
    font-size: 0.8rem;
    color: #999;
}

.clinic-card__tags {
    display: flex;
    gap: 8px;
}

.clinic-card__tag {
    font-size: 0.7rem;
    padding: 2px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}

.clinic-card__title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* CTA Illustrations */
.cta-illustration {
    position: absolute;
    bottom: 30px;
    z-index: 0;
    pointer-events: none;
}

.cta-illustration--left {
    left: -60px;
    height: 252px; /* 280pxの90% */
}

.cta-illustration--right {
    right: -60px;
    height: 252px; /* 280pxの90% */
}

.cta-illustration img {
    height: 100%;
    width: auto;
    display: block;
}


/* Admission Flow */
.admission-flow-wrapper {
    width: 100%;
    padding: 20px 0 60px;
    display: flex;
    justify-content: center; /* Center the entire flow wrapper */
    overflow: visible;
}

.admission-flow {
    display: flex;
    justify-content: center; /* Align items to center */
    align-items: stretch;
    gap: 16px;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

.admission-step {
    flex: 1; /* Responsive width */
    aspect-ratio: 1 / 1; /* Keep square shape */
    background: #fff;
    padding: 32px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admission-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(0, 51, 102, 0.12);
}

.admission-step__icon {
    width: 100px; /* Reset to 100px */
    height: 100px;
    margin: 0 auto 20px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px; /* Increased padding to make icon smaller */
}

.admission-step__icon svg {
    width: 100%;
    height: 100%;
}

.admission-step__number {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.admission-step__content {
    flex: 1;
}

.admission-step__content h4 {
    font-size: 18px; /* 18px */
    color: var(--primary);
    margin-bottom: 8px;
}

.admission-step__content p {
    font-size: 16px; /* 16px */
    color: #666;
    line-height: 1.5;
}

.admission-arrow {
    flex: 0 0 24px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admission-arrow svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1024px) {
    .admission-flow {
        flex-direction: column;
        align-items: center;
    }
    
    .admission-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .admission-step {
        width: 100%;
        max-width: 500px;
    }
}

/* Cloud Animation Section */
.cloud-animation-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px; /* Increased height to show all clouds */
    overflow: hidden;
    pointer-events: none;
    z-index: 0; /* Behind content */
}

.cloud-move-l-r, .cloud-move-r-l, .cloud-move-3, .cloud-move-4 {
    position: absolute;
    white-space: nowrap;
    display: flex;
    gap: 300px;
}

.cloud-move-l-r img, .cloud-move-r-l img, .cloud-move-3 img, .cloud-move-4 img {
    height: 100px;
    width: auto;
    opacity: 0.8;
}

.cloud-move-l-r {
    top: 0;
    animation: cloud-flow-lr 45s linear infinite;
}

.cloud-move-r-l {
    top: 0;
    animation: cloud-flow-rl 30s linear infinite;
}

.cloud-move-3 {
    top: 60px; /* Lower */
    animation: cloud-flow-lr 80s linear infinite; /* Slower */
    opacity: 0.6;
}

.cloud-move-4 {
    top: 90px; /* Lowest */
    animation: cloud-flow-rl 100s linear infinite; /* Slowest */
    opacity: 0.5;
}

@keyframes cloud-flow-lr {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes cloud-flow-rl {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* clinics section adjustment */
.clinic-slider-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-light);
}

.clinic-slider-section .container {
    position: relative;
    z-index: 2; /* In front of clouds and town */
}

.town-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Adjust height based on 50% size of image */
    background-image: url('images/town-background.png');
    background-repeat: repeat-x;
    background-size: auto 100%; /* Height is fixed to 150px */
    z-index: 1; /* Between clouds and content */
    pointer-events: none;
    opacity: 0.7; /* 70% opacity */
    animation: town-scroll 100s linear infinite;
}

@keyframes town-scroll {
    from { background-position-x: 0; }
    to { background-position-x: -2000px; } /* Scrolls to the left */
}
