@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Kaisei+Tokumin:wght@400;500;700&family=Noto+Sans+JP:wght@500;700;900&display=swap');

*,
*:before,
*:after {
  box-sizing: inherit;
}

*{
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
  box-sizing: border-box;
}


body{
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 100%;
  line-height: 1.6;
  color: #00004c;
  text-align: justify;
  word-break: break-all;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/bg.png),linear-gradient(90deg, #dc8c82, #b9d7dc, #dcd296, #8cc8be);
  background-size: 80px, 100%;
  background-position: center;
  opacity: .3;
  z-index: -1;
}

@media (max-width: 500px) {
  body {
    font-size: 14px;
  }
}

img {
  width: 100%;
}

p {
  margin: 10px 0;
}

a {
  text-decoration: underline;
  color: #00004c;
}
a:hover {
  text-decoration: none;
  color: #dc8c82;
}

header {
  position: relative;
  z-index: 100;
  width: 100%;
  margin: 1.8em auto 0;
}

header>a {
  display: block;
  max-width: 200px;
  width: 25%;
  margin: 0 auto;
}

footer {
  width: 100%;
  background: none;
  margin: 0;
  padding: 1em .5em;
}

footer>p {
  text-align: center;
  font-size: small;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.sp-br {
  display: none;
}
.pc-br {
  display: block;
}

.sns {
  display: flex;
  list-style: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  margin: 0 0 2em;
}
.sns li {
  margin: 0 5px;
}
.sns i {
  font-size: 50px;
}
.sns i:hover {
  color: #dc8c82;
}

p.share {
  text-align: center;
  margin: 50px auto 10px;
  padding: 0 20px;
  font-weight: bold;
  border-bottom: 1px solid #00004c;
  max-width: 150px;
}

@media (max-width: 768px) {
  footer>p {
    font-size: 11px;
  }
  .sp-br {
    display: block;
  }
  .pc-br {
    display: none;
  }
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
section {
  width: 100%;
  max-width: 1024px;
  background: none;
  margin: 0 auto;
  padding: 0;
}

#topimage {
  position: relative;
  max-width: 1400px;
  width: 100%;
  background: #fff;
  margin: 0 auto 5em;
  height: 80vh;
  max-height: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  overflow: hidden;
}
h1 {
  margin: 0 auto;
  line-height: 0;
  max-width: 1200px;
  width: 100%;
}

#top-1 {
  position: relative;
  background: #8cc8be;
}
#top-1::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: 12%;
  height: 100%;
  background: url(../img/police.svg)no-repeat;
  background-size: contain;
  background-position: top;
} 
#top-1>div {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(../img/police.webp)no-repeat;
  background-position: center top;
  background-size: 230%;
  -webkit-mask-image: url(../img/police.webp);
  mask-image: url(../img/police.webp);
  -webkit-mask-size: 230%;
  mask-size: 230%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
}
#top-1>div::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: #329682;
  transform: translateX(0%);
}
#top-2 {
  position: relative;
  background: #dcd296;
}
#top-2::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: 12%;
  height: 100%;
  background: url(../img/teacher.svg)no-repeat;
  background-size: contain;
  background-position: top;
} 
#top-2>div {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(../img/teacher.webp)no-repeat;
  background-position: 45% top;
  background-size: 230%;
  -webkit-mask-image: url(../img/teacher.webp);
  mask-image: url(../img/teacher.webp);
  -webkit-mask-size: 230%;
  mask-size: 230%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 45% top;
  mask-position: 45% top;
}
#top-2>div::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: #8c8232;
  transform: translateX(0%);
}
#top-3 {
  position: relative;
  background: #b9d7dc;
}
#top-3::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: 12%;
  height: 100%;
  background: url(../img/doctor.svg)no-repeat;
  background-size: contain;
  background-position: top;
} 
#top-3>div {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(../img/doctor.webp)no-repeat;
  background-position: 63% top;
  background-size: 230%;
  -webkit-mask-image: url(../img/doctor.webp);
  mask-image: url(../img/doctor.webp);
  -webkit-mask-size: 230%;
  mask-size: 230%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 63% top;
  mask-position: 63% top;
}
#top-3>div::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: #468c96;
  transform: translateX(0%);
}
#top-4 {
  position: relative;
  background: #dc8c82;
}
#top-4::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: 12%;
  height: 100%;
  background: url(../img/patissier.svg)no-repeat;
  background-size: contain;
  background-position: top;
} 
#top-4>div {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(../img/patissier.webp)no-repeat;
  background-position: 53% top;
  background-size: 230%;
  -webkit-mask-image: url(../img/patissier.webp);
  mask-image: url(../img/patissier.webp);
  -webkit-mask-size: 230%;
  mask-size: 230%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 53% top;
  mask-position: 53% top;
}
#top-4>div::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  background: #a0503c;
  transform: translateX(0%);
}
#topimage.active #top-1>div::before {
  animation:elm .5s forwards linear;
}
#topimage.active #top-2>div::before {
  animation:elm .5s forwards linear;
  /*animation-delay: .25s;*/
}
#topimage.active #top-3>div::before {
  animation:elm .5s forwards linear;
  /*animation-delay: .5s;*/
}
#topimage.active #top-4>div::before {
  animation:elm .5s forwards linear;
  /*animation-delay: .75s;*/
}
@keyframes elm {
  to {
    transform:translateX(100%);
  }
}
@media (max-width: 1024px) {
  #topimage {
    max-height: 500px;
  }
}
@media (max-width: 600px) {
  #topimage {
    grid-template-columns: 1fr 1fr;
    margin: 0 auto 4em;
    height: 90vh;
    max-height: 700px;
  }
}

h2 {
  text-align: right;
  font-size: 2em;
  margin: 0;
  line-height: 1;
  padding: 0;
  width: 100%;
  color: #fff;
  font-size: min(5.4vw,2.5em);
  font-family: 'Kaisei Tokumin', serif;
  font-weight: 500;
  letter-spacing: -1px;
}
h2 span {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 4px 8px 8px;
}
h2 span:first-child {
  margin-bottom: 10px;
}
h2 span::before {
  content: '';
  background: #00004c;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.textbox {
  position: relative;
  border: 2px solid #ccccdb;
  text-align: center;
  margin: 2em auto;
  max-width: 800px;
  padding: 1.6em .8em .8em;
  font-size: min(4vw,1.6em);
  font-weight: 700;
  background: #fff;
}
p.catch{
  position: absolute;
  top: -25px;
  left: -25px;
  padding: 4px 8px 8px;
  background: #00004c;
  color: #fff;
  margin: 0;
  line-height: 1;
  font-size: min(5.4vw,2.5rem);
  font-family: 'Kaisei Tokumin', serif;
  font-weight: 500;
  letter-spacing: -1px;
}
.textbox span {
  color: #fff;
  margin: .5%;
  padding: 0 4px 2px;
} 
.introduction span:nth-child(1){
  background: #8cc8be;
  text-shadow: 1px 1px 0 #00004c;
}
.introduction span:nth-child(2){
  background: #dcd296;
  text-shadow: 1px 1px 0 #00004c;
}
.introduction span:nth-child(3){
  background: #b9d7dc;
  text-shadow: 1px 1px 0 #00004c;
}
.introduction span:nth-child(4){
  background: #dc8c82;
  text-shadow: 1px 1px 0 #00004c;
}

.othergoods {
  background: url(../img/goods-bg.jpg);
  background-size: cover;
  background-position: top;
  padding: 0.8em 0;
}
.othergoods>p {
  text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff, 0 0 4px #fff;
}
.textbox a {
  position: relative;
  background: #fff;
  border-radius: 50px;
  color: #00004c;
  padding: 4px 0;
  margin: 0.5em 0;
  display: inline-block;
  text-decoration: none;
  border: 2px solid #00004c;
  width: 340px;
}
.textbox a::before {
  position: absolute;
  content: '';
  display: block;
  right: 15px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-bottom: none;
  border-left: none;
  border-top: 3px solid #00004c;
  border-right: 3px solid #00004c;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.textbox a:hover {
  background: #00004c;
  color: #fff;
}
.textbox a:hover::before {
  border-color: #fff;
}

@media (max-width: 880px) {
  .textbox {
    margin: 2em 10px;
    max-width: 100%;
  }
  p.catch {
    top: -20px;
    left: -12px;
  }
}
@media (max-width: 600px) {
  .textbox a {
    width: 70%;
  }
  .textbox a::before {
    right: 10px;
    width: 10px;
    height: 10px;
  }
}


/* goods */

.goods-box {
  position: relative;
  padding: 180px 1em 1em;
  margin: 5em 0 0;
}
#police {
  background: #8cc8be;
}
#teacher {
  background: #dcd296;
}
#doctor {
  background: #b9d7dc;
}
#patissier {
  background: #dc8c82;
  margin-bottom: 4em;
}

.goods-icon {
  position: absolute;
  top: -65px;
  max-width: 600px;
  line-height: 0;
}

.goods-wrap {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 10px;
}

.goods-img {
  overflow: hidden;
  padding: 10px;
  display: block;
  position: relative;
  padding-bottom: 100%;
  background: #fff;
  margin: 0 0 10px;
}
.goods-img img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.goods-wrap a{
  position: relative;
  width: 100%;
  text-decoration: none;
  margin: 0;
  padding: 10px 10px 40px;
  transition: all .5s;
  background: #ffffff;
  border-radius: 5px;
}
#police .goods-wrap a {
  color: #329682;
  box-shadow: 2px 2px 5px #329682;
}
#teacher .goods-wrap a {
  color: #8c8232;
  box-shadow: 2px 2px 5px #8c8232;
}
#doctor .goods-wrap a {
  color: #468c96;
  box-shadow: 2px 2px 5px #468c96;
}
#patissier .goods-wrap a {
  color: #a0503c;
  box-shadow: 2px 2px 5px #a0503c;
}

.goods-wrap a:hover img{
  transform: scale(1.1);
  transition: all .5s;
}

.goods-wrap p{
  margin: 0;
  padding: 0;
  line-height: 1.2;
  text-align: left;
}

p.price {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  text-align: right;
  font-weight: 500;
  color: #fff;
}
p.price span{
  font-size: 80%;
}
#police p.price {
  background: #329682;
}
#teacher p.price {
  background: #8c8232;
}
#doctor p.price {
  background: #468c96;
}
#patissier p.price {
  background: #a0503c;
}
@media (max-width: 600px) {
  .goods-icon {
    top: -10vw;
  }
  .goods-box {
    padding-top: 30%;
    margin: 4em 0 0;
  }
  .goods-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

.fadein {
  opacity : 0;
  transform : translate(0, 50px);
  transition:all 1s;
}
.fadein.scrollin {
  opacity : 1;
  transform : translate(0, 0);
}

.ani-wrap {
  position: fixed;
  top: 0;
  background: #8cc8be;
  z-index: 999;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  transition: all 1s;
}
.ani-wrap::before {
  content: '';
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dcd296;
  transform: scaley(0);
}
.ani-wrap.active {
  animation: b2 6s ease-in-out forwards;
}
.ani-wrap.active::before {
  animation: b1 6s ease-in-out forwards;
  animation-delay: 2s;
}
.ani-wrap.move {
  transform: translate(100%);
}
.ani-wrap>div {
  position: relative;
  bottom: 0;
  max-width: 1200px;
  height: 100vh;
  margin: 0 auto;
  background: none;
  overflow: hidden;
}
.chara-bg div{
  position: absolute;
  content: '';
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
.chara-bg div:nth-child(1){
  background: url(../img/p-bg.png)no-repeat;
  background-size: 150%;
  background-position: 15% 0;
  opacity: 0;
}
.chara-bg div:nth-child(2){
  background: url(../img/t-bg.png)no-repeat;
  background-size: 150%;
  background-position: 15% 0;
  opacity: 0;
}
.chara-bg div:nth-child(3){
  background: url(../img/d-bg.png)no-repeat;
  background-size: 150%;
  background-position: 20% 0;
  opacity: 0;
}
.chara-bg div:nth-child(4){
  background: url(../img/pa-bg.png)no-repeat;
  background-size: 150%;
  background-position: 15% 0;
  opacity: 0;
}
.active .chara-bg div:nth-child(1){
  animation: o2 2s ease-in-out forwards;
  animation-delay: .5s;
}
.active .chara-bg div:nth-child(2){
  animation: o2 2s ease-in-out forwards;
  animation-delay: 2.5s;
}
.active .chara-bg div:nth-child(3){
  animation: o2 2s ease-in-out forwards;
  animation-delay: 4.5s;
}
.active .chara-bg div:nth-child(4){
  animation: o1 .5s ease-in-out forwards reverse;
  animation-delay: 6.5s;
}

.chara-word div {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 4%;
  opacity: 0;
}
.chara-word div:nth-child(2),.chara-word div:nth-child(4) {
  width: 8%;
}
.active .chara-word div:nth-child(1){
  animation: clip 2s ease-in-out forwards;
  animation-delay: .5s;
}
.active .chara-word div:nth-child(2){
  animation: clip 2s ease-in-out forwards;
  animation-delay: 2.5s;
}
.active .chara-word div:nth-child(3){
  animation: clip 2s ease-in-out forwards;
  animation-delay: 4.5s;
}
.active .chara-word div:nth-child(4){
  animation: clip2 .8s ease-in-out forwards;
  animation-delay: 6.5s;
}

.chara {
  will-change: transform;
}

.chara div {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 70%;
  transform: rotateY(90deg);
}
.chara div:nth-child(1) {
  transform: rotateY(0deg);
}
.active .chara div:nth-child(1) {
  animation: r1 .5s ease-in-out forwards;
}
.active .chara div:nth-child(2) {
  animation: r2 2s ease-in-out forwards;
  animation-delay: .5s;
}
.active .chara div:nth-child(3) {
  animation: r2 2s ease-in-out forwards;
  animation-delay: 2.5s;
}
.active .chara div:nth-child(4) {
  animation: r2 2s ease-in-out forwards;
  animation-delay: 4.5s;
}
.active .chara div:nth-child(5) {
  animation: r1 .5s ease-in-out forwards reverse;
  animation-delay: 6.5s;
}

@keyframes b1 {
  0%  { transform: scaleY(0);background-color: #dcd296; }
  10% { transform: scaleY(1); }
  30% { transform: scaley(1) translateX(0); }
  40% { transform: scaley(1) translateX(100%);background-color: #dcd296; }
  65% { transform: scaley(1) translateX(100%);background-color: #dc8c82; }
  75% { transform: scaley(1) translateX(0);background-color: #dc8c82; }
  100% { transform: scaley(1) translateX(0);background-color: #dc8c82; }
}
@keyframes b2 {
  0%  { background-color: #8cc8be; }
  50%  { background-color: #8cc8be; }
  51% { background-color: #b9d7dc; }
  100% { background-color: #b9d7dc; }
}

@keyframes r1 {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(90deg); }
}
@keyframes r2 {
  0%   { transform: rotateY(90deg);opacity: 1; }
  25% { transform: rotateY(0deg);}
  75% { transform: rotateY(0deg);}
  100% { transform: rotateY(90deg);opacity: 1; }
}
@keyframes o1 {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes o2 {
  0%   { opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}


#skip {
  position: absolute;
  right: 0;
  top: 2%;
  border-right: none;
  padding: 0.2em 1.5em;
  color: #fff;
  text-align: center;
  background: rgba(0,0,76,.7);
  cursor: pointer;
  font-weight: 600;
  font-family: 'Kaisei Tokumin', serif;
  z-index: 9999;
  font-size: 16px;
}
@media (min-width: 769px) {
  #skip {
    font-size: 2em;
  }
}

@keyframes clip {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 1;
  }
  35% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  75% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    opacity: 1;
  }
}

@keyframes clip2 {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 1;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .chara div {
    top: 0;
    left: -30%;
    width: 150%;
  }
  .chara-bg {
    display: none;
  }
  .chara-word div {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 9%;
  }
  .chara-word div:nth-child(2), .chara-word div:nth-child(4) {
    width: 18%;
  }
  .chara-word div:nth-child(1), .chara-word div:nth-child(3) {
    left: 10%;
  }
}

/* Loading Block */
#loading {
  width: 100vw;
  height: 100vh;
  transition: all .5s;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#loading div {
  animation: load-animation 1.5s ease-in-out infinite;
}
#loading div img{
  max-width: 100px;
  width: 70%;
}
#loading div span{
  display: block;
  color: #660f23;
  font-size: 1.4em;
  font-family: 'Kaisei Tokumin', serif;
  font-weight: 600;
}

@keyframes load-animation {
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Hide Loading Block */
.loaded {
  transform: translateY(100%);
  visibility: hidden;
}

.youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 0;
}
.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}