@charset "UTF-8";

/*******************************
共通CSS
********************************/

p {
    font-family: "Noto Sans JP", serif;
}


/***********************************************************************
「★PC版 CSS★」ブラウザの幅が751px以上ならここの記述が有効になる
  **********************************************************************/
@media all and (min-width: 751px) {

    /* tenbo_wrapper
------------------------------------------------------------*/

    .tenbo_wrapper {
        background: url(../images/tenbo_bg.png) no-repeat top;
        width: 1920px;
        height: 1177px;
        position: relative;
        padding: 71px 0 0;
        background-size: cover;
    }

    .tenbo_tit {
        background: url(../images/tenbo_tit.svg) no-repeat center;
        background-size: cover;
        width: 418px;
        height: 87px;
        margin: 0px auto;
    }

    .tenbo_lead p {
        font-size: 16px;
        font-weight: bold;
        width: 938px;
        position: relative;
        margin: 20px auto 37px;
        color: #0E008F;
        text-align: center;
    }


    /* tenbo_area
------------------------------------------------------------*/

    .tenbo_area {
        background: url(../images/tenbo_area_bg.png) no-repeat center;
        background-size: cover;
        width: 1220px;
        height: 870px;
        margin: 0px auto 0px;
        padding: 0px 16px;
        position: relative;
    }

    /* タブ */
    .tabs {
        display: flex;
        margin: 0px 0px 0px 110px;
        top: 3px;
        position: relative;
    }

    .tabs [role="tab"] {
        cursor: pointer;
        width: 176px;
        height: 151px;
        padding: 0;
        transition: transform .06s ease, background .2s ease, color .2s ease;
    }

    .tenbo_area .tabs [role="tab"],
    .tenbo_area #tab-a,
    .tenbo_area #tab-b,
    .tenbo_area #tab-c {
        -webkit-appearance: none !important;
        appearance: none !important;

        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;

        background-color: transparent !important;
        /* 念のため */
        background-clip: padding-box !important;

        /* 端末タップ時のハイライトも消す */
        -webkit-tap-highlight-color: transparent;
    }

    #tab-a {
        background: url(../images/tab_a.png) no-repeat center;
        background-size: 97%;
        position: relative;
        left: 1px;
    }

    #tab-b {
        background: url(../images/tab_b.png) no-repeat center;
        background-size: 98%;
        position: relative;
        left: -4px;
    }

    #tab-c {
        background: url(../images/tab_c.png) no-repeat center;
        background-size: 98%;
        position: relative;
        left: -7px;
    }

    /* 選択時（オン画像に切替） */
    #tab-a[aria-selected="true"] {
        background-image: url(../images/tab_a_on.png);
    }

    #tab-b[aria-selected="true"] {
        background-image: url(../images/tab_b_on.png);
    }

    #tab-c[aria-selected="true"] {
        background-image: url(../images/tab_c_on.png);
    }

    /* コンテナ（単一ブロック） */
    .block {
        padding: 0px 79px 35px 76px;
        position: relative;
    }

    .block__bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        width: 1084px;
        height: 659px;
        margin: 110px 80px 0px 100px;
    }

    .block__bg .bg {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity .35s ease;
        background: no-repeat center / cover;
    }

    /* 初期ロード直後など data-bg が未設定なら A を見せる */
    .tenbo_area:not([data-bg]) .block__bg .bg-a {
        opacity: 1;
    }

    /* 画像割り当て（パスは差し替え） */
    .block__bg .bg-a {
        background-image: url(../images/tenbo_textarea_bg_a.png);
    }

    .block__bg .bg-b {
        background-image: url(../images/tenbo_textarea_bg_b.png);
    }

    .block__bg .bg-c {
        background-image: url(../images/tenbo_textarea_bg_c.png);
    }

    /* ★ 切替トリガーを .tenbo_area の data-bg に変更 */
    .tenbo_area[data-bg="a"] .block__bg .bg-a {
        opacity: 1;
    }

    .tenbo_area[data-bg="b"] .block__bg .bg-b {
        opacity: 1;
    }

    .tenbo_area[data-bg="c"] .block__bg .bg-c {
        opacity: 1;
    }

    /* 中身を前面に（必要なら） */
    .tenbo_area>.tabs,
    .tenbo_area>.block {
        position: relative;
        z-index: 1;
    }

    /* 上：固定文（A/B/Cで切替） */
    .panels {
        position: relative;
        min-height: 61px;
        margin-bottom: 21px;
        margin-left: 44px;
    }

    .panel {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 1s ease;
    }

    .panel.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #panel-a h2 {
        background: url(../images/panel_a.svg) no-repeat center;
        background-size: cover;
        width: 653px;
        height: 50px;
        margin: 0;
    }

    #panel-b h2 {
        background: url(../images/panel_b.svg) no-repeat center;
        background-size: cover;
        width: 653px;
        height: 50px;
        margin: 0;
    }

    #panel-c h2 {
        background: url(../images/panel_c.svg) no-repeat center;
        background-size: cover;
        width: 710px;
        height: 50px;
        margin: 0;
    }

    /* 中：スクロール領域（A→B→Cが連なった単一の長文） */
    .scrollbox {
        padding-left: 34px;
        padding-right: 0px;
        max-height: 406px;
        overflow: auto;
        scroll-behavior: smooth;
        line-height: 28px;
    }

    .scrollbox p {
        margin: 12px 8px;
    }

    .scrollbox p span {
        color: #FF6F00;
        font-weight: bold;
    }

    /* Chrome / Safari / Edge 用 */
    .scrollbox::-webkit-scrollbar {
        width: 10px;
        /* スクロールバーの太さ */
    }

    .scrollbox::-webkit-scrollbar-track {
        background: #C7C7C7;
        /* トラック部分（背景） */
        border-radius: 10px;
    }

    .scrollbox::-webkit-scrollbar-thumb {
        background: #7B7B7B;
        border-radius: 10px;
        box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.5);
    }

    .scrollbox::-webkit-scrollbar-thumb:hover {
        background: #7B7B7B;
    }

    .chunk {
        padding: 8px 0;
    }

    .chunk[data-sec] {
        scroll-margin-top: 8px;
    }

    .chunk h3 {
        margin: 8px 8px 0;
        font-size: 14px;
        font-weight: 700;
        color: #666;
    }

    /* 下：固定画像（A/B/Cで切替） */
    .image-panels {
        position: relative;
        margin-top: 18px;
        min-height: 88px;
    }

    .image-panel {
        position: absolute;
        inset: 0;
        display: flex;
        width: 1023px;
        height: 88px;
        margin-left: 43px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 1s ease;
    }

    #img-a {
        background: url(../images/tenbo_image_a.png);
        background-size: cover;
    }

    #img-b {
        background: url(../images/tenbo_image_b.png);
        background-size: cover;
    }

    #img-c {
        background: url(../images/tenbo_image_c.png);
        background-size: cover;
    }

    .image-panel.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @media (max-width:520px) {
        .tabs [role="tab"] {
            width: 56px;
            height: 38px;
            font-size: 20px
        }

        .panel h2 {
            font-size: 22px
        }

        .scrollbox {
            max-height: 200px
        }
    }

}

/***********************************************************************
「★SP版 CSS★」ブラウザの幅が750px以下ならここの記述が有効になる
  **********************************************************************/
@media only all and (max-width: 750px) {

    /* tenbo_wrapper
------------------------------------------------------------*/

    .tenbo_wrapper {
        background: url(../images/tenbo_bg_sp.png) no-repeat top;
        width: 750px;
        height: 1671px;
        position: relative;
        padding: 81px 0 0;
        background-size: cover;
    }

    .tenbo_tit {
        background: url(../images/tenbo_tit.svg) no-repeat center;
        background-size: cover;
        width: 558px;
        height: 117px;
        margin: 0px auto;
    }

    .tenbo_lead p {
        font-size: 28px;
        font-weight: bold;
        width: 700px;
        position: relative;
        margin: 28px auto 37px;
        color: #0E008F;
        text-align: center;
    }


    /* tenbo_area
------------------------------------------------------------*/

    .tenbo_area {
        background: #fff;
        border: solid 3px #F969DE;
        border-radius: 31px;
        width: 744px;
        height: 1117px;
        margin: 0px auto 0px;
        padding: 0;
        position: relative;
    }

    /* タブ */
    .tabs {
        display: flex;
        margin: 0;
        position: relative;
    }

    .tabs [role="tab"] {
        cursor: pointer;
        width: 250px;
        height: 198px;
        padding: 0;
        transition: transform .06s ease, background .2s ease, color .2s ease;
    }

    .tenbo_area .tabs [role="tab"],
    .tenbo_area #tab-a,
    .tenbo_area #tab-b,
    .tenbo_area #tab-c {
        -webkit-appearance: none !important;
        appearance: none !important;

        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;

        background-color: transparent !important;
        /* 念のため */
        background-clip: padding-box !important;

        /* 端末タップ時のハイライトも消す */
        -webkit-tap-highlight-color: transparent;
    }

    #tab-a {
        background: url(../images/tab_a_sp.svg) no-repeat center;
        position: relative;
    }

    #tab-b {
        background: url(../images/tab_b_sp.svg) no-repeat center;
        position: relative;
    }

    #tab-c {
        background: url(../images/tab_c_sp.svg) no-repeat center;
        position: relative;
    }

    /* 選択時（オン画像に切替） */
    #tab-a[aria-selected="true"] {
        background-image: url(../images/tab_a_on_sp.svg);
    }

    #tab-b[aria-selected="true"] {
        background-image: url(../images/tab_b_on_sp.svg);
    }

    #tab-c[aria-selected="true"] {
        background-image: url(../images/tab_c_on_sp.svg);
    }

    /* コンテナ（単一ブロック） */
    .block {
        padding: 0;
        position: relative;
    }

    .block__bg {
position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
        width: 745px;
        height: 945px;
        margin: 171px 0px 0px -1px;
    }

    .block__bg .bg {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity .35s ease;
        background: no-repeat center / cover;
    }

    /* 初期ロード直後など data-bg が未設定なら A を見せる */
    .tenbo_area:not([data-bg]) .block__bg .bg-a {
        opacity: 1;
    }

    /* 画像割り当て（パスは差し替え） */
    .block__bg .bg-a {
        background-image: url(../images/tenbo_textarea_bg_sp_a.png);
    }

    .block__bg .bg-b {
        background-image: url(../images/tenbo_textarea_bg_sp_b.png);
    }

    .block__bg .bg-c {
        background-image: url(../images/tenbo_textarea_bg_sp_c.png);
    }

    /* ★ 切替トリガーを .tenbo_area の data-bg に変更 */
    .tenbo_area[data-bg="a"] .block__bg .bg-a {
        opacity: 1;
    }

    .tenbo_area[data-bg="b"] .block__bg .bg-b {
        opacity: 1;
    }

    .tenbo_area[data-bg="c"] .block__bg .bg-c {
        opacity: 1;
    }

    /* 中身を前面に（必要なら） */
    .tenbo_area>.tabs,
    .tenbo_area>.block {
        position: relative;
        z-index: 1;
    }

    /* 上：固定文（A/B/Cで切替） */
    .panels {
        position: relative;
        min-height: 61px;
        margin-bottom: 41px;
        margin-left: 53px;
        margin-top: 24px;
    }

    .panel {
        position: absolute;
        inset: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 1s ease;
    }

    .panel.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #panel-a h2 {
        background: url(../images/panel_a.svg) no-repeat center;
        background-size: cover;
        width: 576px;
        height: 48px;
        margin: 0;
    }

    #panel-b h2 {
        background: url(../images/panel_b.svg) no-repeat center;
        background-size: cover;
        width: 583px;
        height: 48px;
        margin: 0;
    }

    #panel-c h2 {
        background: url(../images/panel_c.svg) no-repeat center;
        background-size: cover;
        width: 634px;
        height: 48px;
        margin: 0;
    }

    /* 中：スクロール領域（A→B→Cが連なった単一の長文） */
    .scrollbox {
        padding-left: 14px;
        padding-right: 0px;
        max-height: 503px;
        overflow: auto;
        scroll-behavior: smooth;
        line-height: 43px;
    }

    .scrollbox p {
        margin: 12px 28px 0 14px;
    }

    .scrollbox p span {
        color: #FF6F00;
        font-weight: bold;
    }

    /* Chrome / Safari / Edge 用 */
    .scrollbox::-webkit-scrollbar {
        width: 10px;
        /* スクロールバーの太さ */
    }

    .scrollbox::-webkit-scrollbar-track {
        background: #C7C7C7;
        /* トラック部分（背景） */
        border-radius: 10px;
    }

    .scrollbox::-webkit-scrollbar-thumb {
        background: #7B7B7B;
        border-radius: 10px;
        box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.5);
    }

    .scrollbox::-webkit-scrollbar-thumb:hover {
        background: #7B7B7B;
    }

    .chunk {
        padding: 8px 0;
    }

    .chunk[data-sec] {
        scroll-margin-top: 8px;
    }

    .chunk h3 {
        margin: 8px 8px 0;
        font-size: 14px;
        font-weight: 700;
        color: #666;
    }

    /* 下：固定画像（A/B/Cで切替） */
    .image-panels {
        position: relative;
        margin-top: 32px;
        min-height: 88px;
    }

    .image-panel {
        position: absolute;
        inset: 0;
        display: flex;
        width: 680px;
        height: 218px;
        margin: 0 auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 1s ease;
    }

    #img-a {
        background: url(../images/tenbo_image_a_sp.png);
        background-size: cover;
    }

    #img-b {
        background: url(../images/tenbo_image_b_sp.png);
        background-size: cover;
    }

    #img-c {
        background: url(../images/tenbo_image_c_sp.png);
        background-size: cover;
    }

    .image-panel.is-active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @media (max-width:520px) {
        .tabs [role="tab"] {
            width: 56px;
            height: 38px;
            font-size: 20px
        }

        .panel h2 {
            font-size: 22px
        }

        .scrollbox {
            max-height: 200px
        }
    }

}