.hoverLayer {
  --btn-size: 280px;
  --mask-color: var(--blue-hover-color);
  will-change: transform;
  overflow: hidden;
}

.hoverLayer * {
  transition: all 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}

@media only screen and (min-width: 768px) {
  .hoverLayer::before {
    --size: calc(var(--btn-size) * 1.2);
    content: "";
    position: absolute;
    top: calc(50% - max(var(--size)) / 2);
    left: calc(50% - max(var(--size)) / 2);
    width: max(var(--size));
    height: max(var(--size));
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
    background-color: var(--mask-color);
    transform: scale(0);
    transition: transform 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
  }

  .hoverLayer:hover::before {
    transform: scale(1);
  }
}

body#reien main .mainHeader {
  /* background-image: url("../img/reien/header-bg.jpg"); */
  display: block;
  background: #f5f5f5;
}


body#reien main section {
  padding-top: 0;
  margin-bottom: 0;
}

body#reien main section article {
  max-width: 1400px;
}

body#reien main section .title {
  color: var(--primary-color);
  text-align: center;
  padding: 4em 0;
}

body#reien main section .title h2 {
  font-family: var(--shippori-mincho);
  color: var(--primary-color);
  font-weight: 400;
}

body#reien main section .title h2 {
  font-size: 40px;
}

@media screen and (min-width: 320px) {
  body#reien main section .title h2 {
    font-size: calc(40px + 5 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .title h2 {
    font-size: 45px;
  }
}

body#reien main section .text h5,
body#reien main section .text h3 {
  color: var(--primary-color);
}

body#reien main section .text h5 {
  font-weight: 500;
  margin-top: var(--padding);
}

body#reien main section .text h5 {
  font-size: 16px;
}

@media screen and (min-width: 320px) {
  body#reien main section .text h5 {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .text h5 {
    font-size: 18px;
  }
}

body#reien main section .text h5 span {
  font-family: "Helvetica", var(--roboto);
}

body#reien main section .text h3 {
  padding: 10px 0 var(--padding);
  margin-bottom: var(--padding);
  font-weight: 400;
  line-height: 1;
  font-family: var(--shippori-mincho);
}

@media screen and (min-width: 320px) {
  body#reien main section .text h3 {
    font-size: calc(32px + 6 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .text h3 {
    font-size: 38px;
  }
}

body#reien main section .text h4 {
  font-weight: 500;
}

@media screen and (min-width: 320px) {
  body#reien main section .text h4 {
    font-size: calc(18px + 2 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .text h4 {
    font-size: 20px;
  }
}

body#reien main section .text p {
  font-size: 16px;
}

/* @media screen and (min-width: 320px) {
  body#reien main section .text p {
    font-size: calc(16px + 1 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .text p {
    font-size: 17px;
  }
} */

body#reien main section .text a {
  margin-top: 2em;
  --btn-size: 280px;
  display: inline-block;
  text-align: center;
  background-color: var(--color-white);
  padding: 10px;
  padding-left: 20px;
  border: 1.5px solid var(--primary-color);
  width: var(--btn-size);
}

body#reien main section .text a p,
body#reien main section .text a span {
  transition: color 0.32s cubic-bezier(0.39, 0.575, 0.565, 1), right 0.32s cubic-bezier(0.39, 0.575, 0.565, 1);
}

body#reien main section .text a p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

body#reien main section .text a p {
  font-size: 16px;
}

@media screen and (min-width: 320px) {
  body#reien main section .text a p {
    font-size: calc(16px + 2 * ((100vw - 320px) / 980));
  }
}

@media screen and (min-width: 1300px) {
  body#reien main section .text a p {
    font-size: 18px;
  }
}

body#reien main section .text a p span {
  display: inline-block;
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--primary-color);
  z-index: 99;
}

@media only screen and (min-width: 768px) {
  body#reien main section .text a:hover p {
    color: var(--color-white);
  }

  body#reien main section .text a:hover p span {
    right: 8%;
    border-left-color: var(--color-white);
  }
}

body#reien main .headerContext {
  padding: 0em var(--padding);
  min-height: 670px;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
}

body#reien main .headerContext article {
  padding: 0;
  max-width: 1200px;
}

body#reien main .bochi {
  padding: 2em calc(2 * var(--padding)) 4em;
}

@media only screen and (max-width: 768px) {
  body#reien main .bochi {
    --padding: 10px;
    padding-bottom: 2em;
  }
}

body#reien main .bochi ul li {
  background-color: var(--color-white);
  display: flex;
  flex-direction: row;
  border: 1px solid #efefef;
  position: relative;
  z-index: -1;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: calc(6 * var(--padding));
}

body#reien main .bochi ul li .cl {
  flex-basis: 50%;
  padding: 75px 0 20px calc(2 * var(--padding));
}

body#reien main .bochi ul li .cr {
  flex-basis: 50%;
  position: relative;
  z-index: 2;
}

body#reien main .bochi ul li .cr .image {
  width: 100%;
  right: calc(-2 * var(--padding));
  bottom: calc(-4 * var(--padding));
}

body#reien main .bochi ul li .cr .image img {
  width: 100%;
}

@media only screen and (max-width: 768px) {
  body#reien main .bochi ul li {
    flex-direction: column;
    background-color: transparent;
  }

  body#reien main .bochi ul li .cl,
  body#reien main .bochi ul li .cr {
    flex-basis: 100%;
    padding: calc(2 * var(--padding));
  }

  body#reien main .bochi ul li .cl {
    background-color: var(--color-white);
    padding-bottom: calc(8 * var(--padding));
  }

  body#reien main .bochi ul li .cl h5 {
    margin-top: 0;
  }

  body#reien main .bochi ul li .cr .image {
    width: 100%;
    right: 0;
    bottom: 0;
    margin-top: calc(-1 * 6 * var(--padding));
  }

  body#reien main .bochi ul li .cr .image img {
    width: 100%;
  }
}

body#reien main .eitai {
  padding: 2em 0 0 0;
}

@media only screen and (max-width: 768px) {
  body#reien main .eitai {
    --padding: 10px;
    padding-top: 0;
  }
}

body#reien main .eitai .content .eitaiItem:first-child {
  /* margin-bottom: 4em; */
  margin-bottom: 75px
}

body#reien main .eitai .content .eitaiItem:last-child .topImage {
  /* padding-top: 6em; */
}

body#reien main .eitai .content .eitaiItem .textContainer,
body#reien main .eitai .content .eitaiItem .topImage {
  max-width: 1200px;
  margin: 0 auto;
}

body#reien main .eitai .content .eitaiItem .textContainer .textContent {
  /* background-color: var(--color-white); */
  padding: calc(2 * var(--padding));
  max-width: 640px;
  padding-left: 100px;
  padding-right: 0;
}


body#reien main .eitai .content .eitaiItem .textContainer .textContent h3 {
  font-weight: 500;
  color: #000;
}


body#reien main .eitai .content .eitaiItem .textContainer .textContent p {
  font-weight: 500;
  max-width: 500px;
}

body#reien main .eitai .content .eitaiItem .topImage img {
  width: 100%;
}

body#reien main .eitai .content .eitaiItem .bottomImage {
  /* --gap-size: 40px; */
  display: flex;
  justify-content: space-between;
}

body#reien main .eitai .content .eitaiItem {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 75px;
  margin-bottom: 75px;
}

body#reien main .eitai .content .eitaiItem .bottomImage * {
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left,
body#reien main .eitai .content .eitaiItem .bottomImage .right {
  display: flex;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div,
body#reien main .eitai .content .eitaiItem .bottomImage .right div {
  transition: var(--transition-cubic);
  transition-duration: 1s;
  opacity: 0;
  /* transform: rotateY(100deg); */
  perspective: 1000px;
  transform-origin: top;
  transform-style: preserve-3d;
  will-change: transform;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div img,
body#reien main .eitai .content .eitaiItem .bottomImage .right div img {
  width: 100%;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1) {
  margin-right: 50px;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1),
body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(1) {
  /* transition-delay: 0.4s; */
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1),
body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(1) {
  /* transition-delay: 0.2s; */
}

body#reien main .eitai .content .eitaiItem .bottomImage .left.fadeIn div,
body#reien main .eitai .content .eitaiItem .bottomImage .right.fadeIn div {
  opacity: 1;
  /* transform: rotateY(0); */
}

body#reien main .eitai .content .eitaiItem .bottomImage .left {
  width: 48%;
  flex-direction: row;
  margin-top: 50px;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div {
  flex: 1;
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1) {
  padding-top: calc(var(--gap-size) * 2);
}

body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(2) {
  padding: var(--gap-size) var(--gap-size) 0;
}

/* body#reien main .eitai .content .eitaiItem:first-child .bottomImage .right {
  width: 47%;
  flex-direction: column;
  margin-top: -380px;
  z-index: -1;
  align-items: end;
} */

body#reien main .eitai .content .eitaiItem.special .bottomImage .right {
  width: 47%;
  flex-direction: column;
  margin-top: -330px;
  z-index: -1;
  align-items: end;
}

/* body#reien main .eitai .content .eitaiItem:last-child .bottomImage .right {
  width: 47%;
  flex-direction: column;
  margin-top: -330px;
  z-index: -1;
  align-items: end;
} */
body#reien main .eitai .content .eitaiItem .bottomImage .right {
  width: 47%;
  flex-direction: column;
  margin-top: -330px;
  z-index: -1;
  align-items: end;
}

body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(2) {
  padding: var(--gap-size);
}

@media only screen and (max-width: 1024px) {
  body#reien main .eitai .content .eitaiItem .bottomImage {
    --gap-size: var(--padding);
    padding-top: var(--gap-size);
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left,
  body#reien main .eitai .content .eitaiItem .bottomImage .right {
    flex-direction: column;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left div,
  body#reien main .eitai .content .eitaiItem .bottomImage .right div {
    display: flex;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left {
    width: 45%;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1) {
    padding: 0 calc(var(--gap-size) + 10px) var(--gap-size) 0;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(2) {
    padding: var(--gap-size) 0 0 calc(var(--gap-size) + 10px);
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .right {
    width: 55%;
    margin-top: 0 !important;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(1) {
    padding-bottom: var(--gap-size);
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(2) {
    padding: var(--gap-size) calc(var(--gap-size) + 10px) 0 calc(var(--gap-size) + 10px);
  }
}

@media screen and (max-width: 500px) {
  /* body#reien main .headerContext article h5 br {
    display: none;
  }

  body#reien main .headerContext article h5 br.special-br {
    display: block;
  } */
}


body#reien main section .text h3 {
  font-size: 21px;
}

body#reien main section .text h4 {
  font-size: 16px;
}


body#reien main section .text h4 {
  font-weight: 400;
  margin-top: 1em;
}

body#reien main section .text p {
  font-weight: 400;
  margin-top: 1em;
  letter-spacing: 0.1em;
  line-height: 2.722;
}

body#reien main section .d-title span {
  font-family: var(--shippori-mincho);
  letter-spacing: 0.1em;
  margin-top: 10px;
}

.line-animetion {
  /*線の基点とするためrelativeを指定*/
  position: relative;
  display: block;
}

.line-animetion,
.line-animetion:hover {
  color: #fff;
}

.line-animetion::before {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  display: block;
  width: 7px;
  height: 6px;
  color: #000;
  background: #fff;
  left: 50%;
  top: 50%;
  clip-path: polygon(25% 0%, 74% 0, 100% 51%, 75% 100%, 25% 100%, 0 50%);
  transform: translate(-50%, -50%);
}

.line-animetion::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 50%;
  left: 50%;
  /*線の形状*/
  width: 137px;
  height: 1px;
  background: #fff;
  /*アニメーションの指定*/
  transition: all .8s;
  transform: translateX(-50%) scale(0, 1);
  /*X方向0、Y方向1*/
  transform-origin: center top;
  /*上部中央基点*/
}

/*現在地とhoverの設定*/
.line-animetion.active::after {
  transform: translateX(-50%) scale(1, 1);
}


.line-animetion02 {
  /*線の基点とするためrelativeを指定*/
  position: relative;
  display: block;
}

.line-animetion02,
.line-animetion02:hover {
  color: #000;
}

.line-animetion02::before {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  display: block;
  width: 7px;
  height: 6px;
  color: #000;
  background: #000;
  left: 50%;
  top: 50%;
  clip-path: polygon(25% 0%, 74% 0, 100% 51%, 75% 100%, 25% 100%, 0 50%);
  transform: translate(-50%, -50%);
}

.line-animetion02::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 50%;
  left: 50%;
  /*線の形状*/
  width: 137px;
  height: 1px;
  background: #000;
  /*アニメーションの指定*/
  transition: all .8s;
  transform: translateX(-50%) scale(0, 1);
  /*X方向0、Y方向1*/
  transform-origin: center top;
  /*上部中央基点*/
}

/*現在地とhoverの設定*/
.line-animetion02.active::after {
  transform: translateX(-50%) scale(1, 1);
}



.line-animetion03 {
  /*線の基点とするためrelativeを指定*/
  position: relative;
  display: block;
}

.line-animetion03,
.line-animetion03:hover {
  color: #000;
}

/* .line-animetion03::before {
  content: '';
  position: absolute;
  display: block;
  width: 7px;
  height: 6px;
  color: #000;
  background: #000;
  left: 50%;
  top: 50%;
  clip-path: polygon(25% 0%, 74% 0, 100% 51%, 75% 100%, 25% 100%, 0 50%);
  transform: translate(-50%, -50%);
} */

.line-animetion03::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 50%;
  left: 50%;
  /*線の形状*/
  width: 100%;
  max-width: 1080px;
  height: 1px;
  background: #000;
  /*アニメーションの指定*/
  transition: all .8s;
  transform: translateX(-50%) scale(0, 1);
  /*X方向0、Y方向1*/
  transform-origin: center top;
  /*上部中央基点*/
}

/*現在地とhoverの設定*/
.line-animetion03.active::after {
  transform: translateX(-50%) scale(1, 1);
}

@media screen and (max-width:500px) {
  .line-animetion03 {
    margin: 0 20px;
  }
}

body#reien main .bochi .content {
  margin-top: 110px;
}

body#reien main .eitai .content {
  margin-top: 35px;
}

body#reien main section .text a p {
  font-size: 16px;
  text-align: left;
}

body#reien main .headerContext article h2 .sp-img {
  display: none;
}

@media screen and (max-width:500px) {
  body#reien main .headerContext article h2 {
    line-height: 2;
  }

  body#reien main .headerContext article h5 {
    font-size: 15px;
    font-weight: 500;
    line-height: 2;
    text-align: justify;
    text-align: center;
    letter-spacing: 0.01em;
  }

  body#reien main section .text p {
    font-size: 15px;
    line-height: 2;
    font-weight: 500;
    letter-spacing: .1em;
  }

  body#reien main .bochi .content {
    margin-top: 20px;
  }

  body#reien main .eitai .content {
    margin-top: 20px;
  }

  body#reien main .bochi {
    padding-top: 50px;
  }

  body#reien main .headerContext {
    min-height: auto;
  }

  body#reien main .headerContext article h2 {
    margin-top: 70px;
    margin-bottom: 58px;
  }

  body#reien main .headerContext article {
    margin-bottom: 50px;
  }

  body#reien main .headerContext article h2 .pc-img {
    display: none;
  }

  body#reien main .headerContext article h2 .sp-img {
    display: block;
  }

  body#reien main .bochi ul li .cl {
    padding-left: 25px;
  }

  body#reien main .eitai .content .eitaiItem .textContainer .textContent {
    padding: 20px;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage {
    justify-content: space-between;
    padding: 0 20px;
  }
}

.headerBody #headerNav.actives nav .logo a img {
  filter: invert(1) !important;
}

body#reien main .eitai .content .eitaiItem .bottomImage .right div:first-child img {
  max-width: 311px;
}

body#reien main .eitai .content .eitaiItem .bottomImage .right div:last-child img {
  width: 100%;
  margin-top: 50px;
}

body main .headerContext article h2 {
  max-width: 970px;
}

@media screen and (max-width:500px) {
  body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(1) {
    margin: 0;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left {
    margin-top: 0;
  }

  body#reien main .eitai .content .eitaiItem .bottomImage .left div:nth-of-type(2) {
    padding-left: 0;
  }

  /* body#reien main .eitai .content .eitaiItem:first-child .bottomImage .right{
    width: 52%;
  } */
  body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(2) {
    padding-left: 0;
    padding-right: 0;
  }

  /*body#reien main .eitai .content .eitaiItem .bottomImage .right div:last-child img {
    margin-top: 0;
  }
  body#reien main .eitai .content .eitaiItem .bottomImage .right div:nth-of-type(1){
    padding-bottom: 0;
  } */
  /* body#reien main .eitai .content .eitaiItem:nth-child(2) .bottomImage .right{
    width: 52%;
  } */
  /* body#reien main .eitai .content .eitaiItem:last-child .bottomImage .right {
    width: 48%;
  }

  body#reien main .eitai .content .eitaiItem:last-child {
    margin-bottom: 40px;
  } */
  body#reien main .eitai .content .eitaiItem .bottomImage .right {
    width: 48%;
  }

  body#reien main .eitai .content .eitaiItem {
    margin-bottom: 40px;
  }
}

.reien-pc-block {
  display: block;
}

.reien-sp-block {
  display: none;
}

@media only screen and (max-width: 500px) {

  .reien-pc-block {
    display: none;
  }

  .reien-sp-block {
    display: block;
  }
}