/* 基本設定 */

/* テキスト禁則処理 */
body {
    line-break: strict;
}

/* 評価ポップアップ */
.l-question-confim {
    display: block;
    text-align: center;
    position: fixed;
    bottom: 100px;
    z-index: 100;
    width: 100%;
    padding: 2em;
    background: #9e9e9ecc;
}

.btn-area a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 90%;
    margin: auto;
    text-align: center;
    margin-bottom: 1.2em;
    padding: 0.4em;
    background: #0b50bf;
}

.l-question-confim__txt {
    padding: 1em;
}

@media screen and (min-width: 960px) {
    .l-question-confim {
        width: 30%;
    }

    .l-question-confim__txt .l-cookie-confirm__close {
        height: 28px;
        right: 4px;
        top: 20px;
        width: 28px;
    }
}


/* 見出しレベル1 */
.c-lv1Heading {
    font-size: 3rem;
    margin-bottom: 25px;
}

/* 見出しレベル2 */
.c-lv2Heading {
    display: flex;
    flex-direction: column;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.2916666667;
    margin-bottom: 25px;
}

.c-lv2Heading:before {
    color: #0b50bf;
    content: attr(data-sub-ttl);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.4rem;
    letter-spacing: .047em;
    line-height: 1.4285714286;
    margin-bottom: 5px;
    margin-left: 2px;
}

/* PC・タブレット用（960px以上） */
@media screen and (min-width: 960px) {

    /* 見出しサイズ拡大 */
    .c-lv1Heading {
        font-size: 4.8rem;
        margin-bottom: 38px;
    }

    .c-lv2Heading {
        font-size: 4rem;
        line-height: 1.1458333333;
        margin-bottom: 38px;
    }

    .c-lv2Heading:before {
        font-size: 1.8rem;
        line-height: 1.6666666667;
        margin-bottom: 15px;
        margin-left: 4px;
    }
}

/* コンテンツエリア調整 */

.c-pageMv__head{
    margin: 0 auto;
    max-width: 1250px;
    width: calc(100% - 16vw);
    min-height: 120px;
    padding: 32px 0;
}

.l-main > .c-pageMv > .c-section {
    padding: 0 0 40px;
}

section.c-section:not(:last-child) {
    padding: 0 0 60px;
}

section.c-section {
    padding: 0 0 80px;
}

.c-pageCont {
    padding-top: 0;
}

.c-title-outer {
    max-width: inherit;
    width: auto;
}

.p-chalMedia {
    margin: 0 auto 40px;
}

.p-chalMedia__body {
    padding-top: 0;
}

/* PC・タブレット用（960px以上） */
@media screen and (min-width: 960px) {
    .c-pageMv__head {
        min-height: inherit;
        width: calc(100% - 12.5vw);
        padding: 32px 0;
    }

    .l-main > .c-pageMv > .c-section {
        padding: 0 0 60px;
    }

    section.c-section:not(:last-child) {
        padding: 0 0 80px;
    }

    /* メディアエリアの最大幅制限（特定クラス以外） */
    .p-chalMedia:not(.c-pageMv .p-chalMedia) {
        max-width: 1150px;
    }

}

/* ページ内リンク */

.p-anchor-nav {
    max-width: 1250px;
    margin: auto;
    margin-bottom: 32px;
    width: calc(100% - 16vw);
}

.p-anchor-nav__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: -15px;
    width: calc(100% + 15px);
    align-items: center;
    flex-wrap: nowrap;
}

/* 各リストアイテム */
.p-anchor-nav__item {
    position: relative;
    padding: 0 15px;
    min-width: 108px;
}

/* 項目間の縦線（|） */
.p-anchor-nav__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #ccc;
}

/* 最初のアイテムの左余白削除 */


/* リンク本体 */
.p-anchor-nav__link {
    text-decoration: none;
    color: #0b50bf;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    white-space: nowrap;
    align-items: center;
    gap: 8px; /* アイコンとの間隔も少し狭く */
    transition: opacity 0.3s;
}

.p-anchor-nav__link:hover {
    opacity: 0.7;
}

/* 丸いアイコンの枠 */
.p-anchor-nav__icon {
    display: block;
    width: 20px; /* スマホはアイコン小さめ */
    height: 20px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0; /* 潰れないようにする */
}

/* 下矢印（▼） */
.p-anchor-nav__icon::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-right: 2px solid #0b50bf;
    border-bottom: 2px solid #0b50bf;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* PC・タブレット用（960px以上） */
@media screen and (min-width: 960px) {
    
    .p-anchor-nav {
        width: calc(100% - 12.5vw);
        margin-bottom: 60px; /* PCは余白広め */
    }

    /* PC版の余白サイズに合わせてネガティブマージンも大きく */
    .p-anchor-nav__list {
        margin-left: -30px;
        width: calc(100% + 30px);
    }

    /* リストアイテムの余白拡大 */
    .p-anchor-nav__item {
        padding: 0 30px;
    }
    

    /* 縦線のサイズ調整 */
    .p-anchor-nav__item:not(:last-child)::after {
        height: 14px;
    }

    /* リンク文字サイズ拡大 */
    .p-anchor-nav__link {
        font-size: 1.6rem;
        gap: 10px;
    }

    /* アイコンサイズ拡大 */
    .p-anchor-nav__icon {
        width: 24px;
        height: 24px;
    }
    
    .p-anchor-nav__icon::before {
        width: 6px;
        height: 6px;
    }
}


/* ボタンリスト（スマホ：間隔狭め） */
.p-chalMedia__btnList {
    -webkit-column-gap: 15px;
    -moz-column-gap: 15px;
    column-gap: 15px;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.p-chalMedia__btn {
    align-items: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: #0b50bf;
    border-radius: 48px;
    color: #fff;
    display: flex;
    font-size: 1.4rem;
    font-weight: 500;
    justify-content: center;
    line-height: 1.3571428571;
    min-width: 148px;
    overflow: hidden;
    padding: 16px 14px 14px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.p-chalMedia__btn:before {
    background-color: #0042fa;
    border-radius: 48px;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
    transition: -webkit-transform .3s;
    transition: transform .3s;
    transition: transform .3s,-webkit-transform .3s;
    width: 100%;
    z-index: -1
}

.p-chalMedia__btn:hover:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    will-change: transform
}

/* PC・タブレット用（960px以上） */
@media screen and (min-width: 960px) {

    /* ボタン間隔を広げる */
    .p-chalMedia__btnList {
        -webkit-column-gap: 40px;
        -moz-column-gap: 40px;
        column-gap: 40px;
    }

}


/* アコーディオン（スマホベース）*/

.accordion-wrapper {
    max-width: 1150px;
    width: calc(100% - 16vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- ヘッダー（ボタン全体） --- */
.accordion-header {
    width: 100%;
    border: none;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: opacity 0.3s;
}

.accordion-header:hover {
    opacity: 0.8;
}

/* --- ラベル（タイトル部分） --- */
.acc-label {
    background-color: #0b50bf;
    color: #fff;
    font-weight: bold;
    font-size: 2rem;
    width: 100%;
    padding: 10px 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* --- 概要エリア（アイコンの入れ物） --- */
.acc-summary {
    background-color: #f2f2f2;
    color: #333;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
}

/* スマホ版：概要テキストは非表示 */
.acc-summary p {
    margin: 0;
    line-height: 1.5;
    font-weight: bold;
}

/* --- アイコン（＋ −） --- */
.acc-icon {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background-color: #0b50bf;
}

.acc-icon::before,
.acc-icon::after {
    content: '';
    position: absolute;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.acc-icon::before {
    width: 16px; height: 2px;
}

.acc-icon::after {
    width: 2px; height: 16px; transition: opacity 0.3s;
}

.accordion-item.is-open .acc-icon {
    transform: none;
}

.accordion-item.is-open .acc-icon::after { 
    opacity: 0; 
}


/* --- 開閉コンテンツ部分 --- */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    background-color: #f2f2f2;
    border-radius: 20px;
    margin-top: 5px;
}

.accordion-inner {
    overflow: hidden;
}

.accordion-item.is-open .accordion-content {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
}

/* コンテンツの中身 */
.content-block {
    padding: 20px;
}

.content-title {
    font-size: 2.2rem;
    margin: 0 0 30px 0;
    border-bottom: 3px solid #0b50bf;
    display: inline-block;
    min-width: -webkit-fill-available;
}

.content-body {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
    align-items: flex-start;
}

.text-area {
    background-color: #fff;
    padding: 20px;
    flex: 1;
    letter-spacing: .05rem;
}

.text-area p {
    margin: 0;
}

.img-area { width: 100%; flex-shrink: 0; }
.img-area img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


/* =========================================
    PC・タブレット用（960px以上）
   ========================================= */
@media screen and (min-width: 960px) {

    .accordion-wrapper {
        width: calc(100% - 12.5vw);
    }

    /* ヘッダーの青背景を解除 */
    .accordion-header {
        display: flex;
        flex-direction: row;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        align-items: stretch;
    }
    

    /* ラベル：青い背景と形状を復活 */
    .acc-label {
        width: 290px;
        padding: 20px;
        border-radius: 20px 0 0 20px;
        justify-content: center;
        flex-shrink: 0;
    }

    /* 概要エリア：グレー背景と形状を復活 */
    .acc-summary {
        padding: 20px 30px;
        border-radius: 0 20px 20px 0;
        flex-grow: 1;
        justify-content: space-between;
        gap: 20px;
    }

    /* 概要テキストを表示 */
    .acc-summary p {
        font-size: 1.8rem;
    }

    /* コンテンツ部分 */
    .accordion-content {
        margin-top: 5px;
    }
    .content-block {
        padding: 30px 60px;
    }
    .content-title {
        font-size: 2.4rem;
    }
    .content-body {
        flex-direction: row;
    }
    .text-area {
        font-size: 1.8rem;
    }
    .img-area {
        width: 300px;
    }
}


/* 募集要項・その他 */
.c-container {
    max-width: 1150px;
}

.p-benefits-block__txt {
    margin-bottom: 1.5em;
}

.p-benefits-block__body .p-benefits-block__txt:last-of-type {
    margin-bottom: 0 !important;
}

/* ボタンエリア（スマホ） */
.c-btn {
    font-size: 1.4rem;
    white-space: nowrap;
}

.c-container-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1040px;
    width: calc(100% - 16vw);
}


/* PC・タブレット用（960px以上） */
@media screen and (min-width: 960px) {
    .c-btn {
        font-size: 1.6rem;
    }

    .p-benefits-block__head {
        padding-left: 10px;
        width: 40%;
    }

    /* 下部ボタンエリア幅調整 */
    .c-container-btn {
        width: calc(100% - 12.5vw);
    }

    .c-container-btn .c-btn__wrap {
        margin-top: 0;
    }

}