@charset "UTF-8";

/* =========================================================
   下層ページ メインビジュアル (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 395px;
    padding-top: 75px;
    background-color: var(--color-main);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 0;
}

.p-sub-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    100% { transform: translateY(0); opacity: 1; }
}

.p-sub-hero__title {
    font-family: var(--font-english);
    font-size: 2.8rem;
    font-weight: normal;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.p-sub-hero__en {
    display: block;
    font-family: var(--font-english);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .p-sub-hero { height: 280px; padding-top: 60px; }
    .p-sub-hero__title { font-size: 1.8rem; }
    .p-sub-hero__en { font-size: 0.9rem; }
}

/* =========================================================
   医院案内 ページ固有スタイル
========================================================= */
.p-about-section {
    padding: 80px 0;
}

/* 1段目：画像エリア（高さを低く調整） */
.p-about-image {
    margin-bottom: 60px;
    text-align: center;
}
.p-about-image img {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 21 / 9; /* アスペクト比を変更して高さを低くすっきりさせる */
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* 2段目：ボタン群（3列×2行のグリッド配置） */
.p-about-links {
    max-width: 900px;
    margin: 0 auto;
}

.p-about-links__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ボタンのデザイン：白背景、#333333色枠、他のボタンと同じホバー効果 */
.p-about-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background-color: #fff;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    font-weight: bold;
    font-size: 1.05rem;
    border-radius: 0px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

/* ホバー時に背景が左からスライドして塗りつぶされるアニメーション */
.p-about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-main);
    z-index: -1;
    transition: width 0.4s ease;
}

.p-about-btn:hover {
    color: #fff;
}
.p-about-btn:hover::before {
    width: 100%;
}

/* ボタン内の矢印アイコン */
.p-about-btn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-main);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.4s ease;
    flex-shrink: 0;
}
.p-about-btn__arrow::after {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--color-main);
    border-right: 1px solid var(--color-main);
    transform: rotate(45deg);
    margin-right: 2px;
    transition: border-color 0.4s ease;
}

.p-about-btn:hover .p-about-btn__arrow {
    border-color: #fff;
}
.p-about-btn:hover .p-about-btn__arrow::after {
    border-top-color: #fff;
    border-right-color: #fff;
}

@media screen and (max-width: 768px) {
    .p-about-section { padding: 40px 0; }
    .p-about-image { margin-bottom: 40px; }
    .p-about-links__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .p-about-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }
}