@charset "UTF-8";
/*----------------
-----top page-----
----------------*/

/* mv
----------------------------------------------------------------*/

#mv {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 210vw;
  min-height: 655px;
  max-height: 830px;
  background:#ECF2E8;
}
@media screen and (min-width: 1536px) {
  #mv {
    height: 1000px;
    max-height: 1000px;
  }
}

#mv::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 54%;
  background: url(/korogarukun/img/top/mv/floor-sp.svg) no-repeat center top / cover;
}
@media screen and (min-width: 500px) {
  #mv::before {
    height: 45%;
    background: url(/korogarukun/img/top/mv/floor-pc.svg) no-repeat center top / cover;
  }
}
@media screen and (min-width: 1536px) {
  #mv::before {
    height: 40%;
  }
}

.parts {
  position: absolute;
}

.siteTitle {
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 420px;
}
@media screen and (min-width: 768px) {
  .siteTitle {
    width: 72%;
    max-width: 680px;
  }
}
@media screen and (min-width: 1536px) {
  .siteTitle {
    width: 55%;
    max-width: 1040px;
  }
}

.clock {
  top: 24%;
  left: 10%;
  width: 11%;
  max-width: 60px;
}
@media screen and (min-width: 1080px) {
  .clock {
    top: 20%;
    left: 50%;
    transform: translateX(calc(-50% - 38vw));
    width: 5%;
    max-width: 80px;
  }
}
@media screen and (min-width: 1536px) {
  .clock {
    width: 6%;
    max-width: 100px;
  }
}
@media screen and (min-width: 1920px) {
  .clock {
    transform: translateX(calc(-50% - 710px));
  }
}

.display {
  top: 30%;
  left: 1%;
  width: 22%;
  max-width: 250px;
}
@media screen and (min-width: 1080px) {
  .display {
    top: 26%;
    left: 50%;
    transform: translateX(calc(-50% - 38vw));
    width: 18%;
  }
}
@media screen and (min-width: 1536px) {
  .display {
    top: 28%;
    width: 20%;
  }
}
@media screen and (min-width: 1920px) {
  .display {
    transform: translateX(calc(-50% - 700px));
  }
}

.display .plant {
  width: 40%;
  max-width: 45px;
}
@media screen and (min-width: 1080px) {
  .display .plant {
    width: 25%;
    max-width: 85px;
  }
}
@media screen and (min-width: 1536px) {
  .display .plant {
    width: 30%;
  }
}

.display .books {
  transform: translate(30%, 10px);
  width: 80%;
  max-width: 85px;
}
@media screen and (min-width: 1080px) {
  .display .books {
    transform: translate(30%, 20px);
    width: 50%;
    max-width: 180px;
  }
}
@media screen and (min-width: 1536px) {
  .display .books {
    width: 60%;
  }
}

.sofa {
  top: 45%;
  left: -5%;
  width: 52%;
  max-width: 315px;
}
@media screen and (min-width: 1080px) {
  .sofa {
    top: 48%;
    left: 50%;
    transform: translateX(calc(-50% - 30vw));
    width: 28%;
    max-width: 400px;
  }
}
@media screen and (min-width: 1536px) {
    .sofa {
    width: 30%;
    max-width: 470px;
  }
}
@media screen and (min-width: 1920px) {
    .sofa {
    transform: translateX(calc(-50% - 550px));
  }
}

.newVideos-btn {
  top: 36%;
  right: -1%;
  width: 44%;
  max-width: 250px;
}
@media screen and (min-width: 1080px) {
  .newVideos-btn {
    top: 37%;
    left: 50%;
    right: unset;
    transform: translateX(calc(-50% + 30vw));
    width: 22%;
    max-width: 400px;
  }
}
@media screen and (min-width: 1920px) {
  .newVideos-btn {
    top: 31%;
    transform: translateX(calc(-50% + 480px));
  }
}

.tv {
  position: relative;
}

.new-label {
  position: absolute;
  top: -10%;
  right: 5%;
  width: 32%;
  transition: .3s;
}

/*hover*/
.newVideos-btn:hover {
  opacity: 1;
}
.newVideos-btn:hover .new-label {
  transform: scale(1.2);
}

.door {
  display: none;
}
@media screen and (min-width: 1920px) {
  .door {
    display: block;
    top: 28%;
    left: 50%;
    transform: translateX(calc(-50% + 840px));
  }
}

.mv-korogaru {
  top: 53%;
  left: 50%;
  transform: translateX(-46%);
  width: 67%;
  max-width: 290px;
}
@media screen and (min-width: 768px) {
  .mv-korogaru {
    top: 40%;
  }
}
@media screen and (min-width: 1080px) {
  .mv-korogaru {
    width: 26%;
    max-width: 450px;
  }
}
@media screen and (min-width: 1920px) {
  .mv-korogaru {
    transform: translateX(-50%);
  }
}

.lines {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 300px;
}
@media screen and (min-width: 768px) {
  .lines {
    top: 30%;
    transform: translateX(-150%);
    bottom: unset;
    width: 20%;
    max-width: 180px;
  }
}
@media screen and (min-width: 1080px) {
  .lines {
    transform: translateX(calc(-50% - 15vw));
    width: 15%;
    max-width: 280px;
  }
}
@media screen and (min-width: 1920px) {
  .lines {
    transform: translateX(calc(-50% - 300px));
  }
}

/*
common
-----------------------------------------------------*/
.sectionTitle {
  margin: 0 auto;
  padding-bottom: 0;
}

.sectionTitle::after {
  background-image: none;
}

.btn {
  max-width: 300px;
}
@media screen and (min-width: 768px) {
  .btn {
      max-width: 360px
  }
}
@media screen and (min-width: 901px) {
  .btn {
      padding: 1em;
      max-width: 415px
  }
}

/*
character
-----------------------------------------------------*/

#character {
  background: #EDFDAB;
}

#character .sectionTitle {
  max-width: 360px;
}
@media screen and (min-width: 768px) {
  #character .sectionTitle {
    max-width: 540px;
  }
}

.imageWrap {
  position: relative;
  left: 50%;
  transform: translate(-50%, -15px);
  border-radius: 9999px;
  padding: 20px;
  width: 290px;
  height: 290px;
  background: #FAF9E8;
}
@media screen and (min-width: 768px) {
  .imageWrap {
    width: 415px;
    height: 415px;
  }
}
@media screen and (max-width: 290px) {
  .imageWrap {
    width: 100%;
    height: 100vw;
  }
}

.character-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-47%, -50%);
  width: 65%;
}

.intro-text {
  margin: 15px auto 0;
  width: fit-content;
  max-width: 300px;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 2;
}
@media screen and (min-width: 500px) {
  .intro-text {
    max-width: unset;
    text-align: center;
  }
}

.infoLink {
  display: block;
  margin: 25px auto 1em;
  padding-left: 1.1em;
  width: fit-content;
  color: #3D7B1C;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
  background: url(/korogarukun/img/top/info-icon.svg) no-repeat center left / 1em;
  border-bottom: #3D7B1C 1px solid;
  transition: .2s;
}
@media screen and (min-width: 768px) {
  .infoLink {
    margin: 45px auto 1em;
  }
}

.infoLink:hover {
  opacity: .6;
  transition: .2s;
}

/*モーダルウィンドウ*/
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #2f4426b2;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay.fadeOut {
  animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 475px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (min-width: 768px) {
  .modal-content {
    padding: 50px;
  }
}

.modal-close {
  position: absolute;
  top: -8%;
  right: -2%;
  width: 50px;
  height: 50px;
  background: #FF9C2E;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.modal-close:hover {
  background: #FF8C1C;
  transform: scale(1.1);
}

.modal-close span {
  width: 50px;
  height: 50px;
  text-align: center;
  color: white;
  font-size: 3rem;
  line-height: 1.55;
}

.modal-text {
  font-size: clamp(1.6rem, 2vw, 1.8rem);
  line-height: 2;
}

.modal-text p {
  margin: 0 0 20px 0;
}

.modal-text p:last-child {
  margin-bottom: 0;
}

/*
videos
-----------------------------------------------------*/

#videos .sectionTitle {
  max-width: 290px;
}
@media screen and (min-width: 768px) {
  #videos .sectionTitle {
    max-width: 420px;
  }
}

/* ==============================
    Slider Layout
============================== */
#videos .slider {
    position: relative;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 2560px;
    width: min(100%, 2560px);
}

#videos .slider-track {
    position: relative;
    width: 100%;
    pointer-events: none;
}

#videos .slider-track {
  transform-style: preserve-3d;
}

/* ==============================
    Slide
============================== */

/*Variables*/
:root {
    --slide-width: 260px;
    --gap: 160px;
}
@media (min-width: 768px) {
  :root {
      --slide-width: 330px;
      --gap: 220px;
  }
}

#videos .slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--slide-width);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s;
    pointer-events: auto;
}

/* ==============================
    Controls
============================== */
#videos .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 25px auto 40px;
}
@media screen and (min-width: 768px) {
    #videos .controls {
        gap: 30px;
        margin: 35px auto 60px;
    }
}

#videos .controls .arrows {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#videos .controls .arrows:hover {
  transform: scale(1.1);
}

.controls .arrows img {
  width: 40px;
  height: 40px;
  display: block;
}

@media screen and (min-width: 768px) {
  #videos .controls .arrows img {
    width: 60px;
    height: 60px;
  }
}

/* ==============================
    Pagination
============================== */
#videos .pagination {
    display: flex;
    gap: 16px;
}
@media screen and (min-width: 768px) {
    #videos .pagination {
        gap: 25px;
    }
}

#videos .dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #D0D0D0;
    cursor: pointer;
}
@media screen and (min-width: 768px) {
    #videos .dot {
        width: 14px;
        height: 14px;
    }
}

#videos .dot.active {
    background: #FD9719;
}

/*
news
-----------------------------------------------------*/

#news .sectionTitle {
  max-width: 215px;
}
@media screen and (min-width: 768px) {
  #news .sectionTitle {
    max-width: 285px;
  }
}

#news .newsList {
  gap: 5vw;
  margin: 25px 0 40px 10%;
  padding-right: 10%;
  padding-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
@media screen and (min-width: 768px) {
  #news .newsList {
    margin: 40px 0 50px 10%;
  }
}
@media screen and (min-width: 1080px) {
  #news .newsList {
    justify-content: center;
    gap: 50px;
    margin: 40px auto 50px;
    padding: 0;
    width: 90%;
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

#news .newsList::-webkit-scrollbar {
  height: 4px;
}
@media screen and (min-width: 768px) {
  #news .newsList::-webkit-scrollbar {
    height: 6px;
  }
}

#news .newsList::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.100);
  border-radius: 9999px;
}

#news .newsItem {
  flex: 0 0 100%;
  max-width: 360px;
  scroll-snap-align: center;
}
@media screen and (min-width: 1080px) {
  #news .newsItem {
    flex: 0 0 30%;
    margin-top: 0;
  }
}

/*
services
-----------------------------------------------------*/

.servicesLink {
  margin: 0 auto;
  max-width: 600px;
}
@media screen and (min-width: 1080px) {
  .servicesLink {
    max-width: 700px;
  }
}

.servicesLink:hover {
  opacity: 1;
  transform: rotate(-2deg);
}
