/* works下層ページ
------------------------------------------ */
.works-detail .works-box {
  gap: 2%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 60px 30px;
}
@media (max-width: 767px) {
  .works-detail .works-box {
    padding: 25px 10px;
  }
}
.works-detail .works-box-item {
  border: 1px solid var(--background);
  border-radius: 10px;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 843px) {
  .works-detail .works-box-item {
    padding: 25px 0px;
  }
}
.works-detail .works-box-item:hover {
  outline: 2.5px solid var(--background);
}
.works-detail .works-box-item p {
  padding-bottom: 95px;
}
@media (max-width: 767px) {
  .works-detail .works-box-item p {
    padding-bottom: 20px;
  }
}
.works-detail .works-bottom-box {
  max-width: 1340px;
  margin: 0 auto 20px;
  padding: 60px 30px;
}
@media (max-width: 767px) {
  .works-detail .works-bottom-box {
    padding: 60px 18px;
  }
}
.works-detail .works-bottom-box-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background);
  padding-left: 40px;
  margin: 10px 30px 35px;
  gap: 1%;
  width: auto;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-box-item {
    flex-direction: column;
    padding: 0px;
    margin: 10px 0px 35px;
  }
}
.works-detail .works-bottom-box-left {
  margin: 25px 0 25px 0;
  width: 50%;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-box-left {
    width: 100%;
    margin: 0px;
    padding: 20px 10px 20px 10px;
  }
}
.works-detail .works-bottom-box-left h3 {
  line-height: 0.5;
  margin-bottom: 20px;
  font-size: 4.8rem;
  letter-spacing: 10px;
  font-weight: 500;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-box-left h3 {
    font-size: 3.2rem;
  }
}
@media (max-width: 767px) {
  .works-detail .works-bottom-box-left h3 {
    font-size: 2.8rem;
  }
}
.works-detail .works-bottom-box-left h4 {
  font-size: 2.5rem;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-box-left h4 {
    font-size: 2.2rem;
  }
}
@media (max-width: 767px) {
  .works-detail .works-bottom-box-left h4 {
    font-size: 1.55rem;
  }
}
.works-detail .works-bottom-img {
  width: 48%;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-img {
    width: 100%;
  }
}
.works-detail .works-bottom-img img {
  height: 370px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: right;
     object-position: right;
}
@media (max-width: 843px) {
  .works-detail .works-bottom-img img {
    height: auto;
  }
}
.works-detail .works-box-item {
  box-sizing: border-box;
}

/* PRODUCTS下層ページ
------------------------------------------ */
.products-detail .products-detail-top {
  padding: 60px 0px;
}
@media (max-width: 843px) {
  .products-detail .products-detail-top {
    padding: 60px 30px;
  }
}
@media (max-width: 767px) {
  .products-detail .products-detail-top {
    padding: 20px 10px;
  }
}
.products-detail .products-detail-top h3 {
  font-size: 3.2rem;
  padding-bottom: 60px;
  padding-left: 30px;
}
@media (max-width: 843px) {
  .products-detail .products-detail-top h3 {
    font-size: 2.6rem;
    padding-bottom: 25px;
    padding-bottom: 60px;
    padding-left: 0px;
  }
}
.products-detail .products-top-box {
  display: flex;
  gap: 50px;
  text-align: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 50px;
  max-width: 1200px;
}
@media (max-width: 843px) {
  .products-detail .products-top-box {
    gap: 30px;
    padding: 0 5px;
  }
}
@media (max-width: 767px) {
  .products-detail .products-top-box {
    gap: 8px;
    padding: 0 5px;
  }
}
.products-detail .products-top-box-item {
  width: 33%;
}
@media (max-width: 767px) {
  .products-detail .products-top-box-item {
    width: 32%;
  }
}
.products-detail .products-top-box-item h4 {
  font-size: 2.6rem;
  text-align: center;
  display: inline-block;
  position: relative;
  padding-right: 30px;
}
@media (max-width: 843px) {
  .products-detail .products-top-box-item h4 {
    font-size: 2.3rem;
  }
}
@media (max-width: 767px) {
  .products-detail .products-top-box-item h4 {
    font-size: 1.5rem;
    line-height: 1.1;
  }
}
.products-detail .products-top-box-item h4::before,
.products-detail .products-top-box-item h4::after {
  content: "";
  position: absolute;
}
.products-detail .products-top-box-item h4::before {
  right: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--background);
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .products-detail .products-top-box-item h4::before {
    width: 15px;
    height: 15px;
  }
}
.products-detail .products-top-box-item h4::after {
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--main);
  border-right: 1px solid var(--main);
  transform: translateY(-50%) rotate(135deg);
}
@media (max-width: 767px) {
  .products-detail .products-top-box-item h4::after {
    right: 5px;
    top: 50%;
    width: 5px;
    height: 5px;
  }
}
.products-detail .products-top-box-item img {
  height: 190px;
}
@media (max-width: 843px) {
  .products-detail .products-top-box-item img {
    height: 118px;
  }
}
@media (max-width: 767px) {
  .products-detail .products-top-box-item img {
    height: 90px;
  }
}
.products-detail .products-top-img {
  background: var(--background);
  border-radius: 10px;
}
.products-detail .products-bottom-box {
  border: 1px solid #DDDCDC;
  border-radius: 10px;
  padding: 25px 6% 20px;
  margin: 40px 50px 0px;
}
@media (max-width: 843px) {
  .products-detail .products-bottom-box {
    margin: 25px 35px 0px;
  }
}
@media (max-width: 767px) {
  .products-detail .products-bottom-box {
    padding: 25px 15px 20px;
    margin: 20px 15px 0px;
  }
}
.products-detail .products-bottom-box-item ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 7%;
  padding: 15px 0 15px;
}
@media (max-width: 843px) {
  .products-detail .products-bottom-box-item ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}
@media (max-width: 767px) {
  .products-detail .products-bottom-box-item ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 20px;
  }
}
.products-detail .products-bottom-box-item-list {
  margin-bottom: 10px;
  border-bottom: 1px solid #DDDCDC;
  min-width: 0;
}
.products-detail .products-bottom-box-item p,
.products-detail .products-bottom-box-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.8;
}
.products-detail .products-img {
  margin-bottom: 15px;
}
.products-detail .products-img-top {
  -o-object-fit: contain;
     object-fit: contain;
}
.products-detail .products-img-bottom {
  background: var(--background);
  border-radius: 10px;
  margin-bottom: 15px;
  -o-object-fit: cover;
     object-fit: cover;
}
.products-detail-bottom {
  margin: 0 auto 100px;
  max-width: 1200px;
}



/*SERVICE下層ページ
------------------------------------------ */
.service-detail .service-container {
  margin: 0 20px;
}
.service-detail .service-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  gap: 6%;
  text-align: center;
  margin: 0 auto 70px;
  max-width: 1060px;
}
@media (max-width: 843px) {
  .service-detail .service-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 30px;
  }
}
@media (max-width: 767px) {
  .service-detail .service-box {
    padding: 0 10px;
  }
}
.service-detail .service-box-item h4 {
  font-size: 2rem;
  text-align: center;
  display: inline-block;
  position: relative;
  padding-right: 30px;
}
@media (max-width: 767px) {
  .service-detail .service-box-item h4 {
    font-size: 1.4rem;
    line-height: 1.1;
  }
}
.service-detail .service-box-item h4::before,
.service-detail .service-box-item h4::after {
  content: "";
  position: absolute;
}
.service-detail .service-box-item h4::before {
  right: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--background);
  transform: translateY(-50%);
}
@media (max-width: 767px) {
  .service-detail .service-box-item h4::before {
    width: 15px;
    height: 15px;
  }
}
.service-detail .service-box-item h4::after {
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--main);
  border-right: 1px solid var(--main);
  transform: translateY(-50%) rotate(135deg);
}
@media (max-width: 767px) {
  .service-detail .service-box-item h4::after {
    right: 5px;
    top: 50%;
    width: 5px;
    height: 5px;
  }
}
.service-detail .service-box-item p {
  text-align: left;
}
.service-detail .service-box-item img {
  height: 270px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 767px) {
  .service-detail .service-box-item img {
    height: 150px;
  }
}
@media (max-width: 767px) {
  .service-detail .service-box-item img {
    height: 145px;
  }
}
.service-detail .service-img {
  background: var(--background);
  border-radius: 10px;
}
.service-detail .service-img {
  margin-bottom: 15px;
}
.service-detail .service-img-top {
  -o-object-fit: contain;
     object-fit: contain;
}
.service-detail .service-text {
  display: none;
}
.service-detail .service-text p {
  padding-bottom: 10px;
}
.service-detail .service-text dl {
  text-align: left;
}
.service-detail .service-text dd {
  padding-bottom: 10px;
}
.service-detail .service-text ul {
  text-align: left;
  font-size: 1.5rem;
}
@media (max-width: 767px) {
  .service-detail .service-text ul {
    font-size: 1.2rem;
  }
}
.service-detail .service-text.is-open {
  display: block;
}
.service-detail h3 {
  margin: 40px 0 45px;
}
.service-detail .align {
  margin-bottom: 34px;
}
@media (max-width: 767px) {
  .service-detail .align {
    margin-bottom: 18px;
  }
}
.service-detail .js-toggle {
  color: var(--text);
  text-decoration: none;
}


/* MASSAGE 下層ページ
------------------------------------------ */
.massage-detail {
  padding: 40px 32px;
}
@media (max-width: 767px) {
  .massage-detail {
    padding: 40px 20px;
  }
}
.massage-detail .massage-box {
  display: flex;
  align-items: flex-start;
  gap: 2%;
  width: 100%;
  padding: 0;
}
@media (max-width: 843px) {
  .massage-detail .massage-box {
    flex-direction: column;
  }
}
.massage-detail .massage-box-image {
  position: relative;
  width: 38%;
}
@media (max-width: 843px) {
  .massage-detail .massage-box-image {
    width: 75%;
  }
}
.massage-detail .massage-box-image .cardboard1 {
  position: absolute;
  bottom: 28%;
  left: 8%;
  width: 25%;
  animation: katakata 6s infinite ease-in-out alternate;
  animation-delay: 0s;
}
.massage-detail .massage-box-image .cardboard2 {
  position: absolute;
  bottom: 64%;
  right: 32%;
  width: 25%;
  animation: katakata 6s infinite ease-in-out alternate;
  animation-delay: 1s;
}
.massage-detail .massage-box-image .cardboard3 {
  position: absolute;
  bottom: 65%;
  right: 1px;
  width: 19%;
  animation: katakata 6s infinite ease-in-out alternate;
  animation-delay: 2s;
}
.massage-detail .massage-box-item {
  padding: 10px;
  text-align: left;
  width: 60%;
}
@media (max-width: 843px) {
  .massage-detail .massage-box-item {
    width: 100%;
  }
}
.massage-detail .massage-text {
  letter-spacing: 2px;
  line-height: 2;
  padding-bottom: 20px;
}
@media (max-width: 843px) {
  .massage-detail .massage-img {
    width: 100%;
  }
}
.massage-detail h2 {
  margin-bottom: 25px;
}


/* COMPANY 下層ページ
------------------------------------------ */
.company-detail {
  padding: 40px 32px;
}
@media (max-width: 767px) {
  .company-detail {
    padding: 40px 20px 0;
  }
}
.company-detail .company-box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4%;
}
@media (max-width: 843px) {
  .company-detail .company-box {
    flex-direction: column;
  }
}
.company-detail .company-box-item-left {
  color: var(--main);
  width: 52%;
  padding: 10px 0px 110px;
}
@media (max-width: 843px) {
  .company-detail .company-box-item-left {
    width: 100%;
    padding: 10px 0px 50px;
  }
}
.company-detail .company-box-item-left h2 {
  line-height: 0.9;
  letter-spacing: 10px;
  margin-bottom: 20px;
}
.company-detail .company-box-item-right {
  width: 40%;
}
@media (max-width: 843px) {
  .company-detail .company-box-item-right {
    width: 100%;
    text-align: center;
  }
}
.company-detail .company-box-item-inner {
  display: flex;
  flex-wrap: wrap;
}
.company-detail .company-box-item-inner dt {
  border-bottom: 1px solid var(--main);
  padding: 10px 0 10px 15px;
  width: 30%;
}
.company-detail .company-box-item-inner dd {
  border-bottom: 1px solid var(--main);
  padding: 10px 0 10px 15px;
  width: 70%;
}
.company-detail .company-box-item-inner-dl {
  border-top: 1px solid var(--main);
}
.company-detail .company-img {
  padding-bottom: 50px;
}
@media (max-width: 843px) {
  .company-detail .company-img {
    width: 75%;
  }
}
@media (max-width: 767px) {
  .company-detail .company-img {
    padding-bottom: 5px;
  }
}
.company-detail .company-box-item .heading-sub {
  color: var(--main);
}

/* NEWS 一覧ページ ------------------------------------------ */
.news-detail {
  padding: 60px 30px;
}
@media (max-width: 843px) {
  .news-detail {
    padding: 60px 20px;
  }
}
@media (max-width: 767px) {
  .news-detail {
    padding: 30px 15px;
  }
}
.news-detail .news-more-btn {
  font-size: 1.6rem;
  position: relative;
}
.news-detail .news-more-btn::after {
  position: absolute;
  content: "";
  right: -14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--main);
  border-right: 1px solid var(--main);
  transform: translateY(-50%) rotate(135deg);
}
.news-detail .link-text {
  text-align: center;
}
.news-detail .news-link {
  gap: 3%;
}
@media (max-width: 767px) {
  .news-detail .news-link {
    gap: 8%;
  }
}

/* NEWS 個別ページ ------------------------------------------ */
.news-detail-single {
  padding: 20px 70px;
}
@media (max-width: 843px) {
  .news-detail-single {
    padding: 20px 25px;
  }
}
@media (max-width: 767px) {
  .news-detail-single {
    padding: 20px 20px;
  }
}
.news-detail-single .single-box-item {
  margin-bottom: 70px;
}
.news-detail-single .single-title {
  font-size: 2rem;
}
.news-detail-single .single-img {
  max-width: 580px;
  padding-bottom: 20px;
}
.news-detail-single .single-text {
  font-size: 1.6rem;
}
.news-detail-single .news-return {
  text-align: left;
}
.news-detail-single .news-link {
  align-items: flex-start;
}
@media (max-width: 767px) {
  .news-detail-single .news-link {
    flex-direction: column;
  }
}
.news-detail-single .btn-return {
  position: relative;
  padding: 0 0 0 88px;
}
@media (max-width: 767px) {
  .news-detail-single .btn-return {
    padding: 0 0 0 40px;
  }
}
.news-detail-single .btn-return::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 1.5px;
  height: 12px;
  background: var(--main);
  transform: skewX(138deg);
}
@media (max-width: 767px) {
  .news-detail-single .btn-return::before {
    bottom: 6px;
    left: 4px;
    width: 1.5px;
    height: 8px;
  }
}
.news-detail-single .btn-return::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 2px;
  width: 70px;
  height: 1.1px;
  background: var(--main);
}
@media (max-width: 767px) {
  .news-detail-single .btn-return::after {
    bottom: 6px;
    left: 2px;
    width: 30px;
    height: 1px;
  }
}
.news-detail-single .news-link {
  gap: 3%;
}
.news-detail-single .date {
  white-space: nowrap;
}
