/*========================================================================================
共通設定
==========================================================================================*/

:root {
    /* サイト幅 */
    --site-width: 1275px;

    /* カラー */
    --color-red1: #fa000f;
    --color-red2: #c00;
    --color-white: #fff;
    --color-gray1: #f4f4f4;
    --color-gray2: #d9d9d9;
    --color-gray3: #b3b3b3;
    --color-gray4: #737373;
    --color-gray5: #4d4d4d;
    --color-gray6: #222;
    --color-black: #0c0c0c;
    --color-orange1: #fdc796;
    --color-orange2: #fa6900;
    --color-orange3: #c85400;
    --color-yellow1: #fdec96;
    --color-yellow2: #fad200;
    --color-yellow3: #967e00;
    --color-pink1: #fd96d4;
    --color-pink2: #fa00a5;
    --color-pink3: #96005a;
    --color-purple1: #d096fd;
    --color-purple2: #9b00fa;
    --color-purple3: #540096;
    --color-blue1: #96c5fd;
    --color-blue2: #0064fa;
    --color-blue3: #004596;
    --color-teal1: #96f0fd;
    --color-teal2: #00dcfa;
    --color-teal3: #008496;
    --color-green1: #96fdcc;
    --color-green2: #00fa82;
    --color-green3: #00964e;
    --color-red1-tint1: #ffcbce;
    --color-red1-tint2: #ff979d;
    --color-red1-tint3: #ff636c;
    --color-red1-dark1: #bb000b;
    --color-red1-dark2: #7d0008;
}

section {
    padding: 80px 0;
}
.wrapper {
    max-width: var(--site-width);
    margin: 0 auto;
}
@media screen and (max-width: 1305px) { /* 1275px + 15px + 15px */
    .wrapper {
        padding: 0 15px;
    }
}
@media screen and (max-width: 767px) {
    section {
        padding: 2rem 0;
    }
    .wrapper {
        padding: 0;
    }
}

#Contents {
    font-family: "Hitachi Sans", "Noto Sans JP", "Yu Gothic UI", "Noto Sans" ,sans-serif;
    font-weight: 400;
    color: var(--color-gray6);
}

/*========================================================================================
reset
==========================================================================================*/

h1,
h2,
h3,
h4,
h5,
.JS h1,
.JS h2,
.JS h3,
.JS h4,
.JS h5 {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

a, a:visited { text-decoration: none; }
dl, dt, dd, ul, ul li, h1, h2, h3, h4, h5, h6, p, th, td {
    line-height: unset;
    border: none;
}
h2::after {
    display: none;
}
section dl, section ul, section ul li, section h1, section h2, section h3, section h4, section h5, section h6, section p, section th, section td { line-height: unset; }
body {
    color: unset;
    font-size: unset;
    line-height: unset;
    background-color: unset;
}
table {
    margin: 0;
    width: unset;
    border: none;
}
table th {
    padding: unset;
    width: unset;
}
table td {
    padding: unset;
    font-size: unset;
}
@media screen and (max-width: 767px) {
    table { margin: 0; }
}
#Contents {
	background: none;
	padding: 0;
}
@media screen and (max-width: 767px) {
    .JS body {
        background: none;
    }
    .ServiceChild .ServiceFooterContact {
        margin: 0;
    }
}
.ServiceChild .ServiceFooterContact, .ServiceTop .ServiceFooterContact {
    margin-top: 0;
}

#Contents * {
    box-sizing: border-box;
}

/*========================================================================================
汎用パーツ
==========================================================================================*/

/* pc-only */
@media screen and (max-width: 1032px) {
    .pc-only {
        display: none;
    }
}

/* tb-only */
.tb-only {
    display: none;
}
@media screen and (max-width: 1032px) {
    .tb-only {
        display: unset;
    }
}
@media screen and (max-width: 767px) {
    .tb-only {
        display: none;
    }
}

/* sp-only */
.sp-only {
    display: none;
}
@media screen and (max-width: 767px) {
    .sp-only {
        display: unset;
    }
}

/* image-box */
.image-box {
    width: fit-content;
    margin: 0 auto;
}
.image-box > img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/*========================================================================================
各セクションのstyle
==========================================================================================*/

/*-----------------------
共通
-------------------------*/

.headding-block {
    margin-bottom: 60px;
    padding-bottom: 30px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.headding-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 108px;
    height: 2px;
    background: var(--color-red1);
}

.headding-block h2 {
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.44;
    letter-spacing: 1.8px;
}

.headding-block .sub {
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.77;
    letter-spacing: 1.44px;
}

.headding-block .note {
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0.7px;
}

@media screen and (max-width: 767px) {
    .headding-block h2 {
        font-size: 1.8rem;
    }

    .headding-block .sub {
        font-size: 1rem;
    }

    .headding-block .note {
        font-size: .8rem;
    }
}

/*-----------------------
first-view
-------------------------*/

.first-view {
    width: 100vw;
    margin: 0 0 0 calc(-50vw + 50%);
    padding: 40px 0;
    background: var(--color-gray1);
}

.first-view h1 {
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 2.1px;
}

.first-view p {
    margin-top: 20px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: 0.9px;
}

@media screen and (max-width: 767px) {
    .first-view .wrapper {
        padding: 0 15px;
    }
    .first-view h1 {
        font-size: 2rem;
    }

    .first-view p {
        font-size: 1rem;
    }
}

/*-----------------------
dome-map
-------------------------*/

.dome-map {
    padding: 0;
    width: 100vw;
    margin: 0 0 0 calc(-50vw + 50%);
}

.dome-map .dome-map__stage {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1440 / 650;
    overflow: hidden;
}

/*
 * 背景
 * ここは今まで通り、画面いっぱいに表示
 */
.dome-map .dome-map__background {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: none !important;
    max-height: none;
    transform: translateX(-50%);
    display: block;
    z-index: 0;
}


/*
 * ドーム＋ライン用キャンバス
 *
 * PCでは最大1330px。
 * 1330px × 0.958257 ≒ 1274.5px
 * となるため、ドーム画像の左右幅が
 * 最大約1275pxに収まります。
 */
.dome-map .dome-map__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 1330px;
    aspect-ratio: 1440 / 650;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/*
 * ライン・ドーム
 * どちらも同じキャンバス上に配置
 */
.dome-map .dome-map__lines,
.dome-map .dome-map__domes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/*
 * ライン
 */
.dome-map .dome-map__lines {
    pointer-events: none;
    z-index: 1;
}

.dome-map .dome-map__lines > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
}


/*
 * サービス名
 *
 * 背景画像と同じstage基準なので、
 * ドームの縮小には影響されません。
 */
.dome-map .dome-map__title {
    position: absolute;
    z-index: 4;
    top: 8%;
    left: 50%;
    width: fit-content;
    height: 20px;
    margin: 0;
    padding: 2px 6px;
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(14px, 2.04vw, 26px);
    font-weight: 700;
    line-height: 1.4;
    color: #004B9B;
    background: #fff;
}


/*
 * ドーム
 */
.dome-map .dome-map__domes {
    z-index: 3;
    pointer-events: none;
    transition: all .3s;
}

.dome-map .dome-map__dome {
    position: absolute;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}

.dome-map .dome-map__dome > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    transition: opacity .3s ease;
}

.dome-map .dome-map__dome > span {
    width: fit-content;
    margin: -6px auto 0;
    padding: 2px 6px;
    color: var(--color-gray5);
    font-size: clamp(12px, 1.56vw, 20px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    background: #fff;
}

.dome-map .dome-map__dome:hover {
    margin-top: -2px;
}


/*
 * PC：ドーム位置
 */
.dome-map .dome-map__dome--01 {
    left: 37.9865%;
    top: 12.9408%;
    width: 23.9885%;
}

.dome-map .dome-map__dome--02 {
    left: 52.4028%;
    top: 54.9326%;
    width: 22.4262%;
}

.dome-map .dome-map__dome--03 {
    left: 1.9461%;
    top: 43.3994%;
    width: 22.1433%;
}

.dome-map .dome-map__dome--04 {
    left: 68.4207%;
    top: 7.0265%;
    width: 22.4262%;
}

.dome-map .dome-map__dome--05 {
    left: 25.1722%;
    top: 54.9323%;
    width: 22.1433%;
}

.dome-map .dome-map__dome--06 {
    left: 75.6285%;
    top: 43.3995%;
    width: 22.1433%;
}

.dome-map .dome-map__dome--07 {
    left: 9.1542%;
    top: 7.0262%;
    width: 22.1433%;
}


/*
 * SP
 */
@media (max-width: 767px) {

    /*
     * 背景は今まで通りSP用画像
     */
    .dome-map .dome-map__background {
        content: url(/story/images/dome-map-background-sp.png);
        width: 100%;
        height: 100% !important;
        max-width: none !important;
        object-fit: fill;
    }


    /*
     * SPではcontentをstageいっぱいに戻す
     *
     * PCの「最大1330px」は適用しない
     */
    .dome-map .dome-map__content {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        aspect-ratio: auto;
        transform: none;
    }


    /*
     * SP用ライン
     */
    .dome-map .dome-map__lines > img {
        content: url(/story/images/dome-map-lines-sp.svg);
    }


    /*
     * SPステージ
     */
    .dome-map .dome-map__stage {
        aspect-ratio: 375 / 650;
    }


    /*
     * サービス名：01ドームの下
     */
    .dome-map .dome-map__title {
        top: 54%;
        width: 335px;
        height: 22px;
        background: #fff;
        font-size: 14px;
        line-height: 1.4;
    }


    /*
     * SPラベル
     */
    .dome-map .dome-map__dome > span {
        background: #fff;
        font-size: clamp(11px, 2.14vw, 16px);
    }


    /*
     * SP positions
     */
    .dome-map .dome-map__dome--02 {
        left: 0%;
        top: 16%;
        width: 48%;
    }

    .dome-map .dome-map__dome--03 {
        left: 26%;
        top: 0%;
        width: 48%;
    }

    .dome-map .dome-map__dome--04 {
        left: 52%;
        top: 16%;
        width: 48%;
    }

    .dome-map .dome-map__dome--01 {
        left: 26%;
        top: 36%;
        width: 48%;
    }

    .dome-map .dome-map__dome--05 {
        left: 0%;
        top: 57%;
        width: 48%;
    }

    .dome-map .dome-map__dome--06 {
        left: 26%;
        top: 74%;
        width: 48%;
    }

    .dome-map .dome-map__dome--07 {
        left: 52%;
        top: 57%;
        width: 48%;
    }
}

/*-----------------------
story
-------------------------*/

.story .content-block ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

.story .content-block ul li {
    display: flex;
    gap: 50px;
}

.story .content-block ul li .video-box,
.story .content-block ul li .text-box {
    flex: 1;
    min-width: 0;
}

.story .content-block ul li .text-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.story .content-block ul li .text-box h3 {
    color: var(--color-gray6);
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.56;
    letter-spacing: 1.5px;
}

.story .content-block ul li .text-box p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.77;
    letter-spacing: 1.44px;
}

.story .content-block ul li .text-box h4 {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.41;
    letter-spacing: 1.2px;
}

.story .content-block ul li .text-box .staff-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.story .content-block ul li .video-box iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 612 / 344;
    border: none;
}

.story .content-block ul li .video-box .link-box {
    text-align: right;
}

.story .content-block ul li .video-box .link-box .external-link {
    margin-top: 8px;
    margin-left: auto;
    padding-right: 20px;
    display: inline-block;
    position: relative;
}
.story .content-block ul li .video-box .link-box .external-link::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 18px;
    height: 18px;
    background: url(/image/jp/r1/icon/icon_new_window_hd.gif) no-repeat center / contain;
}

.story .content-block ul li .text-box .staff-box .image-box {
    max-width: 94px;
    margin: 0;
}

.story .content-block ul li .text-box .staff-box .image-box img {
    width: 100%;
}

.story .content-block ul li .text-box .staff-box .profile-box .name {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.77;
    letter-spacing: 1.44px;
}

.story .content-block ul li .text-box .staff-box .profile-box .occupation {
    margin-top: 4px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.92;
    letter-spacing: 0.7px;
}

@media screen and (max-width: 1032px) {
    .story .content-block ul li {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .story .content-block ul li .video-box {
        width: fit-content;
        margin: 0 auto;
    }

    .story .content-block ul li .video-box iframe {
        width: 612px;
    }

}

@media screen and (max-width: 767px) {
    .story .content-block ul {
        gap: 4rem;
    }

    .story .content-block ul li .video-box {
        width: 100%;
        max-width: 612px;
    }

    .story .content-block ul li .video-box iframe {
        width: 100%;
    }

    .story .content-block ul li .text-box h3 {
        font-size: 1.6rem;
    }

    .story .content-block ul li .text-box p {
        font-size: 1rem;
    }

    .story .content-block ul li .text-box h4 {
        font-size: 1.4rem;
    }
}

/*-----------------------
overview
-------------------------*/

.overview {
    width: 100vw;
    margin: 0 0 0 calc(-50vw + 50%);
    background: var(--color-gray1);
}

.overview .content-block .card {
    padding: 40px 42px;
    max-width: 1012px;
    margin: 0 auto;
    background: var(--color-white);
    border-left: 2px solid var(--color-red1);
}

.overview .content-block .card h3 {
    color: var(--color-gray6)!important;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.41;
    letter-spacing: 1.2px;
}

.overview .content-block .card p {
    margin-top: 12px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.77;
    letter-spacing: 1.44px;
}

@media screen and (max-width: 767px) {
    .overview .wrapper {
        padding: 0 15px;
    }
    .overview .content-block .card {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }

    .overview .content-block .card h3 {
        font-size: 1.6rem;
    }

    .overview .content-block .card p {
        font-size: 1rem;
    }
}

/*-----------------------
modal
-------------------------*/

.open-modal {
    cursor: pointer;
}

.modal {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal .wrapper {
    /* width: var(--site-width); */
    max-height: 80vh;   /* 画面高さの80%まで */
    overflow-y: auto;   /* 縦スクロールを有効化 */
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal .modal-content {
    max-width: 640px;
    padding: 43px;
    position: relative;
    scrollbar-gutter: stable;
    background: #fff;
    border-radius: 12px;
    border: 3px solid var(--color-gray5);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.10);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal .modal-content .top-right-close {
    position :absolute;
    top: 15px;
    right: 21px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal .modal-content .top-right-close > img {
    width: 100%;
}

.modal .modal-content .top-right-close:hover {
    opacity: .8;
}

.modal .modal-content h2 {
    padding-left: 18px;
    border-left: 4px solid var(--color-red2);
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
}

.modal .modal-content .image-box {
    max-width: 551px;
    margin: 60px auto 38px;
}

.modal .modal-content .image-box > img {
    width: 100%;
}

.modal .modal-content p {
    padding-top: 8px;
    border-top: 2px solid var(--color-red2);
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.9;
}

@media screen and (max-width: 767px) {
    .modal .wrapper {
        width: 100%;
        padding: 0;
    }

    .modal .modal-content {
        padding: 1rem;
    }

    .modal .modal-content .top-right-close {
        top: -3px;
        right: 0;
        width: 22px;
        height: 22px;
    }

    .modal .modal-content h2 {
        font-size: 1.4rem;
        padding-bottom: 0;
    }
}
