:root {
  --color1: #6bf211;
  --color2: #e4eeb6;
  --border: 2px solid #fff;
  --trans: all 0.3s;
  --bg-color: rgba(228, 240, 200, 0.8);
  --shadow: 0px 3px 20px 0px rgba(0, 0, 0, 0.04);
}

/* ----------------------------

共通項目

------------------------------*/

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Noto Sans JP";
  color: #222;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  font-weight: 500;
  background-color: #f9f9f9;
}

section {
  padding: 120px 0;
  @media (max-width: 960px) {
    padding: 60px 0;
  }
}

a {
  width: fit-content;
}

h1 {
  font-weight: 900;
  font-size: 60px;
  @media (max-width: 960px) {
    font-size: clamp(40px, -0.5053rem + 7.0922vw, 60px);
  }
  p {
    width: fit-content;
    line-height: 1.5;
  }
  .bg-t {
    background-color: var(--color1);
  }
}
h2 {
  font-weight: 900;
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1.5;
  @media (max-width: 960px) {
    font-size: clamp(2rem, 0.7979rem + 2.8369vw, 2.5rem);
  }
}
h3 {
  font-size: 28px;
  font-weight: 900;
  @media (max-width: 960px) {
    font-size: clamp(20px, 1.5505rem + -0.7092vw, 28px);
  }
}

.desc {
  font-size: clamp(14px, 0.5745rem + 0.7092vw, 16px);
  line-height: 2;
}

.inner1 {
  max-width: 1200px;
  width: calc(100% - 10.26vw);
  margin: 0 auto;
}

/* ----------------------------

ボタン

------------------------------*/

.btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  background-color: #6bf211;
  border: 0;
  padding: 1em 2.4em;
  border-radius: 100px;
  transition: var(--trans);
  font-size: 16px;
  font-weight: 900;
  width: fit-content;
}

.btn:hover {
  scale: 1.03;
}

/* モバイル改行 */

.sp {
  display: none;
}

@media (max-width: 768px) {
  .sp {
    display: block;
  }
}

.pc {
  display: block;
}

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

/* ----------------------------

ヘッダー

------------------------------*/

header {
  position: fixed;
  width: 100vw;
  z-index: 1;
  background: transparent; /* ✅ 背景を透過 */

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    height: 80px;
    width: calc(100vw - 100px);
    max-width: 1650px;
    margin: 0 auto;

    @media (max-width: 960px) {
      height: 75px;
    }
    @media (max-width: 768px) {
      width: calc(100vw - 40px);
    }
    .logo {
      width: 200px;
      mix-blend-mode: difference;
      @media (max-width: 500px) {
        width: 150px;
      }
    }
    .spacer {
      flex: 1;
    }
    nav {
      display: flex;
      align-items: center;
      a {
        display: block;
        padding: 20px 10px;
        color: #bbb;
        font-size: 14px;
        font-weight: 600;
        transition: var(--trans);
        mix-blend-mode: difference;
        @media (max-width: 1300px) {
          display: none;
        }
      }
      a:hover {
        color: var(--color1);
        scale: 1.02;
      }
      a.btn {
        color: #222;
        font-weight: 900;
        font-size: 14px;
        margin-left: 10px;
        padding: 1em 2.4em;
        @media (max-width: 500px) {
          display: none;
        }
      }
      a.bon:hover {
        color: #222;
      }
    }
  }
}

/* ----------------------------

トップページ-メインビジュアル

------------------------------*/

#mv {
  min-height: 60vh;
  margin-top: 80px;
  padding-bottom: 0;
  @media (max-width: 960px) {
    min-height: auto;
    margin-top: 75px;
  }
}
#reason {
  ul {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 100px 0;
    @media (max-width: 960px) {
      padding: 80px 0 20px;
      gap: 20px;
    }
  }
  li {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: #fff;
    border-radius: 20px;
    min-width: 400px;
    position: relative;
    @media (max-width: 960px) {
      min-width: 335px;
      padding: 20px;
      padding-top: 40px;
      gap: 20px;
    }
  }
  li::after {
    content: "01";
    position: absolute;
    top: -0.7em;
    font-size: 60px;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    color: var(--color1);
    font-style: italic;
  }
  li:nth-child(2):after {
    content: "02";
  }
  li:nth-child(3):after {
    content: "03";
  }
  li:nth-child(4):after {
    content: "04";
  }
}
#works {
  .desc {
    margin-bottom: 120px;
    @media (max-width: 960px) {
      margin-bottom: 60px;
    }
  }
  .desc.il {
    margin-bottom: 0;
    margin-top: 40px;
  }
  .link_area {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    a {
      font-weight: 900;
      color: #bbb;
      position: relative;
      transition: var(--trans);
    }
    a::after {
      content: "/";
      right: -20px;
      position: absolute;
    }
    a:last-child:after {
      display: none;
    }
    a:hover {
      color: #222;
    }
    a:hover::after {
      color: #bbb;
    }
  }
  .glide__slide {
    display: flex;
    gap: 4%;
    @media (max-width: 960px) {
      flex-direction: column;
      gap: 40px;
    }

    .l-cont {
      flex: 3;
      overflow-y: auto;
      aspect-ratio: 4 / 2.5;
      border-radius: 10px;
      @media (max-width: 960px) {
        width: 100%;
      }

      .img {
        img {
          box-shadow: var(--shadow);
        }
      }
    }
    .r-cont {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      h3 {
        margin-bottom: 1.42em;
      }
      ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        @media (max-width: 960px) {
          gap: 10px;
        }
        li {
          padding-left: 20px;
          font-weight: 700;
          position: relative;
          font-size: clamp(14px, 0.5745rem + 0.7092vw, 16px);

          .note {
            font-size: 12px;
            display: inline-block;
            margin-left: 10px;
            color: #888;
          }
        }
        li::after {
          content: "";
          width: 12px;
          height: 6px;
          rotate: -45deg;
          position: absolute;
          left: 0;
          top: 40%;
          border-left: 2px var(--color1) solid;
          border-bottom: 2px var(--color1) solid;
        }
      }
    }
  }
  /* スライドナビゲーション */
  .glide__arrows {
    width: 100%;
    position: absolute;
    top: 50%;
    translate: -50%, 0;
    @media (max-width: 600px) {
      display: none;
    }
  }
  .glide__arrow.glide__arrow--right,
  .glide__arrow.glide__arrow--left {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    text-shadow: none;
    border-radius: 0;
    color: #bbb;
    transform: translate(0, 0);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: #bbb 1px solid;
    display: grid;
    place-items: center;
    transition: var(--trans);
  }
  .glide__arrow.glide__arrow--right:hover,
  .glide__arrow.glide__arrow--left:hover {
    background-color: var(--color1);
    border: #6bf211 1px solid;
    color: #222;
    opacity: 0.8;
  }

  .glide__arrow.glide__arrow--left {
    left: -75px;
  }
  .glide__arrow.glide__arrow--right {
    right: -75px;
  }
}
#plan {
  background-color: #222;
  h2,
  .desc {
    color: #fff;
    text-align: center;
  }
  .desc {
    margin-bottom: 120px;
    @media (max-width: 960px) {
      margin-bottom: 60px;
    }
  }
  .desc.il {
    margin-bottom: 60px;
    @media (max-width: 960px) {
      font-size: 12px;
      margin-bottom: 30px;
    }
  }
  .box {
    border-radius: 20px;
    background-color: #fff;
    padding: 10%;
    width: fit-content;
    margin: 0 auto;
    position: relative;
    margin-bottom: 60px;
    @media (max-width: 678px) {
      width: 100%;
      margin-bottom: 30px;
    }
    .plice {
      line-height: 1;
      text-align: center;
      span {
        font-family: "roboto";
        font-size: clamp(3.75rem, -5.266rem + 21.2766vw, 7.5rem);
        font-weight: 900;
      }
      span.yen {
        font-family: "noto sans jp";
        font-size: clamp(1.25rem, -1.7553rem + 7.0922vw, 2.5rem);
        position: relative;
      }
      span.yen::after {
        position: absolute;
        top: -0.8em;
        content: "※";
        color: #555;
        font-size: 16px;
        left: 0.2em;
        @media (max-width: 960px) {
          font-size: 12px;
        }
      }
    }
    .tax {
      font-size: clamp(0.875rem, -0.0266rem + 2.1277vw, 1.25rem);
      font-weight: 900;
      padding-bottom: 2em;
      border-bottom: 1px #ddd solid;
      width: 100%;
      text-align: center;
      margin-bottom: 2em;
    }
    ul {
      display: flex;
      flex-direction: column;
      gap: 20px;
      li {
        padding-left: 20px;
        font-weight: 700;
        position: relative;
        font-size: 16px;
        .note {
          font-size: 12px;
          display: inline-block;
          margin-left: 10px;
          color: #888;
          @media (max-width: 960px) {
            font-size: 10px;
          }
        }
      }
      li::after {
        content: "";
        width: 12px;
        height: 6px;
        rotate: -45deg;
        position: absolute;
        left: 0;
        top: 40%;
        border-left: 2px var(--color1) solid;
        border-bottom: 2px var(--color1) solid;
      }
    }
  }
  .box::before {
    content: "1年契約/自動更新";
    position: absolute;
    background-color: var(--color1);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 900;
    color: #222;
    top: 3em;
    left: 85%;
    text-wrap: nowrap;
    @media (max-width: 678px) {
      top: -1.5em;
      left: 10%;
      content: "1年契約/自動更新/年額19,800円税込";
    }
  }
  .box::after {
    content: "19,800円税込/年額";
    position: absolute;
    background-color: var(--color1);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 900;
    color: #222;
    top: 7em;
    left: 85%;
    text-wrap: nowrap;
    @media (max-width: 678px) {
      display: none;
    }
  }
  .btn {
    margin: 0 auto;
  }
}
#flow {
  h2 {
    margin-bottom: 120px;
    @media (max-width: 960px) {
      margin-bottom: 60px;
    }
  }
  li {
    padding-left: 40px;
    padding-bottom: 100px;
    position: relative;
    @media (max-width: 960px) {
      padding-left: 30px;
      padding-bottom: 50px;
    }
    h3 {
      margin-bottom: 20px;
    }
    .btn {
      margin-top: 40px;
    }
    .step {
      font-weight: 900;
      font-size: 16px;
      font-family: "roboto";
      position: relative;
      margin-bottom: 10px;
    }
    .step::after {
      content: "";
      position: absolute;
      top: 0.2em;
      left: -40px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background-color: #222;
      @media (max-width: 960px) {
        width: 14px;
        height: 14px;
        left: -30px;
      }
    }
  }
  li::after {
    content: "";
    border-left: #222 solid 1px;
    position: absolute;
    top: 10px;
    left: 10px;
    height: 100%;
    width: 10%;
    @media (max-width: 960px) {
      top: 7px;
      left: 7px;
    }
  }
  li:nth-child(3):after {
    /* border-left: #222 1px dashed; */
    display: none;
  }
  li:nth-child(4):after {
    display: none;
  }
}
#faq {
  padding-top: 0;
  h2 {
    margin-bottom: 120px;
    @media (max-width: 960px) {
      margin-bottom: 60px;
    }
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    @media (max-width: 960px) {
      gap: 20px;
    }
    li {
      border-radius: 30px;
      background-color: #fff;
      padding: 40px;
      box-shadow: var(--shadow);
      @media (max-width: 960px) {
        padding: 20px;
        border-radius: 10px;
      }
    }
  }

  h3 {
    font-size: clamp(14px, 0.5745rem + 0.7092vw, 16px);
    font-weight: 900;
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
    @media (max-width: 960px) {
      margin-bottom: 10px;
    }
  }
  h3::before {
    content: "Q.";
    position: absolute;
    left: 0;
  }
  p {
    font-size: clamp(14px, 0.5745rem + 0.7092vw, 16px);
    font-weight: 500;
    padding-left: 20px;
    position: relative;
  }
  p::before {
    content: "A.";
    position: absolute;
    left: 0;
  }
}

footer {
  background-color: #222;
  padding: 40px 0;
  border-top: 1px solid #ddd;
  @media (max-width: 960px) {
    padding: 20px 0;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .link_area {
      display: flex;
      gap: 20px;
      a {
        font-size: 14px;
        color: #ddd;
        transition: var(--trans);
        @media (max-width: 960px) {
          font-size: 12px;
        }
      }
      a:hover {
        color: #fff;
      }
    }
  }
  p {
    text-align: center;

    small {
      font-size: 14px;
      color: #fff;
    }
  }
}

/* 利用規約 */

#agreement {
  h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 120px;
    margin-top: 10vh;
  }
  h3 {
    font-size: 16px;
    margin: 40px 0 10px;
  }
  p.li {
    font-size: 16px;
    line-height: 2;
  }
}

/* ヒアリングシート */

#form {
  margin-top: 80px;
  .inner2 {
    margin: 0 auto;
    width: 600px;
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    label {
      font-size: 16px;
      font-weight: 600;
    }
    input {
      padding: 8px 16px;
      border-radius: 4px;
      border: 1px #bbb solid;
    }
  }
}

/* モーダルの初期状態 */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}

/* モーダルがONのとき表示 */
.modal-toggle:checked + .modal {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル内容 */
.modal-content {
  position: relative;
  background: #fff;
  color: #333;
  width: 90%;
  max-width: 600px;
  padding: 60px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  @media (max-width: 600px) {
    padding: 30px;
  }
  h2 {
    font-size: 24px;
  }
  p {
    font-size: 14px;
  }
  .flex {
    margin: 40px 0 0;
    display: flex;
    gap: 20px;
    width: 100%;
    @media (max-width: 600px) {
      flex-direction: column;
    }
    a {
      display: block;
      border: #f9f9f9 1px solid;
      border-radius: 10px;
      padding: 20px;
      flex: 1;
      display: grid;
      place-items: center;
      text-align: center;
      width: 100%;
      background-color: #ffff;
      position: relative;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
      p {
        font-size: 20px;
      }
      .sub_title {
        font-size: 14px;
        font-weight: 700;
      }
      .title {
        font-size: 18px;
        font-weight: 700;
      }
      .price {
        display: inline-block;
        font-size: 32px;
        margin: 10px 0 0;
      }
      .t-s {
        font-size: 10px;
      }
    }
    a:last-child {
      background-color: #6bf211;
      border: #6bf211 1px solid;
    }
  }
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 20px;
  right: 16px;
  display: block;
  color: #333;
  cursor: pointer;
  span:nth-child(1) {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    rotate: 45deg;
    translate: 0 2px;
  }
  span:nth-child(2) {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    rotate: -45deg;
  }
}
.close-btn:hover {
  background: #aaa;
}

/* チェックボックスは非表示 */
.modal-toggle {
  display: none;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
