@charset "utf-8";

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


html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

.topimage {
  background-color: #F8F7F0;
  position: relative;
  z-index: 1;
}

body {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
}

/* 背景画像 */
.topimage__bg {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* ルームピアのロゴ */
a.topimage__logo-link {
  z-index: 200;
}

.roompia_logo {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  z-index: 200;
}

/* ライン公式アカウントテキスト */
.topimage__ttl {
  position: absolute;
  top: 23%;
  left: 32%;
  transform: translateX(-50%);
  width: 43%;
}

/* サブタイトル */
.topimage__sub-ttl {
  position: absolute;
  top: 34%;
  left: 32%;
  color: #333;
  transform: translateX(-50%);
  font-size: 20px;
  letter-spacing: 1px;
}

p.topimage__sub-ttl>span {
  font-size: 35px;
  font-weight: 600;
  margin-left: 3px;
  margin-right: 3px;
}

/* スマホ画像 */
.topimage__linetalk {
  position: absolute;
  top: 45%;
  left: 32%;
  transform: translateX(-50%);
  width: 12%;
  z-index: 110;
}

/* アツシの画像 */
.topimage__atushi {
  position: absolute;
  bottom: 33px;
  right: 21%;
  width: 25%;
  z-index: 80;
}

/* アツシの説明 */
.topimage__atushi-sub-text {
  position: absolute;
  top: 63%;
  right: 19%;
  width: 3%;
  height: 400px;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
  transform: translateY(-50%);
  z-index: 110;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

p.topimage__atushi-sub-text>span {
  text-orientation: upright;
  position: relative;
  top: 0;
  left: 1.5px;
}

/* トップビューのCTR */
.btn-box {
  position: fixed;
  bottom: 35px;
  right: 1%;
  z-index: 9999;
}

.btn-element {
  border: 4px solid #02C755;
  border-radius: 13px;
  color: #fff;
  display: inline-block;
  width: 362px;
  text-align: center;
  padding: 22px 5px;
  font-size: 26px;
  background-color: #02c755;
  font-weight: 500;
  position: relative;
  transition: all .3s ease-in-out;
  z-index: 1000;
}

.btn-element:hover {
  background-color: #fff;
  color: #02C755;
}

.btn-element::after {
  content: "";
  display: inline-block;
  background-image: url(/wp-content/themes/swell_child/image/LINE_LP/allow_hover.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 51%;
  right: 11px;
  transform: translateY(-50%);
  transition: all .3s ease-in-out;
}

.btn-element:hover::after {
  background-image: url(/wp-content/themes/swell_child/image/LINE_LP/allow.png);
}

@media (max-width: 1100px) {
  .topimage__atushi-sub-text {
    position: absolute;
    top: 67%;
    right: 19%;
    width: 3%;
    height: 300px;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 1000px) {
  .topimage .topimage__sub-ttl {
    font-size: 16px;
  }

  .topimage p.topimage__sub-ttl>span {
    font-size: 29px;
  }
}

@media (max-width: 900px) {
  .topimage .topimage__atushi-sub-text {
    position: absolute;
    top: 61%;
    right: 18%;
    width: 3%;
    height: 300px;
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 840px) {
  .topimage .atushi-sub-text {
    top: 59%;
    right: 19%;
    width: 3%;
  }

  .btn-box {
    position: absolute;
    bottom: -17px;
    right: 2%;
    z-index: 110;
  }

  .topimage .btn-element {
    border: 4px solid #02C755;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    width: 227px;
    text-align: center;
    padding: 14px 5px;
    font-size: 18px;
    background-color: #02c755;
    font-weight: 500;
    position: fixed;
    bottom: 32px;
    right: 13px;
  }

  .topimage .btn-element:hover {
    background-color: #ffffff;
    color: #02c755;
  }

  .btn-element::after {
    content: "";
    display: inline-block;
    background-image: url(/wp-content/themes/swell_child/image/LINE_LP/allow_hover.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 48%;
    right: 6px;
    transform: translateY(-50%);
    transition: all .3s ease-in-out;
  }
}

@media (max-width: 780px) {
  header .topimage .topimage__sub-ttl {
    font-size: 14px;
  }

  header .topimage p.topimage__sub-ttl>span {
    font-size: 22px;
  }
}




/* トップビューのスマホサイズ */
.topimage-sp {
  background-color: #F8F7F0;
  position: relative;
  z-index: 1;
  display: none;
}

.topimage__bg-sp {
  width: 100%;
  position: relative;
  height: 867px;
  z-index: 100;
}

.roompia_logo-sp {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* ロゴスマホサイズ */
.roompia_logo-sp {
  position: absolute;
  top: 4.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 21%;
}

/* ライン公式アカウントテキスト */
.topimage__ttl-sp {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
}

.topimage__sub-ttl-sp {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 600;
  color: #333;
  font-family: 'M PLUS 1p', sans-serif;
  white-space: nowrap;
  z-index: 110;
}

p.topimage__sub-ttl-sp>span {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 2px;
}

/* スマホ画像SP */
.topimage__linetalk-sp {
  position: absolute;
  bottom: 15%;
  left: 23%;
  transform: translateX(-50%);
  height: 28vh;
  z-index: 110;
}

/* アツシの画像SP */
.topimage__atushi-sp {
  position: absolute;
  bottom: 4vw;
  right: 2vw;
  z-index: 80;
  width: 60vw;
}

.topimage__atushi-sp img {
  width: 100%;
  height: 100%;
}

/* アツシの説明SP */
.topimage__atushi-sub-text-sp {
  position: absolute;
  top: 73%;
  right: 7%;
  width: 3%;
  height: 400px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  transform: translateY(-50%);
  z-index: 110;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

.topimage__atushi-sub-text-sp>span {
  text-orientation: upright;
  position: relative;
  top: 0;
  left: .6px;
}

.btn-box-sp {
  position: fixed;
  bottom: 20px;
  right: 3%;
  z-index: 9999;
  transition: all .3s ease-in-out;
}

div#btn-box-sp.btn-box-sp_position {
  opacity: 0;
}

.btn-element-sp {
  border: 4px solid #02C755;
  border-radius: 10px;
  color: #fff;
  display: inline-block;
  width: 227px;
  text-align: center;
  padding: 14px 5px;
  font-size: 18px;
  background-color: #02c755;
  font-weight: 500;
  position: relative;
}

@media (max-width: 450px) {
  header .topimage__bg-sp {
    width: 100%;
    position: relative;
    height: 696px;
    z-index: 100;
  }

  .topimage-sp .topimage__sub-ttl-sp {
    font-size: 16px;
  }

  .topimage-sp p.topimage__sub-ttl-sp>span {
    font-size: 31px;
  }

  .topimage__atushi-sub-text-sp {
    position: absolute;
    top: 80%;
    right: 5%;
    width: 3%;
    height: 400px;
    font-size: 11px;
    line-height: 1.4;
    transform: translateY(-50%);
    z-index: 110;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
  }


}

@media (max-width: 400px) {
  .body-inner header .topimage__bg-sp {
    width: 100%;
    position: relative;
    height: 611px;
    z-index: 100;
  }

  header .topimage-sp .topimage__sub-ttl-sp {
    font-size: 14px;
    top: 30%;
  }

  header .topimage-sp p.topimage__sub-ttl-sp>span {
    font-size: 22px;
  }
}








/* PCからSPに切り替え */
@media (max-width: 599px) {
  body .topimage {
    display: none;
  }

  body .topimage-sp {
    display: block;
  }
}


/* on brシリーズ */

.br780on {
  display: none;
}

.br700on {
  display: none;
}

@media (max-width: 780px) {
  body .br780on {
    display: block;
  }
}

@media (max-width: 700px) {
  body .br700on {
    display: block;
  }
}

/* off brシリーズ */

@media (max-width: 500px) {
  .br500off {
    display: none;
  }
}


/* スクロールで現れるロゴ */
.fixed-box {
  width: 100%;
  height: 60px;
  padding: 11px 0;
  background-color: #fff;
  text-align: center;
  position: fixed;
  top: 0;
  z-index: 9999;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, .16);
}

.fixed-logo {
  width: 200px;
}

#btn-fixed-logo {
  text-align: center;
  transform: translateY(-60px);
  transition: all .6s ease-in-out;
  z-index: 1000;
}

#btn-fixed-logo.fadein {
  transform: translateY(0px);
}

@media (max-width: 700px) {
  .fixed-box {
    width: 100%;
    height: 50px;
    padding: 15px 0;
  }

  .fixed-logo {
    width: 110px;
  }
}

@media (max-width: 500px) {
  .fixed-roompia-logo .fixed-logo {
    width: 100px;
  }

  .body-inner .fixed-box {
    width: 100%;
    height: 40px;
    padding: 12px 0;
  }
}


/* ローディングアニメーション */
#first-loading {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh;
  background-color: #FDF7E8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#loading {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh;
  transition: all 1s;
  -moz-transition: all 1s;
  -webkit-transition: all 1s;
  background-color: #FDF7E8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.loader-logo {
  width: 14%;
  opacity: 0;
}

.loader-logo.loader-start {
  animation: loader 3s forwards;
}

@media (max-width: 799px) {
  .loader-logo {
    width: 22%;
    opacity: 0;
  }
}

@media (max-width: 599px) {
  .body-inner .loader-logo {
    width: 26%;
    opacity: 0;
  }
}

@media (max-width: 480px) {
  body .body-inner .loader-logo {
    width: 30%;
    opacity: 0;
  }
}


@keyframes loader {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* JSでローディング画面消去 */
.loaded {
  opacity: 0;
  visibility: hidden;
}