:root {
  --ink: #35453d;
  --heading: #082e23;
  --heading-line: #e7bd39;
  --font-jp: "M PLUS Rounded 1c", Meiryo, sans-serif;
  --font-en: Nunito, "Segoe UI", sans-serif;
  --copy-size: 17px;
  --ink-soft: #64736b;
  --sage: #8caea0;
  --sage-dark: #537765;
  --sage-pale: #e9f0e9;
  --cream: #f8f5ed;
  --cream-deep: #eee7d6;
  --yellow: #f6e8ae;
  --white: #fffefa;
  --line: #e0e5dc;
  --shadow: 0 22px 54px rgb(49 70 55 / 9%);

  @media (max-width: 700px) {
    --copy-size: 16px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75em;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #e2ad56;
  outline-offset: 3px;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 28px;

  @media (max-width: 600px) {
    padding-inline: 22px;
  }
}

.site_header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgb(83 119 101 / 10%);

  > .wrap {
    display: flex;
    max-width: none;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
    padding-inline: 32px;

    @media (max-width: 1400px) {
      gap: 18px;
      padding-inline: 24px;
    }

    @media (max-width: 1200px) {
      gap: 14px;
    }

    @media (max-width: 600px) {
      padding-inline: 22px;
    }
  }

  .logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--heading);
    font-family: var(--font-en);
    font-size: 34px;
    font-weight: 900;
    line-height: 1em;
    letter-spacing: -0.055em;

    .logo_mark {
      position: relative;
      width: 20px;
      height: 37px;
      flex: 0 0 auto;

      i {
        position: absolute;
        width: 3px;
        height: 9px;
        background: #e9ba28;
        border-radius: 3px;

        &:nth-child(1) { top: 1px; left: 3px; transform: rotate(24deg); }
        &:nth-child(2) { top: 14px; left: 10px; transform: rotate(90deg); }
        &:nth-child(3) { top: 28px; left: 3px; transform: rotate(-24deg); }
      }
    }

    @media (max-width: 1400px) {
      font-size: 32px;
    }

    @media (max-width: 1200px) {
      font-size: 30px;
    }

    @media (max-width: 1100px) {
      font-size: 32px;
    }
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 26px;

    a {
      font-size: 16px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 180ms ease;

      &:hover {
        color: var(--sage-dark);
      }
    }

    @media (max-width: 1400px) {
      gap: 18px;

      a {
        font-size: 14px;
      }
    }

    @media (max-width: 1200px) {
      gap: 12px;
    }

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

  .actions {
    display: flex;
    align-items: center;
    gap: 10px;

    .btn_ptn_1,
    .btn_ptn_2 {
      min-height: 48px;
      padding: 10px 18px;
      font-size: 14px;

      .icon_line {
        width: 21px;
        height: 21px;
        font-size: 6px;

        &::after {
          bottom: -1px;
          left: 5px;
          width: 5px;
          height: 5px;
        }
      }

      .icon_next {
        width: 7px;
        height: 7px;
      }
    }

    @media (max-width: 1400px) {
      gap: 8px;

      .btn_ptn_1,
      .btn_ptn_2 {
        min-height: 44px;
        padding: 8px 14px;
        font-size: 12px;
      }
    }

    @media (max-width: 1200px) {
      .btn_ptn_2 {
        display: none;
      }
    }

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

  .menu {
    display: none;

    @media (max-width: 1100px) {
      display: block;

      summary {
        display: flex;
        width: 50px;
        height: 50px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: #f1f6ee;
        color: var(--sage-dark);
        border: 1px solid #dce7da;
        border-radius: 50%;
        cursor: pointer;
        list-style: none;
        transition: background 300ms ease, border-color 300ms ease;

        &::-webkit-details-marker {
          display: none;
        }

        span {
          width: 26px;
          height: 2px;
          background: var(--sage-dark);
          border-radius: 2px;
          transition: opacity 300ms ease, transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
        }

        @media (hover: hover) {
          &:hover {
            background: #e5efe1;
            border-color: #c7dbc4;
          }
        }
      }

      &[open] summary {
        background: #e5efe1;
        border-color: #c7dbc4;

        span {
          &:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
          }

          &:nth-child(2) {
            opacity: 0;
          }

          &:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
          }
        }
      }

      nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        padding: 28px 32px 32px;
        background: linear-gradient(180deg, #fffefa, #f6f9f3);
        border-top: 1px solid #e3e9df;
        box-shadow: 0 24px 44px rgb(49 70 55 / 14%);
        animation: wepuri_menu_open 360ms cubic-bezier(0.22, 0.61, 0.36, 1) both;

        a {
          position: relative;
          padding: 16px 48px 16px 18px;
          background: #fff;
          color: var(--heading);
          font-size: 16px;
          font-weight: 700;
          border: 1px solid #e1e8dd;
          border-radius: 14px;
          transition: background 300ms ease, border-color 300ms ease, color 300ms ease;

          &::after {
            position: absolute;
            top: 50%;
            right: 20px;
            width: 8px;
            height: 8px;
            border-top: 2px solid currentColor;
            border-right: 2px solid currentColor;
            content: "";
            transform: translateY(-50%) rotate(45deg);
            transition: transform 300ms ease;
          }

          &:last-child {
            background: #075b39;
            border-color: #075b39;
            color: #fff;
          }

          @media (hover: hover) {
            &:hover {
              background: #eaf2e6;
              border-color: #c8dac4;

              &::after {
                transform: translate(4px, -50%) rotate(45deg);
              }
            }

            &:last-child:hover {
              background: #06492f;
              border-color: #06492f;
            }
          }
        }

        @media (max-width: 700px) {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          padding: 24px 22px 28px;
        }

        @media (max-width: 500px) {
          grid-template-columns: 1fr;

          a {
            padding-block: 14px;
          }
        }

        @media (prefers-reduced-motion: reduce) {
          animation: none;
        }
      }
    }
  }
}

@keyframes wepuri_menu_open {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn_ptn_1,
.btn_ptn_2 {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;

  .icon_next {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .icon_line {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    background: #06c755;
    border-radius: 50%;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 900;
    line-height: 1em;
    letter-spacing: -0.04em;

    &::after {
      position: absolute;
      bottom: -2px;
      left: 8px;
      width: 7px;
      height: 7px;
      background: #06c755;
      content: "";
      transform: rotate(35deg);
    }
  }

  &:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgb(49 70 55 / 13%);
  }

  &:disabled {
    opacity: 1;
    cursor: not-allowed;
  }
}

.btn_ptn_1 {
  background: #075b39;
  color: #fff;

  &:hover:not(:disabled) {
    background: #06492f;
  }
}

.btn_ptn_2 {
  background: var(--white);
  border-color: #218552;
  color: #116d42;

  &:hover:not(:disabled) {
    background: var(--sage-pale);
  }
}

.site_footer {
  padding-block: 32px;
  background: #fffefa;
  color: var(--ink);

  .wrap {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 30px;
  }

  .brand {
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: var(--heading);
      font-family: var(--font-en);
      font-size: 28px;
      font-weight: 900;
      line-height: 1em;
      letter-spacing: -0.055em;

      .logo_mark {
        position: relative;
        width: 15px;
        height: 27px;
        flex: 0 0 auto;

        i {
          position: absolute;
          width: 2px;
          height: 7px;
          background: #e9ba28;
          border-radius: 3px;

          &:nth-child(1) { top: 0; left: 2px; transform: rotate(24deg); }
          &:nth-child(2) { top: 10px; left: 8px; transform: rotate(90deg); }
          &:nth-child(3) { top: 20px; left: 2px; transform: rotate(-24deg); }
        }
      }
    }
  }

  nav {
    display: flex;
    max-width: 820px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 24px;

    a {
      font-size: 16px;
      line-height: 1.75em;
    }
  }

  @media (max-width: 700px) {
    .wrap {
      align-items: start;
      flex-direction: column;
    }
    nav { justify-content: flex-start; }
  }
}
