@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&display=swap");
body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 400px;
  top: -200px;
  left: 0;
  background-color: #009944;
}

#mainImgBlock {
  width: 1240px;
  height: 600px;
  margin: auto;
  position: relative;
  margin-top: 150px;
}

#mainLinkBtn {
  width: 660px;
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  text-align: center;
}

#mainLinkBtn > a {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #020202;
  width: 320px;
  height: 50px;
  line-height: 48px;
  border-radius: 25px;
  display: inline-block;
  text-align: center;
  background: linear-gradient(to right, #009944 50%, #fefefe 50%);
  background-size: 200% 100%;
  background-position: top right;
  transition: all 0.6s ease-in-out;
}

#mainLinkBtn > a:hover {
  color: #fefefe;
  background-position: top left;
}

#mainLinkBtn > a:last-child {
  color: #fefefe;
  margin-left: 15px;
  border: solid 1px #009944;
  background: linear-gradient(to right, #fefefe 50%, #009944 50%);
  background-size: 200% 100%;
  background-position: top right;
  transition: all 0.6s ease-in-out;
  box-sizing: border-box;
}

#mainLinkBtn > a:hover:last-child {
  color: #009944;
  background-position: top left;
}

#mainImgBlock div.mainSwiper {
  border-radius: 30px;
  position: relative;
  z-index: 10;
}

#mainImgBlock div.mainSwiper h2 {
  font-size: 72px;
  color: #009944;
  text-align: center;
  width: 100%;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: 11;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

#mainImgBlock div.mainSwiper h2.colorWhite {
  color: #fefefe;
}

#mainImgBlock div.mainSwiper h2.colorBlack {
  color: #020202;
}

#mainImgBlock div.mainSwiper h3 {
  font-size: 24px;
  color: #009944;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: 11;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

#mainImgBlock div.mainSwiper h3.colorWhite {
  color: #fefefe;
}

#mainImgBlock div.mainSwiper h3.colorBlack {
  color: #020202;
}

#mainImgBlock div.mainSwiper div.mainSwiperImg img {
  width: 1240px;
  height: 600px;
  object-fit: cover;
}

@media (max-width: 1240px) {
  #mainImgBlock {
    width: 90%;
  }

  #mainImgBlock div.mainSwiper h2 {
    font-size: 58px;
  }
}
@media (max-width: 900px) {
  #mainImgBlock {
    width: 90%;
    top: 0;
    height: 600px;
    margin-top: 90px;
  }

  #mainImgBlock div.mainSwiper h2 {
    font-size: 42px;
    top: 45px;
  }

  #mainImgBlock div.mainSwiper h3 {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 2px;
    top: 190px;
  }

  #mainLinkBtn {
    width: 280px;
  }

  #mainLinkBtn > a {
    font-size: 16px;
    width: 280px;
    height: 40px;
    line-height: 39px;
  }

  #mainLinkBtn > a:last-child {
    margin-left: 0;
    margin-top: 20px;
  }
}
#newsBlock {
  display: grid;
  width: 86%;
  max-width: 950px;
  align-items: center;
  grid-template-columns: 210px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "newsTitle newsContent" "newsLink";
  margin: auto;
  margin-bottom: 80px;
  padding-top: 50px;
}

#newsTitle {
  grid-area: newsTitle;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  min-height: 90px;
}

#newsTitle > h3 {
  font-size: 48px;
  color: #009944;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

#newsTitle > h4 {
  color: #009944;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}

#newsLink {
  grid-area: newsLink;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

#newsLink > p {
  text-align: center;
  position: relative;
  width: fit-content;
  margin: auto;
}

#newsLink > p::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #009944;
  bottom: -3px;
  left: 0;
  transition: all 0.6s ease-in-out;
  transform: scale(0, 1);
  transform-origin: left bottom;
}

#newsLink > p:hover::after {
  transform: scale(1, 1);
}

#newsLink > p > a {
  font-size: 13px;
  color: #009944;
  position: relative;
  width: fit-content;
  margin: auto;
}

#newsLink > p > a::before {
  content: "";
  position: absolute;
  top: 1px;
  right: -22px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background-color: #009944;
}

#newsLink > p > a::after {
  content: "";
  position: absolute;
  top: 6.2px;
  right: -16px;
  width: 4px;
  height: 4px;
  border-bottom: solid 1px #fefefe;
  border-right: solid 1px #fefefe;
  transform: rotateZ(-45deg);
}

#newsContent {
  grid-area: newsContent;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}

#newsContent > div a {
  display: flex;
  color: #434343;
  border-top: solid 1px #ddd;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
}

#newsContent > div:last-child {
  border-bottom: solid 1px #ddd;
}

#newsContent > div p.newsDate {
  width: 16%;
  margin: auto;
  text-align: center;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

#newsContent > div p.newsCate {
  width: 14%;
  margin: auto;
  font-size: 12px;
  color: #009944;
  font-weight: 600;
}

#newsContent > div p.newsTxt {
  width: 70%;
  margin: auto;
  font-weight: 500;
  line-height: 1.4;
}

#newsContent > div p.newsTxt > span {
  width: fit-content;
  display: inline-block;
  position: relative;
}

#newsContent > div p.newsTxt > span::after {
  content: "";
  position: absolute;
  width: 100%;
  bottom: -3px;
  left: 0;
  background-color: #020202;
  height: 1px;
  transform: scale(0, 1);
  transform-origin: left bottom;
  transition: all 0.6s ease-in-out;
}

#newsContent > div a:hover p.newsTxt > span::after {
  transform: scale(1, 1);
}

@media (max-width: 900px) {
  #newsBlock {
    grid-template-columns: 70% 30%;
    grid-template-rows: auto auto;
    grid-template-areas: "newsTitle newsLink" "newsContent";
    padding-top: 40px;
  }

  #newsTitle {
    margin-bottom: 10px;
    min-height: auto;
  }

  #newsTitle > h3 {
    font-size: 32px;
    display: inline-block;
    vertical-align: middle;
  }

  #newsTitle > h4 {
    font-size: 15px;
    display: inline-block;
    padding-bottom: 2px;
    padding-left: 0.5em;
    vertical-align: middle;
  }

  #newsLink {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding-bottom: 12px;
  }

  #newsLink > p > a {
    font-size: 10px;
  }

  #newsLink > p > a::before {
    top: 0;
    right: -17px;
    width: 12px;
    height: 12px;
  }

  #newsLink > p > a::after {
    top: 4.2px;
    right: -12.5px;
    width: 3px;
    height: 3px;
  }

  #newsContent {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  #newsContent > div a {
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #newsContent > div p.newsDate {
    width: 80px;
    text-align: left;
    font-size: 11px;
    vertical-align: middle;
  }

  #newsContent > div p.newsCate {
    width: calc(100% - 80px);
    font-size: 10px;
    vertical-align: middle;
  }

  #newsContent > div p.newsTxt {
    width: 100%;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
  }
}
div.mainSwiper {
  position: relative;
}

div.swiper-pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  display: flex;
  width: fit-content;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
}

div.swiper-pagination span.swiper-pagination-bullet {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  opacity: 1;
  background-color: #fefefe;
}

div.swiper-pagination span.swiper-pagination-bullet:hover {
  cursor: pointer;
}

div.swiper-pagination span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #009944;
  height: 8px;
  position: relative;
  top: 0;
  border-radius: 4px;
}

.dormitoryBlock {
  margin: auto;
  margin-bottom: 80px;
}

.dormitoryBlock > h3 {
  font-size: 48px;
  color: #fefefe;
  text-align: center;
  letter-spacing: 0.02em;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 10px;
}

.dormitoryBlock > h4 {
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1em;
}

@media screen and (max-width: 900px) {
  .dormitoryBlock > h3 {
    font-size: 40px;
  }

  .dormitoryBlock > h4 {
    font-size: 14px;
  }
}
.dormitoryContainer {
  position: relative;
  width: 1260px;
  margin: auto;
}

.dormitorySwiper {
  margin: 30px auto;
  box-sizing: border-box;
  width: 1080px;
}

.dormitorySwiper .swiper-wrapper {
  display: flex;
  align-items: stretch !important;
}

.dormitorySwiper .swiper-slide {
  color: #020202;
  background-color: #fefefe;
  max-width: 340px;
  padding: 20px 20px 25px;
  border-radius: 20px;
  box-sizing: border-box;
  height: auto;
}

.dormitorySwiper .swiper-slide .dormitoryImg {
  position: relative;
}

.dormitorySwiper .swiper-slide .dormitoryImg img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon {
  position: absolute;
  top: 0;
  right: 0;
  height: 28px;
  line-height: 28px;
  border-radius: 15px;
  box-sizing: border-box;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon > p {
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fefefe;
  width: 90px;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon img.d_icon {
  width: 25px;
  height: auto;
  padding-right: 2px;
  object-fit: contain;
  box-sizing: border-box;
  position: relative;
  top: -3px;
  left: -1px;
  border-radius: 0;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon.firstIcon {
  background-color: #13bafc;
  top: 20px;
  right: 10px;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon.secondIcon {
  background-color: #f54ea5;
  top: 55px;
  right: 10px;
}

.dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon.thirdIcon {
  background-color: #ff9411;
  top: 90px;
  right: 10px;
}

.dormitorySwiper .swiper-slide > h4 {
  font-size: 48px;
  margin: auto;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  margin-top: 15px;
  margin-bottom: 3px;
}

.dormitorySwiper .swiper-slide > h5 {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
}

.dormitorySwiper .swiper-slide > p {
  font-size: 14px;
  color: #434343;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 20px;
  min-height: calc(2em + 20px);
}

.dormitorySwiper .swiper-slide div.dLink {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.dormitorySwiper .swiper-slide div.dLink div:first-child a {
  font-size: 14px;
  font-weight: 500;
  background-color: #009944;
  color: #fefefe;
  width: 130px;
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
  display: inline-block;
  text-align: center;
  letter-spacing: 1px;
}

.dormitorySwiper .swiper-slide div.dLink div:last-child a {
  font-size: 14px;
  font-weight: 500;
  background-color: #434343;
  color: #fefefe;
  width: 130px;
  height: 32px;
  line-height: 32px;
  border-radius: 16px;
  display: inline-block;
  text-align: center;
  letter-spacing: 1px;
}

div.dLink a:hover {
  filter: opacity(0.7);
}

@media (max-width: 1260px) {
  .dormitoryContainer {
    width: 100%;
  }

  .dormitorySwiper {
    width: 100%;
  }

  .dormitorySwiper .swiper-slide {
    max-width: unset;
  }
}
@media (max-width: 900px) {
  .dormitoryContainer {
    position: relative;
    width: 100%;
  }

  .dormitorySwiper {
    width: 100%;
  }

  .dormitorySwiper .swiper-slide {
    max-width: unset;
  }

  .dormitorySwiper .swiper-slide .dormitoryImg img {
    height: 200px;
  }

  .dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon > p {
    font-size: 12px;
    font-weight: normal;
    position: relative;
    top: -1px;
  }

  .dormitorySwiper .swiper-slide .dormitoryImg .dormitoryIcon img.d_icon {
    padding-right: 2px;
    top: -2px;
    left: -4px;
  }

  .dormitorySwiper .swiper-slide > h4 {
    font-size: 40px;
  }

  .dormitorySwiper .swiper-slide > h5 {
    font-size: 14px;
  }

  .dormitorySwiper .swiper-slide > p {
    font-size: 12px;
  }

  .dormitorySwiper .swiper-slide div.dLink {
    gap: 10px;
  }

  .dormitorySwiper .swiper-slide div.dLink div:first-child a {
    font-size: 13px;
    width: 120px;
  }

  .dormitorySwiper .swiper-slide div.dLink div:last-child a {
    font-size: 13px;
    width: 120px;
  }
}
.swiper-button-prev {
  display: block;
  width: 40px;
  height: 40px;
  background: url("../image/domitoryArrowLeft.png");
  background-size: contain;
  background-repeat: no-repeat;
  top: 49%;
  left: 1%;
  opacity: 1;
  position: absolute;
  z-index: 11;
  transition: all 0.6s ease-in-out;
}

.swiper-button-prev:hover {
  cursor: pointer;
  opacity: 0.8;
}

.swiper-button-next {
  display: block;
  width: 40px;
  height: 40px;
  background: url("../image/domitoryArrowRight.png");
  background-size: contain;
  background-repeat: no-repeat;
  top: 49%;
  right: 1%;
  opacity: 1;
  position: absolute;
  z-index: 11;
  transition: all 0.6s ease-in-out;
}

.swiper-button-next:hover {
  cursor: pointer;
  opacity: 0.8;
}

.noswiper .swiper-button-next, .noswiper .swiper-button-prev, .oneItem .swiper-button-next, .oneItem .swiper-button-prev, .twoItem .swiper-button-next, .twoItem .swiper-button-prev {
  display: none !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
  display: none !important;
}

@media (max-width: 900px) {
  .swiper-button-prev {
    width: 30px;
    height: 30px;
    left: 3%;
  }

  .swiper-button-next {
    width: 30px;
    height: 30px;
    right: 3%;
  }
}
.dormitoryLinkBtn {
  width: 300px;
  margin: auto;
  text-align: center;
}

.dormitoryLinkBtn > a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 40px;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  color: #434343;
  border: solid 1px #fefefe;
  background: linear-gradient(to right, #009944 50%, #fefefe 50%);
  background-size: 200% 100%;
  background-position: top right;
  text-align: center;
  transition: all 0.6s ease-in-out;
  display: inline-block;
}

.dormitoryLinkBtn > a:hover {
  color: #fefefe;
  background-position: left top;
}

@media (max-width: 900px) {
  .dormitoryLinkBtn > a {
    font-size: 14px;
    width: 280px;
  }
}
#voiceBlock {
  padding: 80px 0;
  background-color: #009944;
}

#voiceBlock > h3 {
  font-size: 48px;
  color: #fefefe;
  letter-spacing: 0.03em;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

#voiceBlock > h4 {
  font-size: 18px;
  color: #fefefe;
  letter-spacing: 0.1em;
  text-align: center;
}

@media (max-width: 900px) {
  #voiceBlock {
    padding: 50px 0;
  }

  #voiceBlock > h3 {
    font-size: 40px;
    margin-bottom: 5px;
  }

  #voiceBlock > h4 {
    font-size: 14px;
    font-weight: normal;
  }
}
div#voiceFlex {
  margin: 40px auto;
}

div.voiceSwiper {
  width: 100%;
}

div.voiceSwiper .swiper-slide {
  width: 240px !important;
}

div.voiceImg {
  margin-bottom: 20px;
}

div.voiceImg > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
}

div.voiceDate {
  margin-bottom: 10px;
}

div.voiceDate > p {
  font-size: 14px;
  color: #fefefe;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

div.voiceTxt > p {
  font-size: 15px;
  color: #fefefe;
  line-height: 1.4;
}

div.voiceLink {
  text-align: center;
  margin: auto;
  padding-bottom: 5px;
  margin-top: 20px;
}

div.voiceLink > a {
  font-size: 15px;
  color: #fefefe;
  width: fit-content;
  display: inline-block;
  position: relative;
}

div.voiceLink > a::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 1px;
  background-color: #fefefe;
  bottom: -5px;
  left: -5%;
  transform: scale(100%, 100%);
  transform-origin: left bottom;
}

div.voiceLink > a:hover::after {
  animation: lineRight 0.6s ease-in-out;
}

@keyframes lineRight {
  0% {
    transform: scale(0, 100%);
  }
  100% {
    transform: scale(100%, 100%);
  }
}
div#voiceAllLink {
  width: 300px;
  margin: auto;
  margin-top: 60px;
}

div#voiceAllLink > a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 40px;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  color: #009944;
  background-color: #fefefe;
  text-align: center;
  display: inline-block;
}

div#voiceAllLink > a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 40px;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  color: #009944;
  border: solid 1px #fefefe;
  background: linear-gradient(to right, #009944 50%, #fefefe 50%);
  background-size: 200% 100%;
  background-position: top right;
  text-align: center;
  transition: all 0.6s ease-in-out;
  display: inline-block;
}

div#voiceAllLink > a:hover {
  color: #fefefe;
  background-position: left top;
}

@media (max-width: 900px) {
  div.voiceDate > p {
    font-size: 12px;
  }

  div.voiceTxt > p {
    font-size: 13px;
  }

  div.voiceLink > a {
    font-size: 14px;
  }

  div#voiceAllLink {
    width: 280px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  div#voiceAllLink > a {
    font-size: 14px;
  }
}
#cutbackBlock {
  position: relative;
  top: -1px;
  position: relative;
  margin-bottom: 100px;
}

div#cutbackImg > img {
  width: 425px;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  #cutbackBlock {
    margin-bottom: 120px;
  }

  div#cutbackImg > img {
    width: 100%;
    max-width: 360px;
    top: -40px;
    transform: translateX(-48%);
  }
}
