@charset "UTF-8";

/* =========================================================
   メインビュー
========================================================= */
.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: 600px; object-fit: cover; transform: scale(1); }

.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); }
}

.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;
}
.p-hero__catchphrase {
    font-family: var(--font-english); text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(30px); opacity: 0; transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: auto; width: 100%;
}
.p-hero__catchphrase.is-visible { opacity: 1; transform: translateY(0); }

.p-hero__en-copy { font-size: 3rem; margin-bottom: 20px; color: #fff; line-height: 1.4; }
.p-hero__sub-copy { font-size: 1.2rem; font-family: var(--font-gothic); color: #fff; }
.p-hero__sub-copy li { margin-bottom: 5px; }

@media screen and (max-width: 768px) {
    .p-hero-slider .swiper-slide img { height: 100vh; min-height: 500px; }
    .p-hero__overlay { align-items: center; text-align: center; padding: 0 15px; }
    .p-hero__catchphrase { margin-top: 0; }
    .p-hero__en-copy { font-size: 1.8rem; margin-bottom: 15px; }
    .p-hero__sub-copy { font-size: 1rem; }
}

/* =========================================================
   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; border-bottom: 1px solid #ddd; padding-bottom: 15px; }
.c-sec-title-wrap .c-sec-title { margin-bottom: 0; }
.c-sec-title-wrap__link, .c-sec-title-wrap__sub { font-size: 14px; font-weight: bold; color: var(--color-text); }
.c-sec-title-wrap__link:hover { opacity: 0.7; text-decoration: underline; }

.p-news__list li { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px dashed #eee; }
.p-news__list time { width: 90px; font-size: 14px; }
.p-news__cat { border: 1px solid #333333; font-size: 11px; padding: 3px 12px; margin-right: 15px; white-space: nowrap; }
.p-news__list a { flex: 1; font-size: 14px; line-height: 1.5; transition: opacity 0.3s; }
.p-news__list a:hover { opacity: 0.7; text-decoration: underline; }

@media screen and (max-width: 768px) {
    .p-news__list li { flex-wrap: wrap; }
    .p-news__list time { width: auto; margin-right: 12px; }
    .p-news__list a { flex: 0 0 100%; margin-top: 8px; }
}

/* =========================================================
   2カラムレイアウト (画像 + テキスト)
========================================================= */
.p-2col { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.p-2col--reverse { flex-direction: row-reverse; }
.p-2col__img { width: 50%; }
.p-2col__img img { width: 100%; border-radius: 8px; display: block; }
.p-2col__txt { width: 50%; }
.p-2col__txt p { font-size: 1rem; line-height: 1.8; }

@media screen and (max-width: 768px) {
    .p-2col, .p-2col--reverse { flex-direction: column; gap: 30px; }
    .p-2col__img, .p-2col__txt { width: 100%; }
}

/* =========================================================
   GUIDE (当院について)
========================================================= */
.p-guide-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.p-guide-header__txt { width: 60%; font-size: 1rem; line-height: 1.8; }
.p-guide-img { margin-bottom: 50px; }

/* ★画像の高さを制限し、はみ出た部分を綺麗にトリミングする設定 */
.p-guide-img img { 
    width: 100%; 
    height: 300px; /* PC版での高さ */
    object-fit: cover; 
    border-radius: 8px; 
    display: block; 
}

.p-guide-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.p-guide-bottom { text-align: center; font-size: 1rem; line-height: 2; }
.p-guide-bottom__diseases { margin-top: 30px; display: inline-block; text-align: center; background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
.p-guide-bottom__diseases strong { color: var(--color-main); display: block; margin-bottom: 10px; font-size: 1.1rem; text-align: center; }

@media screen and (max-width: 768px) {
    .p-guide-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .p-guide-header__txt { width: 100%; }
    
    /* ★スマホ版での高さ調整 */
    .p-guide-img img { height: 200px; }
    
    /* SP版のボタンを1列1個（1カラム）に変更 */
    .p-guide-btns { grid-template-columns: 1fr; gap: 12px; }
    .p-guide-bottom__diseases { padding: 20px; }
}