/* 共通 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    margin-top: 70px;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

main {
    width: 100%;
    overflow: hidden;
}



.no-scroll {
    overflow: hidden !important;
}
.txt_br_sp {
    display: none;
}

.inner {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.tel a {
    color:#000000 !important;
    text-decoration:none !important;
}
.tel_w a {
    color:#ffffff !important;
    text-decoration:none !important;
}

/* トップページのセクションタイトル */
.section_ttl_box {
    position: relative;
}

.section_main_ttl {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -10px;
}

.section_ttl {
    position: absolute;
    top: 50%;
    left: 48%;
    transform: translate(-50%, -50%);
    width: 15%;
}
.section_ttl.layer {
    width: 10%;
}

/* 下層ページのセクションタイトル */

@media only screen and (max-width: 1280px) {
    .inner {
        max-width: 1000px;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .inner {
        max-width: 700px;
    }
}
@media only screen and (max-width: 768px) {
    .inner {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* 横スクロール要素 */
.vertical-slider__wrap {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: calc(100vh - 70px);
    display: flex;
    flex-wrap: nowrap;
}

.vertical-area {
    position: relative;
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #fff;
}
.vertical-area.footer {
    z-index: 10;
}
.vertical-area_inner {
    width: 100%;
    height: 100%;
}
.vertical-area h2 span {
    display: block;
}

.vertical-area .img-wrap {
    width: 70%;
    height: 80%;
    position: relative;
    overflow: hidden;
}

.vertical-area .img-wrap .mask {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, .1);
    z-index: 1;
}

.vertical-area .img-wrap img {
    width: 130%;
    height: 130%;
    -o-object-fit: cover;
       object-fit: cover;
}

.proxy {
    position: absolute;
    visibility: hidden;
}


.page_name {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translate(-50%, 0%);
}
.page_name h2 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 250px;
    padding: 10px 0;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}
.page_name.white h2 {
    color: #0054a7;
    background-color: rgba(255, 255, 255, 0.85);
}
.page_name.white h2:hover {
    color: #036eb8;
	
}

.section_top_trigger:hover {
    color: #036eb8;
	
}

.page_name.blue h2 {
    color: #fff;
    background-color: #0054a7;
}
.page_name.blue h2:hover {
    background-color: #036eb8;
	
}
.pagination_box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0%);
    display: flex;
    justify-content: space-between;
    width: 200px;
    height: auto;
}
.page_btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #0154A5;
    border: 3px solid #fff;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}
.page_btn.active {
    background-color: #f8b62d;
}
.page_btn:hover {
    background-color: #f8b62d;
}

.section_icon {
    position: absolute;
    top: 10%;
    right: 29%;
    width: 5%;
    height: auto;
}

.section_txt_box {
    position: relative;
    padding: 40px 0;
}
.section_txt {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}
.section_txt_bg {
    position: absolute;
    width: 7%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.section_main_txt_box {
    /* position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%); */
    text-align: center;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-break: anywhere;
    font-size: 3vh;
    margin-top: 20px;
    overflow: hidden;
    line-height: 1.8;
    height: 3.6em;
}

@-webkit-keyframes infinity-scroll-left {
    from {
      transform: translateX(0);
    }
      to {
      transform: translateX(-100%);
    }
    }

@keyframes infinity-scroll-left {
    from {
      transform: translateX(0);
    }
      to {
      transform: translateX(-100%);
    }
}

.scroll-infinity {
    margin-top: 10px;
}
.scroll-infinity__wrap {
    display: flex;
    overflow: hidden;
}
.scroll-infinity__list {
    display: flex;
    list-style: none;
    padding: 0
}
.scroll-infinity__list--left {
            -webkit-animation: infinity-scroll-left 80s infinite linear 0.5s both;
            animation: infinity-scroll-left 80s infinite linear 0.5s both;
}
.scroll-infinity__item {
    width: calc(100vw / 6);
    margin-right: 10px;
}
.scroll-infinity__item>img {
    width: 100%;
}

@media only screen and (max-width: 1024px) and (min-width: 769px) {
    .page_name {
        bottom: 20%;
    }
    .pagination_box {
        bottom: 14%;
        width: 250px;
    }
    .page_name h2 {
        font-size: 30px;
        width: 400px;
    }
    .scroll-infinity {
        margin-top: 70px;
    }
    .scroll-infinity__item {
        width: calc(100vw / 2);
    }
    .section_main_txt_box {
        margin-top: 40px;
        margin-bottom: 40px;
    }
}
@media only screen and (max-width: 900px) {
    .scroll-infinity__item {
        width: calc(100vw / 3);
    }
}
@media only screen and (max-width: 768px) {
    .section_main_ttl {
        width: 100%;
        margin-top: -5px;
    }
    .section_ttl {
        width: 40%;
    }
    .section_ttl.layer {
        width: 30%;
    }
    .section_txt_bg {
        width: 17%;
    }
    .section_txt_box {
        padding: 70px 0;
    }
    .section_txt {
        font-size: 26px;
    }
    .section_icon {
        top: 11%;
        right: 15%;
        width: 13%;
    }
    .section_main_txt_box {
        width: 70%;
    }
    .section_img_box {
        top: 40%;
    }
    .section_img {
        width: 250px;
        margin-left: 15px;
    }
}
@media only screen and (max-width: 425px) {
    .section_txt_bg {
        width: 25%;
    }
    .section_icon {
        top: 3%;
        right: 15%;
        width: 13%;
    }
    .section_txt_box {
        padding: 30px 0;
    }
    .section_main_txt_box {
        font-size: 16px;
        width: 80%;
        margin-bottom: 20px;
    }
    .section_txt {
        font-size: 20px;
		line-height: 1.2; /* 行間をフォントサイズの指定の倍に設定 */
    }
    .section_img_box {
        top: 32%;
    }
    .section_img {
        min-width: unset;
        width: 180px;
    }

    .page_name h2 {
        font-size: 20px;
        padding: 5px 0;
    }

    .scroll-infinity {
        margin-top: 20px;
    }
    .scroll-infinity__item {
        width: calc(100vw / 2);
    }
    .page_name {
        bottom: 20%;
    }
    .pagination_box {
        bottom: 23%;
    }

    .vertical-area.layer .page_name {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        position: unset;
        bottom: unset;
        left: unset;
        transform: unset;
        -webkit-transform: unset;
        -moz-transform: unset;
        -ms-transform: unset;
        -o-transform: unset;
}
    .vertical-area.layer .pagination_box {
        position: unset;
        bottom: unset;
        left: unset;
        margin: auto;
        transform: unset;
        -webkit-transform: unset;
        -moz-transform: unset;
        -ms-transform: unset;
        -o-transform: unset;
    }
}

/* 横スクロール要素 */

@media (max-width: 1024px) and (min-width: 769px) {
    .inner {
        max-width: 700px;
    }
    .section_ttl {
        width: 30%;
        font-size: 30px;
    }
    .section_ttl.layer {
        width: 20%;
    }
    .section_txt {
        font-size: 24px;
    }
    .section_txt_bg {
        width: 10%;
    }
    .section_icon {
        width: 9%;
        right: 19%;
    }
    .page_btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* フォントのスタイル */
.kosugi-maru-regular {
  font-family: "Kosugi Maru", serif;
  font-weight: 400;
  font-style: normal;
}

/* スマホ改行のスタイル */
@media screen and (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

/* PC専用改行のスタイル */
@media screen and (min-width: 1024px) {
    .br-pc {
        display: block; /* PCでは表示される */
    }
}


/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の背景 */
    overflow: auto; /* スクロールを許可 */
    padding-top: 60px;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

video {
    width: 100%;
    height: auto;
}
JavaScript
javascript
コードをコピーする
// ボタンがクリックされた時にモーダルを開く
document.getElementById('playButton').addEventListener('click', function () {
    document.getElementById('videoModal').style.display = 'block';
    const videoPlayer = document.getElementById('videoPlayer');
    videoPlayer.play();
});

// モーダルを閉じるための処理
document.getElementById('closeModal').addEventListener('click', function () {
    document.getElementById('videoModal').style.display = 'none';
    const videoPlayer = document.getElementById('videoPlayer');
    videoPlayer.pause();
    videoPlayer.currentTime = 0; // 動画を最初からに戻す
});

// モーダルの外側をクリックしたら閉じる
window.addEventListener('click', function (event) {
    if (event.target === document.getElementById('videoModal')) {
        document.getElementById('videoModal').style.display = 'none';
        const videoPlayer = document.getElementById('videoPlayer');
        videoPlayer.pause();
        videoPlayer.currentTime = 0;
    }
});