/* ===========================================
   ローディングアニメーション（トップページのみ）
   =========================================== */

.p-pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #65A373, #4A6B4A);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    pointer-events: none;
}

.p-pageLoader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.p-pageLoader__geometricMorph {
    width: clamp(60px, 4.7vw, 80px);
    height: clamp(60px, 4.7vw, 80px);
    background: linear-gradient(135deg, #F2F8EF, #ffffff);
    position: relative;
    will-change: transform, border-radius;
    animation: geometricMorph 3s ease-in-out infinite;
}

@keyframes geometricMorph {
    0%,
    100% {
        border-radius: 20%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 50%;
        transform: rotate(90deg) scale(0.9);
    }
    50% {
        border-radius: 5%;
        transform: rotate(180deg) scale(1.1);
    }
    75% {
        border-radius: 50%;
        transform: rotate(270deg) scale(0.9);
    }
}


/* レスポンシブ */

@media (max-width: 960px) {
    .p-pageLoader__geometricMorph {
        width: clamp(50px, 6vw, 70px);
        height: clamp(50px, 6vw, 70px);
    }
}

@media (max-width: 450px) {
    .p-pageLoader__geometricMorph {
        width: clamp(40px, 8vw, 60px);
        height: clamp(40px, 8vw, 60px);
    }
}

.main-visual {
    position: relative;
    margin: 0 0 0 auto;
    width: 80%;
    height: 100vh;
    background: url('../images/common/yawara-sejutsu.JPG') center center/cover no-repeat;
    border-bottom-left-radius: clamp(100px, 15vw, 200px);
    overflow: hidden;
}


/* 背景画像スライダー用（Web Animations APIで動的に追加される要素） */

.main-visual__slide {
    /* JavaScriptで動的にスタイルが設定されます */
    border-bottom-left-radius: clamp(100px, 15vw, 200px);
    overflow: hidden;
}


/* コンテンツを前面に */

.main-visual>*:not(.main-visual__slide) {
    position: relative;
    z-index: 10;
}


/*/ タブレット用 (960px以下) */

@media (max-width: 960px) {
    .main-visual {
        width: 100%;
        border-bottom-left-radius: clamp(60px, 8vw, 120px);
        height: 60vh;
    }
    .main-visual__slide {
        border-bottom-left-radius: clamp(60px, 8vw, 120px);
    }
}


/*/ スマホ用 (450px以下) */

@media (max-width: 450px) {
    .c-btn--arrow::after {
        width: 15px !important;
    }
    .c-btn--primary {
        background: #4A6B4A;
        color: #ffffff;
        padding: 8px clamp(32px, 3vw, 48px) !important;
        border-radius: clamp(60px, 4.68vw, 100px);
        font-size: clamp(16px, 1.2vw, 20px);
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    .main-visual {
        width: 85%;
        border-top-left-radius: clamp(32px, 6vw, 60px);
        border-bottom-left-radius: clamp(32px, 6vw, 60px);
        margin-top: 220px;
        height: 40vh;
        min-height: 300px;
        background-position: top;
        overflow: visible;
    }
    .main-visual__slide {
        border-top-left-radius: clamp(32px, 6vw, 60px);
        border-bottom-left-radius: clamp(32px, 6vw, 60px);
    }
    .p-heroSection {
        overflow: visible !important;
    }
    .p-heroSection__overlay {
        left: 20px;
        right: 20px;
        top: -80px !important;
        position: absolute !important;
        gap: 0 !important;
    }
    .p-heroSection__overlayBox {
        box-shadow: none !important;
        text-align: left !important;
        padding: 0 !important;
        font-size: 22px !important;
    }
    .p-aboutSection {
        margin-top: 50px;
        padding: 40px 0;
    }
    .p-heroNews {
        left: 0 !important;
        margin: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
    /* 下のセクション */
    .p-aboutSection__inner {
        /* max-width: 1200px; */
        width: 90% !important;
        margin: 0 auto;
    }
    .p-aboutSection__title {
        font-size: clamp(28px, 2.1vw, 40px) !important;
        margin-bottom: clamp(22px, 1.71vw, 42px) !important;
        line-height: 1.7 !important;
    }
    .p-aboutSection__text p {
        margin-bottom: 1em;
        font-size: clamp(15px, 1.17vw, 28px);
    }
    .p-aboutSection__image--large {
        width: 220px;
        height: 160px;
        left: -50px !important;
    }
    .p-aboutSection__image--small {
        width: 160px;
        height: 120px;
        right: -50px !important;
    }
    /* メニュー */
    .c-menuCard {
        padding: clamp(40px, 3vw, 60px) !important;
        /* padding-bottom: clamp(90px, 6.5vw, 110px); */
        min-height: 200px !important;
        height: 200px;
        border-radius: clamp(22px, 1.71vw, 42px) !important;
    }
    .c-menuCard__title {
        font-size: clamp(22px, 1.71vw, 42px) !important;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: clamp(24px, 1.8vw, 32px);
    }
    .c-menuCard__cta {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: clamp(24px, 1.8vw, 32px);
        transform: none;
        position: absolute !important;
    }
    .c-menuCard__cta {
        right: -10px !important;
        bottom: -5px !important;
    }
    .c-menuCard__label {
        border-top-left-radius: clamp(15px, 1.17vw, 28px) !important;
        border-bottom-right-radius: clamp(15px, 1.17vw, 28px) !important;
    }
    /* 院長メッセージ */
    .p-directorSection__container {
        width: 90% !important;
        padding: 0 15px;
    }
    .p-directorSection__title {
        font-size: clamp(22px, 1.71vw, 42px)!important;
    }
    .p-directorSection__subtitle {
        font-size: clamp(14px, 1.2vw, 18px);
        font-weight: 600;
        color: #36BAC7;
        letter-spacing: 0.2em;
        margin-bottom: 5px !important;
        text-align: center;
    }
    .p-directorSection__content {
        display: flex;
        gap: clamp(40px, 3vw, 60px);
        align-items: center !important;
    }
    .p-directorSection__profileTitle {
        margin-bottom: 0 !important;
    }
    .p-directorSection__profileName {
        font-size: clamp(22px, 1.71vw, 42px)!important;
        color: #5A5A5A;
        line-height: 2;
        margin-bottom: 0px !important;
    }
    .p-directorSection__mainText {
        font-size: clamp(22px, 1.71vw, 42px) !important;
        font-weight: 700;
        color: #5A5A5A;
        line-height: 1.7 !important;
        margin-bottom: clamp(30px, 2.3vw, 50px);
        text-align: left !important;
        margin-bottom: 20px !important;
    }
    .p-directorSection__text p {
        font-size: clamp(15px, 1.17vw, 28px) !important;
        text-align: left !important;
    }
    /* お客様の声 */
    .p-voiceSection__title {
        font-size: clamp(22px, 1.71vw, 42px) !important;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.3;
        text-align: left;
        margin-bottom: clamp(30px, 2.3vw, 50px);
    }
    .p-voiceSection__inner {
        width: 85% !important;
        margin: 0 auto;
        margin-top: 20px !important;
    }
    .p-voiceSection__subtitle {
        font-size: clamp(14px, 1.2vw, 18px);
        font-weight: 600;
        color: #ffffff;
        letter-spacing: 0.2em;
        margin-bottom: 5px !important;
        text-align: left;
    }
    .p-voiceSection__mainText {
        font-size: clamp(22px, 1.71vw, 42px) !important;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.7;
        margin-bottom: clamp(22px, 1.71vw, 42px) !important;
        text-align: left;
    }
    .p-voiceSection::before {
        top: 0 !important;
        right: 0 !important;
        width: 100px !important;
        height: 100px !important;
    }
    .p-voiceSection::after {
        top: 90px !important;
        right: 80px !important;
        width: 30px !important;
        height: 30px !important;
    }
    /* よくある質問 */
    .p-faqSection__title {
        font-size: clamp(22px, 1.71vw, 42px)!important;
        font-weight: 700;
        color: #5A5A5A;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 5;
    }
    .p-faqSection__subtitle {
        font-size: clamp(14px, 1.2vw, 18px);
        font-weight: 600;
        color: #36BAC7;
        letter-spacing: 0.2em;
        margin-bottom: 5px !important;
        text-align: center;
    }
    .c-faqItem__question {
        padding: 5px clamp(20px, 1.6vw, 25px)!important;
    }
}