@charset "utf-8";

:root {
  --vw: 1vw;
  --fmain: "M PLUS 1",
    sans-serif;
  --cmain: #1E4D3E;
  --bold: 700;
}



/* ----------------------------------------------------------
   共通：ヘッダー領域（ロゴ・電話番号・お問い合わせボタンを配置）
---------------------------------------------------------- */
.header-bar {
  position: fixed;
  top: 14rem;
  left: 30rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2000;


  .header-logo {
    display: flex;
    gap: 25rem;

    @media(max-width:1240px) {
      flex-direction: column;
      gap: 10rem;
    }

    .logo {
      max-width: 304rem;
      width: 48%;

      @media(max-width:1500px) {
        width: 30%;
      }

      @media (max-width: 1250px) {
        max-width: 240rem;
        width: 100%;
      }
    }

    .desc {
      font-family: var(--fmain);
      font-weight: var(--bold);
      font-size: 16px;
      line-height: 24px;
      color: var(--cmain);

      @media (max-width: 1180px) {
        font-size: 9px;
        line-height: calc(13 / 10);
      }
    }
  }

  .column {
    margin-left: auto;
    margin-right: 153rem;
    gap: 26rem;
    display: none;

    @media(max-width:1250px) {
      display: flex;
    }

    @media(max-width:1240px) {
      display: none;
    }

    .cta-contact {
      border-radius: 50px;
      height: 48rem;
      padding: 7rem 33rem;
      transition: .4s ease;

      p {
        font-size: 23rem;
      }
    }
  }
}

.header-bar.is-fixed {
  display: none;

  .header-left {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.scrollarea {
  overflow: auto;
  scrollbar-width: none;
}

.scrollarea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@media(max-width:1250px) {
  .contact-btn {
    display: flex;
  }
}

/* ----------------------------------------------------------
   1. 通常時：サイドメニュー（PCのみ）
---------------------------------------------------------- */
.nav-pc-side {
  position: absolute;
  height: 100vh;
  top: 0;
  right: 0;
  height: 100%;
  max-width: 382rem;
  width: 100%;
  z-index: 2100;
  background-color: var(--cmain);
  overflow: hidden;

  .nav-pc-side:hover::-webkit-scrollbar {
    width: 8px;
  }

  .nav-pc-side:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
  }

  .nav-pc-side:hover::-webkit-scrollbar-track {
    background: transparent;
  }

  .scrollarea {
    height: 100%;
  }

  .inner {
    max-width: calc(282 / 382 * 100%);
    width: 90%;
    margin: 0 auto;
    padding: 37rem 0 92rem;



    .nav-contact {
      border-radius: 3px;
      background: #fff;
      box-shadow: 8px 8px 0px #178d67;
      margin-bottom: 20rem;
      transition: all .4s ease;

      a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        height: 59rem;
        opacity: unset;

        p {
          font-family: var(--fmain);
          font-weight: var(--bold);
          font-size: 21rem;
          line-height: unset;
          text-align: center;
          color: var(--cmain);
        }
      }
    }

    .nav-contact:hover {
      opacity: unset;
      box-shadow: unset;
      transform: translateX(8px) translateY(8px);

      opacity: unset;
    }

    .nav-tel {
      margin-bottom: 30rem;

      a {
        display: flex;
        flex-wrap: wrap;
        color: #FFF;
        font-weight: var(--bold);
        align-items: flex-end;
        justify-content: flex-end;
        transition: all .4s ease;
      }
    }

    .text {
      font-family: var(--fmain);
      font-weight: 500;
      font-size: 18rem;
      text-align: center;
      color: #fff;
      margin-bottom: 20rem;
    }

    .menulist {
      display: flex;
      flex-direction: column;
      gap: 37rem;

      .menuitem {
        border-radius: 10px;
        position: relative;
        display: flex;
        gap: 17rem;
        justify-content: center;
        box-shadow: 5px 5px 0px #188d67;
        background: #FFF;
        padding: 12rem 15rem 14rem 16rem;
        transition: all .4s ease;

        .mainimg {
          max-width: 122rem;
          width: 100%;
          box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
        }

        .maintit {
          font-family: var(--fmain);
          font-weight: 400;
          font-size: 28rem;
          color: #1e4d3e;
          margin-top: 12rem;
        }

        .link {
          position: absolute;
          right: -5rem;
          bottom: -5rem;
          border-radius: 10px 0px 0px 0px;
          background: #fff;
          border: 3px solid #1e4d3e;
          font-family: "M PLUS 1";
          font-weight: 500;
          font-size: 14px;
          text-align: center;
          color: #1e4d3e;
          padding: 8rem 21rem;
        }
      }

      .menuitem:hover {
        opacity: unset;
        box-shadow: unset;
        transform: translateX(5px) translateY(5px);
      }
    }
  }
}



@media(max-width:1250px) {
  .nav-pc-side {
    display: none;
  }
}

/* FVを超えたら非表示（PC） */
.nav-pc-side.hide {
  opacity: 0;
  pointer-events: none;
}

/* ----------------------------------------------------------
   2. スクロール後：横並びメニュー（PCのみ）
---------------------------------------------------------- */
.nav-pc-top {
  opacity: 0;
  max-width: 1728rem;
  width: 90%;
  margin: 0 auto;
  position: fixed;
  top: 30rem;
  left: 0;
  right: 0;
  height: 71rem;
  border-radius: 35.5px;
  background: #fff;
  border: 3px solid #1e4d3e;
  pointer-events: auto;
  transition: transform .4s ease, opacity .4s ease;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;


  .inner {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 36rem 0 16rem;
    gap: 40rem;

    @media(max-width:1500px) {
      gap: 20rem;
    }

    .logo {
      max-width: 259rem;
      width: 100%;

      a {
        transition: .4s ease;
      }
    }

    .menulist {
      display: flex;
      gap: 47rem;

      @media(max-width:1500px) {
        gap: 20rem;
      }

      .menuitem {

        position: relative;
        z-index: 5;

        a {
          font-family: "M PLUS 1";
          font-weight: bold;
          font-size: 20rem;
          color: #1e4d3e;
          transition: .4s ease;

          @media(max-width:1500px) {
            font-size: max(14px, 17rem);
          }
        }

        .submenu {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          background: #FFF;
          padding-top: 60rem;
          padding-bottom: 30rem;
          display: none;
          flex-direction: column;
          gap: 20rem;
          align-items: center;
          min-width: 170rem;
          z-index: -1;
        }

        .submenu a {
          transition: .4s ease;
        }
      }

      .menuitem.parent {
        padding-right: 30rem;
        position: relative;
      }

      .menuitem.parent::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20rem;
        height: 21rem;
        margin: auto;
        background: url(/system_panel/uploads/images/20251203092837341531.png) no-repeat center/contain;
      }

      .menuitem.parent:hover .submenu {
        display: flex;

      }
    }
  }

  .column {
    display: flex;
    margin-left: auto;
    gap: 26rem;

    .cta-tel {
      width: auto;
    }


    .cta-contact {
      border-radius: 50px;
      height: 48rem;
      padding: 7rem 33rem;
      transition: .4s ease;

      p {
        font-size: 23rem;

        @media(max-width:1500px) {

          font-size: 16px;

        }
      }
    }
  }

}

.nav-pc-top.is-hidden {
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}


@media(max-width:1250px) {
  .nav-pc-top {
    display: none;
  }
}

/* ----------------------------------------------------------
   3. SP：ハンバーガーメニュー
---------------------------------------------------------- */
.hamburger {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 121rem;
  height: 75rem;
  background-color: var(--cmain);
  flex-direction: column;
  gap: 13rem;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 0px 0px 0px 5px;
  z-index: 2100;
}

.hamburger .line {
  width: 64rem;
  height: 5rem;
  background: #FFF;
  transition: .3s;
}

.hamburger.is-active .line:nth-child(1) {
  transform: translateY(16px) rotate(45deg);
}

.hamburger.is-active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media(max-width:1250px) {
  .hamburger {
    display: flex;
  }
}

/* SPの展開メニュー */
.nav-sp {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  max-width: 382rem;
  background: var(--cmain);
  padding: 115rem 0 64rem;
  flex-direction: column;

  z-index: 2000;

  .scrollarea {
    display: flex;
    flex-direction: column;
    gap: 35rem;
  }

  .menuitem {
    position: relative;
    padding-left: 36rem;
    max-width: 282rem;
    width: 100%;
    margin: auto;

    a {
      color: #fff;
      font-size: 20rem;
      font-family: "M PLUS 1";
      font-weight: bold;
      color: #fff;
    }
  }

  .menuitem::before {
    content: "▶︎";
    font-size: 12px;
    height: 29rem;
    color: #FFF;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }

  .menulist {
    display: flex;
    flex-direction: column;
    gap: 37rem;
    margin-bottom: 40rem;



    .menuitem {
      border-radius: 10px;
      position: relative;
      display: flex;
      gap: 17rem;
      justify-content: center;
      box-shadow: 5px 5px 0px #188d67;
      background: #FFF;
      padding: 12rem 15rem 14rem 16rem;
      transition: all .4s ease;

      .mainimg {
        max-width: 122rem;
        width: 100%;
        box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
      }

      .maintit {
        font-family: var(--fmain);
        font-weight: 400;
        font-size: 28rem;
        color: #1e4d3e;
        margin-top: 12rem;
      }

      .link {
        position: absolute;
        right: -5rem;
        bottom: -5rem;
        border-radius: 10px 0px 0px 0px;
        background: #fff;
        border: 3px solid #1e4d3e;
        font-family: "M PLUS 1";
        font-weight: 500;
        font-size: 14px;
        text-align: center;
        color: #1e4d3e;
        padding: 8rem 21rem;
      }
    }

    .menuitem:hover {
      opacity: unset;
      box-shadow: unset;
      transform: translateX(5px) translateY(5px);
    }
  }
}



.nav-sp.is-open {
  display: flex;
}

/* -----------------------------------------
   PC：トップ固定 横並びナビ
----------------------------------------- */



/* ==========================================================
   ▼ レスポンシブ（900px以下）
========================================================== */
@media (max-width: 900px) {

  /* PCナビは非表示 */
  .nav-pc-side {
    display: none !important;
  }

  .nav-pc-top {
    display: none !important;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }
}


.gjs-dashed {
  .nav-pc-top {
    opacity: 1 !important;
  }
}