@charset "UTF-8";

/* html {
  scroll-padding-top: 91px;
} */

#service {
  overflow-x: hidden;

  /* コンテンツボタン　ここから */
  .contents_tag_wrapper {
    background-color: #f3f3f3;
  }

  .contents_tag {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 100px 0;
  }

  .contents_tag li {
    width: calc(100% / 3);
  }

  .contents_tag li:not(:last-child) {
    border-right: 1px solid #aeaeae;
  }

  .contents_tag li a {}

  .contents_tag li a div {
    display: grid;
    place-items: center;
    place-content: center;
  }

  .contents_tag li a div figure {
    text-align: center;
    align-items: center;
    width: max-content;
    display: flex;
    flex-direction: column;
  }

  .contents_tag li a div figure figcaption {
    text-align: center;
    align-items: center;
    font-size: 3.0rem;
    font-weight: 600;
    margin-bottom: 1em;
  }

  /* コンテンツボタン　ここまで */
  /* FRP　ここから */
  #polyluth_wrapper {
    background-color: #009374;
    padding: 50px 0 100px;
    scroll-margin-top: 91px;
  }

  .polyluth_inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .intro {
    margin: 0 auto;
    width: 62.5%;
    display: flex;
    justify-content: space-between;
  }

  h3 {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  h3>figure {
    margin-right: 1em;
  }

  h3>figure>img {}

  h3 .title_wrap {
    font-size: 4.0rem;
    color: #fff;
    font-weight: 600;
  }

  .frp_sub {
    width: 100%;
    background-color: #009374;
    padding: 3px;
    margin: 0 0 50px;
    font-size: 3rem;
    color: #fff;
  }

  .frp_wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 100px 0 0px;
  }

  .frp_container_wrapper {
    width: 100%;
  }

  .frp_container_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 4%;
  }

  .frp_container {
    width: 48%;
  }

  .certify {
    background-color: #009374;
    padding: 5px 15px 7px;
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
  }

  .certify p {
    color: #fff;
    margin-right: 0.5em
  }

  .certify img {
    display: block;
    top: 2px;
    position: relative;
  }

  .list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 3rem;
    line-height: 1;
    margin-top: 20px;
  }

  .list+p {
    margin-top: 0.5em;
    text-align: justify;
    line-height: 1.7;
  }

  .list+p+a {
    color: #009375;
    text-decoration: underline;
  }

  /*popup仕様*/
  .frp_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    pointer-events: none;
    transform: none !important;
  }

  .frp_popup.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .frp_popup_inner {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 50px;
    background: #fff;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
  }

  .frp_popup.is-active .frp_popup_inner {
    transform: scale(1);
  }

  .frp_popup .frp_popup_wrapper+.frp_popup_wrapper {
    margin-top: 80px;
  }

  .frp_popup h3.frp_popup_sub {
    width: 100%;
    background-color: #009374;
    padding: 3px;
    margin: 0 0 30px;
    font-size: 3rem;
    color: #fff;
  }

  .frp_popup ul {
    column-count: 2;
    column-gap: 35px;
  }

  .frp_popup ul>* {
    margin-bottom: 5px;
    break-inside: avoid;
  }

  .frp_popup ul li {
    padding-left: 1em;
    text-indent: -1em;
    font-size: 1.7rem;
    line-height: 1.7;
  }

  .frp_popup ul li::before {
    content: "▶︎";
    color: #009375;
  }

  .frp_popup .link_btn_white {
    margin: 100px auto 0;
  }

  /*popup仕様ここまで*/

  /* FRP　ここまで */
  /* 工事事業　ここから */
  #business_wrapper {
    background-color: #008a75;
    padding: 50px 0 100px;
    margin-top: 200px;
    scroll-margin-top: 91px;
  }

  .business_inner {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
  }

  .intro {
    margin: 0 auto;
    width: 62.5%;
    display: flex;
    justify-content: space-between;
  }

  .intro_text {
    width: 45%;
  }

  .work_wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 0;
  }

  .work_container_wrapper {
    width: 100%;
  }

  .work_container_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 4%;
  }

  .work_container {
    width: 48%;
  }

  /* 工事事業　ここまで */
  /* 化成品　ここから */
  #chemical_wrapper {
    background-color: #006756;
    padding: 50px 0 100px;
    margin-top: 200px;
    scroll-margin-top: 91px;
  }

  .chemical_inner {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
  }

  .intro {
    margin: 50px auto 0;
    width: 100%;
    display: flex;
    gap: 0 4%;
  }

  .intro_text {
    width: 48%;
    display: flex;
    flex-direction: column;
  }

  .intro_text h4 {
    font-size: 3rem;
    color: #fff;
  }

  .intro_text>p {
    color: #fff;
    text-align: justify;
    margin-top: 1em;
    line-height: 1.7;
  }

  .intro_text>p>a {
    color: #f6e702;
    line-height: 1.7;
    text-decoration: underline;
  }

  .link_btn_left_white {
    margin-top: auto;
  }

  .intro_image {
    width: 48%;
  }

  /* 化成品　ここまで*/
  /* 主要取扱品目　ここから */
  .productlist_wrapper {
    margin: 100px auto 0px;
    width: 100%;
    max-width: 1200px;
  }

  .productlist_inner {
    width: 100%;
  }

  .chemical_sub {
    width: 100%;
    background-color: #006757;
    padding: 3px;
    margin: 0 0 50px;
    font-size: 3rem;
    color: #fff;
  }

  .column {
    column-count: 3;
    column-gap: 35px;
  }

  .column li {
    padding-left: 1em;
    text-indent: -1em;
    font-size: 1.7rem;
    line-height: 1.7;
  }

  .column li::before {
    content: "■";
    color: #006757;
  }

  .column li.others::before {
    content: "";
  }

  .column>* {
    margin-bottom: 5px;
  }

  .column+h4 {
    margin-top: 30px;
  }

  .square {
    color: #006757;
  }

  .others {
    text-align: end;
  }

  .productlist_wrapper h4 {
    font-size: 1.5em;
    border-bottom: 1px solid #aeaeae;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  /* 主要取扱品目　ここまで */
  .link_btn {
    margin: 50px auto 0;
  }

  .link_btn+.frp_sub {
    margin-top: 200px;
  }

  .frp_popup_inner li.others::before {
    content: "";
  }

  .nav_btn {
    display: none;
  }

  .anchor_popup {
    display: none;
  }




  @media screen and (max-width: 768px) {

    .contents_tag_wrapper {
      display: none;
    }

    #polyluth_wrapper {
      padding: 30px 0 50px;
      scroll-margin-top: 60px;
    }

    .polyluth_inner {
      width: 84%;
    }

    h3>figure {
      max-width: 50px;
    }

    h3 .title_wrap {
      font-size: 3.0rem;
    }

    .intro {
      flex-direction: column-reverse;
      gap: 15px;
      margin-top: 30px;
    }

    .intro_text {
      width: 100%;
    }

    .intro_text h4 {
      font-size: 2.4rem;
    }

    .intro_image {
      width: 100%;
    }

    .link_btn_left_white {
      width: 320px;
      margin: 30px auto 0;
    }

    .frp_popup_inner {
      padding: 20px;
      border-radius: inherit;
    }

    .frp_popup ul {
      column-count: 1;
    }

    .frp_popup h3.frp_popup_sub {
      font-size: 2.4rem;
      margin-bottom: 15px;
    }

    .frp_popup ul li {
      margin-bottom: 0;
      font-size: 1.6rem;
    }

    .frp_popup .frp_popup_wrapper+.frp_popup_wrapper {
      margin-top: 50px;
    }

    .frp_popup .link_btn_white {
      width: 320px;
      margin: 50px auto 0;
    }

    .frp_wrapper {
      width: 86%;
      padding: 50px 0 0;
    }

    .frp_sub {
      font-size: 2.4rem;
      margin-bottom: 30px;
    }

    .frp_container_wrapper ul {
      flex-direction: column;
    }

    .frp_container {
      width: 100%;
    }

    .list {
      font-size: 2.4rem;
      font-feature-settings: "palt";
      letter-spacing: 0.05em;
    }

    .certify p {
      font-size: 1.4rem;
    }

    .link_btn {
      margin: 30px auto 0;
      width: 320px;
    }

    .link_btn+.frp_sub {
      margin-top: 100px;
    }

    #business_wrapper {
      margin-top: 100px;
      padding: 30px 0 50px;
      scroll-margin-top: 60px;
    }

    .business_inner {
      width: 86%;
    }

    .work_wrapper {
      margin: 50px 0 0;
    }

    .work_container_wrapper {
      width: 86%;
      margin: auto;
    }

    .work_container_wrapper ul {
      flex-direction: column;
    }

    .work_container {
      width: 100%;
    }

    #chemical_wrapper {
      margin-top: 100px;
      padding: 30px 0 50px;
      scroll-margin-top: 60px;
    }

    .chemical_inner {
      width: 86%;
    }

    .productlist_wrapper {
      margin: 50px 0 100px !important;
    }

    .productlist_inner {
      width: 86%;
      margin: auto;
    }

    .productlist_inner {
      width: 86%;
      margin: auto;
    }

    .column {
      column-count: 2;
      column-gap: 18px;
    }

    .column>* {
      margin-bottom: 0px;
    }

    .productlist_wrapper h4 {
      padding-bottom: 15px;
      margin-bottom: 15px;
    }





    .nav_btn_wrapper {
      position: fixed;
      bottom: 5%;
      right: 0;
      z-index: 2200;

      /* * ラッパー自体を独立レイヤー化し、上下中央に配置
   * これが iframe に勝つための「おまじない」です 
   */
      transform: translateY(-50%) translateZ(0);
    }


    /* ▼▼▼ [修正] .nav_btn から position などを削除 ▼▼▼ */
    .nav_btn {
      /* position: fixed; ← 削除 */
      /* top: 50%; ← 削除 */
      /* right: 0; ← 削除 */
      /* z-index: 2200; ← 親に移動 */
      /* transform: ...; ← 親に移動 */

      /* ↓ 見た目のスタイルはそのまま残す */
      background: #f5aa3b;
      display: block;
      padding: 12px;
      width: 84px;
      clip-path: polygon(15px 0, 100% 0, 100% 100%, 15px 100%, 0 80%, 0 20%);
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav_btn .cross {
      position: relative
    }

    .nav_btn span:nth-of-type(1) {
      display: block;
      width: 6px;
      height: 34px;
      background: #fff;
      position: relative;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -0%);
    }

    .nav_btn span:nth-of-type(2) {
      display: block;
      width: 34px;
      height: 6px;
      background: #fff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .nav_btn p {
      color: #fff;
      font-weight: 800;
      line-height: 1;
      margin-top: 5px;
      font-size: 1.4rem;
      text-align: center;
    }

    /* ===================================
   アンカーリンク ポップアップ (修正版)
=================================== */








    /* ===================================
   アンカーリンク ポップアップ (全面・白)
=================================== */

    /* ポップアップ本体（全面白） */
    .anchor_popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      z-index: 2100;
      overflow-y: auto;

      display: flex;
      /* ← これを追加！ */

      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    /* JSで .is-active が付いたら表示 */
    .anchor_popup.is-active {
      opacity: 1;
      visibility: visible;
      display: flex;
    }

    /* ポップアップの中身 (余白・レイアウト用) */
    .anchor_popup_inner {
      /* 白い箱のスタイルを削除し、レイアウト用に変更 */
      width: 86%;
      /* max-width: 400px; */
      /* PCでの最大幅 */
      margin: 0 auto;
      /* 中央揃え */
      padding: 80px 0 40px 0;
      /* 上(×ボタン分)・下 */
      position: relative;
      box-sizing: border-box;
      align-items: center;
      display: flex;
    }

    /* 閉じるボタン (×) */
    .popup_close_btn {
      position: fixed;
      /* 画面右上に固定 */
      top: 10px;
      right: 10px;
      font-size: 30px;
      /* 少し大きく */
      line-height: 1;
      color: #888;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px;
      z-index: 2101;
      /* ポップアップ本体より手前 */
    }

    .popup_close_btn:hover {
      color: #000;
    }

    /* 目次リスト */
    .anchor_popup ul {
      list-style: none;
      padding: 0;
      text-align: left;
      width: 100%;
    }

    .anchor_popup li {
      margin: 0;
      border-bottom: 1px solid #a4a4a4;
    }

    .anchor_popup li:last-child {
      /* border-bottom: none; */
    }

    .anchor_popup a {
      text-decoration: none;
      color: #333;
      font-size: 2.0rem;
      font-weight: 600;
      transition: color 0.3s;
      display: block;
      padding: 20px 0px;
    }

    .anchor_popup a div {
      display: flex;
      justify-content: space-between;
    }

    .anchor_popup a div figure {
      display: flex;
      align-items: center;
      gap: 0.5em;
    }

    .anchor_popup a div figure img {
      max-width: 40px;
    }

    .anchor_popup a div figure figcaption {
      font-size: 2.4rem;
      font-weight: 600;
    }

    .anchor_popup a:hover {
      color: #009375;
      background: #f9f9f9;
    }

    /* ===================================
   nav_btn の表示／非表示
=================================== */

    /* ポップアップ表示中に .nav_btn を隠す */
    /* ▼▼▼ 「.nav_btn」を「.nav_btn_wrapper」に修正 ▼▼▼ */
    .anchor_popup.is-active+.nav_btn_wrapper {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

  }
}