#loading { width: 100vw; height: 100%; transition: all 1s; position: fixed; background-color: #ffffff; top: 0; left: 0; z-index: 9999; } .spinner { margin: 500px auto; width: 40px; height: 40px; position: relative; } .cube1, .cube2 { background-color: #0b846a; width: 25px; height: 25px; position: absolute; top: 0; left: 0; -webkit-animation: sk-cubemove 1.8s infinite ease-in-out; animation: sk-cubemove 1.8s infinite ease-in-out; } .cube2 { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .loaded { opacity: 0; visibility: hidden; } @-webkit-keyframes sk-cubemove { 25% { -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5) } 50% { -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg) } 75% { -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5) } 100% { -webkit-transform: rotate(-360deg) } } @keyframes sk-cubemove { 25% { transform: translateX(42px) rotate(-90deg) scale(0.5); -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5); } 50% { transform: translateX(42px) translateY(42px) rotate(-179deg); -webkit-transform: translateX(42px) translateY(42px) rotate(-179deg); } 50.1% { transform: translateX(42px) translateY(42px) rotate(-180deg); -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg); } 75% { transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5); -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5); } 100% { transform: rotate(-360deg); -webkit-transform: rotate(-360deg); } } /*ナビボタン*/ /*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/ .openbtn { /*ボタン内側の基点となるためrelativeを指定。 追従するナビゲーションの場合はfixed+top、rightといった位置をセットで指定*/ position: fixed; right: 0; background: #ffffff00; cursor: pointer; width: 150px; height: 50px; border-radius: 5px; z-index: 500000000; } /*ボタン内側*/ .openbtn span { display: inline-block; transition: all .4s; /*アニメーションの設定*/ position: absolute; right: 14px; height: 3px; border-radius: 2px; } .openbtn span:nth-of-type(1) { top: 15px; width: 45%; background: #000000; } .openbtn span:nth-of-type(2) { top: 23px; width: 35%; background: #0b846a; } .openbtn span:nth-of-type(3) { top: 31px; background: #000000; width: 20%; } /*activeクラスが付与されると線が回転して×になる*/ .openbtn.active span:nth-of-type(1) { top: 18px; right: 18px; transform: translateY(6px) rotate(-135deg); width: 30%; background: #fff; } .openbtn.active span:nth-of-type(2) { opacity: 0; } .openbtn.active span:nth-of-type(3) { top: 30px; background: #fff; right: 18px; transform: translateY(-6px) rotate(135deg); width: 30%; } /*ナビボタン*/ /*ナビスライド*/ #g-nav { display: flex; align-items: center; justify-content: space-around; /*position:fixed;にし、z-indexの数値を大きくして前面へ*/ position: fixed; z-index: 999; /*ナビのスタート位置と形状*/ top: 0; right: -120%; width: 100%; height: 100vh; /*ナビの高さ*/ background: #0b846a; /*動き*/ transition: all 0.6s; } /*アクティブクラスがついたら位置を0に*/ #g-nav.panelactive { right: 0; } /*ナビゲーション*/ #g-nav ul { /*ナビゲーション天地中央揃え*/ z-index: 999; width: 25%; padding-left: 0; } /*リストのレイアウト設定*/ #g-nav li { /**/margin: 50px 0; margin-right: 50px; list-style: none; text-align: center; } #g-nav li a { color: #ffffff; text-decoration: none; padding: 10px; display: block; text-transform: uppercase; letter-spacing: 0.1em; font-weight: bold; } /*ナビスライド*/ /*ナビスライド rogo*/ .rogo { width: 20%; filter: drop-shadow(0px 0px 150px #000000); /*position: absolute; z-index: 999; top:50%; left:20%; transform: translate(-50%,-50%);*/ } .rogo img { width: 100%; } .rogo2 { width: 10%; /*position: absolute; z-index: 999; top:50%; left:20%; transform: translate(-50%,-50%);*/ } .rogo2 img { width: 100%; height: 100%; } /*ナビスライド rogo*/ /*ナビスライド sns*/ .sns { width: 100%; } .sns img { width: 100%; } .siromaru { margin: 40px 0; filter: drop-shadow(0px 0px 10px #000000); width: 40%; } #margin { margin-top: 50px; } #margin img{ width: 120; } /*ナビスライド sns*/ /*ナビスライド スクロールなし*/ body.fixed::-webkit-scrollbar { display: none; } body .fixed { width: 100%; height: 100%; position: fixed; -ms-overflow-style: none; scrollbar-width: none; } /*ナビスライド スクロールなし*/ body { width: 100%; background-image: url(..//img/aikon2.PNG); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-size: 40%; background-position: center; } h2 { text-align: center; } h3 { width: calc(1/3); } h4 { font-size: 40px; margin: 0; } img { width: 100%; } #content { width: 100%; } header { width: 100%; margin: 0; } header img { margin: 0; width: 100%; height: 100vh; } /*=== 文字上のせ ========================= */ .example { position: relative; } .example h2 { position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%,-50%); -webkit-transform: translate(-50%,-50%); transform: translate(-50%,-50%); margin:0; padding:0; /*文字の装飾は省略*/ color: #000; } .example img { width: 100%; } .example h2 img { width: 100%; object-fit: contain; } /*=== 文字上のせ ========================= */ /*=== スライド ========================= */ /*=== 画像の表示エリア ================================= */ .slide { position : relative; overflow : hidden; /* 画像のサイズに合わせて変更ください */ width : 100%; height : 100vh; margin : auto; /* サンプルは中央寄せの背景:白 */ background : #fff; } /*=== 画像の設定 ======================================= */ .slide img { display : block; position : absolute; /* 画像のサイズを表示エリアに合せる */ width : 100%; height : 100vh; object-fit: cover; opacity : 0; animation : slideAnime 10s ease infinite; } /*=== スライドのアニメーションを段差で開始する ========= */ .slide img:nth-of-type(1) { animation-delay: 0s } .slide img:nth-of-type(2) { animation-delay: 5s } /*=== スライドのアニメーション ========================= */ @keyframes slideAnime{ 0% { opacity: 0 } 5% { opacity: 1 } 50% { opacity: 1 } 55% { opacity: 0 } 100% { opacity: 0 } } /*=== スライド ========================= */ #main { width: 75%; margin: 0 auto; max-width: 1000px; } /*===アクセシビリティ======================== */ #akuse_all { width: 100%; margin-top: 50px; box-shadow: #000 0 0 10px; z-index: 1000000000000; } #akuse { width: 100%; display: flex; justify-content: space-between; } #akuse_2 { width: 100%; display: flex; justify-content: space-between; } .font { padding: 10px 5px; justify-content: center; width: 45%; display: flex; } .font img{ cursor: pointer; } .font_2 { justify-content: center; width: 50%; display: flex; } .font h3 { border: #0b846a solid 2px; width: 40%; margin: 0 auto; } /*===アクセシビリティ======================== */ /*背景変える*/ body,html { height: 100%; margin: 0 auto; /**/ height: 100%; margin: 0 auto; /**/ } #ai { box-sizing: border-box; color: #000000; font-size: 5rem; display: flex; align-items: center; justify-content: center; height: 100%; } .cd-fixed-bg { position: relative; min-height: 100%; background-size: 40%; background-color: #f370bf00; background-attachment: fixed; background-repeat: no-repeat; background-position: center center; } .cd-fixed-bg.cd-bg-1 { background-image: url('..//img/haru.PNG'); } .cd-fixed-bg.cd-bg-2 { background-image: url('..//img/natu.PNG'); } .cd-fixed-bg.cd-bg-3 { background-image: url('..//img/aki.PNG'); } .cd-fixed-bg.cd-bg-4 { background-image: url('..//img/huyu.PNG'); } /*背景変える*/ .flex_1 { justify-content: space-between; display: flex; margin: 80px 0; align-items: center; width: 100%; } .flex_2 { align-items: center; display: flex; justify-content: space-between; margin: 80px 0; width: 100%; } .flex_1 .text{ margin-left: 150px; } .img { width: 48%; } .img img { filter: drop-shadow(0px 0px 20px #333); width: 100%; } .text { width: 48%; text-align: left; } /*画像拡大*/ img { width: 100%; } .modal_wrap input { display: none; } .modal_overlay { display: flex; justify-content: center; overflow: auto; position: fixed; top: 0; left: 0; z-index: 9999; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.5s, transform 0s 0.5s; transform: scale(0); } .modal_trigger { position: absolute; width: 100%; height: 100%; } .modal_content { align-self: center; width: 50%; /*ウィンドウ時の*/ padding: 30px 30px 15px; box-sizing: border-box; background: #ffffff00; line-height: 1.4em; transition: 0.5s; margin-top: 30px; /*自分でつけた*/ } .modal_content p { padding-top: 0; } .modal_wrap input:checked~.modal_overlay { opacity: 1; transform: scale(1); transition: opacity 0.5s; } .modal_wrap input:checked~.modal_overlay .modal_content { transform: translateY(20px); } .open_button { background-color: #ffffff00; text-align: center; cursor: pointer; transition: all 0.3s; display: block; margin-top: 40px; margin-bottom: 1px; padding: 12px 2px; max-width: 500px; text-decoration: none; } .open-button:active { /*ボタンを押したとき*/ -webkit-transform: translateY(2px); transform: translateY(2px); /*下に動く*/ } /*アイコンを表示*/ .open-button:after { font-family: "Font Awesome 5 Free"; content: "\f2d0"; padding-left: 8px; } /*ラベルホバー時*/ .open-button:hover { color: #ffffff; background-color: #4f96f6; transition: .6s; } /* .modal_title2 { font-size: 1.5em; position: relative; overflow: hidden; padding-bottom: 10px; margin-top:0; margin-bottom: 0; } .modal_title2::before, .modal_title2::after{ content: ""; position: absolute; bottom: 0; } */ /* h2 プライマリカラー*/ /* .modal_title2:before{ border-bottom: 4px solid #030303;/*ウィンドウ時の上線*/ /* width: 100%; }*/ /* h2 セカンダリカラー*/ /* .modal_title2:after{ border-bottom: 4px solid #000000;/*ウィンドウ時の上線*/ /* width: 100%; }*/ /*画像拡大*/ .title_botan { width: 20%; margin: 0 auto; padding: 30px 0 25px 0; } .title_botan img { width: 100%; } /*=== お知らせ ========================= */ .container ul{ list-style-type: none; } .container ul a{ color: #000; } .container ul li{ text-indent: -130px; /*テキストの1行目の開始位置を左に150Px移動する */ padding: 0 0 0 130px; /*要素の内部余白を左に150PXにする*/ } /*=== お知らせ ========================= */ /*アコーディオン*/ /*高さを制限しているコンテンツの要素*/ .container { box-shadow: #000 0 0 10px; position: relative; width: 100%; height: 200px; padding: 20px 20px 80px; margin: 10px auto 0 auto; border: 1px solid #000; overflow: hidden; transition: .4s; box-sizing: border-box; z-index: 100; background-color: #fff; } /*グラデーションで隠す擬似要素*/ .container:before { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; background: rgb(0, 0, 0); background: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%); transition: .4s; } /*クラス付与時のスタイル*/ .container.active:before { opacity: 0; visibility: hidden; } /*テキストのスタイル*/ p { font-size: 16px; line-height: 1.8; word-wrap: break-word; } /*ボタンのスタイル*/ button { position: absolute; transform: translateX(-50%); -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); left: 50%; bottom: 20px; width: 100px; height: 40px; cursor: pointer; color: #fff; background: #000; border: none; } /*アコーディオン*/ .akusesu_text { box-shadow: #000 0 0 10px; width: 100%; margin: 0 auto; text-align: center; border: solid; margin-bottom: 40px; background-color: #fff; } iframe { width: 100%; box-shadow: #000 0 0 10px; border: solid; } #FQ { font-size: 18px; font-weight: bold; } /*===地図 ========================= */ #map_main{ box-shadow: #000 0 0 10px; margin-top: 50px; } #map_flex{ width: 100%; display: flex; justify-content: space-around; } .map_item{ width: calc(3/100); } /*===地図 ========================= */ footer { width: 100%; background: #0b846a; color: black; margin-top: 20px; padding: 20px 0; text-align: center; } /*=== svg ========================= */ /*.img_clip { clip-path: url(#cliipPath_id) } */ /*=== svg ========================= */ @media screen and (max-width:896px) { #g-nav { flex-wrap: wrap; } #g-nav ul { width: 100%; margin-top: -200px; } #g-nav li { margin: 25px 0px; margin-right: 0px; } .open_button { max-width: 400px; } .rogo { width: 40%; margin: 0 auto; margin-bottom: 100px; } /*ナビスライド sns*/ .rogo2 { width: 100%; margin: 0 auto; } .sns { display: flex; width: 100%; margin: 0 auto; justify-content: center; } .sns img { width: 100%; } .siromaru { margin: 0 15px; width: 8%; } #margin { margin-top: 0px; } /*ナビスライド sns*/ /*ガチボディのimg-size*/ body { background-size: 80%; } /*ガチボディのimg-size*/ /*背景変える 上と同じsizeに*/ .cd-fixed-bg { background-size: 80%; } /*背景変える*/ /*.cd-fixed-bg { 背景切り替えスマホでできないとき background-size: cover; background-attachment: scroll; }*/ /*背景切り替えスマホでできないとき*/ /*===アクセシビリティ======================== */ h4 { font-size: 25px; margin: 0; } .font_2 { justify-content: center; width: 50%; display: flex; } /*===アクセシビリティ======================== */ .flex_1, .flex_2 { flex-wrap: wrap; } .flex_1 { flex-direction: column; } .flex_2 { flex-direction: column-reverse; } .img,.text { width: 100%; } .container ul li{ text-indent: 0px; /*テキストの1行目の開始位置を左に150Px移動する */ padding: 0 0 ; /*要素の内部余白を左に150PXにする*/ } .text { margin-top: 20px; } .title_botan { width: 40%; } .modal_content { width: 100%; } }