@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; } } //ブレイクポイントを指定------ここまで $bright-color: #b20404; $dark-color: #602121; header { display: none; @include sm { display: block; } } //mainimage-area #mainimage-area { position: relative; .swiper-slide { max-width: 100%; height: 730px; background-position: center; @include xl { height: 680px; } @include lg { height: 580px; } @include md { height: 450px; } @include sm { height: 400px; } @include xs { height: 300px; } } .swiper-img1 { background-image: url("../img/top-slide-1.jpg"); background-size: cover; @incude sm { background-image: url("../img/top-slide-s-1.jpg") } } .swiper-img2 { background-image: url("../img/top-slide-2.jpg"); background-size: cover; @incude sm { background-image: url("../img/top-slide-s-2.jpg") } } .swiper-img3 { background-image: url("../img/top-slide-3.jpg"); background-size: cover; @incude sm { background-image: url("../img/top-slide-s-3.jpg") } } .headnav { position: absolute; top: 13%; left: 8%; z-index: 10; @include xl { top: 11%; left: 7%; } @include lg { top: 10%; left: 6%; } @include md { top: 9%; left: 5%; } div { width: 260px; @include xl { width: 250px; } @include lg { width: 230px; } @include md { width: 210px; } img { margin-bottom: 4rem; @include xl { margin-bottom: 3.5rem; } @include lg { margin-bottom: 3rem; } @include md { margin-bottom: 2.5rem; } } li { margin-bottom: 2.5rem; font-size: 17px; font-size: 1.7rem; font-weight: bold; letter-spacing: 0.05em; @include xl { margin-bottom: 2rem; } } } a { color: #fff; &:hover { color: $bright-color; } } } } //news #news { padding: 6rem 0; #blogitembox{ background: #fff; padding: 1.5rem 0; .blogitem { width: 90%; margin: 0 auto; @include xs { width: 100%; } a { color: #000; font-size: 16px; font-size: 1.6rem; display: block; border-bottom: solid 1px rgba(96,33,33,0.5); &:hover { color: $bright-color; } p { display: inline-block; text-align: justify; margin-top: 1.5rem; margin-bottom: 0.5rem; @include xs { line-height: 1.4; } } .blogdate { margin-right: 3em; @include xs { margin-right: 1.5em; margin-bottom: 0; display: block; } } .blogtitle { @include xs { margin-top: 0; } } } } } .bloglist { width: 90%; margin: 0 auto; text-align: right; a { color: #333; display: inline-block; &:hover { color: $bright-color; } i { color: $bright-color; margin-right: 1rem; } } } } /*------------------- blogfeed -------------------*/ //about #about { background-color: #f7f1e8; padding: 10rem 0; @include md { padding: 6rem 0; } @include sm { padding: 0 0 6rem; } .container { max-width: 1400px; padding: 0; } .about-box { position: relative; height: 430px; @include xl { height: 380px; } @include lg { height: 340px; } @include md { height: 260px; } @include sm { height: 300px; } @include xs { height: 250px; } &:first-child { background-image: url("../img/top-img-1.jpg"); background-size: cover; background-repeat: no-repeat; background-position: center center; } &:last-child { background-image: url("../img/top-img-2.jpg"); background-size: cover; background-repeat: no-repeat; background-position: center center; } .vertical { writing-mode: vertical-rl; margin: 4rem 10rem; text-align: justify; @include xl { margin: 4rem 8rem; } @include lg { margin: 2.5rem 4rem; } @include md { margin: 2.5rem; } @include sm { writing-mode: inherit; margin: 2em; } @include xs { margin: 2em; } h3 { font-size: 28px; font-size: 2.8rem; font-weight: bold; letter-spacing: 0.05em; @include md { margin: 0 2rem; font-size: 26px; font-size: 2.6rem; } @include sm { margin: 1.5rem 0; font-size: 24px; font-size: 2.4rem; } @include xs { font-size: 22px; font-size: 2.2rem; } } p { line-height: 2; margin-bottom: 0; } a { display: inline-block; border-left: solid 1px rgba(0,0,0,0.5); border-right: solid 1px rgba(0,0,0,0.5); padding: 1rem 0.5rem; color: #333; margin: 0 3rem; transition: 0.3s; @include md { margin: 0 1.5rem; } @include sm { padding: 0 1.5rem; margin: 1rem 0 0; } &::after { content: "●"; color: $bright-color; margin-top: 0.5rem; @include sm { margin-left: 0.5rem; } } &:hover { color: $bright-color; border-left: solid 1px rgba(178,4,4,0.5); border-right: solid 1px rgba(178,4,4,0.5); } } } &:nth-child(2) { @include sm { height: auto; } .vertical { position: absolute; left: 0; @include sm { position: inherit; left: auto; } } } &:nth-child(3) { @include sm { height: auto; } .vertical { position: absolute; right: 0; @include sm { position: inherit; right: auto; } } } } } //yakage-banner #yakage-banner { padding: 7rem 0; @include md { padding: 5rem 0; } @include xs { padding: 3rem 0; } .container { a { display: block; width: 100%; height: 200px; position: relative; background-image: url("../img/yakage-banner.jpg"); background-size: cover; background-repeat: no-repeat; background-position: center left; border-top: solid 1px #333; border-bottom: solid 1px #333; &:hover { opacity: 0.7; } @include md { height: 150px; } @include sm { background-position: center left 20%; } @include sm { height: 120px; background-position: center left 30%; } p { position: absolute; font-size: 32px; font-size: 3.2rem; color: #333; line-height: 1.4; right: 5%; top: 50%; transform: translateY(-50%); -webkit-transform: translateY(-50%); @include md { font-size: 28px; font-size: 2.8rem; right: 4%; } @include sm { font-size: 23px; font-size: 2.3rem; } @include sm { font-size: 18px; font-size: 1.8rem; right: 3%; } span { &:nth-child(2) { font-size: 57px; font-size: 5.7rem; color: #602121; margin-left: -0.5em; font-weight: bold; @include md { font-size: 50px; font-size: 5rem; } @include sm { font-size: 38px; font-size: 3.8rem; } @include xs { font-size: 28px; font-size: 2.8rem; } } &:last-child { font-size: 38px; font-size: 3.8rem; color: #333; @include md { font-size: 33px; font-size: 3.3rem; } @include sm { font-size: 22px; font-size: 2.2rem; } } } } } } }