﻿@charset "utf-8";

/* ==========================================================================
   Design System & Tokens
   ========================================================================== */
:root {
    --text-main: #4a4a4a;
    --white: #ffffff;
    --pink-pastel: #fdf1f2;
    --pink-accent: #f3aab1;
    --mint-pastel: #f0f9f9;
    --mint-accent: #70caca;
    --gray-bg: #f8f8f8;
    --gray-placeholder: #ededed;
    --font-main: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
    --radius-l: 24px;
    --radius-m: 16px;
    --header-height: 80px;

    /* FV Original Tokens */
    --slide-width: 384.5782px;
    --slide-height: 573.047px;
    --slide-gap: 15px;
}

/* Utilities */
@media screen and (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .sp-only {
        display: none !important;
    }
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    margin: 0;
}

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

a {
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    /* Default sidebar margin */
}

/* Overall margin narrow adjustment for PC (-20px each side) */
@media screen and (min-width: 769px) {
    .container {
        padding: 0 0px;
    }
}

.container--narrow {
    max-width: 800px;
}

.section {
    padding: 80px 0;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Components */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.section-title img {
    max-width: 548px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-title--left {
    text-align: left;
}

.section-title--left img {
    margin-left: 0;
    margin-right: 0;
}

.icon-svg {
    width: 32px;
    height: 32px;
    fill: var(--pink-accent);
}

.bg-pastel {
    background-color: var(--pink-pastel);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


.btn--sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn--tel {
    background-color: var(--pink-accent);
    color: var(--white);
    border: 2px solid var(--pink-accent);
}

.btn--tel-pink {
    background-color: var(--pink-accent) !important;
    color: var(--white) !important;
    border: 2px solid var(--pink-accent) !important;
}


.btn--web {
    background-color: var(--white);
    color: var(--pink-accent);
    border: 2px solid var(--pink-accent);
}

.btn--hp {
    background-color: #7bc7ad;
    color: var(--white);
    border: 2px solid #7bc7ad;
}

.btn--reserve {
    background-color: #71cfd5;
    color: var(--white);
    border: 2px solid #71cfd5;
    white-space: nowrap;
}

.btn--round {
    border-radius: 9999px !important;
    min-width: 96px;
    padding: 8px 20px;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        padding: 0 20px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Fixed height within 72-80px range */
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    /* Vertical-align center */
}

.header__inner {
    width: 100%;
    max-width: 100%;
    /* Spreads more towards the edges */
    margin: 0 auto;
    padding: 0 30px;
    /* Exactly 30px from the display edges */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header__logo img {
    height: 60px;
    /* Resized to fit band well */
    width: auto;
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    /* MUST be in 1 line, NO wrapping */
    gap: clamp(10px, 1.5vw, 20px);
    /* Adjust gap based on screen width */
}

.header__list {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 16px);
    flex-wrap: nowrap;
}

.header__list a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: clamp(12px, 0.85vw, 15px);
    /* Shrink font to fit */
    white-space: nowrap;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* Hamburger */
.header__hamburger {
    display: none;
    /* Hide by default */
}

@media screen and (max-width: 768px) {
    .header__hamburger {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 2001;
        /* Above drawer if necessary */
    }
}

.header__hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--pink-accent);
    left: 0;
    transition: all 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 11px;
}

.header__hamburger span:nth-child(3) {
    top: 22px;
}

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

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

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

/* SP Menu */
.sp-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 80px 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.sp-menu.active {
    transform: translateX(0);
}

.sp-menu__close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 30px;
    height: 30px;
}

.sp-menu__close span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--pink-accent);
    top: 50%;
}

.sp-menu__close span:nth-child(1) {
    transform: rotate(45deg);
}

.sp-menu__close span:nth-child(2) {
    transform: rotate(-45deg);
}

.sp-menu__list {
    margin-bottom: 40px;
}

.sp-menu__list li {
    margin-bottom: 25px;
    text-align: center;
}

.sp-menu__list a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.sp-menu__cta {
    display: flex;
    flex-direction: row;
    /* Horizontal in SP as well */
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

/* FV */
/* ==========================================================================
   New FV Styles
   ========================================================================== */
.fv-new {
    position: relative;
    width: 100%;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, rgba(123, 199, 173, 0.25) 0%, rgba(232, 135, 154, 0.25) 100%);
    overflow: hidden;
    padding: 100px 0;
}

@keyframes fv-fade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes fv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fv-new__main-title {
    font-size: calc(2.8rem + 5px);
    font-weight: bold;
    color: var(--pink-accent);
    line-height: 1.5;
    margin-bottom: 25px;
    font-family: 'Zen Old Mincho', serif;
    letter-spacing: -0.5px;
}

.fv-new__sub-title {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 500;
}

.fv-new__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fv-new__actions .btn {
    border-radius: 30px;
    padding: 15px 35px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.fv-new__actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.fv-new__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fv-new__image-card {
    width: 100%;
    max-width: 540px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 6px solid #ffffff;
    background: #ffffff;
    transition: transform 0.5s ease;
}

.fv-new__image-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

@media screen and (max-width: 991px) {
    .fv-new {
        padding: 60px 0;
    }
    
    .fv-new__main-title {
        font-size: 2.2rem;
    }
    
    .fv-new__sub-title {
        font-size: 1.1rem;
    }
}


/* Consultation */
.section.consultation {
    background: linear-gradient(to bottom, #fbe8e9 0%, #ffffff 70%);
    padding-bottom: 80px;
}

.consultation__box {
    background: var(--white);
    border: 3px solid #6abfea;
    border-radius: var(--radius-l);
    padding: 24px 30px !important;
}

.consultation__title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #6abfea;
    letter-spacing: 0.05em;
}


.consultation__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 0;
}

.consultation__list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background: #ebfffd;
    /* Highlighted inner box bg */
    padding: 24px 12px;
    border-radius: var(--radius-m);
    box-shadow: 0 4px 12px rgba(106, 191, 234, 0.15);
    /* Drop shadow with light blue tint */
}

.consultation__list li span {
    font-size: 14px;
    line-height: 1.6;
}

.consultation__icon {
    width: 70px;
    /* Updated to 70px as requested */
    height: 70px;
    object-fit: contain;
}

.consultation__bottom {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

@media screen and (max-width: 768px) {
    .consultation__box {
        padding: 20px 15px !important;
    }
    .consultation__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .consultation__list li {
        padding: 20px 10px;
        gap: 10px;
    }
    .consultation__icon {
        width: 50px;
        height: 50px;
    }
    .consultation__list li span {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media screen and (max-width: 480px) {
    .consultation__list {
        grid-template-columns: 1fr;
    }
}

.section.about {
    background: #ffffff;
}


.container--about {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap to bring items closer */
}

.about__content {
    flex: 1;
}

.about__image {
    flex: 1;
}

.about__image img {
    width: 100%;
}

/* Section Transitions */
.section-wave {
    display: none;
    /* Hide for now as requested background revert */
}

/* Wave Divider Animation */
.wave-container {
    position: relative;
    width: 100%;
    height: 80px;
    background: #FFFFFF;
    overflow: hidden;
    margin-top: -1px;
    /* Prevent gap at the top */
    margin-bottom: -1px;
    /* Prevent gap at the bottom */
    z-index: 10;
}

.wave-container svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: calc(200% + 2px);
    /* 蟾ｦ蜿ｳ縺ｮ髫咎俣繧よｶ医☆縺溘ａ縺ｫ蟆代＠蟷・ｒ蠎・￡繧・*/
    margin-left: -1px;
    height: 80px;
    display: block;
    /* 髫咎俣縺ｮ蜴溷屏縺ｫ縺ｪ繧九う繝ｳ繝ｩ繧､繝ｳ隕∫ｴ縺ｮ謖吝虚繧帝亟縺・*/
    shape-rendering: geometricPrecision;
    /* 謠冗判繧呈ｻ代ｉ縺九↓縺吶ｋ */
    animation: wave-move 8s linear infinite;
}

.wave-container .shape-fill {
    fill: #fdf2f4;
}

@keyframes wave-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scroll Animations */
.animate-ready {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.animate-ready.is-animated {
    opacity: 1;
    transform: translateY(0);
}


/* 霑ｽ蜉CTA繧ｻ繧ｯ繧ｷ繝ｧ繝ｳ縺ｮ繧ｹ繧ｿ繧､繝ｫ */

/* CTA Container (Green Box) */
.custom-cta-section {
    font-family: 'Zen Maru Gothic', sans-serif;
    background-color: #f4f9f7;
    border: 2px solid #82c8b0;
    border-radius: 40px;
    padding-left: 30px !important;
    padding-right: 30px !important;
    padding-top: 24px;
    padding-bottom: 24px;
    max-width: 1100px;
    width: calc(100% - 40px);
    margin: 30px auto 80px;
    color: #555;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.section.about,
#medical {
    padding-bottom: 0;
}

.cta-title {
    color: #82c8b0;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    /* Restored for general use if needed */
    margin-top: 0;
    letter-spacing: 0.1em;
}

.cta-flex-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.schedule-wrapper,
.button-wrapper {
    flex: 1;
    min-width: 300px;
    margin: 0 !important;
}

.schedule-table-card {
    background: #ffffff;
    border: 1px solid #82c8b0;
    border-radius: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    box-sizing: border-box;
}

.schedule-table th {
    color: #82c8b0;
    background-color: #f1f8f6;
    padding: 10px 8px;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #82c8b0;
    white-space: nowrap;
    /* Prevent wrapping */
}

.schedule-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #82c8b0;
    font-size: 16px;
    color: #444;
    white-space: nowrap;
    /* Prevent wrapping */
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.time-col {
    font-size: 16px;
    color: #444;
    padding-left: 15px !important;
    white-space: nowrap;
    text-align: left;
}

.symbol {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    line-height: 1;
}

.symbol.pink {
    background-color: var(--pink-accent) !important;
    border-radius: 50%;
}

.symbol.mint {
    background-color: var(--mint-accent) !important;
    border-radius: 50%;
}

.pink {
    background-color: #f2a7b8;
    border-radius: 50%;
}

.blue {
    background-color: #76c0e6;
    border-radius: 6px;
}

.double {
    border: 2px solid #f2a7b8;
    border-radius: 50%;
    position: relative;
    background: transparent;
}

.double::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    border: 2px solid #f2a7b8;
    border-radius: 50%;
}

.schedule-footer {
    margin-top: 10px;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.note-red {
    color: #f2a7b8;
    font-weight: 700;
}

.button-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


.btn-tel {
    background-color: #82c8b0;
    color: #fff;
}

.btn-web {
    background-color: #fff;
    color: #82c8b0;
    border: 2px solid #82c8b0;
}

.cta-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .custom-cta-section {
        padding: 30px 15px !important;
        border-radius: 20px;
        margin: 20px auto;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-flex-container {
        gap: 20px;
    }

    .schedule-table th {
        font-size: 1rem;
    }

    .time-col {
        font-size: 0.9rem;
        padding-left: 4px !important;
        padding-right: 4px !important;
        text-align: center;
    }

    .symbol {
        font-size: 1.2rem;
    }

    .cta-btn {
        height: 60px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .container--about {
        flex-direction: column-reverse;
    }

    .section-title img {
        max-width: 100%;
    }
}

/* Features (Side by Side) */
.section.features {
    background: #fdf2f4;
    /* Thin pink */
    padding-bottom: 80px;
}

.features__list {
    display: grid;
    gap: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-item--rev {
    flex-direction: row-reverse;
}

.feature-item__img {
    flex: 1;
}

.feature-item__img img:not(.section-title img) {
    width: 100%;
    border-radius: var(--radius-m);
    filter: drop-shadow(10px 10px 0 #f4a6bb);
    aspect-ratio: 16/10;
    object-fit: cover;
}

.feature-item__img .section-title img {
    filter: none;
}

.feature-item__text {
    flex: 1;
}

.feature-item__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

@media screen and (max-width: 768px) {

    .feature-item,
    .feature-item--rev {
        flex-direction: column;
        gap: 30px;
    }
}

.section.medical {
    background: var(--white);
}

/* Medical (Cards) */
.medical__grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.medical-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius-m);
    overflow: hidden;
}

.medical-card__image {
    background: #ffffff;
}

.medical-card__image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: contain;
    /* Prevent cropping */
    padding: 10px;
    /* Optional: adds a little breathing room */
}

.medical-card__content {
    padding: 30px;
}

.medical-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-medical {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-medical:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}


.btn-medical--blue {
    background-color: #6abfea;
}

.btn-medical--pink {
    background-color: #f2a7b8;
}

.btn-medical--green {
    background-color: #7bc7ad;
}


.medical-card__list {
    margin-bottom: 25px;
    padding: 0;
}

.medical-card__list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.medical-card__list li::before {
    content: '窶｢';
    position: absolute;
    left: 0;
    color: var(--pink-accent);
}

.medical__full-box {
    margin-top: 60px;
    background: var(--pink-pastel);
    padding: 50px;
    border-radius: var(--radius-l);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.medical__full-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/medical_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Even fainter for texture feel */
    z-index: -1;
}

.medical__full-box>* {
    position: relative;
    z-index: 2;
}

.medical__full-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.medical__full-list span {
    background: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

@media screen and (max-width: 900px) {
    .medical__grid-cards {
        grid-template-columns: 1fr;
    }
}

/* Voice */
.voice__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.voice .btn--outline {
    border: 2px solid var(--pink-accent);
    color: var(--pink-accent);
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--white);
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.voice-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-m);
}

.voice-card__stars {
    color: #ffbf00;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .voice__grid {
        grid-template-columns: 1fr;
    }
}

/* Greeting */
.section.greeting {
    background-color: var(--white);
    background-image:
        radial-gradient(circle at 25px 25px, rgba(242, 167, 184, 0.2) 5px, transparent 5px),
        radial-gradient(circle at 75px 75px, rgba(113, 207, 213, 0.2) 5px, transparent 5px),
        radial-gradient(circle at 125px 35px, rgba(123, 199, 173, 0.2) 5px, transparent 5px);
    background-size: 150px 100px;
    background-repeat: repeat;
}


.greeting__intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.greeting__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.doctor-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-l);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.doctor-card__image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
}

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

.doctor-card__role {
    color: var(--pink-accent);
    font-weight: 700;
    text-align: center;
}

.doctor-card__name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .greeting__grid {
        grid-template-columns: 1fr;
    }
}

/* Access */
.container--access {
    display: flex;
    gap: 50px;
}

.access__content {
    flex: 1;
}

.access__map {
    flex: 1;
}

.access__map iframe {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-m);
}

.access__content .section-title img {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 70%;
    object-fit: contain;
    /* Prevent cutting */
}



.access__list {
    padding: 0;
}

.access__list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.access__holiday {
    color: #f2a7b8;
    /* Match pink accent */
    font-weight: 700;
}

.access__schedule {
    margin-top: 30px;
}

.access__schedule .schedule-table-card {
    border-radius: 12px;
}

.access__schedule .schedule-table th,
.access__schedule .schedule-table td,
.access__schedule .time-col {
    font-size: 14px;
    /* Smaller font for access column */
    padding: 8px 4px;
}

.access__schedule .symbol {
    width: 14px;
    height: 14px;
}

@media screen and (max-width: 900px) {
    .container--access {
        flex-direction: column;
    }

    .container--about {
        flex-direction: column-reverse;
    }

    .section-title img {
        max-width: 100%;
    }


    /* SP Title Trimming */
    .section-title {
        overflow: hidden;
    }

    /* About and Features: Cut 40px from right */
    /* About and Features: Consistent SP sizes */
    #about .section-title img,
    #features .section-title img {
        width: calc((100% - 40px) * 1.2);
        /* 蜿ｳ蛛ｴ40px繧ｫ繝・ヨ蠕後・0%諡｡螟ｧ */
        max-width: none;
        height: auto;
        object-fit: contain;
        object-position: left center;
        margin-left: 0;
    }

    /* Others: Cut 20px from both sides */
    #medical .section-title img,
    #voice .section-title img,
    #greeting .section-title img,
    #access .section-title img {
        width: calc(100% + 40px);
        max-width: none;
        object-fit: cover;
        object-position: center;
        margin-left: -20px;
    }

    #access .section-title img {
        width: 70%;
        margin-left: 0;
        object-fit: contain;
    }

    .features .container {
        display: flex;
        flex-direction: column;
    }


    /* SP Refinements */
    .about__image {
        margin-bottom: 10px !important;
    }

    .features .section-title {
        order: -1;
        width: 100%;
        margin-bottom: 30px;
    }

    .feature-item {
        flex-direction: column;
    }

    .custom-cta-section .cta-title {
        margin-bottom: 15px;
    }

    /* SP譎ゅ・CTA繧ｳ繝ｳ繝・リ繧堤ｸｦ荳ｦ縺ｳ縺ｫ */
    .custom-cta-section .cta-flex-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* 蟾ｦ蜿ｳ縺・▲縺ｱ縺・↓蠎・￡繧・*/
        justify-content: flex-start;
        width: 100%;
        gap: 20px;
    }

    /* 繧ｹ繧ｱ繧ｸ繝･繝ｼ繝ｫ陦ｨ縺ｮ繝ｩ繝・ヱ繝ｼ繧剃ｸｭ螟ｮ蟇・○ */
    .custom-cta-section .schedule-wrapper {
        width: 100%;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .custom-cta-section .schedule-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0 !important;
        /* Ensure table doesn't get weirdly aligned */
        text-align: center;
    }

    .custom-cta-section .schedule-table {
        margin: 0 auto;
        width: 100%;
    }

    /* Restore uniform padding and center alignment */
    .custom-cta-section .schedule-table th,
    .custom-cta-section .schedule-table td {
        font-size: 11px;
        padding: 8px 4px;
        /* Increased padding slightly for balance */
        text-align: center;
        white-space: nowrap;
    }

    .time-col {
        font-size: 0.9rem;
        /* Remove padding-left: 0 !important override */
        padding-left: 4px !important;
        padding-right: 4px !important;
        text-align: center;
    }

    .schedule-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }

    .schedule-footer .note-red {
        width: 100%;
        margin-bottom: 5px;
    }

    /* 繝懊ち繝ｳ繧ｨ繝ｪ繧｢繧貞・縺ｮ繧ｵ繧､繧ｺ縺ｫ謌ｻ縺・*/
    .custom-cta-section .button-wrapper {
        width: 100%;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        /* 繝懊ち繝ｳ繧呈ｨｪ蟷・＞縺｣縺ｱ縺・↓ */
        gap: 20px;
    }

    .consultation__box {
        padding: 30px 15px !important;
    }
}


/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    /* Default hidden */
    grid-template-columns: 1fr 1fr;
    z-index: 1500;
}

@media screen and (max-width: 768px) {
    .fixed-cta {
        display: grid;
    }
}

.fixed-cta__btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.fixed-cta__btn--tel {
    background: #7bc7ad;
}

.fixed-cta__btn--web {
    background: #71cfd5;
}

/* Footer */
.footer {
    padding: 80px 0;
    background: var(--gray-bg);
}

.footer__logo img {
    height: 40px;
    margin-bottom: 20px;
}

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

/* Auto Slider Section */
.auto-slider-section {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    padding: 60px 0;
}

.auto-slider {
    width: 100%;
    overflow: hidden;
}

.auto-slider__track {
    display: flex;
    gap: 40px;
    width: fit-content;
    animation: auto-slide 30s linear infinite;
}

.auto-slider__item {
    flex-shrink: 0;
    height: auto;
    border-radius: 16px !important;
    overflow: hidden !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -webkit-backface-visibility: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

.auto-slider__item img {
    height: 260px;
    width: 282px; /* 13:12 ratio of slide (1) */
    display: block;
    object-fit: cover;
    border-radius: 16px !important;
    overflow: hidden !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@keyframes auto-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

@media screen and (max-width: 768px) {
    .auto-slider-section {
        padding: 40px 0;
    }

    .auto-slider__item img {
        height: 180px;
        width: 195px; /* 13:12 ratio on mobile */
        border-radius: 10px;
        object-fit: cover;
    }

    .auto-slider__track {
        gap: 20px;
    }

    .auto-slider__item {
        border-radius: 10px !important;
        overflow: hidden !important;
    }
}
.calendar-mint {
    border: 2px solid var(--mint-accent) !important;
}
.calendar-mint th {
    color: var(--mint-accent) !important;
    background-color: var(--mint-pastel) !important;
}
.calendar-mint .symbol.pink {
    background-color: var(--mint-accent) !important;
}

.calendar-pink {
    border: 2px solid var(--pink-accent) !important;
}
.calendar-pink th {
    color: var(--pink-accent) !important;
    background-color: var(--pink-pastel) !important;
}
.calendar-pink .symbol.pink {
    background-color: var(--pink-accent) !important;
}

.calendars-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.calendars-row > div {
    flex: 1;
    min-width: 300px;
}
.cta-buttons-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
}
/* Additional Custom Styles for New Requests */
.about-bg-blur {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.about-bg-blur::before,
.about-bg-blur::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
}
.about-bg-blur::before {
    width: 600px;
    height: 600px;
    background: #70caca;
    top: -100px;
    left: -200px;
}
.about-bg-blur::after {
    width: 500px;
    height: 500px;
    background: #f3aab1;
    bottom: -100px;
    right: -150px;
}

/* Medical Card Redesign */
.medical-card-new {
    border-radius: 16px;
    background: #fdf1f2;
    
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.medical-card-new.pink-theme {
    background: #fdf1f2; /* keeping same bg or #fdf8f8 */
    
}
.medical-card-new.mint-theme {
    background: #f0f9f9;
    
}
.medical-card-new__title {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.medical-card-new.mint-theme .medical-card-new__title::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background-image: url('../img/menu1_mint.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.medical-card-new.pink-theme .medical-card-new__title::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background-image: url('../img/menu2_pink.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.medical-card-new__desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}
.medical-card-new__btn {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    background: transparent;
}
.medical-card-new.mint-theme .medical-card-new__btn {
    border: 1px solid #70caca;
    color: #70caca;
}
.medical-card-new.pink-theme .medical-card-new__btn {
    border: 1px solid #f3aab1;
    color: #f3aab1;
}
.medical-card-new__btn::after {
    content: '竊・;
    position: absolute;
    right: 20px;
}
.medical-card-new__btn:hover {
    background: rgba(0,0,0,0.05);
}

.service-arch {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #fff;
}
.service-arch svg {
    display: block;
    width: 100%;
    height: 60px;
}
.medical-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.medical-badge {
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ccc;
}
.mint-theme .medical-badge {
    color: #70caca;
    border-color: #70caca;
}
.pink-theme .medical-badge {
    color: #f3aab1;
    border-color: #f3aab1;
}
/* Fluid Shape for Features Images */
.feature-item__img {
    border-radius: 54% 46% 42% 58% / 60% 58% 42% 40%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.feature-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}
.section-subtitle-en {
    display: block;
    font-size: 20px;
    color: var(--mint-accent);
    opacity: 0.8;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
    font-weight: bold;
}
.section-title-jp {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, var(--mint-accent), var(--pink-accent), var(--mint-accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s ease infinite;
    display: inline-block;
}
@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Flow Section */
.flow__container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.flow__nav {
    position: sticky;
    top: 100px;
    width: 250px;
    flex-shrink: 0;
}
.flow__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.flow__nav-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}
.flow__nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.flow__nav-item:last-child {
    margin-bottom: 0;
}
.flow__nav-item.is-active {
    opacity: 1;
}
.flow__nav-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.flow__nav-item.is-active .flow__nav-num {
    background-color: var(--mint-accent);
}
.flow__nav-text {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}
.flow__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.flow__step-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.flow__step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}
.flow__step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--mint-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}
.flow__step-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.flow__step-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}
.flow__btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--pink-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: opacity 0.3s ease;
}
.flow__btn:hover {
    opacity: 0.8;
}

@media screen and (max-width: 900px) {
    .flow__container {
        flex-direction: column;
    }
    .flow__nav {
        display: none;
    }
    .flow__step-card {
        padding: 25px;
    }
}


/* ==========================================================================
   Responsive Calendar Table Styles for Perfect SP Fit
   ========================================================================== */
@media screen and (max-width: 768px) {
    .schedule-table th {
        font-size: 12px !important;
        padding: 6px 3px !important;
    }
    .schedule-table td {
        font-size: 12px !important;
        padding: 6px 3px !important;
    }
    .time-col {
        font-size: 11px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .symbol {
        font-size: 13px !important;
    }
}
@media screen and (max-width: 480px) {
    .schedule-table th {
        font-size: 10px !important;
        padding: 5px 2px !important;
    }
    .schedule-table td {
        font-size: 10px !important;
        padding: 5px 2px !important;
    }
    .time-col {
        font-size: 9px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .symbol {
        font-size: 11px !important;
    }
}

/* ==========================================
   全画面表示ファーストビュー（FV）スタイル
   ========================================== */
.fv-new {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, rgba(123, 199, 173, 0.25) 0%, rgba(232, 135, 154, 0.25) 100%);
  padding: 0;
}

/* 背景の装飾的なサークル */
.fv-new__circle {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-pastel) 0%, transparent 70%);
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
}

.fv-new__container {
  position: relative;
  z-index: 4;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6% !important;
  padding-right: 6% !important;
  box-sizing: border-box;
}

/* 左カラム：テキスト・コピー */
.fv-new__content-col {
  width: 40%;
  max-width: 640px;
  text-align: left;
  z-index: 5;
  padding-right: 20px;
}

.fv-new__logo {
  margin-bottom: 25px;
}

.fv-new__logo img {
  max-width: 285px;
  height: auto;
  display: block;
}

.fv-new__main-title {
  font-size: clamp(33px, 3.8vw, 47px);
  margin-bottom: 25px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-color);
  font-family: 'Zen Old Mincho', serif;
  letter-spacing: 0.05em;
}

.fv-new__sub-title {
  font-size: clamp(15px, 1.6vw, 17px);
  margin-bottom: 35px;
  line-height: 1.8;
  color: #3a2b20;
  font-weight: 500;
}

.fv-new__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.fv-new__actions .btn {
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: none;
  font-size: 15px;
}

.fv-new__actions .btn--line {
  background-color: var(--mint-accent);
  color: #fff;
}

.fv-new__actions .btn--line:hover {
  background-color: #4da685;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92,184,150,0.25);
}

.fv-new__actions .btn--tel {
  background-color: var(--pink-accent);
  color: #fff;
}

.fv-new__actions .btn--tel:hover {
  background-color: #db6275;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,135,154,0.25);
}

.nobr {
  display: inline-block;
  white-space: nowrap;
}

/* 右カラム：流体画像スライドショー領域 */
.fv-new__image-col {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 右端に寄せる */
  padding-right: 20px;
}

.fv-new__image-wrapper {
  position: relative;
  width: 720px;
  height: 720px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(44, 62, 53, 0.12);
  /* 初期流体シェイプ */
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  /* 浮遊アニメーションのみ適用（流体可変アニメーションは削除） */
  animation: fv-float 10s ease-in-out infinite;
  transform-origin: center center;
  margin-right: 90px; /* 右側にスケジュールを配置するスペースを確保 */
}

/* 流体（アメーバ）アニメーション */
@keyframes fluid-blob {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
  }
  50% {
    border-radius: 50% 50% 30% 70% / 40% 60% 30% 70%;
  }
  75% {
    border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
}

/* ふわふわ浮遊するアニメーション */
@keyframes fv-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* スライドショー背景 */
.fv-new__bg-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.fv-new__bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
}

.fv-new__bg-slide.slide-1 {
  background: url('../img/slide (2).jpg');
  animation: fv-fade-new 15s infinite;
}

.fv-new__bg-slide.slide-2 {
  background: url('../img/slide (4).jpg');
  animation: fv-fade-new 15s infinite;
  animation-delay: 5s;
}

.fv-new__bg-slide.slide-3 {
  background: url('../img/slide (6).jpg');
  animation: fv-fade-new 15s infinite;
  animation-delay: 10s;
}

@keyframes fv-fade-new {
  0% { opacity: 0; transform: scale(1.05); }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

/* FV内カレンダー配置（画像の上にオーバーレイ - イーハトーブ歯科クリニック風の右寄せ配置） */
.fv-new__calendars-overlay {
  position: absolute;
  bottom: 60px; /* 画像の右下部分に重ねる */
  right: 20px; /* 右端にピッタリ寄せる */
  width: 460px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95); /* よりはっきりとした背景 */
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); /* 柔らかい影 */
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.fv-new__calendars-overlay .schedule-wrapper {
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.fv-new__calendars-overlay h3 {
  font-size: 13.5px !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  color: var(--mint-accent) !important;
  text-align: left !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
}

.fv-new__calendars-overlay .schedule-wrapper:last-of-type h3 {
  color: var(--pink-accent) !important;
}

/* 二重の四角を消すため、テーブルカードの背景や枠線を透過にする */
.fv-new__calendars-overlay .schedule-table-card {
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  width: 100% !important;
}

.fv-new__calendars-overlay .schedule-table {
  width: 100% !important;
  min-width: auto !important;
  border-collapse: collapse !important;
  background: transparent !important;
  border: none !important;
}

/* 一般内科のヘッダー：淡いミント背景 ＋ 下ボーダー */
.fv-new__calendars-overlay .calendar-mint .schedule-table th {
  background-color: rgba(123, 199, 173, 0.08) !important;
  color: var(--mint-accent) !important;
  border-bottom: 1px solid rgba(123, 199, 173, 0.3) !important;
}

/* 心療内科のヘッダー：淡いピンク背景 ＋ 下ボーダー */
.fv-new__calendars-overlay .calendar-pink .schedule-table th {
  background-color: rgba(232, 135, 154, 0.08) !important;
  color: var(--pink-accent) !important;
  border-bottom: 1px solid rgba(232, 135, 154, 0.3) !important;
}

.fv-new__calendars-overlay .schedule-table th,
.fv-new__calendars-overlay .schedule-table td {
  padding: 7px 5px !important;
  font-size: 11.5px !important;
  text-align: center !important;
  border-right: none !important; /* 縦線なし */
  border-left: none !important;  /* 縦線なし */
  background: transparent !important;
}

/* 横線のみ（ボーダーボトム） */
.fv-new__calendars-overlay .calendar-mint .schedule-table td {
  border-bottom: 1px solid rgba(123, 199, 173, 0.25) !important;
}
.fv-new__calendars-overlay .calendar-pink .schedule-table td {
  border-bottom: 1px solid rgba(232, 135, 154, 0.25) !important;
}

.fv-new__calendars-overlay .schedule-table tr:last-child td {
  border-bottom: none !important; /* 最下部のボーダーは削除 */
}

.fv-new__calendars-overlay .time-col {
  font-size: 11px !important;
  width: 92px !important;
  text-align: left !important;
  font-weight: bold !important;
  color: #444 !important;
}

.fv-new__calendars-overlay .symbol {
  width: 8px !important;
  height: 8px !important;
  display: inline-block !important;
  border-radius: 50% !important;
}

.fv-new__calendars-overlay .symbol.mint {
  background-color: var(--mint-accent) !important;
}

.fv-new__calendars-overlay .symbol.pink {
  background-color: var(--pink-accent) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .fv-new {
    height: auto;
    min-height: auto;
    margin-top: 0 !important;
    padding: 110px 0 60px;
    display: block;
  }
  .fv-new__container {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    height: auto;
  }
  .fv-new__content-col {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    text-align: center;
    position: relative;
    z-index: 5;
  }
  .fv-new__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  .fv-new__logo img {
    max-width: 250px;
    margin: 0 auto;
  }
  .fv-new__actions {
    justify-content: center;
  }
  .fv-new__image-col {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 0 !important; /* 右余白を完全にゼロに */
    margin-top: -60px; /* テキストと少し重なりを持たせる */
    z-index: 2; /* テキストの後ろに配置 */
  }
  .fv-new__image-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: clamp(300px, 85vw, 360px) !important;
    height: clamp(300px, 85vw, 360px) !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55% !important;
    /* 変形アニメーションを停止し、浮遊アニメーションのみにする */
    animation: fv-float 10s ease-in-out infinite !important;
    margin-right: 0 !important; /* 右マージンを完全にリセット */
  }
  .fv-new__calendars {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .fv-new {
    margin-top: 0 !important;
    padding: 90px 0 60px !important;
  }
  .fv-new__overlay {
    background: rgba(255, 255, 255, 0.88);
  }
  .fv-new__main-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .fv-new__sub-title {
    font-size: 14px;
    margin-bottom: 25px;
  }
  .fv-new__actions {
    flex-direction: column;
    width: 100%;
  }
  .fv-new__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   SP Responsive Adjustments for Comfort and Legibility
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 全体見出しサイズを20pxで統一 */
    .section-title, 
    .section-title-jp, 
    .final-cta__title, 
    .cta-title,
    .section-title span {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .section-title img {
        width: auto !important;
        max-height: 35px !important;
        margin-left: 0 !important;
    }

    /* ヘッダー・ロゴ・ハンバーガーメニュー */
    .header {
        height: 60px !important;
        z-index: 2500 !important; /* ドロワー(2000)より手前に出す */
    }
    .header__inner {
        padding: 0 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .header__logo {
        margin-right: auto !important;
    }
    .header__logo img {
        height: 35px !important;
        width: auto !important;
    }
    .header__hamburger {
        display: block !important;
        position: relative !important;
        z-index: 2600 !important; /* 最前面に固定 */
        width: 26px !important;
        height: 18px !important;
    }
    .header__hamburger span {
        height: 2px !important;
        background: #2c3e35 !important; /* 薄いピンクからコントラストの高い濃い緑に変更 */
    }
    .header__hamburger span:nth-child(1) { top: 0 !important; }
    .header__hamburger span:nth-child(2) { top: 8px !important; }
    .header__hamburger span:nth-child(3) { top: 16px !important; }
    .header__hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; }
    .header__hamburger.active span:nth-child(2) { opacity: 0 !important; }
    .header__hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg) !important; }

    /* SPの大見出し（セクションタイトル、最終CTAタイトルなど）は24pxに統一 */
    .section-title, 
    .section-title-jp, 
    .final-cta__title, 
    .cta-title,
    .section-title span,
    .about-new__title,
    h2 {
        font-size: 24px !important;
        line-height: 1.4 !important;
    }

    /* 各コンテンツブロックの小見出し（SERVICE特徴、FLOWステップ、医師名など）を20pxに統一 */
    .feature-item__title,
    .flow__step-title,
    .doctor-card__name,
    .medical-card-new__title,
    .greeting__intro h3,
    h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .doctor-card__name span {
        font-size: 13px !important;
    }

    /* 本文は基本16pxで統一（15px以下の注記や補足テキストはそのまま） */
    .about__text,
    .feature-item__desc,
    .medical-card-new__desc,
    .flow__step-body p,
    .message-text,
    .doctor-card__text {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* こんな症状はご相談ください (Consultation) */
    .consultation__list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    .consultation__box {
        padding: 30px 15px !important;
    }
    .consultation__title {
        font-size: 20px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    .consultation__list li {
        font-size: 16px !important; /* 本文16pxに統一 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        text-align: center !important;
        padding: 25px 15px !important;
    }
    .consultation__list li span {
        text-align: center !important;
        display: block !important;
    }

    /* ABOUT (当院について) 本文だけ左揃え */
    .about__text {
        text-align: left !important;
        display: block !important;
    }
    
    /* 中間・最終CTA */
    .cta-row-new {
        gap: 15px !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    /* 電話番号 iPhone SE(320px) でも改行されないよう縮小 */
    .cta-row-new a[href^="tel:"] {
        font-size: 1.5rem !important;
    }
    .cta-row-new a[href*="reserve.ne.jp"] {
        font-size: 1.05rem !important;
        padding: 14px 30px !important;
        width: 100% !important;
        max-width: 290px !important;
        justify-content: center !important;
    }
    
    /* カレンダータイトルを16pxに統一し、完全に中央揃えにする */
    .schedule-wrapper {
        text-align: center !important;
    }
    .schedule-wrapper h3 {
        font-size: 16px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ACCESS (アクセス) のレスポンシブ崩れ対策 */
    .access__info {
        gap: 30px !important;
    }
    .access__info > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
    }
    .access__map {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    .access__map iframe {
        height: 250px !important; /* スマホでは高さを縮小 */
    }

    /* カレンダー外枠線の削除 & 横スクロール */
    .schedule-table-card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px !important;
        padding: 5px 15px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
    }
    .calendar-mint, .calendar-pink {
        border: none !important;
    }
    .schedule-table {
        min-width: 500px !important; /* 横スクロールを発生させて可読性を保つ */
        background: #fff !important;
        border-radius: 12px !important;
        border: none !important;
    }
    .schedule-table th, .schedule-table td {
        font-size: 11px !important;
        padding: 8px 4px !important;
    }
    .time-col {
        font-size: 10px !important;
    }

    /* FLOW (受診の流れ) 画像をDIVの中央に揃える */
    .flow__step-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 25px 20px !important;
    }
    .flow__step-img {
        flex: 1 1 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 15px !important;
        width: 100% !important;
    }
    .flow__step-img img {
        max-width: 280px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* MESSAGE (メッセージ) SP用グラデーション＆見出しフォントサイズ調整 */
    .message__fade-overlay {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 1) 100%) !important;
    }
    #message h2 {
        font-size: 20px !important;
        line-height: 1.6 !important;
    }

    /* 固定CTA (SP用追従CTA) レスポンシブはみ出し防止 */
    .fixed-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        z-index: 1999 !important;
        background: #fff !important;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.08) !important;
        box-sizing: border-box !important;
        padding: 10px !important;
        gap: 10px !important;

        /* 初期状態：非表示（透明化＆下スライド） */
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(100%) !important;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }
    /* スクロールでFVを超えた時にアクティブ表示 */
    .fixed-cta.is-active {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .fixed-cta__btn {
        flex: 1 1 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 46px !important;
        border-radius: 23px !important;
        font-size: 13px !important; /* iPhone SE 縦画面での絶対的なはみ出し防止 */
        font-weight: bold !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        gap: 6px !important;
    }
}

@media screen and (min-width: 769px) {
    /* 通常時（PC）は追従CTAを非表示 */
    .fixed-cta {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .about__text br.pc-only {
        display: none !important;
    }
}

/* ──────────────────────────────────────────────────────────
   SP表示（スマートフォン向け）の見切れ防止・改行固定・レイアウト微調整
   ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  br.sp-only {
    display: inline !important;
  }
  .pc-only {
    display: none !important;
  }
  .fv-new__main-title {
    font-size: 32px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
  .fv-new__sub-title {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  .fv-new__logo img {
    max-width: 210px !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 480px) {
  .fv-new__main-title {
    font-size: 30px !important;
  }
  .fv-new__sub-title {
    font-size: 12px !important;
  }
  .fv-new__logo img {
    max-width: 190px;
  }
}

/* ==========================================================================
   TOPへ戻るボタン (totop)
   ========================================================================== */
.totop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--mint-accent);
    border-radius: 50%;
    z-index: 1800;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.totop::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.totop:hover {
    background-color: var(--pink-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.totop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* スマホ表示時（追従CTAの上に配置） */
@media screen and (max-width: 768px) {
    .totop {
        bottom: 80px !important; /* 追従CTAの高さ66pxを避けて配置 */
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
    }
    .totop::before {
        width: 10px !important;
        height: 10px !important;
    }
}

/* ==========================================================================
   コピー禁止・画像ドラッグ禁止設定
   ========================================================================== */
body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

img {
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}