/* TOPページCSS */
#topic_post {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  li {
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #000;
    &:first-child {
      border-top: 1px solid #000;
    }
    &:hover {
      opacity: 0.8;
    }
    a {
      padding: 10px 0;
    }
    .date {
      display: inline-block;
      width: 100px;
      font-family: "Zen Kaku Gothic New";
      text-align: center;
      font-size: 16px;
      letter-spacing: 2px;
      margin: 0 20px 0 40px;
      @media screen and (max-width: 1024px) {
        margin: 0;
      }
    }
    .category {
      display: inline-block;
      width: 100px;
      font-family: "Zen Kaku Gothic New";
      text-align: center;
      font-size: 16px;
      letter-spacing: 2px;
      margin: 0 20px;
      padding: 5px;
      color: #fff;
      @media screen and (max-width: 768px) {
        margin: 0 5px;
      }
      &.news {
        background-color: #007098;
      }

      &.csr {
        background-color: #9b9b9b;
      }
    }
    .topic_title {
      font-family: "Zen Kaku Gothic New";
      font-size: 16px;
      letter-spacing: 2px;
      display: inline-block;
      vertical-align: middle;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 60%;
      @media screen and (max-width: 768px) {
        margin-top: 5px;
        max-width: 85%;
      }
    }
  }
}
.news_archive_button {
  width: 300px;
  display: block;
  margin: 20px auto;

  a {
    display: flex;
    font-family: "Zen Kaku Gothic New";
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 20px;
    position: relative;
    font-size: 14px;
    gap: 10px;

    &::after {
      content: "＞";
      font-size: 10px;
      color: inherit;
    }
  }
  &:hover {
    background-color: #f5f5f5;
  }
}

.button_container {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 10px;
  width: 1000px;
  @media screen and (max-width: 1024px) {
    bottom: 0;
    top: 50%;
    width: 250px;
  }
  @media screen and (max-width: 768px) {
    width: 140px;
  }
  a {
    width: calc(15% - 15px);
    text-align: center;
    @media screen and (max-width: 1024px) {
      width: calc(50% - 5px);
    }
    img {
      width: 100%;
      height: auto;
      opacity: 1;
      &:hover {
        opacity: 0.8;
      }
    }
  }
  &.service_pc {
    width: 900px;
    @media screen and (max-width: 1024px) {
      display: none;
    }
  }
  &.service_sp {
    display: none;
    @media screen and (max-width: 1024px) {
      display: flex;
      position: static;
      width: 100%;
      transform: none;
      margin: 30px auto;
      a {
        width: calc(22% - 5px);
      }
    }
  }
}

.recruit_image {
  margin-top: 50px;
  width: 100%;
  height: auto;
  opacity: 1;
  transition-duration: 0.5s;
  transition: transform 0.3s ease-in-out;
  &:hover {
    opacity: 0.8;
    transform: scale(1.025, 1.025);
    transition-duration: 0.5s;
  }
}
/* TOPページCSS ここまで */

/* 動画CSS */
#player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
  margin-bottom: 30px;
  .top_movie {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    @media screen and (max-width: 1024px) {
      height: 120%;
    }
  }
  &.std_movie{
    margin: 0;
  }
  .cover_block {
    position: absolute;
    background-color: #fff;
    width: 100vw;
    height: 50px;
    bottom: 0px;
    translate: 0% 0%;
    @media screen and (max-width: 1024px) {
      height: 20px;
    }
  }
  #mute_toggle {
    pointer-events: auto;
    position: absolute;
    bottom: 50px;
    translate: -50% -50%;
    left: 50%;
    padding: 10px 50px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    @media screen and (max-width: 1024px) {
      padding: 10px 10px;
      text-align: center;
      left: 15%;
      bottom: 15px;
    }
  }
}

#parallax {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;

  .parallax-wrapper {
    position: relative;
    height: auto;
    z-index: 0;

    .parallax-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 200%;
      background-image: url("../images/parallax_image.webp");
      filter: brightness(75%);
      background-size: cover;
      background-position: center;
      transform: translateY(0);
      z-index: 1;
      @media screen and (max-width: 1024px) {
        width: 280%;
        height: 270%;
      }
    }

    .parallax-title {
      z-index: 2;
      position: absolute;
      color: #ffffff;
      top: 20%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 50px;
      width: 100%;
      text-align: center;
      @media screen and (max-width: 1024px) {
        top: 10%;
        width: 90%;
        margin: auto;
        transform: translate(-50%, -0%);
      }
    }

    .parallax-title h2 {
      font-size: 40px;
      font-weight: bold;
      @media screen and (max-width: 1024px) {
        font-size: 30px;
      }
    }

    .fixed-content {
      position: sticky;
      top: 0;
      height: 70vh;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      z-index: 2;
      margin: auto;
      width: 90%;
      max-width: 1000px;
      @media screen and (max-width: 1024px) {
        width: 350px;
        position: relative;
        display: grid;
        padding: 200px 0px 100px;
        height: auto;
        gap: 10px;
      }

      a {
        flex: 1;
        text-align: center;
        width: 200px;
        @media screen and (max-width: 1024px) {
          width: calc(50% - 15px);
        }
        img {
          width: 100%;
          height: auto;
          border-radius: 8px;
          opacity: 0.95;
          transition: opacity 0.3s;
          transition-duration: 0.5s;
          transition: transform 0.3s ease-in-out;
          &:hover {
            opacity: 0.8;
            transform: scale(1.1,1.1);
            transition-duration: 0.5s;
          }
        }
      }
    }
    .fixed-content-item {
      display: flex;
      gap: 15px;
      @media screen and (max-width: 1024px) {
        gap: 10px;
      }
    }
  }
}

.pickup_button_container {
  background-color: #005bac;
  padding: 80px 0 100px;
  text-align: center;
  @media screen and (max-width: 1024px) {
    padding: 40px 0 100px;
  }
  .pickup_button {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    bottom: 5%;
    left: 50%;
    gap: 15px;
    width: 1000px;
    @media screen and (max-width: 1024px) {
      width: 350px;
      gap: 10px;
    }
    a {
      width: 200px;
      text-align: center;
      @media screen and (max-width: 1024px) {
        width: calc(50% - 15px);
      }
      img {
        width: 100%;
        height: auto;
        opacity: 1;
        transition-duration: 0.5s;
        transition: transform 0.3s ease-in-out;
        &:hover {
          opacity: 0.8;
          transform: scale(1.1,1.1);
          transition-duration: 0.5s;
        }
      }
    }
  }
}
.recruitment_header_contents {
  text-align: center;
  margin: 100px auto auto;

  h3 {
    margin-top: -20px;
  }
}

.fancybox_movie_thumbnail {
  margin: 50px auto;
  img {
    display: block;
    margin: 10px auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    opacity: 1;
    &:hover {
      opacity: 0.8;
    }
  }
}
/* 動画CSS ここまで */

/* 下層ページ共通CSS */
.header_background {
  width: 100%;
  height: auto;
  &.news-archive-header{
    margin-top: 50px;
  }
}
/* 下層ページ共通CSS ここまで */

/* SDGsCSS */
.sdgs_declaration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 38px;
  img {
    width: 384px;
    height: auto;
    margin-right: 96px;
    @media screen and (max-width: 1024px) {
      width: 260px;
      margin-right: 0;
    }
  }
}
.sdgs_declaration_text {
  p {
    font-family: "Zen Antique";
  }
}
.sdgs_initiative {
  margin: 96px 0 38px;
  letter-spacing: 19px;
  @media screen and (max-width: 1024px) {
    letter-spacing: 1px;
  }
}
.sdgs_details {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 96px;
  @media screen and (max-width: 1024px) {
    display: block;
  }
  .sdgs_details_text {
    width: 480px;
    @media screen and (max-width: 1024px) {
      width: 100%;
      margin: 0 auto;
    }
    h4 {
      font-family: "Zen Old Mincho";
      border-bottom: 1px solid #000;
      padding-bottom: 38px;
      margin-bottom: 38px;
    }
    p {
      text-align: left;
    }
    .sdgs_action_details {
      display: block;
      width: fit-content;
      padding: 5px;
      margin: 19px 0;
      background-color: #035884;
      color: #fff;
    }
  }
  img {
    width: 326px;
    margin: 77px 0 0 38px;
    @media screen and (max-width: 1024px) {
      width: 80%;
      margin-left: 0;
    }
  }
  ul {
    text-align: left;
    list-style-position: outside;
    padding-left: 1.2em;
  }

  ul li {
    display: list-item;
    list-style-type: disc;
  }

  ul li p {
    display: inline;
    margin: 0;
  }
}

.return_archive,
.sdgs_intro {
  margin: 75px auto 0;
  img {
    width: 80%;
    height: auto;
    margin-bottom: 30px;
  }
  h4 {
    margin: 50px auto 10px;
  }
  p {
    width: 60%;
    margin: 0 auto 50px;
    text-align: left;
    @media screen and (max-width: 1024px) {
      width: 100%;
    }
  }
  button {
    display: block;
    margin: 20px auto;
    text-align: center;
    background-color: #035884;
    color: #fff;
    width: 150px;
    height: 50px;
    padding: 5px;
    border-radius: 20px;
  }
}
/* SDGsCSS ここまで */

/* 投稿一覧CSS */
#topic_archive {
  margin: 80px 0;
  text-align: left;
  li {
    opacity: 1;
    border-bottom: 1px solid #000;
    &:first-child {
      border-top: 1px solid #000;
    }
    a {
      padding: 20px 0;
      @media screen and (max-width: 768px) {
        padding: 15px 0;
      }
    }
    .date {
      font-family: "Zen Kaku Gothic New";
      font-size: 16px;
      letter-spacing: 2px;
    }
    .category {
      display: inline-block;
      width: 100px;
      font-family: "Zen Kaku Gothic New";
      text-align: center;
      font-size: 16px;
      letter-spacing: 2px;
      margin: 0 20px;
      padding: 10px;
      color: #fff;
      @media screen and (max-width: 768px) {
        padding: 5px;
        margin: 5px 5px;
      }
      &.news {
        background-color: #007098;
      }

      &.csr {
        background-color: #9b9b9b;
      }
    }
    .topic_title {
      font-family: "Zen Kaku Gothic New";
      font-size: 16px;
      letter-spacing: 2px;
      display: inline-block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 65%;
      @media screen and (max-width: 768px) {
        max-width: 100%;
        font-size: 18px;
      }
    }
  }
}
/* 投稿一覧CSS ここまで */

/* 投稿ページCSS */
#submission_title {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 80px auto;
  padding-top: 80px;
  padding-bottom: 80px;
  .date {
    font-family: "Zen Kaku Gothic New";
    font-size: 18px;
    letter-spacing: 2px;
  }
  .category {
    display: inline-block;
    width: 100px;
    font-family: "Zen Kaku Gothic New";
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0 20px;
    padding: 10px;
    color: #fff;
    @media screen and (max-width: 768px) {
      padding: 5px;
      margin: 5px 5px;
    }
    &.news {
      background-color: #007098;
    }

    &.csr {
      background-color: #9b9b9b;
    }
  }
  .topic_title {
    font-family: "Zen Kaku Gothic New";
    font-size: 22px;
    letter-spacing: 2px;
    display: inline-block;
    text-align: left;
    max-width: 80%;
    @media screen and (max-width: 768px) {
      font-size: 18px;
    }
  }
}
#topic_content {
  text-align: left;
  img {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }
  .wp-video {
    width: 100%;
    height: auto;
    margin: 10px auto;
  }
}

.post_navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 100px 0;
}

.post_navigation .prev_post,
.post_navigation .next_post {
  display: inline-block;
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid #4991a6;
  color: #4991a6;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s ease-in-out;
  @media screen and (max-width: 1024px) {
    display: none;
  }
  &:hover {
    background-color: #e6f2fb;
  }
}

.page_numbers {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  @media screen and (max-width: 1024px) {
    gap: 4px;
  }
  .page_number {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #4991a6;
    color: #4991a6;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    @media screen and (max-width: 1024px) {
      padding: 6px 8px;
    }
    &:hover {
      background-color: #e6f2fb;
    }
    &.current {
      background-color: #4991a6;
      color: #fff;
      font-weight: bold;
      border-color: #4991a6;
    }
  }
  .page_dots {
    padding: 6px 10px;
    color: #4991a6;

    @media screen and (max-width: 1024px) {
      padding: 6px 5px;
    }
  }
}

.category_buttons {
  display: grid;
  margin: 0 auto;
  gap: 10px;
  width: 1024px;
  border-top: 5px solid #d9d9d9;
  border-left: 5px solid #d9d9d9;
  border-right: 5px solid #d9d9d9;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 75px 50px 0 50px;
  grid-template-columns: repeat(3, 1fr);
  @media screen and (max-width: 1024px) {
    width: 100%;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 40px 25px 0 25px;
    grid-template-columns: repeat(2, 1fr);
  }
  a {
    font-size: 21px;
    font-family: "Zen Kaku Gothic New";
    border-radius: 8px;
    background-color: #d9d9d9;
    color: #fff;
    border: none;
    padding: 30px 15px;

    &:hover,
    &.active {
      background-color: #15638c;
    }
  }
}
/* 投稿ページCSS ここまで */

/* 施工実績CSS */
.slider {
  overflow: hidden;
  margin-bottom: 80px;
  @media screen and (max-width: 1024px) {
    margin-bottom: 50px;
  }

  .slider_container {
    display: flex; /* 横並びに */
    gap: 20px; /* JSの +20 と一致 */
    will-change: transform;
    flex: 0 0 auto; /* 幅が潰れない */

    .slider_item {
      flex: 0 0 auto;
      width: 100px;
      margin-right: 20px;
      border-radius: 8px;
      overflow: hidden;
      p {
        font-size: 14px;
        text-align: center;
        margin-top: 10px;
      }
    }

    ul.work_slider {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 10px;
    }

    li {
      flex: 0 0 auto;
      scroll-snap-align: center;
      text-align: center;
    }

    img {
      display: block; /* 画像の下の余白対策 */
      max-width: 100%;
      height: 100px;
      object-fit: contain;
    }

    .prev_btn,
    .next_btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px;
      cursor: pointer;
    }

    .prev_btn {
      left: 10px;
      z-index: 10;
    }

    .next_btn {
      right: 10px;
      z-index: 10;
    }
  }
}

/* 施工実績CSS */
.slider_container {
  position: relative;
  width: 100%;
  margin: auto;
  display: none;

  @media screen and (max-width: 768px) {
    display: block;
  }

  ul.work_slider {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
  }

  li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
  }

  img {
    width: 90%;
    height: auto;
    display: block;
    margin: auto;
  }

  .prev_btn,
  .next_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
  }

  .prev_btn {
    left: 10px;
    z-index: 10;
    display: none;
  }

  .next_btn {
    right: 10px;
    z-index: 10;
    display: none;
  }
}


.image_grid {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  @media screen and (max-width: 768px) {
    gap: 0px;
  }
  .row {
    position: relative;
    display: flex;
    justify-content: center;
    @media screen and (max-width: 768px) {
      display: block;
    }
    &.image_row {
      display: flex;
      @media screen and (max-width: 768px) {
        display: none;
      }
    }
    .std_title{
      margin-bottom: 20px;
      @media screen and (max-width: 768px) {
        text-align: center;
        padding: 0 5%;
      }
    }
    .works_detail {
      opacity: 1;
      width: calc(100% / 6);
      &:hover {
        opacity: 0.8;
      }
      &.std {
        background-color: #d9d9d9;
        &:hover {
          opacity: 1;
        }
      }
      .image {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          display: block;
        }
      }
      .image_wrapper {
        position: relative;
        overflow: hidden;
        @media screen and (max-width: 768px) {
          display: none;
        }
        .image {
          img {
            display: block;
            width: 100%;
            height: auto;
          }
        }
        .works_detail_text {
          margin: 0;
          font-size: 16px;
          color: #000;
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
        .arrow {
          font-size: 18px;
        }
        &:hover .works_detail_overlay {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .works_detail_overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.7);
        padding: 10px 16px;
        box-sizing: border-box;
        opacity: 0;
        transform: translateY(100%);
        transition: opacity 0.3s ease, transform 0.3s ease;
      }
    }
  }
  .std_header_second_text {
    text-align: center;
    padding: 20px 0;
    @media screen and (max-width: 768px) {
      padding: 5% 8%;
      text-align: left;
    }
  }
  .works_category_row {
    display: flex;
    justify-content: center;
    position: relative;
    @media screen and (max-width: 768px) {
      &.std_block {
        display: block;
      }
    }
  }
  .std_header_text {
    width: 100%;
    text-align: center;
    @media screen and (max-width: 768px) {
      font-size: 18px;
    }
    .big_text {
      font-size: 24px;
      @media screen and (max-width: 768px) {
        font-size: 20px;
      }
    }
  }
  .works_category {
    display: flex;
    justify-content: center;
    width: 50%;
    opacity: 1;
    &:hover {
      opacity: 0.8;
    }
    &.std {
      width: 100%;
      &:hover {
        opacity: 1;
      }
    }
    @media screen and (max-width: 768px) {
      display: block;
      &.only_pc {
        display: none;
      }
    }
  }
  .image {
    flex: 1;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      display: block;
    }
  }
  .bg_box {
    flex: 1;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    @media screen and (max-width: 768px) {
      padding: 10px;
    }
  }
  .color_1 {
    background-color: #807773;
    color: #fff;
    font-size: 24px;
    text-decoration: underline;
  }

  .color_2 {
    background-color: #7f8390;
    color: #fff;
    font-size: 24px;
    text-decoration: underline;
  }

  .color_4 {
    background-color: #fff;
    color: #000;
    @media screen and (max-width: 768px) {
      display: none;
    }
    &:hover {
      background-color: #e4e4e4;
    }
    &.std {
      background-color: #fbf3dd;
      &:hover {
        opacity: 1;
      }
    }
  }

  .color_4_sp {
    background-color: #fff;
    color: #000;
    display: none;
    @media screen and (max-width: 768px) {
      display: flex;
      padding: 60px 0px;
      font-size: 24px;
    }
    &:hover {
      background-color: #e4e4e4;
    }
  }
}

.construction_record {
  display: flex;
  width: 800px;
  justify-content: center;
  margin: 20px auto;
  @media screen and (max-width: 768px) {
    width: 100%;
    justify-content: space-around;
  }
  .facility_name {
    font-weight: bold;
    width: 100%;
    text-align: center;
  }
}
.main_image {
  text-align: center;
  margin: 50px auto;
  img {
    display: block;
    margin: 0 auto;
    width: 60%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 20px;
    @media screen and (max-width: 768px) {
      width: 90%;
    }
  }
}

.main_image {
  text-align: center;
  margin: 80px auto 0;
  @media screen and (max-width: 768px) {
    width: 90%;
  }
  .img_wrap {
    display: inline-block;
    max-width: 60%;
    height: 500px;
    overflow: hidden;

    @media screen and (max-width: 768px) {
      max-width: 90%;
      height: auto;
    }
  }

  img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}

.works_archive {
  background-color: #e9ebf6;
  padding: 50px 0;
  text-align: center;
  @media screen and (max-width: 768px) {
    padding: 20px;
  }
  .works-tag-filter{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
    justify-content: center;
    align-items: center;
  }
  .contents {
    display: flex;
    gap: 15px;
    margin: 50px auto 0;
    width: 80%;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
    &::after{
      content:"";
      display: block;
      width: calc((100% - 40px) / 3);
    }
    .works_archive_detail {
      opacity: 1;
      width: calc((100% - 40px) / 3);
      @media screen and (max-width: 1024px) {
        width: calc((100% - 45px) / 4);
      }
      @media screen and (max-width: 768px) {
        width: calc((100% - 15px) / 2);
      }
      &:hover {
        opacity: 0.8;
      }
      .image {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          display: block;
        }
      }
      p {
        font-size: 14px;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }
.works-sub-title{
  font-size: clamp(18px, 2.8vw, 28px);
    @media screen and (max-width: 1024px) {
      padding: 60px 0 0;
    }
}
.tag-chip {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: 9999px;
  border: none;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: all .2s ease;
}

.tag-chip:hover {
  border-color: #666;
  background: #f5f5f5;
}

.tag-chip.is-active {
  background-color: #15638c;
  border-color: #15638c;
  color: #fff;
  opacity: 0.9;
}
  #load_more_btn {
    display: inline-flex;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #d9d9d9;
    border-radius: 20px;
    &:hover ;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
{
      background-color: #15638c;
      color: #fff;
    }
    .arrow {
      margin-left: 0.5em;
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 6px solid currentColor;
    }
  }
}
/* 施工実績CSS ここまで */

/* お問い合わせCSS */
#contact {
  @media screen and (max-width: 1024px) {
    .privacy_policy {
      p {
        letter-spacing: -1.5px;
      }
    }
  }
  .contact_content {
    display: grid;
    justify-items: center;
    margin: 0;
    padding: 0px 0;

    .form-row {
      display: flex;
      width: 880px;
      margin: 0 0 25px 0;
      justify-content: flex-start;
      gap: 50px;
      @media screen and (max-width: 1024px) {
        display: block;
        width: 80%;
        max-width: unset;
      }

      .title_indispensable {
        display: flex;
        width: 200px;
        @media screen and (max-width: 1024px) {
          margin-bottom: 5px;
          display: block;
        }
      }

      .indispensable {
        padding: 0px 5px;
        margin: auto 0 5px 10px;
        background-color: #ff2121;
        color: #fff;
        border-radius: 20px;
        font-weight: 100;
        font-size: 14px;
        @media screen and (max-width: 1024px) {
          text-align: left;
          padding: 0px 5px;
        }
      }

      .contact_title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 200px;
        height: 40px;
        color: #000000;
        padding-left: 10px;
        border-radius: 2px;
        font-weight: bold;
        flex-shrink: 0;
        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .form-input {
        flex: 1;
        text-align: left;
        input,
        select,
        textarea {
          font-weight: bold;
          border: 1px solid;
          padding: 10px;
          font-size: 16px;
          min-height: 40px;
          border-radius: 10px;
          border-color: #d2d2d2;
        }

        .wpcf7-text,
        .wpcf7-email,
        .wpcf7-tel,
        .wpcf7-textarea,
        .wpcf7-select {
          width: 600px;
          @media screen and (max-width: 1024px) {
            width: 100%;
          }
        }

        .wpcf7-radio {
          display: flex;
          gap: 1em;
          align-items: center;
        }

        &.postal_code {
          display: flex;
          gap: 10px;
          p {
            margin: auto 0;
          }
          .wpcf7-text {
            width: 200px;
          }
        }
      }

      .contact_small_title {
        font-size: 14px;
        color: #333;
        margin-bottom: 5px;
      }

      .dummy {
        visibility: hidden;
        @media screen and (max-width: 1024px) {
          display: none;
        }
      }
    }
  }

  .scroll_box {
    width: 700px;
    max-height: 300px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 10px 0px;
    margin: 30px auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    @media screen and (max-width: 1024px) {
      max-width: 600px;
      width: 100%;
      margin-bottom: -40px;
    }

    p {
      text-align: left;
      width: 600px;
      line-height: 1.3;
      font-size: 18px;
      font-style: normal;
      font-weight: 500;
      @media screen and (max-width: 1024px) {
        width: 85%;
        font-size: 15px;
      }
    }
  }

  .acceptance-wrap {
    display: grid;
    justify-items: center;
    .wpcf7-acceptance {
      .wpcf7-list-item {
        margin: 0;

        label {
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        span {
          border: 1px solid #d9d9d9;
          padding: 10px 20px;
          margin-top: 20px;
          border-radius: 10px;

          &:hover {
            background-color: #333;
            color: #fff;
          }
        }
      }
    }
  }

  input[type="checkbox"] {
    width: 30px;
    height: 30px;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    background: linear-gradient(90deg, #fdfbfb 0.29%, #f3f3f3 100%);
    appearance: none;
    position: relative;
    cursor: pointer;

    &:checked::before {
      content: "✔";
      font-size: 20px;
      color: #ed2e2e;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

  .confirmation_message {
    text-align: center;
    margin: 30px auto;
    @media screen and (max-width: 1024px) {
      width: 80%;
    }
  }

  .waiting_info {
    text-align: center;
    @media screen and (max-width: 1024px) {
      width: 80%;
      margin: 0 auto;
    }

    p {
      display: inline-block;
      border: 2px solid #c1c1c1;
      padding: 15px;
    }
  }

  .submit_button {
    p {
      margin: 100px auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      @media screen and (max-width: 1024px) {
        margin: 50px auto;
      }
    }
  }

  .wpcf7 {
    input[type="submit"] {
      margin: 0 auto;
      width: 240px;
      height: 80px;
      background-size: contain;
      color: #fff;
      font-size: 24px;
      text-align: center;
      cursor: pointer;
      background-color: #000;
      border-radius: 10px;
      @media screen and (max-width: 1024px) {
        font-size: 20px;
        width: 130px;
        height: 80px;
      }

      &:hover {
        opacity: 0.8;
      }
      &:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
      }
    }
  }
}
/* お問い合わせCSS ここまで */

/* ダウンロードCSS */
.download_contents {
  margin-top: 100px;
}
  /* アコーディオンのCSS */
  .accordion_container {
    max-width: 650px;
    margin: 0 auto;
    padding: 30px 0px 0px;

    .accordion_container:last-of-type {
      padding-bottom: 50px;
    }

    .accordion_item {
      border-bottom: solid 1px;
      padding-bottom: 10px;
      position: relative;
      @media screen and (max-width: 768px) {
      border: none;
    }
    }
  }

  /* ヘッダー */
  .accordion_header {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
  }

  .accordion_header_left {
    display: flex;
    justify-content: left;
    align-items: center;
  }

  /* ダウンロードテキスト */
  .download_text {
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    background-color: #4a86a4;
    margin-right: 15px;
    @media screen and (max-width: 1024px) {
      font-size: 12px;
    }
  }

  /* セクション名テキスト */
  .accordion_text {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    @media screen and (max-width: 1024px) {
      font-size: 16px;
    }
  }

  .accordion_icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    position: relative;
    margin-top: 5px;
    right: 0;
    position: absolute;
  }

  /* バーのスタイル */
  .bar {
    background-color: #000;
    height: 2px;
    width: 15px;
    transition: all 0.3s ease;
  }

  /* 初期状態で「＋」の形 */
  .bar1 {
    transform: translateY(350%) rotate(0deg);
  }

  .bar2 {
    transform: translateY(-500%) rotate(90deg);
  }

  /* ヘッダーがクリックされたときにバーが動く（✕の形に） */
  .accordion_toggle:checked + .accordion_header .accordion_icon .bar1 {
    transform: translateY(8px) rotate(180deg);
  }

  .accordion_toggle:checked + .accordion_header .accordion_icon .bar2 {
    display: none;
  }

  /* アコーディオンのコンテンツ部分 */
  .accordion_content {
    display: none;
    padding: 10px 30px;
    background-color: #ffffff;
    color: #15638c;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    @media screen and (max-width: 1024px) {
      padding: 10px 5px;
      margin-left: 0;
    }

    a {
      margin: 10px 0 20px;
    }

    p {
      color: #000;
    }

    &.no_background {
      margin-left: 95px;
      color: #000;
      border: none;
      background: none;
      @media screen and (max-width: 1024px) {
        margin-left: 0;
      }
    }
  }

  .accordion_toggle:checked + .accordion_header + .accordion_content {
    display: block;
  }

  .accordion_toggle {
    display: none;
  }

  /* アコーディオン内アコーディオン */
  .nested_accordion_item {
    /* 親より左にずらす量 */
    margin-bottom: 10px;
  }

  /* ラベルのフォントサイズだけ小さく */
  .nested_header {
    padding: 10px 15px;
    font-size: 16px;
    @media screen and (max-width: 1024px) {
      padding: 10px 5px;
    }
    /* 背景透過のまま、hover時の色変化も流用可能 */
  }

  /* 中身は親と同じ構造を使いつつ位置と余白を調整 */
  .nested_content {
    margin-left: 25px;
    /* 親のpadding/marginと合わせて調整 */
    padding: 10px 15px;
    /* 親と同じpadding */
    background-color: #ffffff;
    color: #15638c;
    /* 青文字 */
    font-size: 18px;
    /* 必要なら調整 */
    font-weight: bold;
    @media screen and (max-width: 1024px) {
      margin-left: 0;
    }
  }

  /* リンクの縦並びマージンは親に合わせる */
  .nested_content a {
    display: block;
    margin: 10px 0 20px;
  }

  /* アイコン回転は親と同じ */
  .nested_toggle:checked + .nested_header .bar1 {
    transform: translateY(8px) rotate(45deg);
  }

  .nested_toggle:checked + .nested_header .bar2 {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ダウンロードCSS ここまで */

/* タブ切り替えCSS */
.hidden {
  display: none;
}

.tab_content {
  margin: 80px auto;
  text-align: left;
  width: 100%;
  @media screen and (max-width: 1024px) {
    width: 100%;
  }

  .image_large {
    display: flex;
    width: 100%;
    height: auto;
    margin: 50px auto;
    @media screen and (max-width: 1024px) {
      display: block;
      margin: 40px auto;
    }
    img {
      width: 100%;
      height: auto;
    }
    .architecture-bim-img{
      width: 100%;
        img{
            height: 512px;
            object-fit: cover;
        }
      }
  }

  .image_medium {
    display: block;
    width: 80%;
    height: auto;
    margin: 80px auto;

    @media screen and (max-width: 1024px) {
      margin: 40px auto;
    }
  }

  .item_title {
    color: #15638c;
    font-weight: 700;
    margin: 10px auto 10px 0;
    width: 470px;

    @media screen and (max-width: 1024px) {
      width: 100%;
    }
  }

  .item_content {
    display: flex;
    gap: 20px;
    margin: 10px auto;

    @media screen and (max-width: 1024px) {
      display: block;
    }

    .item_list {
      list-style: disc;

      li {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.7;
        margin-left: 1em;
        width: 470px;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }
    }

    .image_content {
      display: flex;
      align-items: end;
      gap: 5px;

      @media screen and (max-width: 1024px) {
        align-items: start;
        margin: 20px auto;
      }

      .wrapper1 img {
        width: 200px;
        height: auto;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .wrapper2 img {
        width: 160px;
        height: auto;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .wrapper3 img {
        width: 145px;
        height: auto;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .wrapper4 img {
        width: 180px;
        height: auto;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .wrapper5 img {
        width: 170px;
        height: auto;

        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      p {
        font-size: 14px;
      }
    }
  }

  .archive_section {
    border: 5px solid #d9d9d9;
    border-radius: 20px;
    display: flex;
    padding: 50px 70px;
    gap: 150px;
    margin-bottom: 50px;
    @media screen and (max-width: 1024px) {
      padding: 40px;
      display: block;
    }
    .image {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      img {
        width: 200px;
        height: auto;
        margin-bottom: 10px;
      }
    }
    ul {
      display: flex;
      flex-direction: column;
      justify-content: center;
      list-style: disc;
      @media screen and (max-width: 1024px) {
        margin: 20px auto;
      }
      li {
        margin-bottom: 10px;
        font-size: 24px;
        @media screen and (max-width: 1024px) {
          font-size: 18px;
        }
      }
    }
  }

.wrap{
  max-width:1040px;
  margin:40px auto;
  padding:0 20px;
  @media screen and (max-width: 1024px) {
    padding: 0;
  }
}

/* 各行の2カラム */
.benefit{
  display:grid;
  grid-template-columns: 400px 1fr;
  gap:22px;
  align-items:stretch;
  margin-bottom:18px;
}

.card-left{
  border: 2px solid #518cab;
  border-radius: 5px;
  padding: 0 20px;
  background: #fff;
  display: flex;
  align-items: center;
}

.num{
  font-weight: 800;
  font-size: 30px;
  color: #518cab;
}
.benefit{
  .card-left{
    .heading{
      text-align: left;
      font-weight: 800;
      font-size: 20px;
      letter-spacing: .02em;
      color: #518cab;
      line-height: 1.4;
      display: grid;  
      grid-template-columns: 10px 1fr;
      column-gap: 20px;
      width: 100%;
      justify-self: start;
      align-items: center;
      margin: 0;
        h2{
          color: #518cab;
        }
    }
  }
}
.heading small{
  display:block;
  font-weight:800;
}

/* 右側本文（上罫線のみ） */
.card-right{
  border-bottom: 1px solid #333;
  padding: 18px 20px 18px 20px;
}

.card-right p{margin:0;}

/* レスポンシブ */
@media (max-width: 900px){
  .benefit{
    grid-template-columns:1fr;
    gap:12px;
    margin-bottom:24px;
  }
  .card-left{
    min-height:auto;
    padding:18px;
  }
  .num{font-size:40px;}
  .heading{font-size:20px;}
  .card-right{
    border:2.5px solid transparent;
    border-top:3px solid var(--brand);
    padding:0;
  }
}

  .group_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    @media screen and (max-width: 1024px) {
      gap: 15px;
      justify-content: center;
    }

    .item_block {
      opacity: 1;
      width: calc((100% - 135px) / 3);
      margin-bottom: 25px;

      @media screen and (max-width: 1024px) {
        width: calc((100% - 15px) / 2);
      }

      .image {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          display: block;
        }
      }

      p {
        font-size: 16px;
        line-height: 1.5;

        @media screen and (max-width: 768px) {
          font-size: 12px;
        }
      }
    }
  }

  .patent_container {
    justify-items: flex-start;
    margin: 60px auto;

    img {
      width: 600px;
      height: auto;
      margin: 15px auto;

      @media screen and (max-width: 1024px) {
        width: 60%;
      }
    }

    p {
      font-size: 18px;
      font-weight: 700;
    }
  }

  .construction_method_container {
    h2 {
      text-align: center;
      margin-bottom: 30px;
      @media screen and (max-width: 1024px) {
        font-size: 20px;
      }
      .small_text {
        font-size: 15px;
      }
    }
    .img-wrapper {
      background-color: #f5f5f5;
      padding: 30px;
      margin: 60px auto;
      max-width: 1200px;
      img {
        width: 100%;
        height: auto;
      }
      p {
        margin-bottom: 10px;
      }

      .image-row {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 40px;
        flex-wrap: wrap;
        @media screen and (max-width: 1024px) {
          display: block;
          margin-bottom: 10px;
        }

        div {
          flex: 1 1 calc(50% - 10px);
          text-align: center;
          &.small {
            flex: 3;
          }

          &.big {
            flex: 7;
          }
          img {
            width: 100%;
            height: auto;
            display: block;
            margin-bottom: 10px;
          }
        }
      }
    }
  }
  &.zeh_contents {
    width: 100vw;
  }
  &.zeb-zeh_contents {
    text-align: left;
    h2 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 10px;
        padding: 0 10px;
        width: 100%;
        color: #fff;
      @media screen and (max-width: 1024px) {
        font-size: 20px;
        padding: 0 5px;
      }
    }
    .background_blue {
      width: 100vw;
      background-color: #f2f3f7;
      padding: 70px 0 0;
    }
    .zeb_contents {
      display: flex;
      background-color: #fff;
      border: 5px solid rgba(81, 140, 171, 0.3);
      padding: 50px;
      margin: 20px auto 40px;
      &.zeb_2nd_contents{
        display: block;
        border: none;
        background-color: #f2f3f7;
        .contents_text{
          margin: -100px 0 0 auto;
          width: 90%;
          @media screen and (max-width: 1024px) {
            margin: 0 auto;
          }
        }
      }
      @media screen and (max-width: 1024px) {
        display: block;
        padding: 20px;
        margin: 10px auto;
        justify-items: center;
      }
      &.no_border {
        border: none;
        margin-bottom: -70px;
      }
      p {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 1px;
        font-weight: 500;
        text-align: left;
        @media screen and (max-width: 1024px) {
          font-size: 16px;
          margin-bottom: 20px;
        }
      }
      .contents_header {
        display: flex;
        
        background-color: #518cab;
        width: 160px;
        height: 160px;
        text-align: center;
        justify-content: center;
        align-items: center;
        margin-right: 20px;
        @media screen and (max-width: 1024px) {
          margin: 0 auto 20px;
        }
        h2 {
          font-weight: 900;
          line-height: normal;
          letter-spacing: 0.5px;
        }
      }
      .contents_text {
        text-align: left;
        width: 80%;
        @media screen and (max-width: 1024px) {
          width: 100%;
        }

        .zeb_accordion {
          margin: 20px auto;
           @media screen and (max-width: 1024px) {
            text-align: center;
          }
        }

        h2 {
          text-align: left;
          font-size: 24px;
          margin-bottom: 20px;
          color: #333;
            @media screen and (max-width: 1024px) {
              text-align: center;
            }
        }
        img {
          width: 100%;
          margin: 10px auto;
        }
        .text_right {
          text-align: right;
          @media screen and (max-width: 1024px) {
            text-align: left;
          }
        }
        .zeb_accordion_content {
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease;
          .image_flex {
            display: flex;
            @media screen and (max-width: 1024px) {
              display: block;
            }
            .image_text_flex {
              display: flex;
              width: 50%;
              @media screen and (max-width: 1024px) {
                display: block;
                width: 100%;
              }
              img {
                width: 40%;
                height: auto;
                @media screen and (max-width: 1024px) {
                  width: 100%;
                }
              }
              p {
                width: 60%;
                font-size: 10px;
                margin: 15px auto;
                @media screen and (max-width: 1024px) {
                  width: 100%;
                }
              }
            }
          }
          .heat_throughput_rate {
            display: flex;
            align-items: flex-start;
            p {
              font-size: 10px;
              &:first-child {
                width: 10%;
                @media screen and (max-width: 1024px) {
                  width: 35%;
                }
              }
            }
            .red_text {
              color: #ff0000;
            }
          }
        }
        .zeb_accordion_header {
          display: inline-table;
          min-width: 250px;
          padding: 10px;
          background-color: #518cab;
          color: #fff;
          margin-bottom: 10px;
        }
        .zeb_accordion.active {
          margin-bottom: 10px;
          .zeb_accordion_header {
            background-color: #518cab;
            color: #fff;
          }
          .zeb_accordion_content {
            height: auto;
            border-radius: 15px;
            border: 1px solid #000;
            padding: 40px;
            @media screen and (max-width: 1024px) {
              padding: 15px;
            }
          }
        }
        .green_text {
          color: #1a6c25;
          margin-top: 30px;
          .big_text {
            font-size: 38px;
            @media screen and (max-width: 1024px) {
              font-size: 26px;
              line-height: 1.5;
            }
          }
        }
      }
    }
  }
}
/* タブ切り替えCSS ここまで */

/* 省エネCSS */
.zeb_summary {
  display: flex;
  @media screen and (max-width: 1024px) {
    display: block;
  }
  .zeb_explanation {
    padding-top: 10px;
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .zeb_category_list {
    gap: 0px;
    align-items: center;
    margin: auto auto 20px 10px;
    .zeb_category_item {
      display: flex;
      border-radius: 8px;
      margin-bottom: 10px;
      @media screen and (max-width: 1024px) {
        display: block;
      }
      .zeb_category_title {
        width: 110px;
        height: 40px;
        display: inline-block;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
        border-radius: 4px;
        color: #fff;
        font-weight: 700;
        margin-bottom: 12px;
        @media screen and (max-width: 1024px) {
          margin: 10px 0;
        }
      }

      .zeb_category_text {
        width: 350px;
        line-height: 1.7;
        @media screen and (max-width: 1024px) {
          width: 100%;
        }
      }

      .ready {
        background-color: #156082;
      }

      .nearly {
        background-color: #196b24;
      }

      .zeb {
        background-color: #e97132;
      }
    }
  }
}

.benefits_container {
  max-width: 800px;
  margin: 0 auto auto 30px;
  line-height: 1.6;
  @media screen and (max-width: 1024px) {
    margin: 0 auto auto auto;
  }
}

.benefit_item {
  display: block;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 20px;
  align-items: stretch;
  border: 3px solid rgba(81, 140, 171, 0.3);
  @media screen and (max-width: 1024px) {
    display: block;
    margin-bottom: 5px;
    padding: 12px 10px;
    h2 {
      margin-bottom: 5px;
    }
  }
}

.benefit_item:not(:last-child) .benefit_text {
  @media screen and (max-width: 1024px) {
    border-bottom: none;
  }
}

.benefit_title {
  display: flex;
  flex-shrink: 0;
  width: 330px;
  height: -webkit-fill-available;
  margin: 15px auto;
  font-weight: bold;
  align-items: center;
  align-self: center;
  font-size: 16px !important;
  @media screen and (max-width: 1024px) {
    width: 100%;
    height: auto;
    margin: 5px auto;
  }
}

.benefit_text {
  flex-grow: 1;
  margin-left: 16px;
  line-height: 1.8 !important;
  @media screen and (max-width: 1024px) {
    margin: 0 8px;
  }
}

.energy_systems {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  @media screen and (max-width: 1024px) {
    display: block;
  }
  .system_item {
    width: calc(100% / 4 - 30px);
    text-align: left;
    overflow: hidden;
    text-align: left;
    @media screen and (max-width: 1024px) {
      width: 100%;
    }
    h2 {
      font-size: 13px;
      padding: 5px;
      border: 1px solid #000;
      border-radius: 8px;
      @media screen and (max-width: 1024px) {
        font-size: 16px;
      }
    }
    .system_image {
      width: 100%;
      height: auto;
      object-fit: cover;
      margin-bottom: 12px;
    }

    .system_title {
      font-weight: bold;
      margin: 12px 0 8px;
    }

    .system_description {
      color: #333;
      line-height: 1.5;
    }
  }
}

.system_item_bottom {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 20px;
  @media screen and (max-width: 1024px) {
    display: block;
  }
  img {
    flex: 0 0 30%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    h2 {
      width: 80px;
      display: inline-flex;
      font-size: 13px !important;
      padding: 10px;
      border: 1px solid #000;
      border-radius: 8px;
      @media screen and (max-width: 1024px) {
        font-size: 16px !important;
        width: 100%;
        margin: 12px 0 8px;
        padding: 5px !important;
      }
    }

    .system_description {
      margin-bottom: 10px;
    }
  }
}

.flex_design {
  display: flex;
  margin: 20px auto 50px;
  gap: 10%;
  @media screen and (max-width: 1024px) {
    flex-direction: column;
    &.reverse_order {
      img {
        order: 2;
      }
      p {
        order: 1;
      }
    }
  }
  p {
    width: 50%;
    @media screen and (max-width: 1024px) {
      width: 100%;
    }
  }
  img {
    display: block;
    width: 40%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    @media screen and (max-width: 1024px) {
      width: 100%;
      margin: 10px auto;
    }
  }
}
/* 省エネCSS ここまで */

/* インターンCSS */
.intern_text {
  text-align: left;
  letter-spacing: 1px;

  h2 {
    margin: 10px auto 30px;
  }

  span {
    font-size: 16px;
    font-weight: bold;
    margin: 20px auto auto;
    display: block;
    line-height: 1.7;
    @media screen and (max-width: 1024px) {
      margin: 30px auto auto;
    }
  }
}
/* インターンCSS ここまで */

/* 404CSS */
.page_404 {
  text-align: center;
  margin: 200px auto 150px;

  a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;

    &:hover {
      background-color: #555;
    }
  }
}
/* 404CSS ここまで */

/* 画面全体を2段に：上25% / 下75% */
.works-grid{
  height:100vh;                /* ファーストビュー固定 */
  display:flex;
  flex-direction:column;
  gap:0;
  &.sub-page-works{
    height: 10vh;
    @media screen and (max-width: 1024px) {
      height: 3vh;
    }
    .overlay{
      height: 0;
      flex:none;
    }
  }
  .overlay{
      position:relative;
      flex: 0 0 10%;
      display:block;
      overflow:hidden;
      @media screen and (max-width: 1024px) {
        flex:0 0 8%;
      }
  }
}

.works-grid.-compact { min-height:auto; }        /* 高さ縮める */
.works-grid.-compact .works-row { display:none;} /* 入口だけ隠す */

/* 上段（25%） */
.works-title-row{
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}
.works-title-row .image,
.works-card .image{
  position:absolute;
  inset:0;
  background-color: #e9ebf6;
}
.works-title-row img,
.works-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.02);
  transition:transform .4s ease;
}

/* 暗幕＆ラベル共通 */
.works-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.35);
  transition:background .3s ease;
}
.works-label{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:1;
  color:#fff;
  font-weight:700;
  font-size:clamp(18px, 2.8vw, 36px);
  letter-spacing:.12em;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  white-space:nowrap;
  &.works-main-title{
    top:70%;
    color: #333;
    text-shadow: none;
    @media screen and (max-width: 1024px) {
      top: 77.5%;
    }
  }
  &.works-custom-label{
    color: #fff !important;
  }
}

/* 下段（75%） */
.works-row{
  flex:1;
  display:flex;
  min-height:0;
}
.works-row .works-card{
  position:relative;
  flex:1;                      /* 左右50%ずつ */
  display:block;
  overflow:hidden;
}

/* ホバー演出 */
.works-card:hover img{ transform:scale(1.06); }
.works-card:hover::after{ background:rgba(0,0,0,.5); }

/* スマホ：縦並びでも25%/75%を維持（必要なら調整） */
@media (max-width: 768px){
  .works-row{ flex-direction:column; }
  .works-row .works-card{ flex:1; }
}

/* Fade-up on scroll: クラスを付けるだけでOK */
.a-fadeup {
  /* お好み調整用のCSS変数（HTMLのstyleで上書き可） */
  --a-distance: 32px;                      /* 下→上に動く距離 */
  --a-duration: .8s;                       /* 所要時間 */
  --a-delay: .15s;                           /* 遅延 */
  --a-ease: cubic-bezier(.22,.61,.36,1);   /* イージング */

  opacity: 0;
  transform: translateY(var(--a-distance));
  transition:
    transform var(--a-duration) var(--a-ease) var(--a-delay),
    opacity   var(--a-duration) var(--a-ease) var(--a-delay);
  will-change: transform, opacity;
}

.a-fadeup.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .a-fadeup {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 左からフェードイン（左→右へ入る） */
.a-fadeleft {
  --a-distance: 32px;                      /* 横方向の距離 */
  --a-duration: .8s;
  --a-delay: .15s;
  --a-ease: cubic-bezier(.22,.61,.36,1);

  opacity: 0;
  transform: translateX(calc(var(--a-distance) * -1));
  transition:
    transform var(--a-duration) var(--a-ease) var(--a-delay),
    opacity   var(--a-duration) var(--a-ease) var(--a-delay);
  will-change: transform, opacity;
}
.a-fadeleft.is-inview {
  opacity: 1;
  transform: translateX(0);
}

/* 右からフェードイン（右→左へ入る） */
.a-faderight {
  --a-distance: 32px;                      /* 横方向の距離 */
  --a-duration: .8s;
  --a-delay: .15s;
  --a-ease: cubic-bezier(.22,.61,.36,1);

  opacity: 0;
  transform: translateX(var(--a-distance));
  transition:
    transform var(--a-duration) var(--a-ease) var(--a-delay),
    opacity   var(--a-duration) var(--a-ease) var(--a-delay);
  will-change: transform, opacity;
}
.a-faderight.is-inview {
  opacity: 1;
  transform: translateX(0);
}

/* 動きを減らす設定のユーザー配慮：全部まとめて無効化 */
@media (prefers-reduced-motion: reduce) {
  .a-fadeup, .a-fadeleft, .a-faderight {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}