/* single-item.php
------------------------------------------------------------*/
#item-page #page-wrapper {
  padding-top: 0;
  border-bottom: 0;
  section:not(.item-intro) {
    padding-block: 5rem !important;
    @media screen and (max-width: 1023px) {
      padding-block: 3rem !important;
    }
  }
  section.item-intro {
    padding-bottom: 3rem;
    border-top: 0;
    padding-top: 0;
    header {
      padding-bottom: 2rem;
      border-bottom: 0;
    }
    .item-tags {
      margin-bottom: 0.5rem;
    }
    h1 {
      margin-bottom: 0.5rem;
      font-size: 3rem;
      line-height: 1.2;
      @media screen and (max-width: 640px) {
        font-size: 2rem;
      }
    }
    .item-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .tag-link {
      margin-block: 1.5rem 1rem;
      li {
        margin-bottom: 0.5rem;
        a {
          border-width: 2px;
          border-color: var(--blue);
        }
      }
    }
    > div {
      display: flex;
      justify-content: space-between;
      gap: 2rem;
      padding-top: 2rem;
      .intro-txt {
        max-width: 580px;
        width: 100%;
        @media screen and (max-width: 1023px) {
          padding-bottom: 2rem;
        }
        .tag-link {
          margin-block: 0;
        }
        p:not(:last-of-type) {
          margin-bottom: 1rem;
        }
        .btn-contact,
        .btn-dl {
          margin-top: 1rem;
        }
        .btn-spec:after {
          transform: rotate(135deg);
        }
        .btn-spec:hover:after {
          transform: translateY(3px) rotate(135deg);
        }
      }
      .sale-price {
        margin-top: 2rem;
        h3 {
          margin-bottom: 0.5rem;
          padding-bottom: 0.25rem;
          font-size: 1.25rem;
          border-bottom: 2px solid #000;
        }
      }
      .intro-img {
        width: 640px;
      }
    }
    @media screen and (max-width: 1023px) {
      > div {
        padding-top: 1rem;
        display: block;
        .intro-txt,
        .intro-img {
          width: 100%;
          max-width: initial;
        }
      }
    }
  }
  h2.wp-block-heading {
    margin-bottom: 2rem;
  }
  h2.wp-block-heading + .wp-block-columns {
    padding-top: 3rem;
    @media screen and (max-width: 767px) {
      padding-top: 1rem;
    }
  }
  h3.wp-block-heading {
    font-size: 2rem;
    border-bottom: 1px solid #000;
    @media screen and (max-width: 767px) {
      font-size: 1.4rem;
    }
  }
  .free-content {
    .wp-block-column {
      h3.wp-block-heading:not(:first-of-type) {
        margin-top: 3rem;
      }
      figure {
        margin: 0;
        img {
          border-radius: 10px;
          box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
        }
      }
    }
    figure.wp-block-table {
      padding-bottom: 3rem;
      td {
        border-bottom: 0 !important;
      }
    }
  }
  .package-items {
    figure {
      margin-bottom: 0 !important;
    }
    .list-card-page {
      padding-block: 3rem;
      grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
      .card {
        width: 18.5rem;
        h3 {
          margin: 0 !important;
          font-size: 1.25rem !important;
        }
        .thumb a:before {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          z-index: 1;
        }
      }
    }
    .are-vertically-aligned-center {
      scroll-margin-top: 10rem;
      padding: 0 0 0 2rem !important;
      margin-bottom: 2rem;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
      h3 {
        margin-bottom: 2rem;
      }
      img {
        border-radius: 0 10px 10px 0;
      }
      @media screen and (max-width: 781px) {
        padding: 1rem 0 0 !important;
        > div:first-of-type {
          padding: 0 1rem;
        }
        img {
          border-radius: 0 0 10px 10px;
        }
      }
    }
  }
  .estimated-cost {
    font-size: 2rem;
    em {
      font-size: 3rem;
      font-style: normal;
    }
  }
  #item-movie .display-flex {
    align-items: center;
    @media screen and (max-width: 781px) {
      display: block;
      > div {
        width: 100%;
        &:first-of-type {
          margin-bottom: 2rem;
        }
      }
    }
  }
  #spec {
    scroll-margin-top: 100px;
    dl {
      margin-inline: auto;
      max-width: 60rem;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 1rem 0;
      dt,
      dd {
        padding-top: 1rem;
        border-top: 1px solid var(--lightgray);
      }
      dt {
        padding-right: 3rem;
        color: var(--blue);
        font-weight: 700;
        @media screen and (min-width: 769px) {
          br {
            display: none;
          }
        }
      }
    }
  }
}
.item-name-contact-btn {
  justify-content: center;
}
.gallery-preview-container {
  .gallery-main-view {
    aspect-ratio: 4 / 3;
    width: 100%;
    margin-bottom: 1rem;
  }
  .gallery-thumbs {
    display: flex;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
  figure {
    aspect-ratio: 4 / 3;
    width: 100%;
    img {
      border-radius: 6px;
    }
  }
  img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: src 0.2s ease-in-out;
  }
}
.movie-txt {
  width: 50%;
}
.movie {
  width: 50%;
}
/* タブ切り替え */
.tab-menu-list {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  li {
    width: 200px;
    padding: 0.5rem 0.5rem 0.5rem 0;
    cursor: pointer;
    font-size: 1.125rem;
    border-bottom: 4px solid var(--lightgray);
    transition: 0.3s;
  }
  li.is-active {
    border-color: var(--orange);
  }
}
.tab-content-wrapper {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 4px solid var(--orange);
  border-radius: 10px;
  .tab-content-item {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: 0.3s;
  }
  .tab-content-item.is-active {
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
  }

  .tab-content-body {
    @media screen and (min-width: 641px) {
      display: flex;
      gap: 20px;
    }
  }
  .tab-content-img {
    margin: auto;
    flex: 1;
    max-width: 400px;
    @media screen and (max-width: 640px) {
      margin-bottom: 1rem;
    }
  }
  .tab-content-img img {
    width: 100%;
    height: auto;
  }
  .tab-content-text-area {
    flex: 1;
    .entry-content {
      padding-bottom: 0 !important;
    }
    ul {
      margin-block: 1rem 0 !important;
      padding-left: 1rem !important;
      li {
        margin-bottom: 0 !important;
      }
    }
  }
  h3,
  h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
}
