/**
 * 監修者ページ用スタイル
 * 監修者詳細ページおよび監修者ボックス
 *
 * @package Medicare_Theme
 */

/* ==========================================================================
   監修者ボックス（記事内）
   ========================================================================== */
.supervisor-box {
    margin: 40px 0;
    padding: 25px 30px;
    background-color: #faf8f6;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.supervisor-box__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #5b3d2d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6e14;
}

.supervisor-box__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.supervisor-box__list > .supervisor-box__content + .supervisor-box__content {
    padding-top: 25px;
    border-top: 1px dashed #e8e0d8;
}

.supervisor-box__content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.supervisor-box__image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #d2bdb2;
}

.supervisor-box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supervisor-box__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2bdb2;
}

.supervisor-box__placeholder svg {
    width: 50%;
    height: 50%;
}

.supervisor-box__info {
    flex: 1;
}

.supervisor-box__position {
    font-size: 1.3rem;
    color: #837167;
    margin-bottom: 5px;
}

.supervisor-box__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5b3d2d;
    margin-bottom: 10px;
}

.supervisor-box__name a {
    color: #ff6e14;
    text-decoration: none;
    transition: color 0.3s ease;
}

.supervisor-box__name a:hover {
    color: #e55a00;
    text-decoration: underline;
}

.supervisor-box__quals {
    font-size: 1.3rem;
    color: #837167;
    margin-bottom: 8px;
}

.supervisor-box__bio-wrap {
    position: relative;
}

.supervisor-box__bio {
    font-size: 1.4rem;
    color: #5b3d2d;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.supervisor-box__bio.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.supervisor-box__read-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: none;
    color: #ff6e14;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.supervisor-box__read-more:hover {
    color: #e55a00;
}

/* ==========================================================================
   執筆者ボックス（記事内）
   ========================================================================== */
.writer-box {
    margin: 30px 0 40px;
    padding: 25px 30px;
    background-color: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #dde3e8;
}

.writer-box__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d4255;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a7ba6;
}

.writer-box__list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.writer-box__list > .writer-box__content + .writer-box__content {
    padding-top: 25px;
    border-top: 1px dashed #dde3e8;
}

.writer-box__content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.writer-box__image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #b2c2d2;
}

.writer-box__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-box__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2c2d2;
}

.writer-box__placeholder svg {
    width: 50%;
    height: 50%;
}

.writer-box__info {
    flex: 1;
}

.writer-box__position {
    font-size: 1.3rem;
    color: #67737d;
    margin-bottom: 5px;
}

.writer-box__name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d4255;
    margin-bottom: 8px;
}

.writer-box__quals {
    font-size: 1.3rem;
    color: #67737d;
    margin-bottom: 8px;
}

.writer-box__bio-wrap {
    position: relative;
}

.writer-box__bio {
    font-size: 1.4rem;
    color: #2d4255;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.writer-box__bio.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.writer-box__read-more {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    background: none;
    border: none;
    color: #4a7ba6;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.writer-box__read-more:hover {
    color: #2d4255;
}

/* ==========================================================================
   監修者詳細ページ
   ========================================================================== */
.supervisor-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* 監修者ヘッダー */
.supervisor-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e0d8;
}

.supervisor-header__image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #faf8f6;
    border: 3px solid #d2bdb2;
}

.supervisor-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supervisor-header__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supervisor-header__placeholder svg {
    width: 50%;
    height: 50%;
}

.supervisor-header__info {
    flex: 1;
}

.supervisor-header__position {
    font-size: 1.4rem;
    color: #837167;
    margin-bottom: 8px;
}

.supervisor-header__name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #5b3d2d;
    line-height: 1.3;
}

.supervisor-header__quals {
    margin-top: 10px;
    font-size: 1.4rem;
    color: #837167;
    line-height: 1.6;
}

/* 監修者プロフィール */
.supervisor-content {
    margin-bottom: 50px;
}

.supervisor-content__title {
    font-size: 2rem;
    font-weight: 700;
    color: #5b3d2d;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #ff6e14;
}

.supervisor-content__body {
    font-size: 1.5rem;
    color: #5b3d2d;
    line-height: 1.9;
}

.supervisor-content__body p {
    margin-bottom: 1.5em;
}

.supervisor-content__body p:last-child {
    margin-bottom: 0;
}

/* 監修記事一覧 */
.supervisor-articles {
    background-color: #faf8f6;
    padding: 30px;
    border-radius: 8px;
}

.supervisor-articles__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5b3d2d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6e14;
}

.supervisor-articles__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.supervisor-articles__item {
    border-bottom: 1px solid #e8e0d8;
}

.supervisor-articles__item:last-child {
    border-bottom: none;
}

.supervisor-articles__item a {
    display: flex;
    gap: 15px;
    padding: 15px 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.supervisor-articles__item a:hover {
    background-color: rgba(255, 110, 20, 0.05);
}

.supervisor-articles__date {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: #837167;
    min-width: 80px;
}

.supervisor-articles__name {
    font-size: 1.4rem;
    color: #ff6e14;
    flex: 1;
}

.supervisor-articles__item a:hover .supervisor-articles__name {
    text-decoration: underline;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 監修者ボックス */
    .supervisor-box {
        padding: 20px;
    }

    .supervisor-box__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .supervisor-box__image {
        width: 80px;
        height: 80px;
    }

    .supervisor-box__name {
        font-size: 1.6rem;
    }

    /* 執筆者ボックス */
    .writer-box {
        padding: 20px;
    }

    .writer-box__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .writer-box__image {
        width: 70px;
        height: 70px;
    }

    /* 監修者詳細ページ */
    .supervisor-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .supervisor-header__image {
        width: 120px;
        height: 120px;
    }

    .supervisor-header__name {
        font-size: 2.2rem;
    }

    .supervisor-articles {
        padding: 20px 15px;
    }

    .supervisor-articles__item a {
        flex-direction: column;
        gap: 5px;
    }

    .supervisor-articles__date {
        min-width: auto;
    }
}
