body { margin: 0; font-family:"メイリオ", "Meiryo","游ゴシック", YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", sans-serif; font-size: 15px; line-height: 1.6; word-break: break-all; overflow-x:hidden; } form { margin:0; } a { text-decoration:none; } .sp { display:none; } .pc { margin:0px auto; text-align:center; display:block; } .space { height:30px; } .space_s { height:5px; } .space_m { height:20px; } .text_title { height:35px; } .sample_img { width:550px; } #mv { position:absolute; } #mv_sp { position:absolute; } .text_sub { height:20px; } @media only screen and (max-width: 670px) { .sp { margin:0px auto; text-align:center; display:block; } .pc { display:none; } .space { height:5px; padding-top:3%; } .space_m { height:1px; padding-top:3%; } .space_s { height:1px; padding-top:2%; } .text_title { height:25px; } .sample_img { width:70%; } .text_sub { height:16px; } } @media only screen and (max-width: 480px) { .text_title { height:20px; } .text_sub { height:13px; } } /*add for slider*/ *, *:before, *:after { box-sizing: border-box; } .slider, .slider2, .slider3 { height:400px; position: relative; overflow: hidden; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-flow: row nowrap; -ms-flex-flow: row nowrap; flex-flow: row nowrap; -webkit-box-align: end; -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } .slider .text_title, .slider2 .text_title, .slider3 .text_title{ position:absolute; top: 0%; } .slider .text_sub, .slider2 .text_sub, .slider3 .text_sub{ position:absolute; bottom: 3%; } @media only screen and (max-width: 670px) { .slider, .slider2, .slider3{ height:auto; padding-top:60%; } .slider .text_title, .slider2 .text_title, .slider3 .text_title{ height:8.9%; top: 4%; } .slider .text_sub, .slider2 .text_sub, .slider3 .text_sub{ height:5%; bottom: 10%; } } .slider-inner, .slider-inner2, .slider-inner3 { position: absolute; top: 0; left: 0; width: 400%; height: 100%; -webkit-transition: all 1s ease-out; transition: all 1s ease-out; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-flow: row nowrap; -ms-flex-flow: row nowrap; flex-flow: row nowrap; } .slider-contents { display: flex; flex: 1; flex-flow: column nowrap; justify-content: center; } .slide_btn_l, .slide_btn_r{ position: absolute; top: 44%; max-width: 50px; width: 5%; } #l-btn, #l-btn2, #l-btn3{ left: calc(50% - 275px - 7%); display:none; } #r-btn, #r-btn2, #r-btn3{ right: calc(50% - 275px - 7%); } @media only screen and (max-width: 670px) { #l-btn, #l-btn2, #l-btn3{ left: 5%; } #r-btn, #r-btn2, #r-btn3{ right: 5%; } } #grade1{ height:auto; opacity: 1; } #grade2, #grade3{ height:0; opacity: 0; } #pic11, #pic21, #pic31, #moji21{ transition:1s; opacity: 1; } #pic12, #pic13, #pic14, #pic22, #pic23, #pic24, #pic32, #pic33, #moji22{ transition:1s; opacity: 0; } #moji22{ transform: translateX(100%); } @keyframes check { 50% { outline-color: #E87E04; box-shadow: 0 0 0 12px #333, 0 0 0 36px rgba(51, 51, 51, 0.2); } 100% { outline-color: #E87E04; box-shadow: 0 0 0 0 #333, 0 0 0 0 rgba(51, 51, 51, 0); } } /*added avobe */