/* Main Style */
body {
    font-family: YakuHanMP, "Noto Serif JP", serif;
    font-weight: lighter;
    color: #3c3c3c;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 1.15px;
    list-style: none;
    overscroll-behavior: none;
}

.en {
    font-size: 12px;
    color: #e0aa82;
    font-family: 'YakuHanMP';
    line-height: 30px;
}

/* イントロアニメーション */
.logo-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeInOut 3s ease-in-out forwards;
    background: linear-gradient(#f7e4d5,#fbf4ef);
    opacity: 1; 
    transition: opacity 2s ease; 
    overflow: hidden; 
}

.logo-intro.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@keyframes fadeInOut {
    0% { opacity: 1; }
    25% { opacity: 0; }
    75% { opacity: 0; }
    100% { opacity: 0; display: none; }
}

/* -------------------
ヘッダー
-----------------------*/
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 100;
    background-color: #f7e4d5;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo h3 {
    margin-left: 15px;
}

.hamburger {
    position: fixed !important;
    margin-right: 50px;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 30;
}

.hamburger span {
    width: 25px;
    height: 1px;
    background: #333;
    margin: 2.5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(35deg) translate(2px, 3px);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-35deg) translate(2px, -2px);
}

/*レスポンシブ対応（412px以下）*/
@media screen and (max-width:412px) {
    .header {
        padding: 30px 30px;
    }

    .hamburger {
        margin-right: 25px;
    }
}



/* ------------------------
ナビゲーション 
---------------------------*/
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(#f7e4d5,#fbf4ef);
    z-index: 25;
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.navigation.active {
    display: block;
    opacity: 1;
}
.navigation-header {
    padding: 30px 50px;
    display: flex;
    align-items: center;
}
.navigation-header h3 {
    margin-left: 15px;
}
.nav-container {
    justify-content: center;
    display: flex;
    column-gap: 4vw;
    height: calc(100vh - 90px);
    overflow: hidden;
    padding: 0 0 80px 0;
}
.nav-container span {
    width: 100%;
    position: absolute;
    bottom: 0%;
    height: 5rem;
    background-image: linear-gradient(0deg, rgba(255, 246, 239, 0.9) 0%, rgba(255, 246, 239, 0.7) 45%, rgba(255, 246, 239, 0) 100%);
}
/*レスポンシブ対応（820px以下）*/
@media screen and (max-width:820px) {
    .nav-container {
        display: grid;
        overflow: scroll;
        column-gap: 0vw;
    }
}

.nav-left {
    width: auto;
    padding: 55px 30px;
    overflow-y: visible;
}
/*レスポンシブ対応（820px以下）*/
@media screen and (max-width:820px) {
    .nav-left {
        overflow-y: visible;
        padding-bottom: 0px;
    }
}

.nav-right {
    width: auto;
    padding: 50px 30px;
    overflow-y: auto;
    max-height: 100%;
}
.nav-right p {
    font-size: 11px;
}
/*レスポンシブ対応（820px以下）*/
@media screen and (max-width:820px) {
    .nav-right {
        overflow-y: visible;
        padding-top: 0px;
    }
}

.nav-menu {
    margin-bottom: 60px;
}

.nav-menu li {
    margin-bottom: 20px;
    font-size: 18px;
}

.nav-menu li a {
    color: #4c4c4c;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: #fff;
    transition: 0.3s;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    margin-bottom: 10px;
}

.nav-button {
    width: 210px;
    padding: 30px;
    background-color: rgb(245 217 195 / var(--tw-bg-opacity, 1));
    color: #333;
    margin-right: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}
.nav-button:last-of-type {
    margin-right: 0px;
}
.nav-button img {
    width: 20px;
    height: 20px;
}
.nav-button:hover {
    opacity: .6;
    transition: .3s;
}
/*レスポンシブ対応(820px以下)*/
@media screen and (max-width:1024px) {
    .nav-button {
        width: 100%;
    }
}

/*レスポンシブ対応（412px以下）*/
@media screen and (max-width:412px) {
    .nav-buttons {
        display: grid;
        row-gap: 10px;
    }
}

.nav-notice, .footer-notice {
    margin-bottom: 60px;
    color: #4c4c4c;
}

.clinic-hours, .clinic-access, .clinic-info,
.footer-logo, .footer-hours, .footer-access {
    margin-bottom: 60px;
    color: #4c4c4c;
}

.clinic-hours h3, .clinic-access h3,
.footer-hours h3, .footer-access h3 {
    font-size: 18px;
    margin-bottom: 2px;
    display: flex;  /*タイトルポイント(●)の余白*/
    align-items: center;  /*タイトルポイント(●)の余白*/
    column-gap: 5px;  /*タイトルポイント(●)の余白*/
}
.clinic-hours a {
    border-bottom: 1px solid #727272;
    padding: 1px 3px;
}

.sns-icons {
    display: flex;
    margin-top: 25px;
}

.sns-icon {
    margin-right: 15px;
    color: #fff;
}
.sns-icon img {
    width: 40px;
}

/*------------------------------
メインビジュアル 
--------------------------------*/
.main-visual {
    position: relative;
    background-color: #f7e4d5;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    z-index: 0; /* 追加 */
}

/*--------------------------------
Swiperより上に出すメッセージ文言（追加）
----------------------------------- */
.catch-message {
    padding-top: 9.5vw;
    padding-bottom: 6vw;
    padding-left: 13.9vw;
    padding-right: 13.9vw;
    text-align: left;
    color: #383838;
    z-index: 10;
    background-color: #f7e4d5;
}

.catch-message h1 {
    font-size: 30px;
    margin-bottom: 2.25rem;
    letter-spacing: 2.25px;
}
.catch-message-sp {
    display: none;
}
.catch-message p {
    font-size: 15px;
    letter-spacing: 2px;
}
/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .catch-message-sp {
        display: block;
    }
}
/*レスポンシブ対応（412px）*/
@media screen and (max-width:412px) {
    .catch-message {
        padding-left: 8vw;
        padding-right: 8vw;
    }
    .catch-message p {
        font-size: 12px;
    }
}

.catch-copy {
    width: 100%;
    position: absolute;
    /* top: 65%; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}
.catch-copy img {
    width: 83vw;
}


/*--------------------
波打つアニメーション
---------------------*/
.wave-animation {
    position: absolute;
    width: 150%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23f7e4d5" d="M0,60 C480,70 960,30 1440,60 L1440,100 L0,100 Z" fill-opacity="1"/></svg>') repeat-x;
    background-size: 1440px 100px;
    animation: waveMove 7s linear infinite;
    z-index: 10;
    pointer-events: none;
}

.top-wave {
    top: 0;
    transform: rotate(180deg);
}

.bottom-wave {
    bottom: 0;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}


/* ------------------------
Swiper 
----------------------------*/
.swiper {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 1;
}

.swiper-wrapper {
    display: flex;
    transition-timing-function: linear !important;
    width: calc(480px * 10); /* 画像幅×枚数 */
    animation: 30s linear infinite;
}

.swiper-slide {
    width: 480px !important;
    height: 630px !important;
    display: flex;
    justify-content: space-between;

    align-items: center;
}

.slide-img {
    flex-shrink: 0;
    margin: 0 2px;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .9;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ----------------------------------
コンセプトセクション 
-------------------------------------*/
.concept {
    display: flex;
    justify-content: center;
    padding: 100px 70px;
    flex-wrap: wrap;
    background: linear-gradient(#f7e4d5,#fbf4ef);
}

.concept-text {
    display: flex;
    align-items: center;
}

.concept-text p {
    font-size: 15px;
    line-height: 2.5;
    letter-spacing: 1.15px;
}

.concept-images {
    width: 531px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    margin: 0 15px; /* 両端に15pxの余白を追加 */
}



.grid-image.delay-0 {
    margin-top: 0;
    width: 170px;
    margin-left: 35px;
    margin-top: 210px;
}
.grid-image.delay-1 {
    margin-top: 40px;
    width: 315px;
}
.grid-image.delay-2 {
    width: 205px;
}
.grid-image.delay-3 {
    width: 130px;
}

.grid-image {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}

.grid-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-image img {
    width: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.grid-image.visible:nth-child(3),
.grid-image.visible:nth-child(4) {
    transform: translateY(0) translateX(80px); 
}


/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .grid-image.visible:nth-child(1) {
        transform: translateX(-15px);
    }
    .grid-image.visible:nth-child(2) {
        transform: translateX(-15px);
    }
}

/*レスポンシブ対応（412px以下）*/
@media screen and (max-width:430px) {
    .grid-image.delay-0 {
        width: 100px;
        margin-top: 155px;
    }
    .grid-image.delay-1 {
        width: 200px;
    }
    .grid-image.visible:nth-child(2) {
        transform: translateX(-25px);
    }

    .grid-image.delay-2 {
        width: 145px;
    }

    .grid-image.delay-3 {
        width: 100px;
    }
    .grid-image.visible:nth-child(3), .grid-image.visible:nth-child(4) {
    transform: translateY(0) translateX(40px);
    }
}





/* --------------------------------
CLINIC GUIDE セクション 
------------------------------------*/
.clinic-guide {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-color: #fbf4ef;
    z-index: 0;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2880px;
    height: 50%;
    z-index: -10;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900" preserveAspectRatio="none"><path fill="%23fdebdd" d="M0,300 C240,400 480,200 720,300 C960,400 1200,200 1440,300 L1440,900 L0,900 Z"></path></svg>') repeat-x;
    background-size: 1440px 100%;
    animation: waveScroll 15s linear infinite;

}

@keyframes waveScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1440px);
    }
}

.guide-container {
    padding-left: 11.11111111111111vw;
    grid-template-columns: 56% auto;
    display: grid;
    padding-right: 9.45vw;
    column-gap: 7%;
    align-items: center;
}

.clinic-image img {
    width: 100%;
    box-shadow: -3px 3px 10px 3px #f7e4d5;
    border-radius: 3px;
}
.guide-left {
    width: 100%;
}
.guide-right {
    width: 100%;
}

.guide-right h2, .service-left h2 {
    font-size: 28px;
    margin-bottom: 20px;
    letter-spacing: 2.25px;
}

.guide-right p{
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 15px;
}
.guide-container-sp {
    display: none;
}

/*レスポンシブ対応（768px以下）*/
/* @media screen and (max-width:768px) {
    .guide-container {
        grid-template-columns: 46% auto;
    }
} */
@media screen and (max-width:853px) {
    .guide-container {
        grid-template-columns: 53% auto;
        column-gap: 5%;
    }
    .guide-right p {
        font-size: 13px;
    }
}

/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .guide-container {
        display: none;
    }
    .guide-container-sp {
        display: block;
        padding-left: 11.11111111111111vw;
        padding-right: 11.11111111111111vw;
    }
    .guide-container-sp h2 {
        font-size: 28px;
        margin-bottom: 20px;
        letter-spacing: 2.25px;
    }
    .guide-container-sp p {
        margin-bottom: 30px;
        line-height: 1.8;
        font-size: 14px;
    }
    .clinic-image img {
        height: 280px;
        object-fit: cover;
        opacity: .9;
    }
}


.view-more {
    font-size: 13px !important;
    font-weight: 100 !important;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 20 !important;
    text-decoration: none;
    padding: 23px 26px;
    margin-left: -23px;
    font-weight: bold;
    transition: color 0.3s, background 0.3s;
    border-radius: 45%;
    font-family: 'YakuHanMP';
    letter-spacing: 0.8px;
    align-items: center;
}

/* 白い影が中央から内側に広がる表現 */
.view-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.6); /* 白い影 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.2s ease;
    z-index: -1 !important;
}

.view-more:hover::before {
    width: 200%;
    height: 500%;
}

.view-more span {
    color: #E0AA82;
    margin-left: 10px;
    font-size: 16px;
}

/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .view-more {
        background-color: rgba(255, 246, 239, 0.9);
        border-radius: 9999px;
        padding: 20px 25px;
        margin-left: 0;
        display: block;
        text-align: center;
        margin: auto;
        width: 170px;
        margin-top: 20px;
    }

    .clinic-guide {
        padding: 70px 0;
    }
}



/* --------------------------
SERVICE セクション 
-----------------------------*/
.service {
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 130px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#fdebdd,#fbf4ef,#fdebdd);
    z-index: 0;
}

.service-container {
    display: flex;
    justify-content: space-between;
}

.service-left {
    width: 34%;
}

.service-right {
    width: 66%;
}

.service-right p {
    line-height: 1.8;
    font-size: 15px;
}
.service-right h4 {
    font-size: 16px;
    margin-top: 50px;
    margin-bottom: 25px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.service-item {
    background-color: rgb(255, 255, 255, 0.55);
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    cursor: pointer;
    overflow: hidden;
}
.service-item p {
    text-align: center;
    margin-top: 10px;
}
.service-item img {
    display: block;
    margin: 0 auto;
}
.service-item:hover img {
    transform: scale(1.08); /* 5%拡大 */
}

/*レスポンシブ対応(912px以下)*/
@media screen and (max-width:912px) {
    .service {
        padding-top: 80px;
        padding-bottom: 80px;
        padding-left: 8.111111vw;
        padding-right: 8.111111vw;

    }
    .service-container {
        display: block;
    }

    .service-left {
        width: 100%;
    }
    .service-right {
        width: 100%;
    }
}

/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .service-right p {
        font-size: 14px;
    }
    .service-grid {
        gap: 6px;
        grid-template-columns: repeat(2, 1fr);
    }
    .service-item {
        padding-right: .5rem;
        padding-left: .5rem;
    }
}

.service-search-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background-color: rgb(255, 255, 255, 0.55);
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 25px 25px 20px 25px;
}

.service-search-trigger input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    cursor: pointer;
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-btn img {
    width: 30px;
    height: 29px;
}

/* モーダル全体 */
.keyword-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.keyword-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999; /* 追加 */
}




/* ------------------------- モーダルコンテンツ ----------------------------*/
.keyword-modal-content {
    position: relative;
    margin: 30vh auto;
    background: #f9efe7;
    padding: 65px 40px;
    border-radius: 10px;
    max-width: 58vw;
    z-index: 10001;
}

.keyword-modal-content h2 {
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.keyword-modal-content p {
    margin-bottom: 20px;
}
.keyword-form {
    display: grid;
    grid-template-columns: auto 178px;
    column-gap: 0.375rem;
}

.form-box {
    background-color: #fff;
    padding: 45px 25px;
}
.keyword-form button {
    font-size: 19px;
    padding: 20px 26px;
    border: none;
    background: #e0aa82;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.keyword-input-wrapper {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    background-color: #f9efe7;
}

.keyword-input-wrapper img {
    width: 18px;
    margin-right: 10px;
}

.keyword-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: #f9efe7;
}

.keyword-input-wrapper button {
    padding: 6px 14px;
    border: none;
    background: #444;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
}

.keyword-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 63px;
    cursor: pointer;
}

/*レスポンシブ対応（820px以下）*/
@media screen and (max-width:820px) {
    .keyword-modal-content {
        max-width: 83vw;
    }
}
/*レスポンシブ対応（540px以下）*/
@media screen and (max-width:540px) {
    .keyword-modal-content {
        max-width: 91vw;
    }
    .form-box {
        padding: 45px 15px;
    }
    .keyword-form {
        grid-template-columns: auto 30%;
    }
}
@media screen and (max-width:412px) {
    .keyword-modal-content h2 {
        font-size: 18px;
    }
    .keyword-form {
        display: block;
    }
    .keyword-modal-content {
        max-width: 95vw;
        padding: 65px 20px 55px;
    }
    .form-box {
        padding: 45px 25px;
    }
    .keyword-input-wrapper {
        margin-bottom: 10px;
        padding: 30px 20px;
    }
    .keyword-modal-close {
        top: 8px;
        right: 15px;
        font-size: 50px;
    }
    .keyword-form button {
        width: 100%;
        padding: 13px;
    }
}
@media screen and (max-width:375px) {
    .keyword-modal-content h2 {
        font-size: 18px;
    }
}




/*------------------------------
CASE+PRICEセクション
--------------------------------*/
.case-price {
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#fdebdd, #fbf4ef, #fdebdd);
}

.case-price::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 65%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><path fill="%23fbeee4" d="M0,75 Q360,0 720,75 T1440,75 L1440,290 L0,290 Z"/></svg>') repeat-x;
    background-size: 1440px 100%; /* 高さ全体に波 */
    animation: waveMove 12s linear infinite;
    z-index: 0;
}
.contact-container {
    position: relative;
    z-index: 0;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}

.case-box, .price-box {
    width: 50%;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 0;
}
/* レスポンシブ対応 (912px以下) */ 
@media screen and (max-width:912px) {
    .contact-container {
        flex-direction: column;
    }
    .case-box, .price-box {
        width: 100%;
    }
}

/* 右線不要 */
.case-box::after {
    content: none;
}

.case-box h2, .price-box h2 {
    font-size: 26px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.case-box h3, .price-box h3,
.case-box h2, .price-box h2,
.case-box p, .price-box p,
.case-box .view-more, .price-box .view-more {
    position: relative;
    z-index: 1; /* テキスト前面 */
}

/* ボックス全体に白影 */
.case-box::before,
.price-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.988) 45%, rgba(255, 255, 255, 0) 65%); /* 白濃く+ぼかし自然 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.case-box:hover::before,
.price-box:hover::before {
    width: 350px;
    height: 350px;
    opacity: 1;
}

.case-box .view-more,
.price-box .view-more {
    padding-bottom: 0;
}

.case-box .view-more::before,
.price-box .view-more::before {
    content: none;
    padding-bottom: 0;
}

/*レスポンシブ対応（540px）*/
@media screen and (max-width:540px) {
    .case-box .view-more,
    .price-box .view-more {
        background-color: transparent;
    }
}



/* ------------------------------
MESSAGEセクション 
---------------------------------*/
.message {
    background: #fbeee4;
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow: hidden;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}
@media screen and (max-width:375px) {
    .message {
        padding-top: 70px;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .meaasage_period {
        display: none;
    }
}
.message-image-top {
    position: absolute;
    top: 17%;
    left: 1.2%;
    width: 24vw;
    opacity: .7;
}
/* レスポンシブ対応 (1024px以下) */
@media screen and (max-width:1024px) {
    .message-image-top {
        right: 2%;
        left: auto;
        opacity: .4;
    }
}
@media screen and (max-width:768px) {
    .message-image-top {
        display: none;
    }
}

.message-image-bottom {
    position: absolute;
    right: 2%;
    bottom: 13%;
    width: 25vw;
    opacity: .7;
}
/* レスポンシブ対応 (1024px以下) */
@media screen and (max-width:1024px) {
    .message-image-bottom {
        left: 2%;
        right: auto;
        bottom: 25%;
        opacity: .2;
    }
}
@media screen and (max-width:768px) {
    .message-image-bottom {
        display: none;
    }
}

.message-container {
    display: grid;
    justify-content: center;
}
.message-container h2 {
    font-size: 26px;
    letter-spacing: 2.25px;
    margin-top: 45px;
    margin-bottom: 15px;
    z-index: 1;
}
.message-container h4 {
    font-size: 14px;
    z-index: 1;
}
.message-container p {
    font-size: 17px;
    line-height: 2;
    margin-top: 40px;
    margin-bottom: 30px;
    z-index: 1;
}
@media screen and (max-width:540px) {
    .message-container p {
        font-size: 13px;
    }
    .message-container h2{
        font-size: 19px;
    }
}
@media screen and (max-width:412px) {
    .message {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .message-container p {
        font-size: 12px;
    }
    .meaasage_period {
        display: none;
    }
}

.message::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><path fill-opacity=".9" fill="%23f9e5d7" d="M0,75 Q360,0 720,75 T1440,75 L1440,450 L0,450 Z"/></svg>') repeat-x;
    background-size: 1440px 100%; /* 高さ全体に波 */
    animation: waveMove 12s linear infinite;
    z-index: 0;
}
.message .view-btn {
    text-align: center;
    margin-top: 30px;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}



/* ------------------------------
NEWSセクション 
---------------------------------*/
.news {
    padding: 100px 50px;
    background: linear-gradient(#f9e5d7f3,#fbf4ef,#fdebdd);
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}

.news-container {
    display: flex;
    justify-content: space-between;
}
.news-container-sp {
    display: none;
}

.news-left {
    width: 30%;
}

.news-right {
    width: 65%;
}

.news-left h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.news-left p {
    margin-bottom: 20px;
    font-size: 14px;
}

.news-item {
    display: block;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.news-item:hover {
    background: #f9f9f9;
}

.news-date {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.news-title {
    font-size: 18px;
    letter-spacing: 1px;
}

/**** パララックス背景 ****/
.parallax-bg {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    z-index: -1;
}
.parallax-bg img {
    width: 100%;
    height: 100%;
    position: sticky;
    top: 0;
    z-index: 5;
    object-fit: cover;
}

/* レスポンシブ対応 (912px以下) */
@media screen and (max-width:912px) {
    .news-container {
        display: none;
    }
    .news-container-sp {
        display: block;
        display: grid;
        justify-content: center;
    }
    .news-left {
        width: 100%;
    }
    .news-right {
        width: 100%;
    }

    .news-container-sp .view-more {
        margin: 0 auto;
        margin-top: 50px;
    }
    }

/*レスポンシブ対応（540px）*/
@media screen and (max-width:540px) {
    .news {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .news-item {
        padding: 20px 5px;
    }
    .news-title {
        font-size: 14px;
    }
}

.parallax-top-wave,
.parallax-bottom-wave {
    position: absolute;
    width: 150%;
    height: 110px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 110"><path fill="%23fdebdd" d="M0,90 C260,130 1080,10 1440,90 L1440,110 L0,110 Z"/></svg>') repeat-x;
    background-size: 1440px 110px;
    animation: waveMove 10s linear infinite;
    pointer-events: none;
    z-index: 10;
}
.parallax-top-wave {
    top: 0;
    transform: rotate(180deg);
}
.parallax-bottom-wave {
    bottom: 0;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}





/* -----------------------
Q&Aセクション 
--------------------------*/
.qa {
    background: linear-gradient(#fdebdd,#ffe8d7);
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}
.qa-container {
    display: flex;
    justify-content: space-between;
}
.qa-left {
    width: 32%;
}
.qa-left h2 {
    font-size: 28px;
}
.qa-left p {
    font-size: 15px;
    margin-top: 20px;
}
.accordion-item {
    margin-bottom: 10px;
}
.accordion-item p {
    display: flex;
    column-gap: 5px;
}
.qa-right {
    width: 65%;
}

/*レスポンシブ対応（912px以下）*/
@media screen and (max-width:912px) {
    .qa-container {
        flex-direction: column;
    }
    .qa-right {
        width: 100%;
        margin-top: 35px;
    }
    .qa-left {
        width: 100%;
    }
}
@media screen and (max-width:540px) {
    .accordion-head p {
        font-size: 14px;
    }
    .accordion-body p {
        font-size: 13px;
    }
}
@media screen and (max-width:430px) {
    .qa {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    .accordion-head p {
        font-size: 13px;
    }
    .accordion-body p {
        font-size: 12px;
    }
}

.accordion-head {
    background: #fbf4ef;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    column-gap: 7px;
    align-items: center;
    cursor: pointer;
}

.accordion-body {
    padding: 20px;
    background: #fff;
    border-top: none;
    display: none;
}

.accordion-icon {
    font-size: 20px;
    font-weight: bold;
}



/* -------------------------------
reservation+CONTACTセクション 
----------------------------------*/
.contact-reservation {
    position: relative;
    background: linear-gradient(#ffe8d7,#fff3e9);
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}

.contact-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

/* 中央縦線 */
.contact-container::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50%;
    background-color: rgba(183,149,141,0.6);
    z-index: 2;
}

.reservation-box, .contact-box {
    width: 50%;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 右線不要 */
.reservation-box::after {
    content: none;
}

.reservation-box h2, .contact-box h2 {
    font-size: 26px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.reservation-box h3, .contact-box h3,
.reservation-box h2, .contact-box h2,
.reservation-box p, .contact-box p,
.reservation-box .view-more, .contact-box .view-more {
    position: relative;
    z-index: 2; /* テキスト前面 */
}

/* ボックス全体に白影 */
.reservation-box::before,
.contact-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.988) 45%, rgba(255, 255, 255, 0) 65%); /* 白濃く+ぼかし自然 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* box hover時、影拡大＆濃く＆継続 */
.reservation-box:hover::before,
.contact-box:hover::before {
    width: 350px; /* 拡大：h2/p/viewmore覆う範囲に */
    height: 350px;
    opacity: 1;
}

.reservation-box .view-more,
.contact-box .view-more {
    padding-bottom: 0;
}

.reservation-box .view-more::before,
.contact-box .view-more::before {
    content: none;
    padding-bottom: 0;
}

@media screen and (max-width:1024px) {
    .contact-container p {
        font-size: 15px;
    }
    .reservation-box, .contact-box {
        padding: 40px 35px;
    }
    .contact_period {
        display: none;
    }
}

/*レスポンシブ対応(912px以下)*/
@media screen and (max-width:912px) {
    .contact-reservation
    .contact-container {
        flex-direction: column;
    }
    .contact-container::before {
        content: none;
    }
    .reservation-box, .contact-box {
        width: 100%;
    }
    .contact_period {
        display: block;
    }
}

/*レスポンシブ対応(540px以下)*/
@media screen and (max-width:540px) {
    .reservation-box .view-more,
    .contact-box .view-more {
        background-color: transparent;
    }
}




/*----------------------------
キャンセルポリシー　
------------------------------*/
.policy-accordion {
    width: 76%;
    margin: 0 auto;
}
.policy_period {
    display: none;
}

.policy-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    background: #fbf4ef;
    column-gap: 5px;

}

.policy-body {
    padding: 30px 35px;
    background: #fff;
    display: none;
}
.policy-description {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 12px;
    margin-bottom: 15px;
}
.policy-description:last-of-type {
    margin-bottom: 0;
}

.policy-description .line {
    line-height: 16px;
}

/*レスポンシブ対応*/
@media screen and (max-width:768px) {
    .policy-accordion {
        width: 100%;
    }
}
@media screen and (max-width:540px) {
    .contact-reservation {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .policy-head p ,
    .policy-description {
        font-size: 14px;
    }
}
@media screen and (max-width:430px) {
    .contact_period {
        display: none;
    }
    .policy_period {
        display: block;
    }
}

/* ---------------------------
投稿セクション 
------------------------------*/
.posts {
    background: linear-gradient(#fff3e9, #f5f1ee, #fdebdd);
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 130px;
    padding-bottom: 100px;
    overflow: hidden;
    position: relative;
}

.posts-container {
    display: flex;
    justify-content: center;
    column-gap: 7%;
}

.blog-section, .sns-section {
    width: 44%;
    position: relative;
}

.blog-section h2, .sns-section h2 {
    font-size: 24px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.blog-section h2::after, .sns-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.blog-section:hover h2::after, .sns-section:hover h2::after {
    width: 100%;
}

.blog-section p, .sns-section p {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}
.posts_period {
    display: none;
}

/* .blog-image img {
    position: absolute;
    right: 0;
    top: 0;
} */
@media screen and (max-width:768px) {
    .posts-container {
        flex-direction: column;
    }
    .blog-section,
    .sns-section {
        width: 100%;
    }
    .blog-section {
        margin-bottom: 35px;
    }
    .blog-section p,
    .sns-section p {
        margin-top: 10px;
    }
    .posts_period {
        display: block;
    }
}
@media screen and (max-width:540px) {
    
}
@media screen and (max-width:412px) {
    .posts {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media screen and (max-width:375px) {
    .posts_period {
        display: none;
    }
}




/* --------------------
RECRUIT セクション
-----------------------*/
.recruit {
    background: linear-gradient(#fdebdd, #fffaf6);
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.recruit-container {
    display: flex;
    justify-content: center;
    /* column-gap: 7%; */
    column-gap: 4%;
    align-items: center;
    position: relative;
}

.recruit-left h2 {
    font-size: 28px;
}
.recruit-left p {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 15px;
}
.recruit-image {
    position: relative;
}
.recruit-image img {
    box-shadow: -3px 3px 10px 3px #f7e4d5;
    border-radius: 3px;
}
.recruit::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><path fill="%23ffecdd" d="M0,75 Q360,0 720,75 T1440,75 L1440,400 L0,400 Z"/></svg>') repeat-x;
    background-size: 1440px 100%; /* 高さ全体に波 */
    animation: waveMove 12s linear infinite;
    z-index: 0;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}

.recruit-container-sp {
    display: none;
}

@media screen and (max-width:853px) {
    .recruit_period {
        display: none !important;
    }
    .recruit-left p {
        font-size: 14px;
    }
}
@media screen and (max-width:820px) {
    .recruit-container {
        column-gap: 3%;
    }
}

@media screen and (max-width:768px) {
    .recruit-container {
        display: none;
    }
    .recruit-container-sp {
        display: block;
        display: grid;
        justify-content: center;
    }
    .recruit-container-sp .view-more {
        margin: 0 auto;
        margin-top: 30px;
    }
}


/* --------------------
フッター 
-----------------------*/
footer {
    background: linear-gradient(#ffecdd,#fff2e8);
    padding-top: 100px;
    padding-bottom: 7px;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}

.footer-container {
    display: flex;
    justify-content: center;
    column-gap: 7vw;
}

.footer-left {
    width: auto;
}

.footer-left p {
    color: #4c4c4c;
}

.footer-right {
    width: auto;
    overflow-y: auto;
    max-height: 500px;
}
.footer-right p {
    font-size: 12px;
}
.footer-logo {
    display: flex;
    align-items: center;
    column-gap: 15px;
    margin-bottom: 5px;
}
.nav-menu span {
    color: #E0AA82;
}

@media screen and (max-width:1024px) {
    .footer-right {
        width: 100%;
    }
}
@media screen and (max-width:820px) {
    .footer-container {
        display: block;
    }
    .footer-right {
        max-height: 100%;
    }
    .footer-left {
        margin-bottom: 50px;
    }
    .footer-left p {
        font-size: 14px;
    }
}
@media screen and (max-width:540px) {
    footer {
        padding-left: 8.111111vw;
        padding-right: 8.111111vw;
    }
}



/*------------/// 【service-list.html】 ///-------------*/
.breadcrumb {
    font-size: 14px;
    color: #666;
    background-color: #f7e4d5;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
}
.breadcrumb ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
}
.breadcrumb li::after {
    content: ">";
    margin: 0 8px;
    color: #aaa;
}
.breadcrumb li:last-child::after {
    content: "";
}
.breadcrumb a {
    text-decoration: none;
    color: #333;
}

/***********************************
診療内容一覧ページ
************************************/
.main-content {
    background: linear-gradient(#f7e4d5,#fff5ed, #ffefe3,#ffecdd);
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 100px;
    padding-bottom: 100px;
}
.main-content h1 {
    font-size: 35px;
    margin-bottom: 50px;
}
.main-content section {
    padding: 2.5rem;
    background-color: #fff;
    margin-bottom: 40px;
}
.section_container a span {
    color: #E0AA82;
    right: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8f2;
    border-radius: 9999px;
}


.section_container {
    display: grid;
    grid-template-columns: 35% auto 42px;
}
.category_container {
    margin-left: 6.66%;
}
.category_title {
    font-size: 24px;
    margin-bottom: 30px;
}
.category {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 8px;
    margin-bottom: 30px;
}
.category h3 {
    font-size: 14px;
    padding: 10px 12px;
    background-color: #fff5ed;
    border-radius: 5px;
}
.category_container .summary {
    font-size: 15px;
    margin-bottom: 20px;
}
.section_container a {
    align-items: flex-end;
    display: flex;
}

.recommend h2 {
    font-size: 13px;
    line-height: 30px;
}
.recommend p {
    font-size: 14px;
}
.recommend span {
    margin-right: 4px;
    color: #E0AA82;
}

/***** Viewmoreボタン ******/
.section_container a h4 {
    display: none;
}

.section_container .vm_btn.view-more {
    padding: 23px 0 !important;
}

/*レスポンシブ対応（1024px以下）*/
@media screen and (max-width:1024px) {
    .section_container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .category_image img {
        width: 100%;
    }
    .category_container{
        margin-left: 0;
        margin-top: 2.22%;
    }
    .section_container a {
        justify-content: end;
    }
}

/*レスポンシブ対応（767px以下）*/
@media screen and (max-width:767px) {
    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .main-content section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .category_title {
        font-size: 20px;
        margin-bottom: 1.25rem;
    }
    .category h3 {
        font-size: 13px;
        padding: 0.65rem 0.5rem;
    }
    .summary {
        font-size: 14px !important;
    }

    /************ viewmoreボタン ***********/
    .view-more {
        background-color: rgba(255, 246, 239, 0.9);
        border-radius: 9999px;
        padding: 20px 25px;
        margin-left: 0;
        display: block;
        text-align: center;
        margin: auto;
        width: 170px;
        margin-top: 20px;
    }

    .section_container a h4  {
        display: block;
        display: flex;
        justify-content: space-around;
    }
    .section_container a span {
        width: auto !important;
        height: auto !important;
        background: transparent !important;
    }
    .section_container a {
        align-items: center;
        margin-top: 20px;
    }
    .section_container a .vm_btn {
        display: flex;
        justify-content: space-evenly;
        /* column-gap: 10px; */
        padding: 23px 26px !important;
    }
}
@media screen and (max-width:540px) {
    .section_container .vm_btn.view-more {
        padding: 23px 26px !important;
    }
}



/**************************
Priceリスト
***************************/
.price_container h4 {
    color: var(--color-gray-878787);
    font-size: 13px;
    line-height: 1.8em;
    margin-top: .625rem;
}

.price_box {
    margin-top: 2.5rem;
}
.price_menu_title {
    font-size: 20px;
    line-height: 1.8em;
}
.menu-full {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.menulist-table {
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.6em;
    letter-spacing: 0.05em;
}
thead tr {
    background-color: #fff5ed;
    border-bottom: 2px solid #ffe8d8;
}
thead tr th {
    border-right: 2px solid #ffe8d8;
    line-height: 2.2rem;
    padding: 5px;
}
thead tr th:first-child {
    min-width: 150px;
}
thead tr th:last-of-type {
    border-right: none;
}
tbody tr td {
    line-height: 2.2rem;
    padding: 5px;
    border-bottom: 2px solid #ffe8d8;
    border-right: 2px solid #ffe8d8;
}
tbody tr td:last-of-type {
    border-right: none;
}

/* レスポンシブ対応：768px以下で横スクロール有効に */
@media screen and (max-width: 768px) {
    .menu-full {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .menulist-table {
        width: auto; 
        min-width: 750px;
    }
    
    .price_menu_title {
        font-size: 18px;
    }
    .price_container p {
        font-size: 14px;
    }
}

/*********** プルダウン　▼要素  ************/
.price-selector {
    margin: 20px 0;
}
.price-selector select {
    max-width: 300px;
    width: 80%;
    padding: 8px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/*********  トップに戻るボタン  ********/
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    padding: 14px 15px;
    background-color: #fedac0;
    color: white;
    font-size: 22px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    z-index: 9999;
    display: none; /* 初期は非表示 */
    transition: opacity 0.3s ease-in-out;
}



/*******************************
コンタクトページ
*******************************/
#contact-form {
    /* padding: 7.5rem; */
    padding-top: calc(100vw * 120 / 1440);
    padding-bottom: calc(100vw * 120 / 1440);
    padding-left: min(2 * 100vw / 18, 2 * 1440px / 18);
    padding-right: min(2 * 100vw / 18, 2 * 1440px / 18);
    background: #fff8f4;
    margin-top: 4rem;
}
.form-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: flex-start;
    padding-bottom: 60px;
}

.form-group label {
    display: flex;
    align-items: flex-start;
    padding-top: 18px;
    font-size: 16px;
    line-height: 1.8em;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.form-group input {
    /* padding: 30px;
    font-size: 17px; */
    border: none;
    border-radius: 5px;
    position: relative;
    width: 100%;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(244 244 244 / var(--tw-bg-opacity, 1));
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 14px;
    line-height: 1.8em;
}
.required {
    padding-top: 1px;
    padding-left: 0.625rem;
    font-size: 12px;
    line-height: 1.8em;
    letter-spacing: 0.1em;
    --tw-text-opacity: 1;
    color: rgb(255, 68, 68);
}

/*生年月日*/
.birth {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.birth span {
    grid-template-columns: auto 1fr;
    display: grid;
    align-items: baseline;
    column-gap: 10px;
}
.birth input {
    text-align: right;
}

/*お問い合わせ区分*/
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.radio-grid label {
    align-items: baseline;
    position: relative;
    font-size: 16px;
    line-height: 1.8em;
    padding-top: 0px;
}
.radio-grid input {
    width: 20px;
}

/*来院歴*/
.history .history_label {
    grid-template-columns: 135px 1fr;
    display: grid;
}
.history input {
    width: 20px;
}
.history span {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid
;
}
.history span label {
    align-items: baseline;
}

/*希望日時_（注意事項）*/
.caution-box {
    border: 1px solid #f9e4d3;
    padding: 1.5rem 30px;
    margin-bottom: 2.5rem;
}
.caution {
    align-items: center;
    display: flex;
    column-gap: 10px;
    margin-bottom: 12px;
}
.caution img {
    width: 20px;
}
.caution-box span {
    color: #E0AA82;
}
.caution-box p {
    display: flex;
    column-gap: 5px;
    font-size: 14px;
    letter-spacing: 0.55px;
    margin-bottom: 0.5rem;
    line-height: 1.8em;
}
.caution-box p:last-of-type {
    margin-bottom: 0px;
}
.reserve {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    column-gap: 14px;
    margin-bottom: 1.5rem;
}
.reserve:last-of-type {
    margin-bottom: 0;
}
.reserve label {
    margin-right: 1rem;
}
.reserve .option {
    padding-top: 1px;
    padding-left: 0.625rem;
    font-size: 12px;
    line-height: 2.1em;
    letter-spacing: 0.1em;
    --tw-text-opacity: 1;
    color: #888;
}
.time-box {
    border: none;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(244 244 244 / var(--tw-bg-opacity, 1));
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    position: relative;
}

/*お問い合わせ内容*/
textarea {
    position: relative;
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(244 244 244 / var(--tw-bg-opacity, 1));
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 14px;
    line-height: 1.8em;
}

/*入力内容を確認する_ボタン*/
.confirm-container {
    text-align: center;
}
.confirm-container button {
    font-family: 'YakuHanMP';
    margin: 40px auto 0;
    padding: 2rem;
    background-color: #f9e4d3;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: min(80%, 400px);
    cursor: pointer;
}

/*レスポンシブ対応(1279px以下)*/
@media screen and (max-width:1279px) {
    #contact-form {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .form-group {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 0.625rem;
    }

    /*お問い合わせ区分*/
    .radio-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 0.375rem;
    }

    /*来院歴*/
    .history span {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .history .history_label {
        display: flex;
    }
    .form-group label {
        padding-top: 0px;
    }

    /*予約希望*/
    .reserve {
        align-items: center;
    }
}

/*レスポンシブ対応（767px）*/
@media screen and (max-width:767px) {
    #contact-form {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .caution-box {
        padding: 1.25rem;
    }
    .caution-box p {
        font-size: 13px;
    }
    .form-group label {
        font-size: 14px;
        margin-right: 0px;
    }
    .reserve {
        column-gap: .375em;
    }
    .form-group input {
        padding-top: .95rem;
        padding-bottom: .95rem;
        padding-right: 25px;
        padding-left: 25px;
    }
    .time-box {
        padding-left: 25px;
        padding-right: 25px;
    }
    .required {
        font-size: 10px;
        padding-left: 0.525rem;
    }
    .reserve .option {
        font-size: 10px;
        padding-left: 0.525rem;
    }
    .confirm-container p {
        font-size: 13px;
    }
}

@media screen and (max-width:539px) {
    .form-group label {
        letter-spacing: -1px;
    }
    .form-group .reserve input {
        padding: 12px 6px;
    }
    .time-box {
        padding: 18px 6px;
    }
    .required {
        padding-left: .325rem;
    }
    .reserve .option {
        padding-left: .325rem;
    }
    .confirm-container button {
        width: 100%;
        padding: 1.3rem;
    }
    .form-group input {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/****  確認画面  ***/
.confirm-area #toSubmit {
    font-family: 'YakuHanMP';
    margin: 40px auto 0;
    padding: 2rem;
    background-color: #f9e4d3;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: min(80%, 400px);
    cursor: pointer;
}

.confirm-area,
.thankyou-area {
    margin-top: 50px;
    padding-top: calc(100vw * 120 / 1440);
    padding-bottom: calc(100vw * 120 / 1440);
    padding-left: min(2 * 100vw / 18, 2 * 1440px / 18);
    padding-right: min(2 * 100vw / 18, 2 * 1440px / 18);
    background-color: #fff8f4;
}
.confirmList div {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: flex-start;
}

#confirmList div {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: flex-start;
    margin-bottom: 60px;
}
#confirmList div:last-of-type {
    margin-bottom: 0px;
}
#confirmList div dt {
    display: grid;
    grid-template-columns: 150px 2fr;
}

.button-area {
    display: grid;
    row-gap: 50px;
}
.button-area #backToForm {
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: #626262;
    cursor: pointer;
}
.button-area span {
    color: #E0AA82;
    background-color: #f9e4d3;
    border-radius: 9999px;
    padding: 15px;
    margin-right: 10px;
}

@media screen and (max-width:1279px) {
    #confirmList div {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 0.625rem;
    }
    #confirmLisr div dt {
        grid-template-columns: none;
    }
    .confirm-message {
        font-size: 14px;
    }
}

@media screen and (max-width:1025px) {
    .confirm-area,
    .thankyou-area {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media screen and (max-width:767px) {
    .confirm-area,
    .thankyou-area {
        padding-top: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2.5rem;
    }
    .button-area #toSubmit {
        height: 60px;
        width: min(100% - 16px, 400px);
        font-size: 14px;
        padding: 0;
    }

    .button-area {
        row-gap: 40px;
    }
    .button-area #backToForm {
        font-size: 14px;
    }
}

/* 表示・非表示切り替え用 */
.hidden {
    display: none !important;
}



/*******************************
ケースセクション
*********************************/
.case-content {
    background: #fff8f4 !important;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}
.case-content p{
    font-weight: 400;
    color: #727272;
}

@media screen and (max-width:767px) {
    .case-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .case-content p{
        font-size: 14px;
    }
}






/************************************
わたしたちについて
**************************************/

/****** ファーストビュー *******/
.about-page section {
    background-color: transparent !important;
}
.about-page {
    overflow: hidden;
    margin-bottom: -150px;
}
.about-clinic-section {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 100px;
}

.about-clinic {
    position: relative;
    z-index: 2;
    padding: 0;
}
.about-top-title {
    font-size: 42px;
}
.vertical {
    display: none;
}
.clinic-text {
    max-width: none;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
    background: none;
    width: calc(100vw - 60vw); /* 残り40%分 */
    box-sizing: border-box;
    line-height: 37px;
    font-size: 20px;
}
.clinic-text h4 {
    font-size: 26px;
    letter-spacing: .07em;
    line-height: 2.2em;
}
.section-desc {
    font-size: 16px;
}
.clinic-img-wrapper {
    position: relative;
    top: 0;
    right: 0;
    width: 60vw;
    height: auto;
    flex-shrink: 0;
    overflow: visible;
    pointer-events: none;
}
.clinic-img {
    position: absolute;
    width: 100%;
    top: auto;
    height: 100vh;
    right: 0;
    mask-image: linear-gradient(to left, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: .6;
}
.clinic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width:912px) {
    .clinic-text {
        width: 100%;
    }
    .section-desc {
        letter-spacing: .001em;
    }
    .clinic-img-wrapper {
        width: 100%;
    }
    .about-clinic-section {
        min-height: 0vh;
    }
}

@media screen and (max-width:680px) {
    .vertical {
        display: block;
    }
    .clinic-text h4 {
        writing-mode: vertical-rl;
        font-size: 20px;
        position: absolute;
        top: -4%;
        right: 8%;
        font-weight: 550;
    }
    .about-top-title {
        font-size: 26px;
    }
    .section-desc {
        font-size: 14px;
    }
}


/*********  クリニックの特徴  **********/
.feature-page {
    margin-top: 7.5rem;
    padding: 0;
}
.feature-page .section-title,
.flow .section-title {
    text-align: center;
}
.feature-page .section-lead,
.flow .section-lead {
    font-size: 30px;
    text-align: center;
}
.feature-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: clamp(100px, 100vw * 160 / 1440, 160px);
    column-gap: 11.1vw;
    margin-top: 10.5rem;
}
.feature-item {
    position: relative;
}
.feature-item:nth-child(even) {
    margin-top: 60px;
}
.text-center {
    color: #e0aa82;
    font-family: 'YakuHanMP';
    width: fit-content;
    text-align: center;
}
.font-en {
    font-size: 11px;
    letter-spacing: 0.1em;
}
.font-number {
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}
.feature-title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    line-height: 1.5em;
    margin-top: 2.75rem;
    margin-bottom: 3rem;
}
.feature-desc {
    line-height: 2.2em;
    position: relative;
    z-index: 1;
}
.feature-img  {
    position: absolute;
    top: calc(min(100vw * 140 / 1440, 140px) * -1);
    right: 0%;
    width: min(68%, 360px);
    z-index: 0;
}

@media screen and (max-width:1024px) {
    .feature-items {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: clamp(100px, 100vw * 160 / 1440, 160px);
        margin-top: 7.5rem;
    }
}

@media screen and (max-width:680px) {
    .feature-page .section-lead, 
    .flow .section-lead {
        font-size: 26px;
    }
}

@media screen and (max-width:660px) {
    .feature-title {
        margin-bottom: 2.5rem;
        font-size: 18px;
    }
    .feature-item:nth-child(even) {
        margin-top: 0;
    }
    .feature-items {
        margin-top: 7.5rem;
    }
    .feature-desc {
        font-size: 14px;
    }
}

@media screen and (max-width:580px) {
    .feature-items {
        margin-top: 5.5rem;
    }
    .feature-img img {
        width: 180px;
    }
}


/***********  カウンセリングタグ  ************/
.flow {
    margin-top: 100px;
}
.flow-wrapper {
        padding-bottom: 100px;
        display: grid;
        justify-content: center;
        padding-top: 80px;
        padding-bottom: 100px;
}
.flow-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/********  btn  *********/
.flow-tabs button {
    border: none;
    height: 88px;
    /* padding: 2.5rem; */
}
.flow-tabs p {
    font-family: 'YakuHanMP';
    font-size: 20px;
}
.counseling {
    border-radius: 10px 10px 0 0;
    background: #fff;
}
#counseling {
    background: #fff;
    padding: 70px;
    border-radius: 0 10px 10px 10px;
}
.counseling-treatment {
    border-radius: 10px 10px 0 0;
    background: #ffe7d4;
}
#counseling-treatment {
    padding: 70px;
    background: #ffe7d4;
    border-radius: 10px 0 10px 10px;
}
.newline {
    display: none;
}
/******************/

.price-policy {
    position: relative;
}
.price-policy::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: .5px;
    background-color: #e0aa82;
    z-index: 2;
    margin-top: 60px;
    opacity: .3;
}
.counseling-price {
    line-height: 2.2rem;
    font-size: 18px;
}
.price-policy {
    margin-top: 1.25rem;
    font-size: 16px;
    padding-bottom: 60px;
}
.flow-title {
    font-size: 22px;
    line-height: 2.2em;
    letter-spacing: 0.05em;
}
.flow-title span {
    background: #fdebdd;
    padding: 15px 17px;
    border-radius: 2px;
    margin-right: 20px;
    font-size: 16px;
}
.flow-step {
    display: grid;
    grid-template-columns: 1fr 41%;
    column-gap: 6%;
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
    font-size: 14px;
}
.flow-step::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 0.2px;
    background-color: #e0aa82;
    z-index: 2;
    opacity: .3;
}
.flow-step:last-of-type::before  {
    content: none;
}
.flow-desc {
    margin-top: 30px;
    letter-spacing: .01em;
    line-height: 2rem;
    font-size: 14px;
}
.flow-img img {
    width: 344px;
}

#counseling-treatment .price-policy::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1.5px;
    background-color: #fff;
    z-index: 2;
    margin-top: 60px;
    opacity: 1;
}
#counseling-treatment .flow-step::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1.5px;
    background-color: #fff;
    z-index: 2;
    opacity: 1;
}
#counseling-treatment .flow-step:last-of-type::before  {
    content: none;
}


@media screen and (max-width:1150px) {
    .flow-tabs p {
        font-size: 13px;
    }
    .counseling-price {
        font-size: 16px;
    }
    .price-policy {
        font-size: 14px;
    }
    .flow-step {
        column-gap: 5%;
    }
    .flow-title {
        font-size: 16px;
    }
    .flow-desc {
        font-size: 13px;
        line-height: 1.5rem;
    }

    #counseling,
    #counseling-treatment {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }
}

@media screen and (max-width:940px) {
    .flow-step {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .flow-img img {
        width: 100%;
    }
}

@media screen and (max-width:570px) {
    .flow {
        margin-top: 0px;
        padding-left: 0rem !important;
        padding-right: 0rem !important;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 30px;
    }
    #counseling, #counseling-treatment {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .counseling-price {
        font-size: 15px;
    }
    .price-policy {
        font-size: 13px;
    }
}

@media screen and (max-width:495px) {
    .newline {
        display: block;
    }
    .flow-tabs p {
        font-size: 12px;
    }
}




/****************************
キャンセルポリシー
******************************/
.cancel-content {
    background: #fff8f4 !important;
    padding-left: 11.11111111111111vw;
    padding-right: 11.11111111111111vw;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: left;
    margin-top: 50px;
}
.cancel-box {
    line-height: 2.2rem;
}
.cancel-box h4 {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 18px;
    font-size: 24px;
    line-height: 1.8em;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.cancel-box h4::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 0px;
    height: 60%;
    width: 3px;
    background-color: #f2d1b7;
}
.cancel-box {
    margin-bottom: 5rem;
}
.cancel-box:last-of-type {
    margin-bottom: 0px;
}
.cancel-box span {
    font-weight: bold;
}

@media screen and (max-width:540px) {
    .main-content h1 {
        font-size: 26px;
    }
    .cancel-box h4 {
        font-size: 20px;
    }
    .cancel-box p {
        font-size: 15px;
    }
    .cancel-box {
        margin-bottom: 3rem;
    }
}
@media screen and (max-width:450px) {
    .cancel-content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}