@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; } } //ブレイクポイントを指定------ここまで //カラー指定 $color-main:#009d42; $bright-green:#4cba7b; $soft-green:#bde2c9; $orange:#f3ac00; $soft-orange:#e8b86d; $light-yellow:#fff8a1; $pale-yellow:#f8f9e0; //共通 html{ scroll-padding-top: 140px; scroll-behavior: smooth; @include md{scroll-padding-top: 120px;} } body { animation: loading 1s; } @keyframes loading { 0% {opacity: 0;} 100% {opacity: 1;} } //h1タグ表示させない .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .fluid-box-l{ overflow: hidden; margin-left: calc(1140px - 100vw); img{ width: 100%; object-fit: cover; } @include lg{margin-left: calc(960px - 100vw);} @include md{margin-left: calc(720px - 100vw);} @include sm{margin-left:0;} } .fluid-box-r{ overflow: hidden; margin-right: calc(1140px - 100vw); img{ width: 100%; object-fit: cover; } @include lg{margin-right: calc(960px - 100vw);} @include md{margin-right: calc(720px - 100vw);} @include sm{margin-right:0;} } //下層ページヘッダー(画像以外) #header{ position: relative; height: 40vh; background-blend-mode: multiply; margin-top: 110px; display: grid; overflow: hidden; @include md{ height: 30vh; margin-top: 95px; } @include xs{margin-top: 88px;} .container{ align-content: center; margin-top: -4rem; @include xs{margin-top: -2rem;} } h2{ font-optical-sizing: auto; font-weight: 600; font-style: normal; font-size: 60px; font-size: 6rem; color: #fff; @include md{ font-size: 50px; font-size: 5rem; } @include xs{ font-size: 40px; font-size: 4rem; } } p{ color: #fff; font-size: 22px; font-size: 2.2rem; font-weight: 700; line-height: 1em; @include md{ font-size: 20px; font-size: 2rem; } } &::before{ content: ""; position: absolute; bottom: -2px; width: 100%; height: 5.7vw; background-image: url("../../img/wave-yellow-top.svg"); background-size: contain; background-repeat: no-repeat; left: 50%; transform: translateX(-50%); } &::after{ content: ""; position: absolute; bottom: 20px; right: 10%; width: 90px; height: 90px; background-image: url("../img/hiyoko.svg"); background-size: contain; background-repeat: no-repeat; @include md{ bottom: 8px; width: 80px; height: 80px; } @include xs{ width: 70px; height: 70px; } } } //ページ内リンクボタン #page-nav{ background:$pale-yellow; padding: 2rem 0 7rem; ul{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 0; @include xs{gap: 1rem;} li{ border: $color-main solid 1px; border-radius: 100vh; text-align: center; transition: 0.2s ease-in-out; a{ white-space: nowrap; display: block; color: $color-main; text-decoration: none; padding: 0.2em; } i{margin-left: 1em;} &:hover{ background:$color-main; a{color: #fff;} } } } } //ひよこタイトル .hiyoko-title{ font-size: 32px; font-size: 3.2rem; font-weight: 700; color: $color-main; margin-bottom: 3rem; @include sm{margin-bottom: 2rem;} @include xs{ font-size: 28px; font-size: 2.8rem; } &::before{ content: ""; position: relative; top: 2px; display: inline-block; /* ← 行頭に表示させるならinline-block */ background-image: url("../../img/hiyoko.svg"); background-size: cover; background-repeat: no-repeat; width: 37px; height: 37px; margin-right: 1rem; @include xs{ width: 30px; height: 28px; top: 3px; } } } //リンクボタン .link-box { a{ font-weight: 700; position: relative; color: #fff; font-size: 20px; font-size: 2rem; display: inline-block; padding: 0.5rem 2.5rem; transition: 0.15s; background:$bright-green; box-shadow: 0 4px 0 $color-main; border-radius: 12px; &:hover{ box-shadow: none; transform: translateY(4px); } } } //スライドショー @keyframes infinity-scroll-left { from { transform: translateX(0); } to { transform: translateX(-100%); } } .scroll-infinity__wrap { display: flex; overflow: hidden; } .scroll-infinity__list { display: flex; list-style: none; padding: 0 } .scroll-infinity__list--left { animation: infinity-scroll-left 60s infinite linear 0.5s both; @include md{ animation: infinity-scroll-left 40s infinite linear 0.5s both; } @include xs{ animation: infinity-scroll-left 30s infinite linear 0.5s both; } } .scroll-infinity__item { width: calc(100vw / 4); @include md{ width: calc(100vw / 3); } @include xs{ width: calc(100vw / 2); } } .scroll-infinity__item>img { width: 100%; } //スライドで現れる .slidein{ transition: 2s ease; } .slide_left{ transform: translateX(calc(-50vw - 50%)); } .slide_right{ transform: translateX(calc(50vw + 50%)); } .show{ transform: translateX(0); } //header .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; width: 100%; transition: 0.2s ease-in-out; .header-inner { display: flex; gap: 5%; align-items: center; justify-content: space-between; padding: 1.5rem 3rem; @include md{padding: 1.5rem 2rem;} .logo img { height: 80px; @include md{height: 68px;} @include xs{height: 60px;} } .main-nav { width: 650px; ul.nav-list { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; li{ text-align: center; flex-grow: 1; } li a { font-size: 15px; font-size: 1.5rem; text-decoration: none; color: #333; @include md{ font-size: 14px; font-size: 1.4rem; } &:hover{ img{opacity: 50%;} span{color: $bright-green;} } .menu-image{ padding-bottom: 1rem; img { width: 62px; height: 45px; transition: 0.2s ease-in-out; } } span { display: block; line-height: 1em; transition: 0.2s ease-in-out; } } li+li a span{border-left: 2px solid #cedf9f;} } } .menu-toggle { display: none; flex-direction: column; gap: 7px; background: none; border: none; cursor: pointer; z-index: 999; transition: 0.2s ease-in-out; &:hover{opacity: 0.5;} &:focus {outline: none;} .bar { width: 35px; height: 2px; background-color: $color-main; } .sr-only { position: absolute; left: -9999px; } } } @media (max-width: 768px) { .header-inner { .main-nav {ul.nav-list {display: none;}} .menu-toggle {display: flex;} } } } // ===== モバイルメニュー ===== .mobile-menu { position: fixed; top: 0; right: 0; width: 70%; max-width: 300px; height: 100%; background-color: #fff; padding: 7rem 5rem; transform: translateX(100vw); z-index: 1001; @include xs{ padding: 7rem 3rem; } ul { list-style: none; padding: 0; margin: 0; li { margin-bottom: 2rem; a { text-decoration: none; color: #513619; font-size: 20px; font-size: 2rem; transition: 0.2s ease-in-out; &:hover{ color: $color-main; padding-left: 1rem; } } } } .close-menu { position: absolute; top: 4rem; right: 2rem; border: none; cursor: pointer; background: none; &:focus {outline: none;} @include xs{top: 3rem;} .batsu { display: block; position: relative; width: 30px; height: 30px; transition: 0.2s ease-in-out; &::before, &::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; /* 棒の幅(太さ) */ height: 35px; /* 棒の高さ */ background: $color-main; } &::before {transform: translate(-50%,-50%) rotate(45deg);} &::after {transform: translate(-50%,-50%) rotate(-45deg);} &:hover{opacity: 0.5;} } } } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; /* ← 明示的に高さを100vh指定! */ background: rgba(161, 214, 178, 0.5); z-index: 1000; opacity: 0; pointer-events: none; /* 初期状態で非クリック */ } /* headerの色を変える */ .site-header.change-color { background-color: #fff!important; } //footer footer { background-color: $soft-orange; padding: 3rem 1rem; font-size: 1.4rem; color: #333; position: relative; .footer-content { margin-bottom: 4rem; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; @include md{ flex-direction: column; align-items: center; } } .footer-left { max-width: 400px; .footer-logo{ margin-bottom: 2rem; } .footer-info{ p { color: #fff; font-size: 12px; font-size: 1.2rem; font-weight: 400; line-height: 1.75em; margin-bottom: 0; span{ font-size: 16px; font-size: 1.6rem; } } .insta-logo{ margin-top: 1rem; a{ img{ width: 30px; transition: 0.2s ease-in-out; &:hover{opacity: 0.6;} } } } } } .footer-right { .footer-nav ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; color: #fff; @include xs{ flex-direction: column; } li{ flex-grow: 1; text-align: center; @include xs{margin-bottom: 1.5rem;} } li+li{ border-left: 2px solid $bright-green; @include xs{border: none;} } a { font-size: 16px; font-size: 1.6rem; display: block; text-decoration: none; color: #fff; line-height: 18px; transition: .2s ease-in-out; &:hover{ opacity: 0.6; } } } .footer-contact-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; .contact-button { flex-basis: auto; background-color: $bright-green; color:#fff; padding: 0.6rem 2rem; border-radius: 10px; text-decoration: none; font-weight: bold; font-size: 22px; font-size: 2.2rem; transition: .2s ease-in-out; &:hover{ background-color: $color-main; } } .invalid{ pointer-events: none; } } } .copyright { text-align: center; margin-top: 3rem; font-size: 12px; font-size: 1.2rem; font-weight: 400; color: #fff; } .pagetop{ position: absolute; right: 10%; top: -3rem; z-index: 3; display: block; width: 60px; filter: drop-shadow(0 4px 3px rgba(0,0,0,0.3)); transition: .2s ease-in-out; @include xs{ right: 5%; width: 55px; } &:hover{ opacity: 0.7; } } } // //#page404{ // text-align: center; // margin-bottom: 10rem; // @include lg { // margin-bottom: 8rem; // } // @include xs { // margin-bottom: 6rem; // } // h2{ // font-size: 160px; // font-size: 16rem; // } // a{ // margin-top: 2rem; // } //}