@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-doctor-section {
    padding: 80px 0;
}

.p-doctor-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 60px;
    text-align: center;
}

/* 各セクションブロック（グレー枠なし、下部区切り線） */
.p-doctor-block {
    margin-bottom: 60px;
    border: none;
    background-color: transparent;
    padding: 0;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 60px;
}
.p-doctor-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 院長紹介（Gridレイアウトによる安定した配置） */
.p-director-profile {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0 40px;
    align-items: start;
}

.p-director-img {
    grid-column: 1 / 2;
    grid-row: 1 / 3; /* 写真を上段から下段までスパンさせる */
}
.p-director-img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.p-director-info {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.p-director-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
    font-weight: bold;
}

.p-director-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-main);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
    letter-spacing: 0.05em;
}

/* メッセージエリア：写真の右側の下段、および写真の下へと全幅で広げる */
.p-director-message {
    grid-column: 1 / 3; /* PC版では写真の下（左端から右端まで全幅）に配置 */
    margin-top: 30px;
}

.p-doctor-group {
    margin-bottom: 20px;
}
.p-doctor-group:last-child {
    margin-bottom: 0;
}

/* 小見出しの左側装飾（縦棒） - 正しい位置に確実に固定 */
.p-doctor-subheading {
    position: relative;
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--color-main);
    padding-left: 12px;
    margin-bottom: 8px;
}
.p-doctor-subheading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background-color: var(--color-main);
    border-radius: 1px;
}

.p-doctor-text {
    font-size: 0.95rem;
    line-height: 1.8;
}

/* その他の医師（2カラム並び：背景白・外枠なし） */
.p-doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.p-doctor-card {
    background-color: #fff;
    padding: 0;
    border: none;
}

.p-doctor-card__name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-main);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}
.p-doctor-card__name span {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-bottom: 2px;
}

@media screen and (max-width: 768px) {
    .p-doctor-section { padding: 40px 0; }
    .p-doctor-intro { text-align: left; margin-bottom: 40px; }
    .p-doctor-block { padding-bottom: 40px; margin-bottom: 40px; }
    
    /* スマホ版ではGridを1カラムにして縦並びに崩す */
    .p-director-profile {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .p-director-img {
        max-width: 280px;
        margin: 0 auto;
    }
    .p-director-name { font-size: 1.5rem; }
    .p-director-message {
        margin-top: 0;
    }
    
    .p-doctors-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .p-doctor-card {
        padding: 0;
    }
}