* {
  box-sizing: border-box;
}
body {
  /* background: var(--lightblue-bg); */
}

#top {
  padding-top: 86px;
}

.content-wrap {
  width: 100%;
  max-width: 1200px;
  margin:auto;
  padding: 30px 1em 60px;
}
h2 {
  text-align: center;
}
.bg-lb {
  background: var(--lightblue-bg);
}
.bg-g {
  background: #f4f4f4;
}
.bg-w {
  background: #fff;
}
.shadow {
  box-shadow: 1px 2px 8px rgb(59 57 73 / 20%), -11px -5px 25px rgb(255 255 255 / 50%);
  border-radius: 40px;
  position: relative;
  z-index: 1;
}
/* FV */
.fv-sec {
  width: 100%;
  max-height: 560px;
}

/* worry */
#worry {
  position: relative;
  width: 100%;
}
#worry::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 90vh;
  background: url('../img/top/worry-bg.webp')
    left top/100% auto no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  z-index: -1;
}
#worry .content-wrap {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 1em 1em 60px;
}
#worry .content-wrap:nth-of-type(1){
  padding: 30px 1em 0;
}

.ttl-big {
  color: var(--main-color);
  font-size: 1.3em;
}
.ttl-img {
  position: relative;
}
.ttl-img::before {
  position: absolute;
  content: url('../img/top/line-w.png');
  object-fit: cover;
  bottom: 0;
  left: 50%;
  z-index: -1;
  -webkit-transform: translate(-50%, 50%);
  -ms-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}
#worry ul {
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* align-items: center; */
      width: 100%;
}
#worry ul li {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 0.5em;
  box-shadow: 1px 2px 8px rgb(59 57 73 / 20%), -11px -5px 25px rgb(255 255 255 / 50%);
  padding: 0.2em 0.5em;
}
#worry ul li  label {
  display: flex;
}
#worry ul li  label p {
  padding-left: 1.5em;
  margin: 0.5em 0;
}
.partsCheck {
  display: none;
}

.partsCheck+p {
  display: inline-block;
  position: relative;
  padding-left: 45px;
}

.partsCheck+p:before {
  display: block;
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
}

.partsCheck:checked+p:after {
  display: block;
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 18%;
  left: 7px;
  margin-top: -7px;
  border-radius: 5px;
  transform: rotate(45deg);
  width: 16px;
  height: 20px;
  border-right: 4px solid var(--check-color);
  border-bottom: 4px solid var(--check-color);
}
.result-wrap {
  position: relative;
}
#worry .content-wrap.result-wrap {
  padding-top: 50px;
  margin-top: -50px;  
}
.result-wrap .ttl-wrap {
  position: relative;
  z-index: 1;
}
.result-wrap h2 {
  /* margin: 0 0 14px; */
}
.result-wrap h2,
.result-wrap h2 .ttl-big {
  color:var(--text-color);
}
.triangle {
  width: 180px;
  margin: 0 auto;
  aspect-ratio: 1 / cos(63deg);
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  background: linear-gradient(225deg, #0068b7, #29bdfd 70%, #1bb3e8 100%);
  /* background: #fff; */

  position: absolute;
  left: 50%;
  top:0;
  z-index: 0;
  -webkit-transform: translate(-50%, 50%);
  -ms-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}

.result {
  background: #fafafa;
  padding: 20px 10px;
  border-radius: 4px;
  border: 2px solid var(--main-color);
}

#mnsry_container,
.dn-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* width: 48%; */
}

.sol-btn {
  margin: 0 auto 1em;
}



/* box */
.scene {
  width: 150px;
  height: 100px;
  margin: 0 3px 10px;
  perspective: 400px;
  
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.cube {
  width: 150px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  /* 奥行き200pxの半分である-100pxは維持 */
  transform: translateZ(-100px);
  transition: transform 0.5s;
}
.cube a {
  height: 100%;
  width: 100%;
}
/* 2. HOVER時・クラス付与時のtranslateZを調整 */
/* 各面を正面に持ってきたとき、手前(Z=0)に来るよう調整 */
.cube:hover {
  /* 修正なし: 慣性の回転としてそのまま */
  /* -webkit-transform: rotateX(90deg);
  transform: rotateX(90deg); */
}

.cube.show-front {
  /* 奥行き200pxの半分: -100px */
  transform: translateZ(-100px) rotateY(0deg); 
}
.cube.show-right {
  /* 幅150pxの半分: -75px に修正 */
  transform: translateZ(-75px) rotateY(-90deg); 
}
.cube.show-back {
  /* 奥行き200pxの半分: -100px */
  transform: translateZ(-100px) rotateY(-180deg);
}
.cube.show-left {
  /* 幅150pxの半分: -75px に修正 */
  transform: translateZ(-75px) rotateY(90deg); 
}
.cube.show-top {
  /* 高さ100pxの半分: -50px に修正 */
  transform: translateZ(-50px) rotateX(-90deg); 
}
.cube.show-bottom {
  /* 高さ100pxの半分: -50px に修正 */
  transform: translateZ(-50px) rotateX(90deg); 
}

/* 3. CUBE__FACEの共通設定（面ごとに上書き） */
.cube__face {
  position: absolute;
  border: 1px solid black;
  font-weight: bold;
  color: white;
  text-align: center;
}
.cube__face .ttl {
  color: #fff;
  background: #29bdfd;
  border-radius: 20px;
  padding: 0.5em 1em;
}

/* 4. 各面のサイズと配置の調整 (幅150, 高さ100, 奥行き200の直方体) */

/* 前面・後面: 150x100 */
.cube__face--front,
.cube__face--back {
  width: 150px;
  height: 100px;
  line-height: 100px;
}
.cube__face--front {
  /* 奥行き200pxの半分: 100px は維持 */
  transform: rotateY(0deg) translateZ(100px);
  background: rgba(255, 255, 255, 0.85);
}
.cube__face--back {
  /* 奥行き200pxの半分: 100px は維持 */
  transform: rotateY(180deg) translateZ(100px);
  background: rgba(27, 179, 232, 0.7);
}

/* 右面・左面: 200x100 (奥行き x 高さ) */
.cube__face--right,
.cube__face--left {
  width: 200px; /* 奥行き200pxは維持 */
  height: 100px;
  line-height: 100px;
}
.cube__face--right {
  transform: rotateY(90deg) translateZ(50px);
  background: rgba(46, 138, 209, 0.7);
}
.cube__face--left {
  transform: rotateY(-90deg) translateZ(100px);
  background: rgba(46, 138, 209, 0.7);
}

/* 上面・下面: 150x200 (幅 x 奥行き) */
.cube__face--top,
.cube__face--bottom {
  width: 150px;
  height: 200px;
  line-height: 200px;
}
.cube__face--top {
  transform: rotateX(90deg) translateZ(100px);
  background: rgba(27, 88, 168, 0.7);
}
.cube__face--bottom {
  transform: rotateX(-90deg) translateZ(0px);
  background: rgba(46, 138, 209, 0.7);
}

.cube__face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dn {
  display: none;
}

/* possible */
#possible h2 img {
  width:150px;
  height: auto;
}
.ttl-bg {
  background: var(--grad-blue);
  color: #fff;
  padding: 0em 0.3em;
  margin: 0 0.1em;
}
.ttl-sm {
font-size: 0.75em;
}
.item-wrap {
display: flex;
flex-wrap: wrap;
}
.item-wrap .item {
  width: 47%;
  margin: 0 auto;
}
.item-wrap .item .item-box {
  background: #fff;
  box-shadow: 1px 2px 8px rgb(59 57 73 / 20%), -11px -5px 25px rgb(255 255 255 / 50%);
  border-radius: 4px;
  padding:0.5em;
}
.item-wrap .item .item-box img {
  width: 100%;
}
.item-wrap .item .item-txt {
  text-align: center;
}

/* case */
#case {
  background-color: var(--lightblue-bg);
}
#case ul {
  display: flex;
  padding-left: unset;
  justify-content: center;
}
#case ul li {
  width: 210px;
  height: 250px;
  object-fit: cover;
  padding: 0 1em;
}

#case ul li img {
  width: 100%;
  height: 250px;
    object-fit: cover;
    border-radius: 10px;
}
/* slick */
.slick-slider {
  width: 100%;
  margin: auto;
}

.slick-slider .voice-list>div {
  margin: auto;
  width: 94%;
}

.slick-track {
  width: fit-content;
}

.slider>li:not(:first-child) {
  display: none;
}
/* slickが生成する要素に適用 */
.slick-list,
.slick-slide {
  box-sizing: border-box !important;
}
.slick-prev {
  left: -15px!important;
}
.slick-next {
right: -15px!important;
}
.slick-prev:before, .slick-next:before {
color: #000!important;
}
/* またはスライド内の画像やコンテンツ自体に適用 */
.slider img,
.slider > div {
  box-sizing: border-box;
}
/* news */
/* column */
/* faq */
#faq {
}
.qa-box {
  display: block;
  position: relative;
  margin: 0 auto 20px;
  padding: 20px 0;
  width: 94%;
  max-width: 1200px;
  background: #fff;
  box-shadow: 1px 2px 8px rgb(59 57 73 / 20%), -11px -5px 25px rgb(255 255 255 / 50%);
  border-radius: 6px;
}
.ribbon20 {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 15px;
  box-sizing: border-box;
  padding: 0 12px;
  margin: 0;
  height: 30px;
  line-height: 26px;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: white;
  background: #2e8ad1;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12);
}
.ribbon20:before {
  position: absolute;
  content: '';
  top: 0;
  left: -7px;
  border: none;
  height: 38px;
  width: 7px;
  background: #2e8ad1;
  border-radius: 5px 0 0 5px;
}
.ribbon20:after {
  position: absolute;
  content: '';
  bottom: -7px;
  left: -5px;
  border: none;
  height: 7px;
  width: 5px;
  background: #2e8ad1;
  border-radius: 5px 0 0 5px;
}
.qa-q {
  margin-top: 0;
  padding-left: 3em;
  padding-right: 1em;
  font-weight: bold;
  font-size: 1.3em;
  color: var(--main-color);
}
.qa-a  {
  padding-left: 1em;
}
.qa-a span {
  color: #ff0000;
  font-size: 1.3em;
  padding-right:0.5em;
  
}
/* contact */
#contact {
  text-align: center;
}
#contact .content-wrap {
  margin: -100px auto 0;
    padding: 130px 1em 60px;
}
#contact .content-inner {
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  margin-top: 20px;
}
#contact .contact-dl {
  padding-bottom: 3em;
}
#contact .btn-area {
  text-align: center;
  margin-top: 0;
}
#contact .btn-area a {
  max-width: 280px;
  margin: auto;
  width: 100%;
}
/* partner */
#partner {
  background-image: url(../img/top/partner-bg.jpg);
  background-color: rgb(15 26 131 / 20%);
  background-blend-mode: overlay;
  background-size: cover;
  background-position: top;
  position: relative;
  border-radius: 80px 0 0 0;
  width: 100%;
  height: 100%;
}
#partner .content-wrap {
  padding: 30px 1em 60px 3em;
}
#partner h2 {
  text-align: left;
  color: #fff;
}
#partner .text {
  font-weight: bold;
  color: #fff;
  font-size: 18px;
}
#partner .btn-area {
  text-align: left;
}
@media screen and (min-width: 560px){
  .scene {
    width: 240px;
    height: 180px;
    perspective: 400px;
    perspective-origin: 50% 50%;
    margin: 0 auto 1em;
    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  .cube {
    width: 240px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    transition: transform 0.5s;
  }

  /* 2. HOVER時・クラス付与時のtranslateZと視点(perspective-origin)を調整 */
  /* 各面を正面に持ってきたとき、手前(Z=0)に来るよう調整 */
  .cube:hover,
  .cube.show-bottom {
    transform: translateZ(-100px) rotateX(90deg); 
  }
  .cube:hover + .scene, 
  .cube.show-bottom + .scene {
    perspective-origin: 50% 0; /* 視点を上にずらす (Y軸を0%に) */
  }

  .cube.show-front {
    transform: translateZ(-100px) rotateY(0deg); 
  }
  .cube.show-right {
    transform: translateZ(-150px) rotateY(-90deg); 
  }
  .cube.show-back {
    transform: translateZ(-100px) rotateY(-180deg);
  }
  .cube.show-left {
    transform: translateZ(-150px) rotateY(90deg); 
  }
  .cube.show-top {
    transform: translateZ(-100px) rotateX(-90deg); 
  }
  .cube.show-top + .scene {
      perspective-origin: 50% 100%; /* 視点を下にずらす (Y軸を100%に) */
  }

  /* 3. CUBE__FACEの共通設定（面ごとに上書き） */
  .cube__face {
    position: absolute;
    border: 1px solid black;
    font-weight: bold;
    color: white;
    text-align: center;
  }
  .cube__face .ttl {
    color: #fff;
    background: #29bdfd;
    border-radius: 20px;
    padding: 0.5em 1em;
  }

  /* 4. 各面のサイズと配置の調整 (幅300, 高さ200, 奥行き200の直方体) */
  .cube__face--front,
  .cube__face--back {
    width: 240px;
    height: 180px;
    line-height: 180px;
  }
  .cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
    background: rgba(255, 255, 255, 0.85);
  }
  .cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
    background: rgba(27, 179, 232, 0.7);
  }

  .cube__face--right,
  .cube__face--left {
    width: 200px;
    height: 180px;
    line-height: 180px;
  }
  .cube__face--right {
    transform: rotateY(90deg) translateZ(140px);
    background: rgba(46, 138, 209, 0.7);
  }
  .cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
    background: rgba(46, 138, 209, 0.7);
  }

  .cube__face--top,
  .cube__face--bottom {
    width: 240px;
    height: 200px;
    line-height: 200px;
  }
  .cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
    background: rgba(27, 88, 168, 0.7);
  }
  .cube__face--bottom {
    transform: rotateX(-90deg) translateZ(80px);
    background: rgba(46, 138, 209, 0.7);
  }

}
@media screen and (min-width: 768px) and (max-width: 907px) {
  #contact .dl .text-c {
    padding-bottom: 2em;
  }
}
@media screen and (min-width: 768px) {
  #top {
    padding-top: 0;
  }
  video {
    max-height: 560px;
    object-fit: cover;
  }
  #worry::after { 
    height: 100vh;
  }
  #worry ul li {
    width: 32%;
  }
  #worry ul li label p{
    padding-left: 2.5em;
  }
  .partsCheck+p {
    padding-left: 60px;
  }

  .partsCheck+p:before {
    width: 30px;
    height: 30px;
    border: 3px solid #ccc;
    top: 20%;
  }

  .partsCheck+p:hover:before {
    border-color: var(--check-color);
  }

  .partsCheck:checked+p:after {
    width: 20px;
    height: 32px;
    border-right: 6px solid var(--check-color);
    border-bottom: 6px solid var(--check-color);
    top: 0;
  }
  .triangle {
    /* background: linear-gradient(225deg, #0068b7, #29bdfd 70%, #1bb3e8 100%); */
    background: #fff;
  }

  /* box */
  .scene {
    width: 300px;
    height: 200px;
    perspective: 400px;
    perspective-origin: 50% 50%; /* <--- 追加 */

    -webkit-transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  .cube {
    /* width: 300px;
    height: 200px; */
    width: 100%;
    display: inline-block;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-100px);
    transition: transform 0.5s;
  }

  /* 2. HOVER時・クラス付与時のtranslateZと視点(perspective-origin)を調整 */
  .cube:hover,
  .cube.show-bottom {
    transform: translateZ(-100px) rotateX(90deg); 
  }
  .cube:hover + .scene, 
  .cube.show-bottom + .scene {
      perspective-origin: 50% 0;
  }

  .cube.show-front {
    transform: translateZ(-100px) rotateY(0deg); 
  }
  .cube.show-right {
    transform: translateZ(-150px) rotateY(-90deg); 
  }
  .cube.show-back {
    transform: translateZ(-100px) rotateY(-180deg);
  }
  .cube.show-left {
    transform: translateZ(-150px) rotateY(90deg); 
  }
  .cube.show-top {
    transform: translateZ(-100px) rotateX(-90deg); 
  }
  .cube.show-top + .scene {
      perspective-origin: 50% 100%;
  }

  .cube__face {
    position: absolute;
    border: 1px solid black;
    font-weight: bold;
    color: white;
    text-align: center;
  }
  .cube__face .ttl {
    color: #fff;
    background: #29bdfd;
    border-radius: 20px;
    padding: 0.5em 1em;
  }

  .cube__face--front,
  .cube__face--back {
    width: 300px;
    height: 200px;
    line-height: 200px;
  }
  .cube__face--front {
    transform: rotateY(0deg) translateZ(100px);
    background: rgba(255, 255, 255, 0.85);
  }
  .cube__face--back {
    transform: rotateY(180deg) translateZ(100px);
    background: rgba(27, 179, 232, 0.7);
  }

  .cube__face--right,
  .cube__face--left {
    width: 200px;
    height: 200px;
    line-height: 200px;
  }
  .cube__face--right {
    transform: rotateY(90deg) translateZ(200px);
    background: rgba(46, 138, 209, 0.7);
  }
  .cube__face--left {
    transform: rotateY(-90deg) translateZ(100px);
    background: rgba(46, 138, 209, 0.7);
  }

  .cube__face--top,
  .cube__face--bottom {
    width: 300px;
    height: 200px;
    line-height: 200px;
  }
  .cube__face--top {
    transform: rotateX(90deg) translateZ(100px);
    background: rgba(27, 88, 168, 0.7);
  }
  .cube__face--bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background: rgba(46, 138, 209, 0.7);
  }
  #worry .content-wrap.result-wrap {
    padding-top: 50px;
    margin-top: -50px;  
  }
  /* possible */
  .item-wrap .item {
    width: 24%;
  }
  /* case */
  /* news */
  /* column */
  /* faq */
  /* contact */
  #contact .content-wrap {
    padding: 200px 1em 60px;
  }
  #contact .content-inner {
    display: flex;
  }
  #contact .contact-dl {
    padding-bottom: 0;
  }
  #contact .content-inner > div {
    width: 48%;
    margin: 0 auto;
  }
  #contact .contact-area.mail {
    border-left: 2px dotted var(--main-color);
    margin-left: 0;
    padding-left: 1em;
  }
  /* partner */
}





