@charset "UTF-8";

/* =========================================================
   メインビジュアル (Hero) 
========================================================= */
.p-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* スライド自体のはみ出しを隠す設定 */
.p-hero-slider .swiper-slide {
    overflow: hidden;
}

.p-hero-slider .swiper-slide img {
    width: 100%; 
    height: 100vh; 
    min-height: 700px; 
    object-fit: cover;
    transform: scale(1); /* 初期サイズ */
}

/* ★変更：フェードアウト中（-prev）もズームを継続させるようにクラスを追加 */
.p-hero-slider .swiper-slide-active img,
.p-hero-slider .swiper-slide-duplicate-active img,
.p-hero-slider .swiper-slide-prev img,
.p-hero-slider .swiper-slide-duplicate-prev img {
    animation: zoomAnim 8s linear forwards;
}

/* ズーム用のアニメーション定義 */
@keyframes zoomAnim {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* ゆっくり1.1倍に拡大 */
    }
}

.p-hero-slider .swiper-pagination { bottom: 20px; }
.p-hero-slider .swiper-pagination-bullet {
    background: #fff; opacity: 0.6; width: 12px; height: 12px;
}
.p-hero-slider .swiper-pagination-bullet-active { opacity: 1; }


.p-hero__overlay {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 100%; z-index: 10; pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 高さいっぱいの中央に配置 */
    align-items: flex-start; /* PC版は左寄せ */
}
.p-hero__overlay a { pointer-events: auto; }

/* --- 中央・左寄せのキャッチコピー（日本語：ゴシック / 英語：明朝 ＋ フェードアップ演出） --- */
.p-hero__catchphrase {
    text-align: left; /* 左寄せ */
    color: #fff;
    /* ★変更：文字が読みやすいようにシャドウを少し濃く・大きく */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    width: 100%;
    padding: 0;
}
.p-hero__catchphrase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* メインコピー（日本語：ゴシック体、細め） */
.p-hero__jp-copy {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; /* ★変更：少し太字に */
    font-size: 3.0rem; /* ★変更：英語コピーと同じサイズに */
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 英語ロゴ風コピー（英語：明朝体、綺麗に広げる） */
.p-hero__en-copy {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500; /* ★変更：全体のバランスに合わせて少し太字に */
    font-size: 3.2rem;
    letter-spacing: 0.12em;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* サブコピー（日本語：ゴシック体、横並び） */
.p-hero__sub-copy {
    display: flex;
    flex-direction: column; /* ★変更：縦並びに変更 */
    align-items: flex-start; /* 左寄せ */
    gap: 15px; /* 行間 */
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300; /* ★変更：少し太字に */
    font-size: 1.8rem; /* ★変更：変更前の日本語コピーと同じサイズに */
    letter-spacing: 0.08em;
}
.p-hero__sub-copy li:not(:last-child):after {
    content: none; /* ★変更：縦並びになったため「・」を削除 */
}

/* 最下部：4つの白枠テキスト（下部固定・左端揃えの基準） */
.p-hero__diseases {
    position: absolute; 
    bottom: 60px; 
    left: 20px; 
    right: 20px; 
    display: flex; 
    justify-content: space-between; 
    gap: 15px;
}
.p-hero__diseases a {
    flex: 1; display: flex; justify-content: center; align-items: center; padding: 12px 10px;
    border: 1px solid #fff; color: #fff; font-weight: bold; font-size: 15px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.p-hero__diseases a:hover {
    background: #fff; color: var(--color-main); text-shadow: none;
}

/* --- レスポンシブ調整（スマホ版：スマホでは中央寄せに戻す） --- */
@media screen and (max-width: 768px) {
    .p-hero-slider .swiper-slide img { height: 100vh; min-height: 550px; }
    
    .p-hero__overlay {
        align-items: center; /* SPは中央揃え */
    }
    .p-hero__catchphrase {
        text-align: center; /* SPは中央揃え */
        padding: 0 15px;
        /* ★全体を少し上にあげる */
        margin-top: -110px; 
    }
    .p-hero__jp-copy {
        font-size: 1.6rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    .p-hero__en-copy {
        font-size: 1.8rem;
        margin-bottom: 25px;
        letter-spacing: 0.05em;
    }
    .p-hero__sub-copy {
        flex-direction: column; 
        align-items: center; /* ★追加：SPでは中央寄せ */
        gap: 12px; /* 文字が大きくなる分、行間を少し広げる */
        /* ★平日夜間などの文字サイズを大きくする（0.85rem -> 1rem） */
        font-size: 1.1rem; 
    }
    .p-hero__sub-copy li:not(:last-child):after {
        content: '';
        margin-left: 0;
    }

    /* ★diseaseの4つのボタンを縦に1つずつ並べ、文字を読みやすくする */
    .p-hero__diseases { 
        bottom: 35px; /* 縦並びで高さが出るため位置を微調整 */
        left: 20px; 
        right: 20px; 
        display: flex;
        flex-direction: column; /* 縦並びに変更 */
        gap: 10px; 
    }
    .p-hero__diseases a { 
        font-size: 14px; /* 文字サイズを大きくして読みやすく */
        padding: 12px 10px; 
        text-align: center; 
        width: 100%;
    }
    .p-hero-slider .swiper-pagination { bottom: 8px; }
}

/* =========================================================
   セクション共通
========================================================= */
.p-section { padding: 80px 0; }

/* =========================================================
   2カラム情報エリア (最新情報 & 診療時間)
========================================================= */
.p-top-info { display: flex; justify-content: space-between; gap: 60px; }
.p-top-info__col { width: 48%; }
@media screen and (max-width: 900px) {
    .p-top-info { flex-direction: column; gap: 60px; }
    .p-top-info__col { width: 100%; }
}
.c-sec-title-wrap { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; }
.c-sec-title--left { text-align: left; margin-bottom: 0; }
.c-sec-title-wrap__link, .c-sec-title-wrap__sub { font-size: 14px; color: var(--color-text); padding-bottom: 8px; }

/* 最新情報 */
.p-news__list li { display: flex; align-items: flex-start; padding: 12px 0; }
.p-news__list time { width: 90px; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; margin-top: 2px; }
.p-news__cat { border: 1px solid var(--color-text); font-size: 11px; padding: 3px 12px; border-radius: 2px; margin-right: 15px; white-space: nowrap; }
.p-news__list a { flex: 1; font-size: 14px; line-height: 1.5; transition: color 0.3s; }
.p-news__list a:hover { color: var(--color-main); }
.p-news__btn { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 260px; margin-top: 10px; }

@media screen and (max-width: 768px) {
    /* ★最新情報のSPレイアウト：日付とカテゴリの下にタイトルを改行して全幅表示 */
    .p-news__list li { 
        flex-wrap: wrap; 
        align-items: center; /* 日付とカテゴリの縦のズレをなくす */
        padding: 12px 0;
    }
    .p-news__list time { 
        width: auto; /* PCの90px固定を解除して自然な幅に */
        margin-right: 12px; 
        margin-top: 0;
    }
    .p-news__cat { 
        margin-right: 0; 
    }
    .p-news__list a { 
        flex: 0 0 100%; /* PC版の「縮んで1行に収まる設定」を強制解除し、幅100%を取らせる */
        margin-top: 6px; /* タイトルとの間の余白 */
        display: block; 
    }
}

/* 診療時間 */
.p-schedule__table-wrap { overflow-x: auto; margin-bottom: 20px; }
.p-schedule__table { display: grid; grid-template-columns: 120px repeat(7, minmax(30px, 1fr)); border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; min-width: 500px; }
.p-schedule__table li { padding: 12px 2px; text-align: center; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #ddd; font-size: 14px; }
.p-schedule__table li:nth-last-child(-n+8) { border-bottom: none; }
.p-schedule__table .is-time { justify-content: flex-start; padding-left: 5px; font-family: 'Noto Sans JP', sans-serif; font-weight: 500; }
.p-schedule__table .is-sat { color: #0066cc; }
.p-schedule__table .is-sun { color: #cc0000; }
.p-schedule__table .is-disabled { color: #999; }
.p-schedule__table .u-note { font-size: 10px; margin-left: 2px; }
.p-schedule__notes { text-align: right; font-size: 12px; line-height: 1.6; }

@media screen and (max-width: 768px) {
    .p-schedule__table-wrap { margin: 0 -10px 20px; }
    .p-schedule__table { min-width: 100%; grid-template-columns: 85px repeat(7, 1fr); }
    .p-schedule__table li { padding: 8px 0; font-size: 12px; }
    .p-schedule__table .is-time { font-size: 11.5px; padding-left: 2px; letter-spacing: -0.5px; }
    
    /* SP下部フローティングのパネル内の表組だけ、画面端にピタッとつかないよう幅を狭くする */
    .l-float-sp__panel .p-schedule__table-wrap {
        margin: 0 10px 20px; /* 余白を持たせて見やすく調整 */
    }
}

/* =========================================================
   当院の特徴 (FEATURES) - カード全体の角丸と写真の角丸調整
========================================================= */
.p-section--features {
    background-color: var(--color-bg) !important;
}

.p-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.p-feature-item {
    width: calc(33.333% - 20px);
    background: linear-gradient(135deg, #f4f8f9 0%, #eaf1ef 100%);
    /* カード全体の角丸を少し小さくする（12pxから6pxへ） */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.p-feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.p-feature-item__img {
    width: 100%;
    overflow: hidden;
}
.p-feature-item__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.p-feature-item:hover .p-feature-item__img img {
    transform: scale(1.05);
}

.p-feature-item__txt {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-feature-item__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 15px;
}

.p-feature-item__num {
    font-family: var(--font-gothic);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-main);
    line-height: 1;
}

.p-feature-item__txt h3 {
    font-family: var(--font-gothic);
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.p-feature-item__txt p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .p-features {
        flex-direction: column;
        gap: 25px;
    }
    .p-feature-item {
        width: 100%;
    }
    .p-feature-item__txt {
        padding: 25px 20px;
    }
}

/* =========================================================
   院長挨拶 (GREETING)
========================================================= */
.p-section--greeting { background: linear-gradient(135deg, #f4f8f9 0%, #eaf1ef 100%); padding: 100px 0; }
.p-greeting { display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; }
.p-greeting__left { width: 40%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.p-greeting__right { width: 55%; padding-top: 55px; }
.c-sec-title--greeting .c-sec-title__en { font-size: 4rem; margin-bottom: 20px; }
.c-sec-title--greeting h2 { font-size: 1.4rem; line-height: 1.8; }
.p-greeting__img { width: 80%; max-width: 280px; margin: 0 auto; }
.p-greeting__lead { font-size: 15px; line-height: 2.2; text-align: justify; margin-bottom: 40px; }
.p-greeting__bottom { display: flex; justify-content: flex-start; align-items: center; gap: 40px; }
.p-greeting__name { font-size: 1rem; margin-top: 0; }
.p-greeting__name span { font-size: 1.3rem; margin-left: 15px; }

@media screen and (max-width: 768px) {
    .p-section--greeting { padding: 60px 0; }
    .p-greeting { flex-direction: column; gap: 30px; }
    .p-greeting__left, .p-greeting__right { width: 100%; padding-top: 0; }
    .c-sec-title--greeting .c-sec-title__en { font-size: 3.5rem; }
    .c-sec-title--greeting h2 { font-size: 1.2rem; }
    .p-greeting__bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .p-greeting__left .p-greeting__img { max-width: 60%; }
}

/* =========================================================
   診療案内 (MEDICAL) 
========================================================= */
.p-medical-section-title h2 {
    position: relative;
    padding-bottom: 20px;
}
.p-medical-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--color-main);
}

.p-medical {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 診療案内の写真の角丸を調整 */
.p-medical-item__img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px; 
    display: block;
}
/* 診療案内のコンテンツ内タイトル */
.p-medical-title {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 500 !important; /* ミディアム */
    font-size: 1.35rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 12px; /* ■と文字の間隔 */
    margin-bottom: 20px;
}

/* タイトルの左側に配置する細い■のあしらい */
.c-heading-line::before {
    content: '';
    display: inline-block;
    width: 3px;  /* 細めの幅 */
    height: 1.1em; /* 文字の高さに自動で合わせる */
    background-color: var(--color-main); /* メインカラー（オレンジ系） */
    border-radius: 1px;
    flex-shrink: 0;
}

.p-medical-item__content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

@media screen and (min-width: 769px) {
    .p-medical-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "img title"
            "img content";
        gap: 0 50px;
        align-items: center;
    }
    .p-medical-item:nth-child(even) {
        grid-template-areas: 
            "title img"
            "content img";
    }
    .p-medical-item__img { grid-area: img; width: 100%; }
    .p-medical-title { grid-area: title; align-self: end; margin-bottom: 20px; }
    .p-medical-item__content { grid-area: content; align-self: start; }
}

@media screen and (max-width: 768px) {
    .p-medical { gap: 50px; }
    .p-medical-item {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .p-medical-title {
        order: 1; 
        font-size: 1.25rem;
        margin-bottom: 12px;
        text-align: left;
    }
    .p-medical-item__img {
        order: 2; 
        margin-bottom: 15px;
        width: 100%;
    }
    .p-medical-item__content {
        order: 3; 
        width: 100%;
    }
    .p-medical-item__content .c-btn-wrap {
        margin-top: 0;
        width: 100%; 
    }
    
    /* SP版の診療案内内リンクボタンと本文がくっつかないよう余白を確保 */
    .p-medical-item__content .c-btn-circle-arrow {
        margin-top: 15px; 
        display: inline-flex;
    }
}

/* =========================================================
   医院紹介 (ABOUT US)
========================================================= */
.p-about-main-img { width: 100%; margin-bottom: 40px; }
.p-about-main-img img { width: 100%; display: block; }

.p-about-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.c-btn-outline { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; font-weight: bold; border: 1px solid var(--color-text); border-radius: 4px; transition: all 0.3s ease; }
.c-btn-outline:hover { background-color: var(--color-text); color: #fff; }

.p-about-desc { text-align: center; font-size: 0.95rem; line-height: 2; margin-bottom: 60px; }

.p-about-carousel-wrap { position: relative; width: 100%; overflow: hidden; }

/* 写真部分（スライダー本体）を基準に高さを計算させる */
.p-carousel {
    position: relative;
}

.p-about-swiper-prev, .p-about-swiper-next { 
    position: absolute; 
    z-index: 10;        
    background-color: #000; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    color: #fff; 
    top: 50%; /* 写真の縦方向の「完全な中央」に配置 */
    transform: translateY(-50%); 
    margin-top: 0; 
}
/* PC版：右フローティングと被らないよう、左右ともに大きく内側に寄せる */
.p-about-swiper-prev { left: 80px; }
.p-about-swiper-next { right: 80px; }
.p-about-swiper-prev::after, .p-about-swiper-next::after { font-size: 14px; font-weight: bold; }

.p-about-select { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 30px; }
.p-about-select__text {
    font-family: 'Noto Sans JP', sans-serif !important; 
    font-weight: 500; 
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}
.p-about-select__arrow { font-size: 1.5rem; transition: opacity 0.3s; }
.p-about-select__arrow:hover { opacity: 0.6; color: var(--color-main); }

@media screen and (min-width: 769px) {
    .p-about-carousel-wrap .swiper-slide { width: 420px !important; }
}
@media screen and (max-width: 768px) {
    .p-about-main-img { margin-bottom: 30px; }
    .p-about-links { grid-template-columns: 1fr; gap: 15px; margin-bottom: 40px; }
    
    .p-about-desc { font-size: 0.9rem; margin-bottom: 40px; text-align: center; } 
    
    .p-about-swiper-prev, .p-about-swiper-next { width: 30px; height: 30px; }
    .p-about-swiper-prev::after, .p-about-swiper-next::after { font-size: 12px; }
    /* SP版：スマホの画面幅に合わせて少し内側に寄せる */
    .p-about-swiper-prev { left: 15px; }
    .p-about-swiper-next { right: 15px; }
}