/* ==========================================================================
   Page: Doctors (医師紹介) - Borderless & Elegant Design
   ========================================================================== */

/* Filter Navigation
   -------------------------------------------------------------------------- */
.page-doctors .doctor-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 80px; /* 余白を広めに */
    flex-wrap: wrap;
}

.page-doctors .filter-btn {
    appearance: none;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-light);
    padding: 10px 24px;
    border-radius: 4px; /* 丸みを少し抑えてシャープに */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.05em;
}
.page-doctors .filter-btn:hover,
.page-doctors .filter-btn.is-active {
    background-color: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
}

/* Doctors List Wrapper */
.page-doctors .doctors-list {
    display: flex;
    flex-direction: column;
    gap: 100px; /* 医師ごとの間隔を大きく取る（100px） */
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .page-doctors .doctors-list { gap: 60px; }
}

/* Doctor Entry (Individual Item)
   -------------------------------------------------------------------------- */
.page-doctors .doctor-entry {
    display: flex;
    align-items: center; /* 中央揃えでエレガントに */
    gap: 60px;
    transition: opacity 0.5s ease;
}

/* Zigzag Layout (PC Only) */
/* 偶数番目の医師は左右反転させる */
.page-doctors .doctor-entry:nth-of-type(even) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .page-doctors .doctor-entry { flex-direction: column !important; gap: 30px; }
}

/* Image Box */
.page-doctors .doctor-entry__img-box {
    flex: 0 0 40%; /* 幅を40%に固定 */
    position: relative;
}
@media (max-width: 768px) {
    .page-doctors .doctor-entry__img-box { flex: none; width: 100%; max-width: 320px; }
}

.page-doctors .doctor-entry__figure {
    width: 100%;
    aspect-ratio: 3 / 4; /* ポートレート比率 */
    border-radius: 8px; /* 角丸は最小限にして洗練させる */
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--color-brand-light); /* 背景にずらした色板を置く装飾 */
}
/* 偶数番目は装飾の位置を逆にする */
.page-doctors .doctor-entry:nth-of-type(even) .doctor-entry__figure {
    box-shadow: -20px 20px 0 var(--color-brand-light);
}
@media (max-width: 768px) {
    .page-doctors .doctor-entry__figure { box-shadow: 10px 10px 0 var(--color-brand-light); }
}

.page-doctors .doctor-entry__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.page-doctors .doctor-entry:hover .doctor-entry__figure img {
    transform: scale(1.05);
}

/* Clinic Tag (Overlay style) */
.page-doctors .doctor-entry__tag {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    letter-spacing: 0.05em;
}
/* 偶数番目はタグ位置も逆に */
.page-doctors .doctor-entry:nth-of-type(even) .doctor-entry__tag {
    left: auto;
    right: -15px;
}
.page-doctors .doctor-entry__tag--01 { border-left: 4px solid var(--color-brand); }
.page-doctors .doctor-entry__tag--02 { border-left: 4px solid #0d9488; }


/* Content Area
   -------------------------------------------------------------------------- */
.page-doctors .doctor-entry__content {
    flex: 1;
}

.page-doctors .doctor-entry__header {
    margin-bottom: 30px;
    position: relative;
}

.page-doctors .doctor-entry__role {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--color-brand);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-doctors .doctor-entry__name {
    font-size: 32px;
    font-weight: 500; /* あえて太すぎないウェイトで上品に */
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: 0.05em;
}
.page-doctors .doctor-entry__name .en {
    display: block;
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 400;
    margin-top: 5px;
    font-family: "Noto Sans JP", sans-serif;
    opacity: 0.6;
}

/* Message & Profile */
.page-doctors .doctor-entry__message {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: 500;
}

.page-doctors .doctor-entry__profile {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.page-doctors .profile-row {
    display: flex;
    margin-bottom: 15px;
}
.page-doctors .profile-row:last-child { margin-bottom: 0; }

.page-doctors .profile-row dt {
    width: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-light);
    flex-shrink: 0;
    padding-top: 2px;
}
.page-doctors .profile-row dd {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

@media (max-width: 600px) {
    .page-doctors .doctor-entry__name { font-size: 26px; }
    .page-doctors .profile-row { flex-direction: column; gap: 4px; margin-bottom: 20px; }
}