/****************************************
横レイアウト
****************************************/

/* Commons */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  user-select: none;
  font-family: "Meiryo UI", "Meiryo", "MS PGothic", sans-serif;
  font-size: 12px;
  color: #4b4949;
}

body {
  color: white;
  margin: 0;
}

ul {
  list-style: none;
}

.ui-front {
  z-index: 101;
  position: absolute;
  overflow: hidden;
}

.ui-top {
  top: 108px;
}

.ui-bottom {
  bottom: 80px;
}

.ui-left {
  left: 24px;
}

.ui-right {
  right: 24px;
}

.ui-center {
  left: 50%;
  transform: translate(-50%, 0);
}

/* container */

.container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100%;
}

main {
  flex: 1;
  overflow: hidden;
}

.main-left {
  width: 25%;
  height: 100%;
  float: left;
}

.main-right {
  width: 75%;
  height: 100%;
  float: right;
}

/* Override Lixil CSS */

.origin-header {
  height: 86px;
}

.origin-header div {
  margin: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
}

.img-lxllogo {
  width: 124px;
  max-width: 124px;
  height: auto;
  margin-left: 12px;
}

.header-logo {
  float: left;
}

.header-links {
  float: right;
}

.lixTmplNavFB {
  position: fixed;
  left: auto;
  right: 12px;
  width: auto;
  top: 32px;
  transform: none;
}

.lixTmplNavFB li {
  margin: 0;
}

.lixTmplNavFB li a {
  font-family: "Meiryo UI", "Meiryo", "MS PGothic", sans-serif;
}

.header-copyright {
  max-width: 245px;
  position: fixed;
  left: auto;
  right: 12px;
  top: 72px;
}

/* iframe */

iframe {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border: none;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
}

/* 浴槽情報 */

#bathtub-info {
  position: absolute;
  top: 86px;
  left: 25%;
}

#bathtub-info-name {
  font-size: 22px;
  font-weight: bold;
  color: #606060;
  margin-top: 28px;
  margin-bottom: 0px;
  margin-left: 48px;
}

#bathtub-info-annotation {
  font-size: 17px;
  font-weight: bold;
  color: #606060;
  margin-top: 0;
  margin-left: 48px;
}

/* 注意書き */

#attension {
  position: absolute;
  left: 25%;
  margin-left: 8px;
  bottom: 0px;
}

#attension p {
  color: #606060;
  font-size: 12px;
}

/* 平面画像・断面画像用 */

#plane-view,
#cross-section-view {
  border-top: 1px solid gray;
  height: 50%;
}

#plane-view {
}

#cross-section-view {
  border-left: none;
}

.text-header {
  position: relative;
  text-align: center;
  font-weight: bold;
  color: #606060;
  font-size: 22px;
  z-index: 102;
  margin-bottom: 2px;
}

.div-header-area,
.div-img-area {
  display: flex;
  align-items: center;
  justify-content: center;
}

.div-header-area {
  height: 18%;
}

.div-img-area {
  height: 82%;
}

#img-plane,
#img-cross-section {
  width: 63%;
  height: auto;
}

/* 視点切り替えボタン用 */

.btn-radius {
  display: flex;
  align-items: center;
  margin: 12px;
  height: 32px;
  width: 140px;
  position: relative;
  padding: 0.25em 0.5em;
  text-decoration: none;
  color: #fff;
  background: #e75400;
  border-radius: 22px;
  transition: 0.4s;
}

#img-view-items {
  position: absolute;
  left: 6px;
  width: 20px;
  height: 20px;
}

#text-view-items {
  position: absolute;
  left: 36px;
  width: 76px;
  text-align: center;
  font-size: 12px;
}

.btn-radius:hover {
  background: #d04400;
}

/* 身長選択用 */

#height-list {
  bottom: 10px;
}

#height-list input[type="radio"] {
  display: none;
}

#height-list input[type="radio"] + label img.select-on {
  display: none;
}

#height-list input[type="radio"] + label img.select-off {
  display: inline;
  filter: brightness(0.3);
}

#height-list input[type="radio"]:hover + label img.select-on {
  filter: none;
}

#height-list input[type="radio"]:hover + label img.select-off {
  filter: brightness(0.4);
}

#height-list input[type="radio"]:checked + label img.select-on {
  display: inline;
}

#height-list input[type="radio"]:checked + label img.select-off {
  display: none;
}

#img-150 {
  width: 80px;
  height: 80px;
}

#img-170 {
  width: 100px;
  height: 100px;
}

/* ダイアログ */

#info-dialog {
  width: 100%;
  height: 100%;
  background-color: #0006;
  z-index: 200;
}

#info-dialog-inner {
  position: fixed;
  width: 75%;
  height: 80%;
  max-width: 600px;
  max-height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid gray;
  display: flex;
  align-items: center;
  justify-content: center;
}

#info-dialog-inner-description {
  height: 90%;
  width: auto;
}

#info-dialog-inner-close {
  position: fixed;
  right: 2px;
  top: 2px;
  width: 48px;
  height: auto;
}

#info-dialog-p1 {
  margin-bottom: 0;
}

#info-dialog-p2 {
  margin-top: 0;
}

#info-dialog h1,
#info-dialog p {
  color: black;
  text-align: center;
  font-weight: bold;
}

#info-dialog h1 {
  font-size: 20px;
  margin-top: 30px;
}
#info-dialog p {
  font-size: 16px;
}

#info-dialog-table {
  margin: auto;
  margin-top: 32px;
}

#info-dialog-table tbody tr td p {
  margin: 0px;
}

#info-dialog-table-td1 {
  width: 180px;
}

#info-dialog-table-td2 {
  width: 280px;
}

#info-dialog-table-td2 p {
  text-align: left;
}

/****************************************
横幅による切り替え
****************************************/

@media screen and (max-width: 720px) {
  .img-lxllogo {
    width: 22vw;
    margin-left: 2.2vw;
  }

  #attension p {
    font-size: 1vw;
  }

  /* Override Lixil CSS */

  .lixTmplNavFB li a {
    font-size: 10px;
  }
}

@media screen and (max-width: 520px) {
  /* 視点切り替えボタン用 */
  .btn-radius {
    width: 132px;
  }

  #text-view-items {
    left: 32px;
  }

  .header-copyright {
    width: 60%;
    height: auto;
  }
}

@media screen and (max-height: 640px) and (min-aspect-ratio: 1000/999) {
  .ui-top {
    top: 15vh;
  }

  /* 平面画像・断面画像用 */

  .text-header {
    font-size: 3vh;
  }

  /* 浴槽情報 */

  #bathtub-info {
    position: absolute;
    top: 13vh;
    left: 25%;
  }

  #bathtub-info-name {
    font-size: 2.5vw;
    font-weight: bold;
    color: #606060;
    margin-top: 1vh;
    margin-bottom: 0px;
    margin-left: 2vw;
  }

  #bathtub-info-annotation {
    font-size: 1.5vw;
    font-weight: bold;
    color: #606060;
    margin-top: 0;
    margin-left: 2vw;
  }

  /* 視点切り替えボタン用 */

  .btn-radius {
    margin: 1vh;
    height: 5vh;
  }

  /* 身長選択用 */

  #height-list {
    bottom: 0px;
  }

  #img-150 {
    width: 13vh;
    height: auto;
  }

  #img-170 {
    width: 15vh;
    height: auto;
  }

  /* ダイアログ */

  #info-dialog h1 {
    margin-top: 4.5vh;
  }

  #info-dialog-table tbody tr td p {
    margin: 0px;
  }

  #info-dialog-table-td1 {
    width: 180px;
  }

  #info-dialog-table-td2 {
    width: 280px;
  }

  #info-dialog-table-td2 p {
    text-align: left;
  }

  @media screen and (min-aspect-ratio: 100/60) {
    #img-plane,
    #img-cross-section {
      width: 60%;
    }
  }
  @media screen and (min-aspect-ratio: 100/40) {
    #img-plane,
    #img-cross-section {
      width: 50%;
    }
  }
  @media screen and (min-aspect-ratio: 100/30) {
    #img-plane,
    #img-cross-section {
      width: 40%;
    }
  }
}

/****************************************
縦レイアウト
****************************************/

/* Reponsive UI dimensions and positions - small display */
@media screen and (max-aspect-ratio: 999/1000) {
  /* Commons */
  .ui-top {
    top: 100px;
  }

  .ui-bottom {
    bottom: 5px;
  }

  .ui-left {
    left: 5px;
  }

  .ui-right {
    right: 5px;
  }

  /* Container */

  .main-left {
    width: 100%;
    height: 40%;
  }

  .main-right {
    float: left;
    width: 100%;
    height: 60%;
  }

  /* 浴槽情報 */

  #bathtub-info {
    position: absolute;
    left: 0;
  }

  #bathtub-info-name {
    font-size: 3.7vw;
    margin-top: 12px;
    margin-left: 12px;
  }

  #bathtub-info-annotation {
    font-size: 2.4vw;
    margin-top: 0;
    margin-left: 12px;
  }

  /* 注意書き */

  #attension {
    position: fixed;
    left: 0%;
    margin-left: 2px;
    bottom: 38%;
    bottom: -webkit-calc((100% - 86px) * 0.4);
    bottom: calc((100% - 86px) * 0.4);
    transform-origin: left bottom;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
  }

  #attension p {
    color: #606060;
    font-size: 2vw;
    text-align: left;
  }

  /* 平面画像・断面画像用 */

  #plane-view,
  #cross-section-view {
    height: 100%;
    width: 50%;
    border-top: none;
  }

  #plane-view {
    left: 0;
    float: left;
  }

  #cross-section-view {
    left: 50%;
    border-left: 1px solid #606060;
    float: right;
  }

  .text-header {
    font-size: 3.5vw;
  }

  #img-plane,
  #img-cross-section {
    width: 55%;
  }

  /* 視点切り替えボタン用 */

  .btn-radius {
    margin: 24px;
    height: 46px;
    width: 168px;
  }

  #text-view-items {
    position: absolute;
    width: 92px;
    font-size: 18px;
  }

  /* 身長選択用 */

  #height-list {
    bottom: 38%;
    bottom: -webkit-calc((100% - 86px) * 0.4 + 4px);
    bottom: calc((100% - 86px) * 0.4 + 4px);
  }

  #img-150 {
    width: 120px;
    height: 120px;
  }

  #img-170 {
    width: 140px;
    height: 140px;
  }

  /* ダイアログ */

  #info-dialog-inner {
    width: 80%;
    height: 80%;
    max-height: 400px;
  }

  /* Reponsive UI dimensions and positions - small display */
  @media screen and (max-aspect-ratio: 80/100) {
    #img-plane,
    #img-cross-section {
      width: 70%;
    }
  }

  @media screen and (max-width: 840px), (max-height: 840px) {
    /* 視点切り替えボタン用 */

    .btn-radius {
      margin: 6px;
      height: 22px;
      width: 124px;
    }

    #img-view-items {
      top: 2px;
      margin-top: 0;
    }

    #text-view-items {
      top: 4px;
      left: 24px;
      font-size: 11px;
    }

    /* 身長選択用 */

    #img-150 {
      width: 60px;
      height: 60px;
    }

    #img-170 {
      width: 80px;
      height: 80px;
    }
  }

  @media screen and (max-width: 720px), (max-height: 720px) {
    /* 視点切り替えボタン用 */

    .btn-radius {
      margin: 6px;
      height: 22px;
      width: 100px;
    }

    #img-view-items {
      width: 16px;
      height: 16px;
      top: 3px;
      margin-top: 0;
    }

    #text-view-items {
      top: 4px;
      left: 10px;
      font-size: 9px;
    }

    /* 身長選択用 */

    #img-150 {
      width: 40px;
      height: 40px;
    }

    #img-170 {
      width: 54px;
      height: 54px;
    }
  }

  @media screen and (max-width: 512px), (max-height: 512px) {
    #info-dialog-inner-description {
      width: 95%;
      height: auto;
    }
  }

  @media screen and (max-height: 640px) {
    /* 注意書き */
    #attension {
      bottom: -webkit-calc((100% - 13vh) * 0.4);
      bottom: calc((100% - 13vh) * 0.4);
    }

    /* 身長選択用 */

    #height-list {
      bottom: -webkit-calc((100% - 13vh) * 0.4 + 4px);
      bottom: calc((100% - 13vh) * 0.4 + 4px);
    }
  }
  @media screen and (max-width: 320px) {
    /* ダイアログ */
    #info-dialog-inner-close {
      width: 32px;
    }
  }
  @media screen and (max-width: 300px) {
    /* 注意書き */

    #attension {
      -webkit-transform: scale(0.65);
      -moz-transform: scale(0.65);
      -ms-transform: scale(0.65);
      -o-transform: scale(0.65);
      transform: scale(0.65);
    }
  }
}

/****************************************
高さによる切り替え
****************************************/

@media screen and (max-height: 640px) {
  #bathtub-info {
    top: 13vh;
  }

  .ui-top {
    top: 15vh;
  }

  #info-dialog h1 {
    margin-top: 4.5vh;
  }

  /* Override Lixil CSS */

  .origin-header {
    height: 13vh;
  }

  .header-copyright {
    top: 10vh;
  }

  .lixTmplNavFB {
    top: 16px;
  }
}

@media screen and (max-height: 440px) {
  .img-lxllogo {
    width: auto;
    height: 10vh;
    max-height: 41px;
    margin-left: 12px;
  }

  #info-dialog h1 {
    margin-top: 3.7vh;
    font-size: 18px;
  }
  #info-dialog p {
    font-size: 3.8vh;
  }

  #info-dialog-table {
    margin-top: 3.2vh;
  }

  /* Override Lixil CSS */

  .header-copyright {
    top: 9vh;
  }

  .lixTmplNavFB {
    top: 0;
  }
}
@media screen and (max-height: 300px) {
  #info-dialog h1 {
    margin-top: 3vh;
    font-size: 6vh;
  }
  #info-dialog-table {
    margin-top: 2vh;
  }

  /* Override Lixil CSS */

  .lixTmplNavFB {
    margin-top: 1vh;
  }
}
