/* =========================================================
   TEAM PAGE
========================================================= */

.team-page {
    overflow: hidden;
}


/* =========================================================
   COMMON
========================================================= */

.team-label {
    display: block;
    margin: 0 0 16px;
    color: #98794a;
    font-family: "Times New Roman", serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.22em;
}


/* =========================================================
   INTRO
========================================================= */

.team-intro {
    padding: 70px 0 80px;
    background: #fff;
}

.team-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px;
    align-items: start;
}

.team-intro__heading h2 {
    margin: 0;
    color: #292621;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.04em;
}

.team-intro__text {
    padding-top: 25px;
}

.team-intro__text p {
    margin: 0;
    color: #5e5850;
    font-size: 15px;
    line-height: 2.15;
}

.team-intro__text p + p {
    margin-top: 22px;
}


/* =========================================================
   MAIN DOCTOR
========================================================= */

.main-doctor {
    padding: 95px 0 90px;
    background: #f2efe9;
}

.main-doctor__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 90px;
    align-items: center;
}


/* PHOTO */

.main-doctor__visual {
    position: relative;
    min-height: 670px;
}

.main-doctor__visual-bg {
    position: absolute;
    top: 45px;
    left: 0;
    width: 82%;
    height: 580px;
    background: #30332f;
}

.main-doctor__visual-en {
    position: absolute;
    top: 32px;
    left: 30px;
    color: rgba(255,255,255,0.35);
    font-family: "Times New Roman", serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    writing-mode: vertical-rl;
}

.main-doctor__photo {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 87%;
    height: 650px;
    object-fit: contain;
    object-position: center bottom;
}

.main-doctor__photo-name {
    position: absolute;
    z-index: 3;
    left: 30px;
    bottom: 35px;
}

.main-doctor__photo-name span {
    display: block;
    margin-bottom: 9px;
    color: #cbb383;
    font-family: "Times New Roman", serif;
    font-size: 8px;
    letter-spacing: 0.18em;
}

.main-doctor__photo-name strong {
    display: block;
    color: #fff;
    font-family: "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.05em;
}


/* CONTENT */

.main-doctor__position {
    margin: 0 0 10px;
    color: #756d63;
    font-size: 12px;
    line-height: 1.8;
}

.main-doctor__content > h2 {
    margin: 0;
    color: #292621;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.main-doctor__name-en {
    margin: 8px 0 0;
    color: #9a7a49;
    font-family: "Times New Roman", serif;
    font-size: 10px;
    letter-spacing: 0.2em;
}

.main-doctor__message {
    margin-top: 45px;
    padding: 35px 0;
    border-top: 1px solid #cfc6b8;
    border-bottom: 1px solid #cfc6b8;
}

.main-doctor__message > span {
    display: block;
    margin-bottom: 16px;
    color: #9a7a49;
    font-family: "Times New Roman", serif;
    font-size: 8px;
    letter-spacing: 0.2em;
}

.main-doctor__message h3 {
    margin: 0 0 20px;
    color: #302c27;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.7;
}

.main-doctor__lead {
    margin: 0;
    color: #5d564e;
    font-size: 14px;
    line-height: 2;
}

.main-doctor__text {
    margin-top: 30px;
}

.main-doctor__text p {
    margin: 0;
    color: #625b52;
    font-size: 14px;
    line-height: 2.05;
}

.main-doctor__text p + p {
    margin-top: 18px;
}


/* =========================================================
   FEATURE
========================================================= */

.doctor-feature {
    padding: 85px 0;
    background: #fff;
}

.doctor-feature__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px;
}

.doctor-feature__item {
    border-bottom: 1px solid #d7cfc3;
}

.doctor-feature__image {
    position: relative;
    overflow: hidden;
}

.doctor-feature__image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.doctor-feature__number {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background: #30332f;
    font-family: "Times New Roman", serif;
    font-size: 23px;
}

.doctor-feature__content {
    padding: 32px 10px 40px;
}

.doctor-feature__content h3 {
    margin: 0 0 20px;
    color: #302c27;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.65;
}

.doctor-feature__content p {
    margin: 0;
    color: #625b52;
    font-size: 14px;
    line-height: 2;
}


/* =========================================================
   CAREER
========================================================= */

.doctor-career {
    padding: 85px 0;
    background: #30332f;
}

.doctor-career__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 100px;
}

.doctor-career__heading {
    position: sticky;
    top: 130px;
    align-self: start;
}

.doctor-career__heading .team-label {
    color: #cbb383;
}

.doctor-career__heading h2 {
    margin: 0 0 15px;
    color: #fff;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1.65;
}

.doctor-career__heading > p {
    margin: 0;
    color: #9f9c95;
    font-family: "Times New Roman", serif;
    font-size: 10px;
    letter-spacing: 0.17em;
}

.doctor-career__timeline {
    border-top: 1px solid #5b5d58;
}

.career-row {
    display: grid;
    grid-template-columns: 125px 1fr;
    border-bottom: 1px solid #5b5d58;
}

.career-row__year {
    padding: 28px 25px 28px 0;
    color: #cbb383;
    font-family: "Times New Roman", serif;
    font-size: 25px;
    border-right: 1px solid #5b5d58;
}

.career-row__content {
    padding: 29px 0 29px 35px;
}

.career-row__content p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.9;
}

.career-row__content p + p {
    margin-top: 4px;
}

.career-row__content .career-row__sub {
    color: #aaa69e;
    font-size: 11px;
}


/* =========================================================
   DOCTORS
========================================================= */

.doctors {
    padding: 90px 0;
    background: #f5f3ef;
}

.doctors__heading {
    margin-bottom: 80px;
}

.doctors__heading h2 {
    margin: 0;
    color: #292621;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 34px;
    font-weight: 500;
}

.doctors__heading > p {
    max-width: 620px;
    margin: 20px 0 0;
    color: #625b52;
    font-size: 14px;
    line-height: 2;
}


/* PROFILE */

.doctor-profile {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 75px;
    padding: 80px 0;
    border-top: 1px solid #d3cabd;
}

.doctor-profile:last-child {
    border-bottom: 1px solid #d3cabd;
}

.doctor-profile__photo {
    position: relative;
    align-self: start;
}

.doctor-profile__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.doctor-profile__photo > span {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 18px;
    color: #fff;
    background: #30332f;
    font-family: "Times New Roman", serif;
    font-size: 8px;
    letter-spacing: 0.2em;
}

.doctor-profile__name {
    padding-bottom: 25px;
    border-bottom: 1px solid #d2cabf;
}

.doctor-profile__name > span {
    display: block;
    margin-bottom: 9px;
    color: #9a7a49;
    font-family: "Times New Roman", serif;
    font-size: 8px;
    letter-spacing: 0.2em;
}

.doctor-profile__name h3 {
    margin: 0;
    color: #302c27;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.doctor-profile__name p {
    margin: 7px 0 0;
    color: #8e857a;
    font-family: "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 0.17em;
}

/* 肩書き（外科部長・分院長など） */
.doctor-profile__name .doctor-profile__position {
    margin: 0 0 6px;
    color: #6d665c;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.doctor-profile__message {
    padding: 30px 0;
}

.doctor-profile__message h4 {
    margin: 0 0 20px;
    color: #3a3530;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
}

.doctor-profile__message p {
    margin: 0;
    color: #625b52;
    font-size: 13px;
    line-height: 2;
}

.doctor-profile__message p + p {
    margin-top: 17px;
}


/* DETAIL */

.doctor-profile__details {
    border-top: 1px solid #d2cabf;
}

.doctor-detail {
    padding: 30px 0;
    border-bottom: 1px solid #d2cabf;
}

.doctor-detail__head {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: start;
    margin-bottom: 25px;
}

.doctor-detail__head > span {
    color: #a48554;
    font-family: "Times New Roman", serif;
    font-size: 15px;
}

.doctor-detail__head h4 {
    margin: 0;
    color: #302c27;
    font-family: "Times New Roman", serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
}

.doctor-detail__head h4 small {
    display: block;
    margin-top: 7px;
    color: #777066;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        sans-serif;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.doctor-detail__body {
    padding-left: 50px;
}

.doctor-detail__body dl {
    margin: 0;
}

.doctor-detail__body dl > div {
    display: grid;
    grid-template-columns: 75px 1fr;
    padding: 12px 0;
}

.doctor-detail__body dt {
    color: #98794a;
    font-family: "Times New Roman", serif;
    font-size: 12px;
}

.doctor-detail__body dd {
    margin: 0;
    color: #625b52;
    font-size: 12px;
    line-height: 1.9;
}

.doctor-detail__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-detail__body li {
    position: relative;
    padding: 9px 0 9px 18px;
    color: #625b52;
    font-size: 12px;
    line-height: 1.7;
    border-bottom: 1px solid #ded8cf;
}

.doctor-detail__body li::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 0;
    width: 6px;
    height: 1px;
    background: #9a7a49;
}


/* =========================================================
   HYGIENISTS
========================================================= */

.hygienists {
    padding: 85px 0;
    background: #fff;
}

.hygienists__head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 100px;
    align-items: end;
    margin-bottom: 55px;
}

.hygienists__head h2 {
    margin: 0;
    color: #292621;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 34px;
    font-weight: 500;
}

.hygienists__head > div:last-child p {
    max-width: 620px;
    margin: 0;
    color: #625b52;
    font-size: 14px;
    line-height: 2;
}

.hygienists__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hygienist-card {
    background: #f3f1ed;
}

.hygienist-card__image {
    position: relative;
    overflow: hidden;
}

.hygienist-card__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.hygienist-card__image > span {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: #fff;
    background: #30332f;
    font-family: "Times New Roman", serif;
    font-size: 18px;
}

.hygienist-card__content {
    padding: 25px 22px 30px;
}

.hygienist-card__position {
    display: block;
    margin-bottom: 9px;
    color: #98794a;
    font-family: "Times New Roman", serif;
    font-size: 7px;
    letter-spacing: 0.14em;
}

.hygienist-card__content h3 {
    margin: 0;
    color: #302c27;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 18px;
    font-weight: 500;
}

.hygienist-card__content dl {
    margin: 22px 0 0;
    padding-top: 17px;
    border-top: 1px solid #d7d0c6;
}

.hygienist-card__content dt {
    margin-bottom: 7px;
    color: #88795f;
    font-size: 9px;
}

.hygienist-card__content dd {
    margin: 0;
    color: #625b52;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   TEAM MESSAGE
========================================================= */

.team-message {
    padding: 85px 0;
    background: #30332f;
}

.team-message__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.team-message__inner > span {
    display: block;
    margin-bottom: 20px;
    color: #cbb383;
    font-family: "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 0.23em;
}

.team-message__inner h2 {
    margin: 0 0 35px;
    color: #fff;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.7;
}

.team-message__inner p {
    max-width: 720px;
    margin: 0 auto;
    color: #c8c4bd;
    font-size: 14px;
    line-height: 2.1;
    text-align: left;
}

.team-message__inner p + p {
    margin-top: 20px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .team-intro__grid {
        gap: 60px;
    }

    .main-doctor__grid {
        gap: 50px;
    }

    .main-doctor__visual {
        min-height: 590px;
    }

    .main-doctor__visual-bg {
        height: 510px;
    }

    .main-doctor__photo {
        height: 570px;
    }

    .doctor-profile {
        grid-template-columns: 300px 1fr;
        gap: 50px;
    }

    .hygienists__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 767px) {

    .team-intro,
    .doctor-feature,
    .doctor-career,
    .doctors,
    .hygienists,
    .team-message {
        padding: 50px 0;
    }


    /* INTRO */

    .team-intro__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-intro__heading h2 {
        font-size: 27px;
        line-height: 1.65;
    }

    .team-intro__text {
        padding-top: 0;
    }

    .team-intro__text p {
        font-size: 14px;
        line-height: 2;
    }


    /* MAIN DOCTOR */

    .main-doctor {
        padding: 65px 0 55px;
    }

    .main-doctor__grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .main-doctor__visual {
        min-height: 510px;
        margin-right: -10px;
    }

    .main-doctor__visual-bg {
        top: 35px;
        width: 82%;
        height: 430px;
    }

    .main-doctor__photo {
        right: -5px;
        width: 95%;
        height: 500px;
    }

    .main-doctor__photo-name {
        left: 20px;
        bottom: 25px;
    }

    .main-doctor__photo-name strong {
        font-size: 21px;
    }

    .main-doctor__content > h2 {
        font-size: 30px;
    }

    .main-doctor__message {
        margin-top: 35px;
        padding: 28px 0;
    }

    .main-doctor__message h3 {
        font-size: 21px;
    }


    /* FEATURE */

    .doctor-feature__grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .doctor-feature__content {
        padding: 25px 5px 30px;
    }

    .doctor-feature__content h3 {
        font-size: 20px;
    }


    /* CAREER */

    .doctor-career__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doctor-career__heading {
        position: static;
    }

    .doctor-career__heading h2 {
        font-size: 26px;
    }

    .career-row {
        grid-template-columns: 80px 1fr;
    }

    .career-row__year {
        padding: 23px 15px 23px 0;
        font-size: 20px;
    }

    .career-row__content {
        padding: 23px 0 23px 20px;
    }

    .career-row__content p {
        font-size: 12px;
    }


    /* DOCTORS */

    .doctors__heading {
        margin-bottom: 40px;
    }

    .doctors__heading h2 {
        font-size: 27px;
    }

    .doctor-profile {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0;
    }

    .doctor-profile__photo {
        max-width: 420px;
    }

    .doctor-profile__name h3 {
        font-size: 25px;
    }

    .doctor-profile__message h4 {
        font-size: 19px;
    }

    .doctor-detail__body {
        padding-left: 0;
    }

    .doctor-detail__body dl > div {
        grid-template-columns: 65px 1fr;
    }


    /* HYGIENIST */

    .hygienists__head {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .hygienists__head h2 {
        font-size: 27px;
    }

    .hygienists__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hygienist-card__content {
        padding: 20px 15px 25px;
    }

    .hygienist-card__content h3 {
        font-size: 16px;
    }


    /* MESSAGE */

    .team-message__inner h2 {
        font-size: 25px;
    }

    .team-message__inner p {
        font-size: 13px;
    }

}


/* =========================================================
   SMALL SMARTPHONE
========================================================= */

@media (max-width: 480px) {

    .hygienists__grid {
        grid-template-columns: 1fr;
    }

    .hygienist-card__image img {
        aspect-ratio: 4 / 4.5;
    }

}


@media (max-width: 390px) {

    .main-doctor__visual {
        min-height: 470px;
    }

    .main-doctor__visual-bg {
        height: 400px;
    }

    .main-doctor__photo {
        height: 460px;
    }

    .team-intro__heading h2,
    .doctors__heading h2,
    .hygienists__head h2 {
        font-size: 25px;
    }

}

/* =========================================================
   非常勤の先生（歯科麻酔科医）は背景の色を変えて区別する
   写真・文章の大きさはほかの先生と同じ。背景だけ左右へ広げる
========================================================= */

.doctor-profile--part {
    position: relative;
    isolation: isolate;
    border-top: 0;
}

.doctor-profile--part::before {
    position: absolute;
    z-index: -1;
    inset: 0 -48px;
    background: #d9e4e8;
    content: "";
}

.doctor-profile--part + .doctor-profile,
.doctor-profile--part:last-child {
    border-bottom: 0;
}

@media (max-width: 767px) {

    .doctor-profile--part::before {
        inset: 0 -20px;
    }
}
