@charset "utf-8";

/* ============================================
   研修医ページ resident.css
   Figma: 採用サイト｜研修医 (2245:773)
   PC 1920 / SP 390 デザイン準拠
============================================ */

#resident__page {
    --res-gold: #ae8d5e;
    --res-badge-gold: #9b844c;
    --res-navy: #02193c;
    --res-text: #333;
    --res-body: #44474e;
}

#resident__page main {
    overflow: hidden;
}

/* --------------------------------------------
   MV
-------------------------------------------- */
.res_mv {
    position: relative;
    background-image: url("/recruit/assets/img/resident/bg-texture.jpg");
    background-size: 12px 12px;
    background-repeat: repeat;
}

.res_mv_photo img {
    width: 100%;
    height: clamp(380px, 30.9vw, 594px);
    object-fit: cover;
    object-position: center;
}

.res_mv_box {
    position: absolute;
    left: 11.875%;
    top: calc(50% + 3.65vw); /* Figma: 写真中心より70px下（1920px時） */
    transform: translateY(-50%);
    width: min(696px, 50%);
    padding: 56px 40px 56px 66px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0));
}

.res_mv_en {
    color: var(--res-gold);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 17px;
    line-height: 1;
    margin-bottom: 24px;
}

.res_mv_title {
    color: var(--res-text);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #999;
}

.res_mv_lead {
    color: var(--res-text);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
}

/* MV下の飾り罫線（PC） */
.res_mv::after {
    content: "";
    position: absolute;
    left: 14.9%;
    bottom: 8px;
    width: 35%;
    height: 1px;
    background-color: #bbb;
}

@media (max-width: 1279px) {
    .res_mv_box {
        left: 6%;
        width: min(560px, 60%);
        padding: 40px 32px 40px 40px;
    }

    .res_mv_title {
        font-size: 38px;
    }

    .res_mv_lead {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .res_mv {
        background-image: none;
    }

    .res_mv_photo img {
        height: auto;
        aspect-ratio: 390 / 367;
    }

    .res_mv_box {
        position: relative;
        left: 0;
        top: auto;
        transform: none;
        width: 88%;
        margin-top: -93px;
        padding: 20px 0 0 24px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.55));
    }

    .res_mv_en {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .res_mv_title {
        font-size: 24px;
        padding-bottom: 14px;
        margin-bottom: 14px;
        width: 202px;
    }

    .res_mv_lead {
        font-size: 13px;
        padding-bottom: 16px;
    }

    .res_mv::after {
        content: none;
    }
}

/* --------------------------------------------
   EDUCATION POLICY
-------------------------------------------- */
.res_policy {
    background-image: url("/recruit/assets/img/resident/bg-texture.jpg");
    background-size: 12px 12px;
    background-repeat: repeat;
    background-color: #f4f3f1;
    padding: 130px 0 145px;
}

.res_policy_inner {
    max-width: 1200px;
    width: calc(100% - 80px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(559px, 46%);
    gap: 64px;
    align-items: start;
}

.res_policy_label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--res-gold);
    font-family: "Inter", var(--sans), sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 40px;
}

.res_policy_label::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background-color: var(--res-gold);
}

.res_policy_title {
    color: var(--res-text);
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 2.08vw, 40px);
    line-height: 1.45;
    margin-bottom: 48px;
    white-space: nowrap;
}

.res_policy_body {
    color: var(--res-text);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    max-width: 500px;
}

.res_policy_photo {
    position: relative;
    margin-top: -54px;
}

.res_policy_photo::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(33px, 35px);
    background-color: #e4e2d9;
}

.res_policy_photo img {
    position: relative;
    aspect-ratio: 559 / 410;
    object-fit: cover;
}

@media (max-width: 1279px) {
    .res_policy {
        padding: 88px 0 100px;
    }

    .res_policy_title {
        font-size: 24px;
        margin-bottom: 32px;
        white-space: normal;
    }

    .res_policy_body {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .res_policy {
        padding: 28px 0 84px;
    }

    .res_policy_inner {
        width: 88%;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .res_policy_label {
        margin-bottom: 24px;
    }

    .res_policy_title {
        font-size: 27px;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .res_policy_body {
        font-size: 14px;
        max-width: none;
        padding-inline: 8px;
    }

    .res_policy_photo {
        margin-top: 0;
    }

    .res_policy_photo img {
        aspect-ratio: 342 / 222;
    }

    .res_policy_photo::before {
        transform: translate(20px, 11px);
    }
}

/* --------------------------------------------
   3つの理由
-------------------------------------------- */
.res_reasons {
    background-image: url("/recruit/assets/img/resident/reason-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 116px 0;
}

.res_reasons_inner {
    max-width: 1140px;
    width: calc(100% - 80px);
    margin-inline: auto;
}

.res_reasons_title {
    text-align: center;
    font-family: var(--serif);
    font-weight: 300;
    color: var(--res-text);
    margin-bottom: 145px;
}

.res_reasons_title_top {
    display: block;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 18px;
}

.res_reasons_title_bottom {
    display: block;
    font-size: 40px;
    line-height: 1;
}

.res_reasons_title_num {
    color: var(--res-gold);
    font-size: 96px;
    line-height: 0.8;
    vertical-align: -0.12em;
    margin-right: 4px;
}

.res_reason_item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 56px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: 146px;
}

.res_reason_item:last-child {
    margin-bottom: 0;
}

.res_reason_item-reverse {
    flex-direction: row-reverse;
}

.res_reason_photo {
    flex: 0 0 53.5%;
    margin-top: -50px;
    padding-left: 36px;
}

.res_reason_item-reverse .res_reason_photo {
    margin-top: -59px;
    padding-left: 0;
    padding-right: 28px;
}

.res_reason_photo img {
    aspect-ratio: 610 / 430;
    object-fit: cover;
}

.res_reason_body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px 56px;
}

.res_reason_badge {
    position: relative;
    z-index: 1;
    width: 165px;
    height: 165px;
    margin-top: -82px;
    margin-bottom: 30px;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 内側の塗り円（Figma: Ellipse358 直径76.4%・下寄り・opacity0.7） */
.res_reason_badge::before {
    content: "";
    position: absolute;
    left: 11.8%;
    top: 19.25%;
    width: 76.4%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--res-badge-gold);
    opacity: 0.7;
    z-index: 0;
}

/* 外側のリング（Figma: Ellipse359 直径85.2%・下端揃え） */
.res_reason_badge::after {
    content: "";
    position: absolute;
    left: 7.4%;
    bottom: 0;
    width: 85.2%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px solid var(--res-badge-gold);
    z-index: 0;
}

.res_reason_badge_num {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 64px;
    line-height: 1;
}

.res_reason_badge_en {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 19px;
    line-height: 1;
    margin-top: 6px;
}

.res_reason_heading {
    color: #444;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.res_reason_text {
    color: var(--res-body);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 2;
    letter-spacing: 0.03em;
    max-width: 360px;
    text-align: left;
}

@media (max-width: 1279px) {
    .res_reasons_title {
        margin-bottom: 110px;
    }

    .res_reason_item {
        gap: 32px;
        margin-bottom: 110px;
    }

    .res_reason_photo {
        flex-basis: 48%;
        padding-left: 24px;
    }

    .res_reason_item-reverse .res_reason_photo {
        padding-right: 20px;
    }

    .res_reason_heading {
        font-size: 26px;
    }

    .res_reason_badge {
        width: 110px;
        height: 110px;
        margin-top: -55px;
        padding-top: 16px;
    }

    .res_reason_badge_num {
        font-size: 40px;
    }

    .res_reason_badge_en {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .res_reasons {
        padding: 76px 0 88px;
    }

    .res_reasons_inner {
        width: 100%;
    }

    .res_reasons_title {
        margin-bottom: 60px;
    }

    .res_reasons_title_top {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .res_reasons_title_bottom {
        font-size: 20px;
    }

    .res_reasons_title_num {
        font-size: 47px;
    }

    .res_reason_item,
    .res_reason_item-reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 91.5%;
        margin-bottom: 64px;
    }

    .res_reason_item {
        margin-right: auto;
    }

    .res_reason_item-reverse {
        margin-left: auto;
    }

    .res_reason_photo {
        flex-basis: auto;
        margin-top: 0;
        padding: 0;
        transform: translateY(-18px);
    }

    .res_reason_item .res_reason_photo {
        padding-left: 8.2%;
    }

    .res_reason_item-reverse .res_reason_photo {
        margin-top: 0;
        padding-left: 0;
        padding-right: 8.2%;
    }

    .res_reason_photo img {
        aspect-ratio: 325 / 214;
    }

    .res_reason_body {
        padding: 0 24px 44px;
    }

    .res_reason_badge {
        width: 82px;
        height: 82px;
        margin-top: -59px;
        margin-bottom: 22px;
        padding-top: 12px;
    }

    .res_reason_badge::after {
        border-width: 2px;
    }

    /* バッジは写真の中心に合わせる（写真は左右どちらかに8.2%インセット） */
    .res_reason_item .res_reason_badge {
        transform: translateX(15px);
    }

    .res_reason_item-reverse .res_reason_badge {
        transform: translateX(-15px);
    }

    .res_reason_badge_num {
        font-size: 32px;
    }

    .res_reason_badge_en {
        font-size: 10px;
        margin-top: 4px;
    }

    .res_reason_heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .res_reason_text {
        font-size: 13px;
        max-width: none;
    }
}

/* --------------------------------------------
   募集要項
-------------------------------------------- */
.res_requirements {
    background-image: url("/recruit/assets/img/resident/bg-texture.jpg");
    background-size: 12px 12px;
    background-repeat: repeat;
    background-color: #f4f3f1;
    padding: 88px 0 112px;
}

.res_requirements_head {
    position: relative;
    text-align: center;
    margin-bottom: 56px;
}

.res_requirements_en {
    color: #e5dfdf;
    opacity: 0.7;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(60px, 6.7vw, 128px);
    letter-spacing: 0.12em;
    line-height: 1;
}

.res_requirements_title {
    color: var(--res-text);
    font-family: var(--serif);
    font-weight: 300;
    font-size: 40px;
    line-height: 1.2;
    margin-top: -0.4em;
    position: relative;
}

.res_requirements_box {
    max-width: 1140px;
    width: calc(100% - 80px);
    margin-inline: auto;
    background-color: #fff;
}

.res_requirements_row {
    display: grid;
    grid-template-columns: 290px 1fr;
    align-items: center;
    border-top: 1px solid #d4d4d4;
    padding: 56px 0;
}

.res_requirements_row dt {
    color: var(--res-navy);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    text-align: center;
}

.res_requirements_row dd {
    color: #1b1c1c;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    padding-right: 70px;
}

.res_requirements_row dd a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.res_requirements_row dd a:hover {
    opacity: 0.7;
}

@media (max-width: 1279px) {
    .res_requirements_row {
        grid-template-columns: 180px 1fr;
        padding: 40px 0;
    }

    .res_requirements_row dd {
        padding-right: 32px;
        font-size: 16px;
    }

    .res_requirements_row dt {
        font-size: 16px;
    }

    .res_requirements_title {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .res_requirements {
        padding: 56px 0 72px;
    }

    .res_requirements_en {
        font-size: 47px;
        letter-spacing: 0.2em;
    }

    .res_requirements_title {
        font-size: 27px;
        margin-top: -0.25em;
    }

    .res_requirements_head {
        margin-bottom: 40px;
    }

    .res_requirements_box {
        width: calc(100% - 33px);
        padding: 0 16px;
    }

    .res_requirements_row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 40px 4px;
    }

    .res_requirements_row dt {
        font-size: 15px;
        line-height: 1;
    }

    .res_requirements_row dd {
        padding-right: 0;
        font-size: 13px;
    }
}

/* --------------------------------------------
   見学CTA
-------------------------------------------- */
.res_visit {
    background-color: #f5f3f3;
    padding: 75px 0 120px;
}

.res_visit_photos {
    max-width: 1328px;
    margin-inline: auto;
    display: flex;
}

.res_visit_photo {
    width: 50%;
}

.res_visit_photo-2 {
    transform: translateY(39px);
}

.res_visit_photo img {
    aspect-ratio: 663 / 378;
    object-fit: cover;
}

.res_visit_box {
    position: relative;
    max-width: 1140px;
    width: calc(100% - 80px);
    margin: -64px auto 0;
    background-color: #fff;
    text-align: center;
    padding: 116px 40px 92px;
}

.res_visit_title {
    color: var(--res-navy);
    font-family: var(--serif);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.4;
    margin-bottom: 36px;
}

.res_visit_text {
    color: #1b1c1c;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 18px;
    line-height: 2;
    max-width: 612px;
    margin-inline: auto;
}

@media (max-width: 1279px) {
    .res_visit_box {
        padding: 80px 32px 64px;
    }

    .res_visit_title {
        font-size: 30px;
    }

    .res_visit_text {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .res_visit {
        padding: 64px 0 0;
    }

    .res_visit_photo img {
        aspect-ratio: 195 / 177;
    }

    /* デザインのSPクロップ位置（visit01=右側、visit02=左側を見せる） */
    .res_visit_photo:not(.res_visit_photo-2) img {
        object-position: right center;
    }

    .res_visit_photo-2 img {
        object-position: left center;
    }

    .res_visit_photo-2 {
        transform: translateY(18px);
    }

    .res_visit_box {
        width: calc(100% - 66px);
        margin-top: -41px;
        padding: 70px 28px 56px;
    }

    .res_visit_title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .res_visit_text {
        font-size: 14px;
        text-align: left;
        margin-bottom: 0;
    }

    .res_visit {
        padding-bottom: 88px;
    }
}
