/* =========================================================
   MONITOR
========================================================= */


/* =========================================================
   BASE
========================================================= */

.monitor-page {
    background: #ffffff;
    color: #29332e;
}

.monitor-page .container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.monitor-page .breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e4e8e5;
}

.monitor-page .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    color: #818985;
    font-size: 11px;
}

.monitor-page .breadcrumb li {
    margin: 0;
    padding: 0;
}

.monitor-page .breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 7px;
    color: #b6bbb8;
}

.monitor-page .breadcrumb a {
    color: #66716b;
    text-decoration: none;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.monitor-page .section-heading {
    width: 100%;
    margin: 0 0 38px;
}

.monitor-page .section-heading__en {
    margin: 0 0 9px;
    color: #71877b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.22em;
}

.monitor-page .section-heading h2 {
    margin: 0;
    color: #29342e;
    font-size: 31px;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.035em;
}


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

.monitor-intro {
    padding: 65px 0 55px;
}

.monitor-intro__text {
    width: 100%;
}

.monitor-intro__text p {
    width: 100%;
    margin: 0 0 18px;
    color: #5b655f;
    font-size: 15px;
    line-height: 2.1;
}

.monitor-intro__text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MONITOR LIST
========================================================= */

.monitor-list-section {
    padding: 65px 0 75px;
    background: #f4f6f5;
}


/* =========================================================
   MONITOR GRID
========================================================= */

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
   MONITOR CARD
========================================================= */

.monitor-card {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.monitor-card__link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   MONITOR IMAGE
========================================================= */

.monitor-card__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8ecea;
    aspect-ratio: 4 / 3;
}

.monitor-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.monitor-card__link:hover .monitor-card__image img {
    transform: scale(1.025);
    opacity: 0.94;
}


/* =========================================================
   DETAIL BUTTON
   サムネイル右下
========================================================= */

.monitor-card__button {
    position: absolute;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-width: 150px;

    padding:
        15px
        17px
        15px
        20px;

    background: rgba(39, 59, 49, 0.94);

    color: #ffffff;

    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: 0.06em;

    z-index: 2;

    transition:
        background 0.3s ease,
        padding-right 0.3s ease;
}

.monitor-card__button i {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
}

.monitor-card__link:hover .monitor-card__button {
    padding-right: 13px;
    background: rgba(29, 48, 38, 0.98);
}


/* =========================================================
   NO IMAGE
========================================================= */

.monitor-card__noimage {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #e9edeb;
}

.monitor-card__noimage span {
    color: #99a39e;
    font-size: 10px;
    letter-spacing: 0.2em;
}


/* =========================================================
   EMPTY
========================================================= */

.monitor-empty {
    width: 100%;
    padding: 60px 30px;
    background: #ffffff;
    text-align: center;
}

.monitor-empty p {
    margin: 0;
    color: #747e78;
    font-size: 14px;
}


/* =========================================================
   PAGINATION
========================================================= */

.monitor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 60px;
}

.monitor-pagination a,
.monitor-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid #ccd5d0;

    background: #ffffff;

    color: #52665b;

    font-size: 12px;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.monitor-pagination a:hover {
    background: #edf2ef;
    border-color: #aebdb5;
}

.monitor-pagination .is-current {
    border-color: #30483b;
    background: #30483b;
    color: #ffffff;
}


/* =========================================================
   DETAIL MAIN
========================================================= */

.monitor-detail-main {
    padding: 50px 0 55px;
}

.monitor-detail-main__image {
    width: 100%;
    background: #f0f2f1;
}

.monitor-detail-main__image img {
    display: block;
    width: 100%;
    height: auto;
}

.monitor-detail-main__patient {
    margin: 16px 0 0;
    color: #718078;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   COMPLAINT
========================================================= */

.monitor-complaint {
    padding: 50px 0;
    background: #edf2ef;
}

.monitor-complaint__text {
    width: 100%;
}

.monitor-complaint__text p {
    width: 100%;
    margin: 0;

    color: #56615b;

    font-size: 15px;
    line-height: 2.1;
}


/* =========================================================
   BEFORE / AFTER
========================================================= */

.monitor-ba-section {
    padding: 60px 0;
}

.monitor-ba-list {
    width: 100%;
}

.monitor-ba-row {
    width: 100%;

    padding:
        30px
        0
        35px;

    border-top: 1px solid #d9dfdc;
}

.monitor-ba-row:last-child {
    border-bottom: 1px solid #d9dfdc;
}

.monitor-ba-row > h3 {
    margin: 0 0 25px;

    color: #304039;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.monitor-ba-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        70px
        minmax(0, 1fr);

    gap: 20px;

    align-items: center;
}

.monitor-ba-item {
    min-width: 0;
}


/* =========================================================
   BEFORE / AFTER LABEL
========================================================= */

.monitor-ba-label {
    display: flex;
    align-items: baseline;

    gap: 12px;

    margin-bottom: 12px;
}

.monitor-ba-label span {
    color: #7c8d84;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.2em;
}

.monitor-ba-label strong {
    color: #3c4a43;

    font-size: 13px;
    font-weight: 600;
}

.monitor-ba-label--after span {
    color: #9a7943;
}


/* =========================================================
   BEFORE / AFTER IMAGE
========================================================= */

.monitor-ba-image {
    width: 100%;
    background: #eef1ef;
}

.monitor-ba-image img {
    display: block;
    width: 100%;
    height: auto;
}

.monitor-ba-noimage {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    aspect-ratio: 4 / 3;

    background: #edf0ee;
}

.monitor-ba-noimage span {
    color: #a0aaa5;

    font-size: 9px;

    letter-spacing: 0.2em;
}


/* =========================================================
   BEFORE / AFTER ARROW
========================================================= */

.monitor-ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #70847a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 35px;
    line-height: 1;
}


/* =========================================================
   TREATMENT SUMMARY
========================================================= */

.monitor-summary {
    padding: 60px 0;
    background: #f5f3ef;
}

.monitor-summary-table {
    width: 100%;
    border-top: 1px solid #d7d7d2;
}

.monitor-summary-row {
    display: grid;

    grid-template-columns:
        230px
        minmax(0, 1fr);

    width: 100%;

    border-bottom: 1px solid #d7d7d2;
}

.monitor-summary-row__label {
    padding: 24px 25px;

    background: #eae8e2;

    color: #34423b;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.monitor-summary-row__content {
    padding: 24px 30px;

    background: #ffffff;

    color: #59625d;

    font-size: 14px;
    line-height: 2;
}

.monitor-summary-row--risk .monitor-summary-row__label {
    background: #e5e1d8;
}


/* =========================================================
   BACK
========================================================= */

.monitor-back {
    padding: 40px 0 70px;
}

.monitor-back__link {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    color: #40594c;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.monitor-back__link span {
    font-size: 18px;
    font-weight: 400;
}


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

@media (max-width: 960px) {

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

}


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

@media (max-width: 767px) {

    .monitor-page .container {
        width: calc(100% - 36px);
    }


    /* =====================================================
       SECTION
    ====================================================== */

    .monitor-page .section-heading {
        margin-bottom: 28px;
    }

    .monitor-page .section-heading h2 {
        font-size: 24px;
        line-height: 1.6;
    }


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

    .monitor-intro {
        padding: 45px 0;
    }

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


    /* =====================================================
       LIST
    ====================================================== */

    .monitor-list-section {
        padding: 50px 0 55px;
    }

    .monitor-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    /* =====================================================
       LIST BUTTON
    ====================================================== */

    .monitor-card__button {
        min-width: 135px;

        gap: 20px;

        padding:
            13px
            15px
            13px
            17px;

        font-size: 11px;
    }

    .monitor-card__button i {
        font-size: 16px;
    }


    /* =====================================================
       PAGINATION
    ====================================================== */

    .monitor-pagination {
        margin-top: 40px;
        gap: 5px;
    }

    .monitor-pagination a,
    .monitor-pagination span {
        width: 39px;
        height: 39px;
    }


    /* =====================================================
       DETAIL MAIN
    ====================================================== */

    .monitor-detail-main {
        padding: 35px 0 40px;
    }


    /* =====================================================
       COMPLAINT
    ====================================================== */

    .monitor-complaint {
        padding: 36px 0;
    }

    .monitor-complaint__text p {
        font-size: 14px;
        line-height: 2;
    }


    /* =====================================================
       BEFORE / AFTER
    ====================================================== */

    .monitor-ba-section {
        padding: 42px 0;
    }

    .monitor-ba-row {
        padding: 24px 0 28px;
    }

    .monitor-ba-row > h3 {
        margin-bottom: 22px;
        font-size: 18px;
    }

    .monitor-ba-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .monitor-ba-arrow {
        height: 35px;

        transform: rotate(90deg);

        font-size: 29px;
    }

    .monitor-ba-label {
        margin-bottom: 9px;
    }


    /* =====================================================
       SUMMARY
    ====================================================== */

    .monitor-summary {
        padding: 42px 0;
    }

    .monitor-summary-row {
        grid-template-columns: 1fr;
    }

    .monitor-summary-row__label {
        padding: 14px 17px;
    }

    .monitor-summary-row__content {
        padding: 19px 17px;

        font-size: 13px;
    }


    /* =====================================================
       BACK
    ====================================================== */

    .monitor-back {
        padding: 30px 0 55px;
    }

}

/* =========================================================
   INTERVIEW MOVIE
========================================================= */

.monitor-interview {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
        "title  movie"
        "button movie";
    align-content: center;
    column-gap: 70px;
    margin-top: 40px;
    padding: 70px 70px 70px 80px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4f3f1 0%, #fbfbfa 45%, #f6f5f3 100%);
}

.monitor-interview__title {
    grid-area: title;
    align-self: end;
    margin: 0 0 34px;
    color: #2d2924;
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .22em;
}

.monitor-interview__button {
    grid-area: button;
    align-self: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    min-height: 80px;
    padding: 0 60px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #a98840 0%, #c5a258 55%, #d2b068 100%);
    box-shadow: 0 10px 24px rgba(150, 118, 50, .22);
    color: #fff;
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .16em;
    cursor: pointer;
    transition: opacity .3s ease, transform .3s ease;
    appearance: none;
}

.monitor-interview__button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 36px;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.monitor-interview__button:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.monitor-interview__movie {
    grid-area: movie;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #111;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
    cursor: pointer;
    appearance: none;
}

.monitor-interview__movie img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.monitor-interview__movie:hover img {
    transform: scale(1.03);
}

.monitor-interview__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 96px;
    height: 68px;
    transform: translate(-50%, -50%);
}

.monitor-interview__play svg {
    display: block;
    width: 100%;
    height: 100%;
}

.monitor-interview__play path {
    fill: #f00;
}

.monitor-interview__play path.monitor-interview__play-arrow {
    fill: #fff;
}

@media (max-width: 1024px) {
    .monitor-interview {
        column-gap: 40px;
        padding: 50px;
    }

    .monitor-interview__title {
        font-size: 28px;
    }

    .monitor-interview__button {
        min-height: 68px;
        padding: 0 50px;
        font-size: 16px;
    }

    .monitor-interview__button::after {
        right: 28px;
    }
}

@media (max-width: 767px) {
    .monitor-interview {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "movie"
            "button";
        margin-top: 30px;
        padding: 36px 20px 32px;
        border-radius: 10px;
    }

    .monitor-interview__title {
        margin-bottom: 22px;
        font-size: 23px;
        letter-spacing: .16em;
        text-align: center;
    }

    .monitor-interview__button {
        justify-self: center;
        min-height: 60px;
        margin-top: 26px;
        padding: 0 46px;
        font-size: 15px;
        letter-spacing: .12em;
    }

    .monitor-interview__button::after {
        right: 24px;
        width: 9px;
        height: 9px;
    }

    .monitor-interview__play {
        width: 68px;
        height: 48px;
    }
}


/* =========================================================
   YOUTUBE MODAL
========================================================= */

.youtube-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

.youtube-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.youtube-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .86);
}

.youtube-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
}

.youtube-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.youtube-modal__player iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.youtube-modal__close span {
    position: absolute;
    top: 18px;
    left: 3px;
    width: 32px;
    height: 1px;
    background: #fff;
}

.youtube-modal__close span:first-child {
    transform: rotate(45deg);
}

.youtube-modal__close span:last-child {
    transform: rotate(-45deg);
}

body.youtube-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .youtube-modal {
        padding: 20px;
    }

    .youtube-modal__close {
        top: -44px;
    }
}


/* =========================================================
   DETAIL SPACING
   詳細ページは見出し下の余白を詰める
========================================================= */

.monitor-detail .section-heading {
    margin-bottom: 26px;
}

.monitor-detail .monitor-complaint .section-heading {
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .monitor-detail .section-heading {
        margin-bottom: 20px;
    }

    .monitor-detail .monitor-complaint .section-heading {
        margin-bottom: 14px;
    }
}
