/* ========================================
  共通モーダル
======================================== */

.common-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        visibility 0.3s ease,
        opacity 0.3s ease;
}

.common-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* 背景 */

.common-modal__overlay {
    position: fixed;
    z-index: 0;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}


/* モーダル本体 */

.common-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 56px 60px 60px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.common-modal.is-open .common-modal__dialog {
    opacity: 1;
    transform: translateY(0);
}

.common-modal__dialog:focus {
    outline: none;
}


/* ========================================
  右上の閉じるボタン
======================================== */

.common-modal__icon-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.common-modal__icon-close:hover,
.common-modal__icon-close:focus-visible {
    background-color: #f1f1f1;
}

.common-modal__icon-close:focus-visible {
    outline: 2px solid #008f8a;
    outline-offset: 2px;
}

.common-modal__icon-close::before,
.common-modal__icon-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #222;
    content: "";
}

.common-modal__icon-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.common-modal__icon-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* ========================================
  モーダル下部
======================================== */

.common-modal__footer {
    margin-top: 48px;
    padding-top: 32px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.common-modal__close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    margin: 0;
    padding: 14px 32px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
    background-color: #008f8a;
    border: 1px solid #008f8a;
    border-radius: 4px;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.common-modal__close-button:hover,
.common-modal__close-button:focus-visible {
    color: #008f8a;
    background-color: #fff;
}

.common-modal__close-button:focus-visible {
    outline: 2px solid #008f8a;
    outline-offset: 3px;
}


/* ========================================
  モーダル内の標準記事
======================================== */

.modal-article__date {
    display: block;
    margin-bottom: 12px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.modal-article__title {
    margin: 0 0 32px;
    padding-bottom: 20px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}
.modal-article__title span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.modal-article__body {
    font-size: 16px;
    line-height: 2;
}

.modal-article__body p {
    margin: 0 0 24px;
}

.modal-article__body h4 {
    margin: 40px 0 16px;
    font-size: 20px;
    line-height: 1.6;
}

.modal-article__body ul,
.modal-article__body ol {
    margin: 0 0 24px;
    padding-left: 1.5em;
}

.modal-article__body li {
    margin-bottom: 8px;
}

.modal-article__body a {
    color: #008f8a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.modal-article__image {
    margin: 32px 0;
}

.modal-article__image:first-child {
    margin-top: 0;
}

.modal-article__image img {
    display: block;
    width: initial;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-article__image span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.modal-article__body hr {
    height: 1px;
    background-color: #ddd;
    border: none;
    color: #ddd;
    margin: 30px 0;
}

.modal-article__body .border {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

/* ========================================
  モーダル表示中の背景固定
======================================== */

body.is-modal-open {
    position: fixed;
    top: var(--modal-scroll-position, 0);
    left: 0;
    width: 100%;
    overflow: hidden;
}


/* ========================================
  スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .common-modal {
        align-items: flex-start;
        padding: 16px;
    }

    .common-modal__dialog {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 52px 24px 36px;
        border-radius: 12px;
    }

    .common-modal__icon-close {
        top: 10px;
        right: 10px;
    }

    .common-modal__footer {
        margin-top: 36px;
        padding-top: 24px;
    }

    .common-modal__close-button {
        width: 100%;
        min-width: 0;
    }

    .modal-article__title {
        margin-bottom: 24px;
    }

    .modal-article__body {
        font-size: 15px;
        line-height: 1.9;
    }

    .modal-article__body h4 {
        margin-top: 32px;
        font-size: 18px;
    }

}


/* ========================================
  アニメーションを抑える設定
======================================== */

@media (prefers-reduced-motion: reduce) {

    .common-modal,
    .common-modal__dialog,
    .common-modal__close-button {
        transition: none;
    }

}



/* ========================================
  お知らせ一覧
======================================== */
.recruit-news__inner {
    width: min(100%, 960px);
    margin: 28px auto 0;
}

.recruit-news__list {
    margin: 0;
    padding: 0;
    border-top: 1px solid #d9d9d9;
    list-style: none;
}

.recruit-news__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d9d9d9;
}

.recruit-news__button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin: 0;
    padding: 14px 56px 14px 20px;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.recruit-news__button::before,
.recruit-news__button::after {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 14px;
    height: 2px;
    background-color: currentColor;
    content: "";
    transition: transform 0.25s ease;
}

.recruit-news__button::after {
    transform: rotate(90deg);
}

.recruit-news__button:hover,
.recruit-news__button:focus-visible {
    color: #008f8a;
    background-color: #f4f9f9;
}

.recruit-news__button:hover::before,
.recruit-news__button:focus-visible::before {
    transform: rotate(90deg);
}

.recruit-news__button:hover::after,
.recruit-news__button:focus-visible::after {
    transform: rotate(180deg);
}

.recruit-news__button:focus-visible {
    outline: 2px solid #008f8a;
    outline-offset: -2px;
}

.recruit-news__date {
    flex: 0 0 150px;
    line-height: 1.3;
}

.recruit-news__title {
    min-width: 0;
    line-height: 1.3;
}

.recruit-news__contents[hidden] {
    display: none !important;
}


/* ========================================
  モーダル
======================================== */

.recruit-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        visibility 0.3s ease,
        opacity 0.3s ease;
}

.recruit-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.recruit-modal__overlay {
    position: fixed;
    z-index: 0;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.recruit-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    padding: 56px 60px 60px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.recruit-modal.is-open .recruit-modal__dialog {
    opacity: 1;
    transform: translateY(0);
}

.recruit-modal__dialog:focus {
    outline: none;
}


/* 閉じるボタン */

.recruit-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.recruit-modal__close:hover,
.recruit-modal__close:focus-visible {
    background-color: #f1f1f1;
}

.recruit-modal__close:focus-visible {
    outline: 2px solid #008f8a;
    outline-offset: 2px;
}

.recruit-modal__close::before,
.recruit-modal__close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #222;
    content: "";
}

.recruit-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.recruit-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* モーダル内の記事 */

.recruit-news-detail__date {
    display: block;
    margin-bottom: 12px;
    color: #777;
    font-size: 14px;
    line-height: 1.3;
}

.recruit-news-detail__title {
    margin: 0 0 15px;
    padding-bottom: 14px;
    font-size: clamp(22px, 3vw, 14px);
    line-height: 1.3;
    border-bottom: 1px solid #ddd;
}
.recruit-news-detail__title span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.recruit-news-detail__body {
    font-size: 16px;
    line-height: 1.5;
}

.recruit-news-detail__body p {
    margin: 0 0 15px;
}

.recruit-news-detail__body ul,
.recruit-news-detail__body ol {
    margin: 0 0 15px;
    padding-left: 1.5em;
}

.recruit-news-detail__body a {
    color: #008f8a;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.recruit-news-detail__body h4,
.recruit-news-detail__body h5 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}
.recruit-news-detail__body section {
    margin: 30px 0;
}

.recruit-news-detail__image {
    margin: 32px 0;
}

.recruit-news-detail__image img {
    display: block;
    width: initial;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.recruit-news-detail__image span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.recruit-news-detail__body hr {
    height: 1px;
    background-color: #ddd;
    border: none;
    color: #ddd;
    margin: 30px 0;
}

.recruit-news-detail__body .border {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.recruit-news-detail__body .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.recruit-news-detail__image {
    flex: 0 0 auto;
    margin: 0;
}

.recruit-news-detail__content {
    flex: 0 1 auto;
    min-width: 0;
}

@media (max-width: 600px) {

    .recruit-news-detail__image,
    .recruit-news-detail__content {
        flex-basis: 100%;
    }
}


/* モーダル表示中の背景固定 */
body.is-recruit-modal-open {
    position: fixed;
    top: var(--recruit-modal-scroll-y, 0);
    left: 0;
    width: 100%;
    overflow: hidden;
}


/* モーダル下部 */
.recruit-modal__footer {
    margin-top: 48px;
    padding-top: 32px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.recruit-modal__close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 56px;
    margin: 0;
    padding: 14px 32px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
    background-color: #008f8a;
    border: 1px solid #008f8a;
    border-radius: 4px;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.recruit-modal__close-button:hover,
.recruit-modal__close-button:focus-visible {
    color: #008f8a;
    background-color: #fff;
}

.recruit-modal__close-button:focus-visible {
    outline: 2px solid #008f8a;
    outline-offset: 3px;
}

@media screen and (max-width: 767px) {

    .recruit-modal__footer {
        margin-top: 36px;
        padding-top: 24px;
    }

    .recruit-modal__close-button {
        width: 100%;
        min-width: 0;
    }

}

/* ========================================
  スマートフォン
======================================== */

@media screen and (max-width: 767px) {

    .recruit-news__inner {
        margin-top: 12px;
    }

    .recruit-news__button {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 18px 10px 2px;
    }

    .recruit-news__date {
        flex-basis: auto;
        font-size: 13px;
    }

    .recruit-news__title {
        font-size: 15px;
    }

    .recruit-news__button::before,
    .recruit-news__button::after {
        right: 2px;
    }

    .recruit-modal {
        align-items: flex-start;
        padding: 16px;
    }

    .recruit-modal__dialog {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 52px 24px 36px;
        border-radius: 12px;
    }

    .recruit-modal__close {
        top: 10px;
        right: 10px;
    }

    .recruit-news-detail__title {
        margin-bottom: 15px;
    }

    .recruit-news-detail__body {
        font-size: 15px;
        line-height: 1.9;
    }

}
@media screen and (max-width: 480px) {
    .recruit-news-detail__title {
        margin: 0 0 15px;
        padding-bottom: 14px;
        font-size: clamp(18px, 3vw, 14px);
        line-height: 1.5;
        border-bottom: 1px solid #ddd;
    }
}


/* 動きを抑える設定を使用しているユーザー向け */

@media (prefers-reduced-motion: reduce) {

    .recruit-modal,
    .recruit-modal__dialog,
    .recruit-news__button {
        transition: none;
    }

}