@charset "utf-8";

:root {
    /* カラー管理 ------------------------------------------------------------*/
    --base-color: #ffffff;
    --main-color: #9bddff;
    --accent-color: #00498e;
    --color-text: #333;
    /* メインのフォント ------------------------------------------------------------*/
    --font-base: "Zen Kaku Gothic New", sans-serif;
    --text-font: "Noto Sans JP", sans-serif;
    /* セクションのフォントサイズ ------------------------------*/
    --section-title: clamp(1.75rem, 1.568rem + 0.91vw, 2.25rem);
    /* サブタイトルのフォントサイズ */
    --sub-title-font-size: clamp(1.25rem, 1.068rem + 0.91vw, 1.75rem);
    /* テキストのフォントサイズ */
    --normal-text-font-size: clamp(1rem, 0.932rem + 0.34vw, 1.188rem);
    /* セクション間のマージン ------------------------------*/
    --section-margin: clamp(5rem, 3.909rem + 5.45vw, 8rem);
}

/* カスタムリセット・ベース  ------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    padding: 0 4%;
}

p {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

h1,
h2,
h3 {
    font-family: var(--font-base);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}


.main-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
    position: relative;
}

/* 各セクション共通 ----------------------------------------------------------------------------*/
/* インナー：1200px */
.inner {
    max-width: 1200px;
    margin: 0 auto;

}

/* セクションのタイトル */
.section-title {
    /* font-size: var(--section-title); */
    margin-top: var(--section-margin);
    margin-bottom: 3rem;
    text-align: center;
}

/* ボタン */
.section-btn {
    margin-top: 2rem;
    margin-right: auto;
    margin-left: auto;
    display: block;
    padding: 0.8rem;
    background-color: var(--accent-color);
    color: #fff;
    width: 200px;
    text-align: center;
    border-radius: 2rem;
}

.heading {
    position: relative;
    padding-top: 80px;
    padding-bottom: 50px;
    font-size: 26px;
    text-align: center;
    color: #00498e;
}

.heading span {
    position: relative;
    z-index: 3;
}

.heading::before {
    content: attr(data-en);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(155, 221, 255, 0.8);
    font-size: clamp(4.063rem, 3.722rem + 1.7vw, 5rem);
    font-style: italic;
    font-family: var(--font-base);
    z-index: 1;
}

.heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%) rotate(30deg);
    width: 1px;
    height: 40px;
    background-color: var(--accent-color);
}


/* 左ナビ ------------------------------------------------------------------------------*/
.side-nav {
    width: clamp(11.25rem, 9.659rem + 7.95vw, 15.625rem);
    height: calc(100vh - 32px);
    background-color: #ffffff;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    margin-right: 3%;
}

.side-nav .logo {
    margin-bottom: 1rem;
}

.logo img {
    /* width: clamp(6.25rem, 3.523rem + 13.64vw, 13.75rem); */
    width: 180px;
}

.side-nav nav ul a {
    display: block;
    padding: 8px 8px 8px 0;
    margin-bottom: 0.6rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
    font-family: var(--font-base);
}

.sns-icon {
    display: flex;
    align-items: end;
    width: 100%;
    margin-top: 1.2rem;
}

.sns-icon-img img {
    width: 30px;
    height: 30px;
    margin-right: 1.3rem;
}

.sns-icon-img:nth-child(3) img {
    margin-right: 0;
}

.tel {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: bold;
}


/* 上部のnavi ------------------------------------------------------------------------------*/
.top-nav {
    margin: 0 auto;
    max-width: 1000px;
    height: 50px;
    background-color: rgba(254, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 3rem;
    box-shadow: 3px 4px 15px -4px #777777;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 1rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
}

.top-nav.show-header {
    transform: translateY(0);
}

.top-nav ul {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.top-nav ul li a {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text);
    display: block;
    padding: 0.5rem;
}

.top-nav-sp {
    display: none;
}

/* ヒーローセクション ------------------------------------------------------------------------------*/
.hero {
    position: relative;
}

.main-area {
    max-width: 90vw;
    padding: 2rem 0 0 0;
    flex: 1;
    min-width: 0;
}

/* Swiper ---------------------------------------*/
.swiper-wrapper {
    width: 100%;
}

.swiper-pagination-bullet {
    background: #999;
    opacity: 1;
    width: 14px;
    height: 14px;
}

.swiper-pagination-bullet-active {
    background: var(--main-color);
}

.main-swiper .swiper-wrapper .swiper-slide img {
    display: block;
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: calc(100vh - 32px);
    object-fit: cover;
    border-radius: 2rem 2rem 0 0;
}

/* スライド上のテキスト ---------------------------------------*/
.hero-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: absolute;
    padding: clamp(0.188rem, 0.074rem + 0.57vw, 0.7rem);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
}

.hero-text-1 {
    top: 5%;
    left: 24%;
    margin-left: 2%;
}

.hero-text-2 {
    top: 12%;
    left: 16%;
    margin-left: 2%;
}

.hero-text-3 {
    top: 20%;
    left: 10%;
}

.vertical {
    z-index: 99;
    position: relative;
    font-size: clamp(0.875rem, 0.579rem + 1.48vw, 1.875rem);
    color: #222;
    font-weight: 400;
    font-family: var(--text-font);
}

.hero-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.9);
}

/* 予約ボタン ---------------------------------------*/
.reservation-btn {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
    display: block;

}

.reservation-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    right: 0%;
    transform: translate(0, -50%);
    z-index: 999;
    background-color: #f9f9f9;
    box-shadow: 3px 4px 15px -4px #777777;
    border-radius: 10px;
    padding: 1.3rem 1rem;
    transition: all 0.3s ease;

}

.reservation-wrapper:hover {
    transform: translate(0, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}


.reservation-btn img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}



.tel {
    display: flex;
    align-items: center;
    position: absolute;
    top: 2%;
    right: 1%;
    z-index: 99;
    padding: 0.8rem;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    gap: 8px;
}

.tel img {
    width: 25px;
    height: 25px;
}

/* スケジュールのテーブル ---------------------------------------*/
table {
    width: 450px;
    border-collapse: collapse;
    color: var(--color-text);
    background-color: rgba(254, 255, 255, 0.7);
    border-radius: 1rem 0 0 0;
}

.schedule-table-1 {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
}

table th,
table td {
    border-bottom: 1px solid #333;
    font-weight: bold;
}

table tr:nth-child(2) td:nth-child(1),
table tr:nth-child(3) td:nth-child(1) {
    text-align: left;
}


table tr th {
    padding: 0.5rem;

}

table tr th:nth-child(1) {
    text-align: left;
}


table tr td {
    padding: 0.5rem;
    text-align: center;
}


/* コンセプト ----------------------------------------------------------------------------*/
.concept-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(5rem, 4.273rem + 3.64vw, 7rem);
}

.concept-wrapper:nth-child(2) {
    margin-bottom: 0;
}

.concept-img-wrapper {
    position: relative;
    width: 55%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid #333; */
    min-height: 500px;

}

.concept-img-wrapper img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    position: absolute;
}

.cpt-img01 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-80%);
    width: clamp(15.625rem, 14.034rem + 7.95vw, 20rem);
}

.cpt-img02 {
    position: absolute;
    width: clamp(13.125rem, 12.67rem + 2.27vw, 14.375rem);
    top: 30%;
    left: 50%;
    transform: translateX(15%);
}

.concept-text-wrapper {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
}

@media screen and (max-width:880px) {
    .cpt-img02 {
        left: 42%;
    }
}

.concept-text-wrapper h3 {
    margin-bottom: 2rem;
    font-size: var(--sub-title-font-size);
    white-space: nowrap;
}

.concept-text-wrapper p {
    font-size: var(--normal-text-font-size);
}


.concept-wrapper.reverse {
    flex-direction: row-reverse;
}

.concept-wrapper.reverse .concept-img-wrapper {
    margin-right: 0;
}

.concept-wrapper.reverse .concept-text-wrapper {
    padding-left: 0;
    padding-right: 5%;
}

.indent {
    padding-left: 3em;
    display: inline-block;
}

.sp-only {
    display: inline;
}


/* ニュース ----------------------------------------------------------------------------*/
.news {
    margin: 0 auto;
    padding: 2rem 1rem;
}


.news-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 2.5rem;
}

.news-container ul {
    width: calc((100% - (2.5rem)) / 2);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
}

.news-container ul li {
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px dotted #bbb;
}

.news-container ul li:nth-child(4) {
    border-bottom: none;
    margin-bottom: 0;
    gap: 0;
}

.news-container ul li a {
    display: inline-block;
    color: var(--color-text);
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width:768px) {
    .news-list {
        justify-content: center;
    }
}

.news-list a {
    font-size: 1rem;
}


.news-list time {
    font-size: 12px;
    color: #777777;
}

.schedule-table-2-wrapper {
    width: calc((100% - (2.5rem)) / 2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1rem;
}

.mini-bnr {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.mini-bnr img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.schedule-table-2 {
    max-width: 480px;
    width: 100%;
}

.mini-bnr img:hover {
    transform: scale(1.05);
}

.news-btn {
    margin-top: 0;
}

/* 診療案内 */

.guide-card-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.guide-card {
    margin-top: 64px;
    position: relative;
    width: calc((100% - 128px) / 4);
    background-color: #d5ebff;
    height: 300px;
    border-radius: 2rem 2rem 0 0;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

}

.guide-card h3 {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
    font-family: var(--text-font);
    color: var(--color-text);
    white-space: nowrap;
}

.guide-img {
    width: 100%;
    max-height: 70%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1rem;
    filter: saturate(1.1) brightness(1.05);
}

.guide-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #ffffff;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid var(--main-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guide-icon-img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

/* 院長のあいさつ */
.director-container {
    display: flex;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
}

.director-img-wrapper {
    width: 50%;
}

.director-img-wrapper img {
    width: 100%;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.director-text-wrapper {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.director-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.director-message {
    line-height: 1.8;
    font-size: clamp(1rem, 0.932rem + 0.34vw, 1.188rem);
    color: var(--color-text);
}

/* swiper */
.director-gallery-swiper {
    margin-top: 3rem;
    margin-bottom: 6rem;
    overflow: hidden;
    width: 100%;
}

.director-gallery-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    transition-timing-function: linear;
}

.director-gallery-swiper .swiper-slide {
    width: 300px;
    flex-shrink: 0;
    margin-right: 20px;
}

.director-gallery-swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}



/* モバイル対応 ------------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:820px) {
    .side-nav {
        display: none;
    }

    .top-nav-sp {
        display: flex;
        height: 70px;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background-color: rgba(254, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .hero {
        padding-top: 70px;
    }

    .logo-2 {
        width: 200px;
        margin: 0 4%;
    }

    .main-area {
        width: 100%;
        padding: 0;
    }

    .main-swiper .swiper-wrapper .swiper-slide img {
        height: calc(100vh - 70px);
        border: none;
        border-radius: 0;
    }

    .reservation-wrapper {
        all: unset;
        position: absolute;
        bottom: 0;
        right: 3%;
        padding: 1rem;
        background-color: #f9f9f9;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 999;
        transform: translate(0, -50%)
    }

    .vertical {
        font-size: 1rem;
    }

    .hero-text-1 {
        top: 40%;
        left: 25%;
    }

    .hero-text-2 {
        top: 45%;
        left: 16%;

    }

    .hero-text-3 {
        top: 53%;
        left: 9%;
    }

    .swiper-slide img {
        object-position: center center;
        width: 100%;
    }

    .schedule-table {
        display: none;
    }

    .main-container {
        padding: 0;

    }

    .main-area {
        max-width: 100vw;
    }

    .top-nav {
        display: none;
    }

    .tel {
        display: none;
    }

    .concept-wrapper {
        flex-direction: column;
        align-items: center;
        /* 中央に寄せてバランス取る */
        gap: 2rem;
    }

    .concept-wrapper.reverse {
        flex-direction: column;
    }

    .concept-img-wrapper,
    .concept-text-wrapper {
        width: 100%;
    }

    .concept-img-wrapper {
        height: 500px;
        margin-right: 0;

    }

    .concept-img-wrapper img {
        position: absolute;
        object-fit: cover;
    }

    .concept-text-wrapper {
        padding: 0 1rem;
        margin: 0 auto;

    }


    .concept-text-wrapper p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .concept-wrapper:nth-child(1) .section-btn {
        margin-bottom: 2rem;
    }

    .guide-card-wrapper {
        gap: 1rem;
    }

    .guide-card {
        width: calc((100% - 32px) / 2);
        height: 220px;
        border-radius: 1rem 1rem 0 0;
        margin-top: 32px;
    }

    .guide-img {
        width: 100%;

    }

    .guide-card h3 {
        top: 25%;
        font-size: 20px;
    }

    .guide-icon {
        width: 80px;
        height: 80px;
    }

    .guide-icon-img {
        width: 45px;
        height: 45px;

    }

    .news-container {
        flex-direction: column;
    }

    .news-container ul {
        width: 100%;
        margin-bottom: 2rem;
    }

    .schedule-table-2-wrapper {
        width: 100%;
    }

    .schedule-table-1 {
        display: none;
    }

    .cpt-img01 {
        transform: translateX(-70%);
    }

    .cpt-img02 {
        transform: translateX(0);

    }

    .concept-text-wrapper h3 {
        text-align: center;
    }

    .concept-wrapper.reverse .concept-img-wrapper {
        margin-left: 0;
    }

    .director-text-wrapper {
        width: 100%;
    }

    .director-container {
        flex-direction: column;
    }

    .director-img-wrapper {
        width: 100%;
    }


    .director-gallery-swiper {
        padding-inline: 1rem;
    }

    .director-gallery-swiper .swiper-slide {
        width: 180px;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .director-gallery-swiper .swiper-slide img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }

    .director-gallery-swiper {
        margin-top: 0;
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
    .guide-card {
        width: calc((100% - 2rem) / 2);
        /* 2列表示 */
    }
}