@charset "utf-8";

/* Scss Document
*****************************************************************/
@import "../../n_common/css/_variable.css";


#roomplan {
  margin-bottom: 90px;
  @media (width < 896px) {
    margin-bottom: 60px;
  }
  @media (width < 600px) {
    margin-bottom: 45px;
  }
}

.main-img {
  margin:0 auto;
  h2 {
    text-align:center;
    font-size:1.8rem;
    letter-spacing: 2px;
    color: var(--font_c);
    margin-top:30px;
    word-break: keep-all;
    @media (width < 600px) {
      font-size:1.4rem;
      letter-spacing: 1px;
    }
    .under_line {
      border-bottom: var(--point_c) solid 10px;
      padding: 0 16px 3px;
      position: relative;
      .seven {
        position: relative;
        top: 0.25em;
        color: var(--main_c);
        font-size: 2.4em;
      }
    }
  }
  .block_img{
    text-align: center;
    margin:4.8cqw auto 0;
    flex-grow: 1;
    position: relative;
    img {
      width: 100%;
      max-width: 1000px;
      height: auto;
    }
  }
  .list_hover{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    >li{
      display: none;
      &.current{
        display: block;
      }
    }
  }
  p.lead {
    text-align:center;
    font-size:1.4rem;
    color: var(--font_c);
    font-weight: 500;
    margin-top:30px;
    @media (width < 600px) {
      font-size:1rem;
    }
  }
  p.small {
    text-align:right;
    font-size:0.8rem;
  }
}

.btn_area {
  width:100%;
  margin: 0 auto 80px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  /* &.active {
    display: flex;
  } */
  li {
    width:calc(100% / 4 - 20px);
    max-width:280px;
    margin:10px;
    padding:6px;
    background-color:#F9EDC7;
    position:relative;
    transition: 0.5s;
    @media (width < 896px) {
      width:calc(100% / 3 - 20px);
    }
    @media (width < 600px) {
      width:calc(100% / 2 - 20px);
    }
    img {
      width: 100% !important;
      border:1px solid #fff;
      padding:5px;
      opacity: 0.8;
    }
    a {
      display:block;
      width:100%;
      height:100%;
      margin:0;
    }
    /* &.active, &:hover {
      background-color:var(--main_c);
      img {
        opacity: 1;
      }
    } */
    &.close {
      pointer-events: none;
      background-color:#313131;
      img {
        opacity: 0.3;
      }
      &::before {
        content:"";
        width:100%;
        height:100%;
        background-color: rgba(255,255,255,0.8);
        position: absolute;
        left: 0;
        right:0;
        top: 0;
      }
    }
    &.soon {
      &::before {
        content:"";
        display: block;
        width: 100%;
        height:100%;
        background-image: url("../../roomplan/images/soon.svg");
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        left: 0;
        top: -15px;
      }
    }
    &.sold {
      pointer-events: none;
      background-color:#A3A3A3;
      img {
        opacity: 0.3;
      }
      &::before {
        content:"";
        display: block;
        width: 100%;
        height:100%;
        background-image: url("../../roomplan/images/sold.svg");
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
        left: 0;
        z-index:2;
      }
    }
  }
  &.terrace {
    li {
      width:calc(100% / 3 - 20px);
      @media (width < 896px) {
        width:calc(100% / 3 - 20px);
      }
      @media (width < 600px) {
        width:calc(100% / 2 - 20px);
      }
    }
  }
}

.flexbox {
  display:flex;
  justify-content: space-between;
  @media (width < 600px) {
    flex-direction: column;
  }
}
.textarea {
  width:32%;
  max-width:410px;
  margin: auto;
  @media (width < 600px) {
    width:100%;
    max-width:auto;
  }
  .item_img {
    img {
      width: 100%;
      height: auto;
      display: block; /* 追加 */
    }
  }
}

.mt3cqw {
  margin-top: 3.6cqw;
  @media (width < 600px) {
    margin-top: 30px;
  }
}

.map {
  width:63%;
  @media (width < 600px) {
    width:100%;
    max-width:auto;
    margin-top: 30px;
  }
  &.gmap {
    ul.gbtn {
      display:flex;
      justify-content: space-around;
      margin-bottom:80px;
      li {
        width:48%;
        max-width:354px;
        transition: 0.5s;
        &.off {
          img {
            opacity: 0.6;
            transition: 0.5s;
            &:hover {
              opacity: 1;
            }
          }
        }
      }
    }
  }
}

.btn {
  max-width: 300px;
  margin: auto;
  a {
    color:#fff;
  }
  .button01{
    background-color: #818181;
    position:relative;
    display: block;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    width: 100%;
    transition: 0.2s;
    @media (width < 896px) {
      margin-bottom:20px;
    }
    &:hover {
      background-color: var(--main_c);
      text-decoration: none;
    }
    span {
      position: relative;
      padding-left: 20px;
      letter-spacing: 0.1em;
      &::before {
        position:absolute;
      }
    }
    &::after {
      content: "";
      display: block;
      position: absolute;
      left: 5px;
      top: 5px;
      width: calc(100% - 12px);
      height: calc(100% - 12px);
      z-index: 1;
      border: 1px solid #fff;
    }
  }
}
.print::before {
  content: "";
  border: none;
  background-image: url("../images/ic_print.svg");
  background-size: contain;
  background-repeat: no-repeat; 
  display: inline-block;
  height: 38px;
  transform: rotate(0);
  top: 3px;
  left: -10px;
  width: 20px;
}
.mapLink::before {
  content: "";
  border: none;
  background-image: url("../images/ic_map.svg");
  background-size: contain;
  background-repeat: no-repeat; 
  display: inline-block;
  height: 38px;
  transform: rotate(0);
  top: 3px;
  left: -10px;
  width: 20px;
}

.cap_figure {
  text-align: right;
  max-width: 1016px;
  margin: auto;
  line-height: 1.6em;
  padding-top: 10px;
}

.list_btn {
  display: flex;
  flex-wrap: wrap;
  gap: 4.8cqw;
  justify-content: center;
  padding-top: 4.8cqw;
  padding-bottom: 30px;
}

.item_btn {
  width: calc(100% / 4 - 4.8cqw);
  @media (width < 600px) {
    width: calc(100% / 3 - 4.8cqw);
  }
  img {
    width: 100%;
    height: auto;
    opacity: 0.7;
    &.active {
      opacity: 1;
    }
  }
  &:hover {
    img {
      opacity: 1;
    }
  }
}

.hd_plan {
  text-align:center;
  font-size:1.8rem;
  letter-spacing: 2px;
  color: var(--font_c);
  margin-top:30px;
  word-break: keep-all;
  border-bottom: var(--main_c) solid 5px;
  padding-bottom: 3px;
  margin-top: 6cqw;
  @media (width < 600px) {
    font-size:1.4rem;
    letter-spacing: 1px;
    margin-top: 10px;
  }
}