/* 施術ページ：動画追加 */
.main .detail .youtube {
    padding-left: 10.8345vw;
    padding-right: 10.8345vw;
    margin-top: 5.8%;
    margin-bottom: 7%;
}

.main .detail .youtube .block {
    margin-top: 5.6%;
    padding-left: 4.5vw;
    padding-right: 4.5vw;
}

.main .detail .youtube .block p {
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

.main .detail .youtube .block p br.sp-only {
    display: none;
}

.main .detail .youtube .block iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media screen and (max-width: 1024px) {
    .main .detail .youtube {
        padding-left: 9vw;
        padding-right: 9vw;
    }

    .main .detail .youtube .block {
        margin-top: 5.6%;
        padding-left: 0vw;
        padding-right: 0vw;
    }
}

@media screen and (max-width: 768px) {
    .main .detail .youtube {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .main .detail .youtube .block {
        margin-top: 7%;
    }
}

@media screen and (max-width: 480px) {
    .main .detail .youtube {
        padding-left: 2.8vw;
        padding-right: 2.8vw;
        margin-top: 12%;
        margin-bottom: 12%;
    }

    .main .detail .youtube .block p br.sp-only {
        display: block;
    }
}

/* コラム記事ページ：監修者情報 */
.supervisor_mini,
.supervisor_full {
    background-color: #FBFBFB;
    border: solid 2px #988666;
    border-radius: 10px;
    padding: 25px 30px;
}

.supervisor_mini {
    margin-bottom: 2.5%;
}

.supervisor_mini h2,
.supervisor_full h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supervisor_mini h2::before,
.supervisor_full h2::before,
.supervisor_mini h2::after,
.supervisor_full h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #988666;
}

.supervisor_mini h2::before,
.supervisor_full h2::before {
    margin-right: 0.5rem;
}

.supervisor_mini h2::after,
.supervisor_full h2::after {
    margin-left: 0.5rem;
}

.supervisor_mini .contents {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 100px auto;
    grid-template-rows: 3fr auto;
    gap: 0 30px;
}

.supervisor_full .contents {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 32% auto;
    grid-template-rows: auto;
    gap: 0 30px;
}

.supervisor_mini .contents figure {
    grid-row: span 2 / span 2;
    width: 100px;
    height: 100px;
}

.supervisor_full .contents figure {
    grid-row: span 3 / span 3;
    width: 100%;
    height: 100%;
}

.supervisor_mini .contents img,
.supervisor_full .contents img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 100vmax;
}

.supervisor_mini .contents h3 {
    grid-column-start: 2;
}

.supervisor_full .contents h3 {
    width: 100%;
}

.supervisor_mini .contents h3 span,
.supervisor_full .contents h3 span {
    display: block;
}

.supervisor_mini .contents h3 span:nth-of-type(2),
.supervisor_full .contents h3 span:nth-of-type(2) {
    font-size: 24px;
    font-weight: 600;
    margin-top: 8px;
}

.supervisor_mini .contents h3 span:nth-of-type(2) em,
.supervisor_full .contents h3 span:nth-of-type(2) em {
    display: inline-block;
    margin-left: 1rem;
    font-size: 14px;
}

.supervisor_mini .contents a,
.supervisor_full .contents a {
    grid-column-start: 2;
    display: block;
    position: relative;
    margin: auto 0 0 auto;
    font-weight: 500;
    border-bottom: solid 1px #333;
    padding: 0 16px 8px 0;
}

.supervisor_mini .contents a::after,
.supervisor_full .contents a::after {
    position: absolute;
    content: "";
    top: calc(50% - 6px);
    margin: auto;
    right: 0;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
}

.supervisor_full .contents dl {
    width: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px 20px;
}

.supervisor_full .contents dt {
    display: inline-block;
    width: 3.5rem;
    line-height: 1.6;
}

.supervisor_full .contents dd {
    display: inline-block;
    width: calc(100% - 3.5rem - 20px);
    line-height: 1.6;
}

.supervisor_mini .contents + .contents {
    padding-top: 16px;
    border-top: 1px solid #988666;
}

.supervisor_full .contents + .contents {
    padding-top: 30px;
    border-top: 1px solid #988666;
}

/* アイキャッチ未設定時のプレースホルダ */
.supervisor_mini .contents figure.noimage,
.supervisor_full .contents figure.noimage {
    background-color: #EFEBE3;
    border-radius: 100vmax;
    aspect-ratio: 1 / 1;
}

@media screen and (max-width: 767px) {
    .supervisor_mini,
    .supervisor_full {
        padding: 20px;
    }

    .supervisor_mini {
        margin-bottom: 5%;
    }

    .supervisor_mini .contents {
        gap: 0 20px;
    }

    .supervisor_mini h2,
    .supervisor_full h2 {
        font-size: 18px;
    }

    .supervisor_mini .contents h3,
    .supervisor_full .contents h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .supervisor_mini .contents h3 span,
    .supervisor_full .contents h3 span {
        word-break: keep-all;
        line-height: 1.4;
    }

    .supervisor_mini .contents h3 span:nth-of-type(2),
    .supervisor_full .contents h3 span:nth-of-type(2) {
        font-size: 20px;
    }

    .supervisor_mini .contents h3 span:nth-of-type(2) em,
    .supervisor_full .contents h3 span:nth-of-type(2) em {
        margin-left: 14px;
        font-size: 12px;
        font-weight: 500;
    }

    .supervisor_mini .contents a,
    .supervisor_full .contents a {
        font-size: 14px;
        padding: 0 10px 8px 0;
    }

    .supervisor_mini .contents a::after,
    .supervisor_full .contents a::after {
        top: calc(50% - 5px);
        width: 5px;
        height: 5px;
    }

    .supervisor_full .contents {
        grid-template-columns: 32% auto;
        gap: 20px;
    }

    .supervisor_full .contents figure {
        grid-area: 1 / 1 / 2 / 2;
    }

    .supervisor_full .contents h3 {
        grid-area: 1 / 2 / 2 / 3;
    }

    .supervisor_full .contents dl {
        grid-area: 2 / 1 / 3 / 3;
        flex-direction: column;
        gap: 5px;
        margin: 0;
    }

    .supervisor_full .contents dt {
        font-size: 14px;
        font-weight: 600;
    }

    .supervisor_full .contents dd {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
        width: 100%;
        word-break: keep-all;
    }

    .supervisor_full .contents dd:last-of-type {
        margin-bottom: 0;
    }

    .supervisor_full .contents a {
        grid-area: 3 / 1 / 4 / 3;
    }
}

/* ==========================================================================
   TOPページのみ、ヘッダーのキャッチコピーを h1 で出力（header.php）
   既存の p.f10 と同じ見た目になるよう、header.css / common.css の
   「.h_logo p.f10」相当の指定を h1 側にも当て直している
   ========================================================================== */
.header .h_top .h_logo h1.f10 {
    color: #97865f;
    font-size: min(0.833vw, 12px);
    letter-spacing: 0;
    font-weight: normal;
    margin: 0;
}

/* 768px以下はヘッダーの高さが 60px しかなく、ロゴとテキストが収まらないため
   （元は 480px 以下でしかキャッチコピーを消しておらず、481〜768px が破綻していた）
   - 下層ページ : キャッチコピーは出さずロゴのみ。H1は各ページのFVタイトルが担当
   - TOPページ  : H1が必要なため、ロゴの下に「ロシッククリニック銀座」だけを表示 */
@media screen and (max-width: 768px) {
    .header .h_top .h_logo p.f10 {
        display: none;
    }

    .header .h_top .h_logo--front {
        padding: 4px 0;
    }

    /* ロゴは幅40%＝768px時に約307px（高さ約52px）まで伸びて枠に収まらないため上限を設ける。
       480px以下では元から190px未満なので、この指定による見た目の変化はない */
    .header .h_top .h_logo--front .logo {
        order: 1;
        max-width: 190px;
    }

    .header .h_top .h_logo--front h1.f10 {
        order: 2;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 0;
        margin-top: 3px;
        white-space: nowrap;
    }

    /* 長いキャッチコピー部分は幅が足りないので院名だけを残す */
    .header .h_top .h_logo--front h1.f10 .h_logo__catch {
        display: none;
    }
}

/* 症例一覧ページ：ピックアップ症例 */
.main .case_block.pickup_case {
    margin-bottom: 6%;
}

.main .case_block.pickup_case .mds_box {
    letter-spacing: 0.1em;
    padding-bottom: 1.4%;
    border-bottom: 1px solid #333333;
}

.main .case_block.pickup_case .mds_box .flex {
    align-items: center;
}

.main .case_block.pickup_case .mds_box h2 {
    color: #212121;
    margin-right: 3.83%;
}

.main .case_block.pickup_case .second_box {
    margin-top: 3.52%;
}

@media screen and (max-width: 768px) {
    .main .case_block.pickup_case {
        margin-bottom: 10%;
    }

    .main .case_block.pickup_case .mds_box {
        padding-bottom: 3%;
    }

    .main .case_block.pickup_case .second_box {
        margin-top: 6%;
    }
}

/* ==========================================================================
   TOPページ改修
   ========================================================================== */

/* --- 共通：一覧ボタン --- */
.main .top_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 240px;
    height: 48px;
    margin: 40px auto 0;
    padding: 0 24px;
    border: 1px solid #988666;
    border-radius: 100px;
    background-color: #988666;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: opacity .3s;
}

.main .top_btn:hover {
    background-color: #fff;
    color: #988666;
    opacity: 1;
}

.main .top_btn--outline:hover {
    background-color: #212121;
    color: #fff;
    opacity: 1;
}

.main .top_btn::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    font-size: 12px;
}

.main .top_btn--outline {
    border-color: #212121;
    background-color: #fff;
    color: #212121;
}

.main .top_btn--left {
    margin-left: 0;
    margin-right: auto;
}

/* --- 共通：テキストリンク --- */
.main .top_txtlink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #333;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity .3s;
}

.main .top_txtlink:hover {
    opacity: .7;
}

.main .top_txtlink::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

/* --- 共通：カテゴリバッジ --- */
.main .top_badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 10px;
    border-radius: 100px;
    background-color: #988666;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

/* --- 共通：スライダー --- */
.main .top_slider {
    position: relative;
    margin: 40px 20px 0;
}

.main .top_slider .swiper-slide {
    height: auto;
}

.main .top_slider__prev,
.main .top_slider__next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    color: #988666;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .3s;
}

.main .top_slider__prev:hover,
.main .top_slider__next:hover {
    opacity: .7;
}

/* アイコンの切り抜き部分から見える塗り */
.main .top_slider__prev::after,
.main .top_slider__next::after {
    content: "";
    position: absolute;
    inset: 14%;
    z-index: -1;
    border-radius: 50%;
    background-color: #fff;
}

.main .top_slider__prev {
    left: -20px;
}

.main .top_slider__next {
    right: -20px;
}

.main .top_slider__prev::before,
.main .top_slider__next::before {
    display: block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.main .top_slider__prev::before {
    content: "\f137";
}

.main .top_slider__next::before {
    content: "\f138";
}

.main .top_slider__prev.swiper-button-disabled,
.main .top_slider__next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.main .top_slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.main .top_slider__dots .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    margin: 0 !important;
    background-color: #e6ded7;
    opacity: 1;
}

.main .top_slider__dots .swiper-pagination-bullet-active {
    background-color: #988666;
}

/* --- 新規セクションの見出し --- */
.main .top_pickup .mds,
.main .top_news .mds,
.main .top_case .mds,
.main .top_youtube .mds {
    text-align: center;
}

/* --- PICKUP --- */
.main .top_pickup {
    padding-top: 90px;
}

.main .top_pickup .top_pickup__item {
    display: block;
    transition: opacity .3s;
}

.main .top_pickup .top_pickup__item:hover {
    opacity: .8;
}

.main .top_pickup .top_pickup__item img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- NEWS / COLUMN --- */
.main .top_news {
    padding-top: 90px;
}

.main .top_news .top_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #212121;
    text-decoration: none;
}

.main .top_news .top_card:hover .top_card__img img {
    opacity: .8;
}

.main .top_news .top_card__img {
    overflow: hidden;
    aspect-ratio: 1134 / 802;
}

.main .top_news .top_card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s;
}

.main .top_news .top_card__body {
    padding-top: 14px;
}

.main .top_news .top_card__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main .top_news .top_card__date {
    font-size: 12px;
    line-height: 1;
}

.main .top_news .top_card__new {
    margin-left: 6px;
    color: #988666;
    font-style: normal;
    font-weight: bold;
}

.main .top_news .top_card__title {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* PCは矢印・ドットを出さない */
@media screen and (min-width: 481px) {

    .main .top_news .top_slider__prev,
    .main .top_news .top_slider__next,
    .main .top_news .top_slider__dots {
        display: none;
    }

    .main .top_news .top_slider {
        margin-left: 0;
        margin-right: 0;
    }
}

/* --- CASE --- */
.main .top_case {
    padding-top: 90px;
}

.main .top_case .top_case__item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main .top_case .top_case__img {
    aspect-ratio: 508 / 346;
    overflow: hidden;
}

.main .top_case .top_case__synthesis,
.main .top_case .top_case__ba {
    display: flex;
    width: 100%;
    height: 100%;
}

.main .top_case .top_case__synthesis img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main .top_case .top_case__ba_img {
    width: 50%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.main .top_case .top_case__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 30px 30px;
    background-color: #ddd5d4;
}

.main .top_case .top_case__title {
    padding-bottom: 14px;
    font-weight: 600;
    border-bottom: 1px solid #212121;
    font-size: 20px;
    line-height: 1.5;
}

.main .top_case .top_case__detail {
    margin-top: 14px;
}

.main .top_case .top_case__row {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.main .top_case .top_case__row dt {
    font-weight: bold;
}

.main .top_case .top_txtlink {
    margin-top: auto;
    padding-top: 20px;
    align-self: flex-end;
    font-weight: 600;
}

/* --- MENU：TROUBLEとの間の白余白をなくす --- */
.main .menu {
    margin-top: 0;
}

/* --- Instagram --- */
.main .top_insta {
    margin-top: 90px;
    padding: 40px 0;
    background-color: #988666;
}

.main .top_insta .top_insta__mds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
}

.main .top_insta .top_insta__mds::before {
    content: "\f16d";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 50px;
}

.main .top_insta .top_insta__slider {
    max-width: 977px;
    margin: 24px auto 0;
}

.main .top_insta .top_insta__inner {
    padding-top: 0;
    padding-bottom: 0;
}

.main .top_insta .top_insta__item {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.1vw, 15px);
    height: clamp(84px, 7.55vw, 103px);
    padding: 0 10px;
    border-radius: 6px;
    background-color: #fff;
    color: #212121;
    text-decoration: none;
    transition: opacity .3s;
}

.main .top_insta .top_insta__item:hover {
    opacity: .8;
}

.main .top_insta .top_insta__icon {
    flex-shrink: 0;
    width: clamp(44px, 5.85vw, 80px);
    height: clamp(44px, 5.85vw, 80px);
}

.main .top_insta .top_insta__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.main .top_insta .top_insta__text {
    flex: 1;
    min-width: 0;
    font-size: clamp(11px, 1.17vw, 16px);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: 0;
}

/* --- DOCTOR --- */
.main .doctor .g_frame .right {
    display: flex;
    flex-direction: column;
}

.main .doctor .g_frame .right .name h3 {
    line-height: 1.4;
}

.main .doctor .g_frame .right .text_box {
    line-height: 1.8;
}

.main .doctor .g_frame .right .top_txtlink {
    margin-top: 60px;
    align-self: flex-end;
    font-weight: 600;
}

.main .doctor > .top_btn {
    margin-bottom: 80px;
}

/* --- YouTube --- */
.main .top_youtube {
    padding-top: 90px;
}

.main .top_youtube .top_youtube__sub {
    margin-top: 70px;
    font-size: 30px;
    text-align: center;
}

.main .top_youtube .top_short__movie {
    position: relative;
    aspect-ratio: 9 / 16;
    background-color: #000;
}

.main .top_youtube .top_short__movie iframe,
.main .top_youtube .top_related__movie iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.main .top_youtube .top_related__movie {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.main .top_youtube .top_short__title,
.main .top_youtube .top_related__title {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- SP ---------- */
@media screen and (max-width: 480px) {

    .main .top_btn {
        width: 178px;
        margin-top: 30px;
        font-size: 14px;
    }

    .main .top_btn--left {
        margin-left: auto;
        margin-right: auto;
    }

    .main .top_txtlink {
        font-size: 14px;
    }

    .main .top_slider {
        margin: 24px 10px 0;
    }

    .main .top_slider__prev,
    .main .top_slider__next {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .main .top_slider__prev {
        left: -10px;
    }

    .main .top_slider__next {
        right: -10px;
    }

    .main .top_slider__dots {
        gap: 5px;
        margin-top: 20px;
    }

    .main .top_slider__dots .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .main .top_pickup,
    .main .top_news,
    .main .top_case,
    .main .top_youtube {
        padding-top: 55px;
    }

    .main .top_case .top_case__body {
        padding: 20px;
    }

    .main .top_case .top_case__title {
        font-size: 18px;
    }

    .main .top_case .top_case__row {
        font-size: 14px;
    }

    .main .top_insta {
        margin-top: 55px;
        padding: 24px 0;
    }

    .main .top_insta .top_insta__mds {
        gap: 10px;
    }

    .main .top_insta .top_insta__mds::before {
        font-size: 26px;
    }

    .main .top_insta .top_insta__inner {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .main .top_insta .top_insta__slider {
        max-width: none;
        margin-top: 16px;
    }

    .main .top_youtube .top_youtube__sub {
        margin-top: 45px;
        font-size: 20px;
    }

    .main .top_youtube .top_short__title,
    .main .top_youtube .top_related__title {
        font-size: 14px;
    }

    .main .doctor .mds,
    .main .monitor .mds {
        text-align: center;
    }

    .main .doctor .g_frame .right .top_txtlink {
        margin-top: 30px;
    }

}

/* Instagram：991px以下はカード幅を固定し、次のカードを見切れさせる */
@media screen and (max-width: 991px) {

    .main .top_insta .swiper-slide {
        width: 295px;
    }

    .main .top_insta .top_insta__item {
        gap: 12px;
        height: 96px;
        padding: 0 10px;
    }

    .main .top_insta .top_insta__icon {
        width: 76px;
        height: 76px;
    }

    .main .top_insta .top_insta__text {
        font-size: 16px;
    }
}

/* ==========================================================================
   ドクター詳細ページ：Instagramボタン（TOPのInstagram枠と同じ見た目）
   doctor.css が add_style.css より後に読まれるため #DOCTOR から書く
   ========================================================================== */
#DOCTOR .postDoctor .doctor_insta {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 295px;
    max-width: 100%;
    height: 103px;
    padding: 0 10px;
    border: 1px solid #e6ded7;
    border-radius: 6px;
    background-color: #fff;
    color: #212121;
    text-decoration: none;
    transition: opacity .3s;
}

#DOCTOR .postDoctor .doctor_insta:hover {
    opacity: .8;
}

#DOCTOR .postDoctor .doctor_insta__icon {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
}

#DOCTOR .postDoctor .doctor_insta__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#DOCTOR .postDoctor .doctor_insta__text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    #DOCTOR .postDoctor .doctor_insta {
        width: 100%;
    }
}
