@charset "UTF-8"; /* CSS Document */ //ブレイクポイントを指定------ここから $xl: 1399px; $lg: 1199px; $md: 991px; $sm: 767px; $xs: 575px; @mixin xl { @media screen and (max-width: ($xl)) { @content; } } @mixin lg { @media screen and (max-width: ($lg)) { @content; } } @mixin md { @media screen and (max-width: ($md)) { @content; } } @mixin sm { @media screen and (max-width: ($sm)) { @content; } } @mixin xs { @media screen and (max-width: ($xs)) { @content; } } //ブレイクポイントを指定------ここまで //全体のカラー設定(一括)----ここから $main-color: #000; $sub-color: #0090d5; //全体のカラー設定(一括)----ここまで //TOPスライダー------------------------------------------------------------------ここから #carouselExampleSlidesOnly{ display: flex; justify-content: center; align-items: center; @include lg { padding-top: 7rem; } .slider-title{ position: absolute; z-index: 3; h1{ font-size: 100px; font-size: 10rem; font-weight: 600; letter-spacing: 3px; color: #fff; @include md { font-size: 70px; font-size: 7rem; } @include sm { font-size: 50px; font-size: 5rem; } @include xs { font-size: 35px; font-size: 3.5rem; } } } .carousel-inner{ position: relative; &::before{ content: ''; position: absolute; margin: auto; width: 100vw; height: 100%; background-color: #959595; mix-blend-mode: multiply; z-index: 2; } } } //スクロールアニメーション---------------------------------------------------------ここから .scroll-container{ position: relative; //マウス // .scroll { // margin-inline: auto; // left: 0; // right: 0; // top: -20rem; // position: absolute; // width: fit-content; // color: #fff; // z-index: 3; // &::before { // animation: 2s scroll infinite; // background: #fff; // border-radius: 3px; // content: ""; // height: 10px; // left: 0; // margin: auto; // position: absolute; // right: 0; // width: 4px; // } // &::after { // border: 2px solid #fff; // border-radius: 20px; // content: ""; // display: block; // height: 50px; // margin-inline: auto; // margin-top: 10px; // width: 30px; // } // } // @keyframes scroll { // 0% { // opacity: 0; // top: 40%; // } // 50% { // opacity: 1; // } // 100% { // opacity: 0; // top: 70%; // } // } //矢印 .scroll { margin-inline: auto; left: 0; right: 0; top: -12rem; position: absolute; width: fit-content; color: #fff; z-index: 3; &::before { animation: scroll 2s infinite; border-bottom: 1px solid #fff; border-left: 1px solid #fff; content: ""; height: 20px; left: 0; margin: auto; position: absolute; right: 0; top: 0; width: 20px; } } @keyframes scroll { 0% { opacity: 0; transform: rotate(-45deg) translate(0, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: rotate(-45deg) translate(-20px, 20px); } 100% { opacity: 0; } } } //お知らせ----------------------------------------------------------------------ここから #news{ position: relative; div.container{ div{ display: flex; justify-content: space-between; align-items: baseline; //view more 矢印----ここから a{ color: inherit; position: relative; transition: all 0.5s; @include xs { font-size: 1.4rem; font-size: 14px; } &:hover{ color: $sub-color; } &:hover::after{ border-bottom:1px solid $sub-color; border-right:1px solid $sub-color; right: -10px; } &::after{ content: ''; position: relative; margin-left: 1rem; display: inline-block; right: 0; width: 60px; height: 12px; border-bottom: 1px solid #333333; border-right: 1px solid #333333; transform: skew(45deg); transition: all 0.5s; @include xs { margin-left: 0.5rem; width: 30px; height: 8px; } } } //view more 矢印----ここまで } ul li{ a{ &:hover dl{ background-color: lighten( $sub-color, 55% ); } dl{ display: flex; border-bottom: 1px solid #808080; padding: 1.5rem; margin: 0; align-items: center; color: #808080; dt{ color: #808080; font-size: 18px; font-size: 1.8rem; margin-right: 1.5em; font-weight: normal; @include md { font-size: 15px; font-size: 1.5rem; } @include xs { font-size: 14px; font-size: 1.4rem; } } dd{ font-size: 20px; font-size: 2rem; margin: 0; @include md { font-size: 18px; font-size: 1.8rem; } @include xs { font-size: 17px; font-size: 1.7rem; } } } } &:first-child dl{ border-top: 1px solid #808080; } } } } //アコーディオン-----------------------------------------------------------------ここから #accordion-container{ .accordion { .accordion-item{ margin-bottom: 1.5rem; border: 1px solid #000; &:not(:first-of-type){ border: 1px solid #000; } //accordion-button ボタン----ここから .accordion-button{ background-color: #fff; font-size: 16px; font-size: 1.6rem; padding: 1rem; transition: 0.1s; &:hover{ background-color: lighten( $sub-color, 55% ); } &:focus{ border-color:inherit; box-shadow:none; } &::after { flex-shrink: 0; margin-left: auto; font-family: "Font Awesome 5 Free"; content: "\f13a"; font-weight: 900; font-size: 23px; font-size: 2.3rem; width: 23px; height: 27px; background-image: none; } &:not(.collapsed){ background-color: $sub-color; color: #fff; } } //accordion-button ボタン----ここまで //accordion-body 折りたたみ中身----ここから .accordion-body{ dl{ padding: 2.5rem 2rem 1.5rem; @include sm { padding: 1.5rem 2rem 0.5rem; } dd{ padding-left: 2rem; display: flex; flex-direction: column; margin-bottom: 0; @include sm { padding: 1.5rem 0 0; } p{ text-align: justify; @include sm { padding-bottom: 0.5rem; } } } } } //accordion-body 折りたたみ中身----ここまで } } } //モーダル-----------------------------------------------------------------ここから #modal-container{ .btn-primary{ background: inherit; padding: 1rem; border: 0; span{ display: block; font-size: 16px; font-size: 1.6rem; background: $main-color; padding: 1rem; transition: 0.3s; } div{ overflow: hidden; img{ transition: 0.3s; } } &:hover span{ background: $sub-color; } &:hover div img{ transform: scale(1.1); } } .modal-dialog { max-width: 80%; .modal-body{ img{ width: 100%; } } } }