@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

/* XXL (min-width: 1400px) 以上での設定 */
@media (min-width: 1400px) {
  .container {
    /* XXL のデフォルト 1320px を 1140px に上書き */
    max-width: 1140px;
  }
}

/* ==================================== */
/* @font-face: Webフォントの定義 */
/* ==================================== */

/* --- Light (細字) - 300 --- */
@font-face {
  font-family: "ZenKaku Custom";
  src: url("../fonts/ZenKaku-Light.woff2") format("woff2"),
    url("../fonts/ZenKaku-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

/* --- Regular (標準) - 400 --- */
@font-face {
  font-family: "ZenKaku Custom";
  src: url("../fonts/ZenKakuGothicNew-Regular.woff2") format("woff2"),
    url("../fonts/ZenKakuGothicNew-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

/* --- Medium (中太) - 500 --- */
@font-face {
  font-family: "ZenKaku Custom";
  src: url("../fonts/ZenKakuGothicNew-Medium.woff2") format("woff2"),
    url("../fonts/ZenKakuGothicNew-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

/* --- Bold (太字) - 700 --- */
@font-face {
  font-family: "ZenKaku Custom";
  src: url("../fonts/ZenKakuGothicNew-Bold.woff2") format("woff2"),
    url("../fonts/ZenKakuGothicNew-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* --- Black (極太) - 900 --- */
@font-face {
  font-family: "ZenKaku Custom";
  src: url("../fonts/ZenKakuGothicNew-Black.woff2") format("woff2"),
    url("../fonts/ZZenKakuGothicNew-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

/* ==================================== */
/* 2. Webフォントの適用とフォールバックの設定 */
/* ==================================== */

/* ページ全体（body）にWebフォントを適用 */
body {
  /* 1. 定義したカスタムフォント名 */
  font-family: "ZenKaku Custom",
    /* 2. macOS/iOS (ヒラギノ) の代替 */ "Hiragino Sans",
    /* 3. Windows/Android (メイリオ、游ゴシック) の代替 */ "Meiryo", "YuGothic",
    /* 4. 最終的なゴシック体の代替 */ sans-serif;

  /* 基本の太さとしてRegular(400)を設定 */
  font-weight: 400;
  color: #0c3f2b;
}

body {
  background-image: url(../image/background-img.png);
  background-repeat: repeat;
}

main.container {
  display: grid;
  row-gap: 2rem;
}

@media (min-width: 1200px) {
  main.container {
    row-gap: 5rem;
  }
}

footer {
  display: grid;
  row-gap: 2rem;
}

@media (min-width: 1200px) {
  footer {
    row-gap: 5rem;
  }
}

section {
  .card {
    border-radius: 0.5rem;
    border: solid 0.1rem #0c3f2b;
    box-shadow: 0.5rem 0.5rem 0.5rem 0 rgba(0, 0, 0, 0.45);

    .card-body {
      padding: 1.5rem;
      display: grid;
      row-gap: 1.5rem;
      grid-auto-flow: row;
      align-items: center;
    }

    .card-title {
      text-align: center;
      color: #0c3f2b !important;
    }

    h2 {
      margin-bottom: 0;
    }

    .card-title-wrapper {
      display: grid;
      grid-auto-flow: column;
      grid-template-rows: auto;
      column-gap: 0.5rem;

      .leaf-icon1-img {
        justify-self: right;
      }

      img {
        height: 0;
        min-height: 100%;
      }

      h2 {
        justify-self: left;
      }
    }

    .card-text {
      text-align: center;
      color: #0c3f2b !important;
      font-size: clamp(1rem, 0.877rem + 0.538vw, 1.2rem);
    }

    .btn-looks {
      display: block;
      margin: 0 auto;
      padding: 0.8rem;
      background-color: #0c3f2b;
      color: #fff;
      transition: 0.2s ease all;
    }

    .btn-looks:hover {
      background-color: #fff;
      border: solid 0.1rem #0c3f2b;
      color: #0c3f2b;
    }
  }

  .jump-card {
    .card-body {
      position: relative;
      padding: 0;
      margin: 1.5rem;

      * {
        z-index: 10;
      }

      .card-body-bg {
        width: 100%;
      }

      .bg-assessment-leaf {
        position: absolute;
        justify-self: center;
        align-self: center;
        width: 100%;
        height: auto;
        z-index: 5;
        opacity: 0.3;
        bottom: 0;
        right: 0;
      }
    }

    .card-text {
      text-align: left;
    }

    .star-icon-list {
      margin: 0;
      padding: 0;
      list-style-type: none;
      > li {
        position: relative;
        padding-left: 1.8rem;
        &:before {
          position: absolute;
          font-family: "Font Awesome 6 Pro";
          font-weight: 900;
          content: "\f005";
          display: block;
          left: 0;
          color: #ffe210;
        }
      }
    }

    i {
      color: #ffe210;
    }

    .assessment-tool {
      display: grid;
      grid-template-columns: repeat(2, auto);
      column-gap: 0.5rem;
      justify-content: center;
    }

    .spis-link {
      max-width: 20rem;
    }

    .spis-link {
      transition: 0.2s ease all;
    }

    .spis-link:hover {
      filter: brightness(75%);
    }
  }
}

@media (min-width: 768px) {
  section {
    .card {
      .assessment-tool {
        column-gap: 2rem;
      }
    }

    .card.jump-card {
      .card-body {
        margin: 3rem;
        row-gap: 3rem;
      }
    }
  }
}

@media (min-width: 992px) {
  section {
    .card.jump-card {
      .bg-assessment-leaf {
        width: auto;
        height: 100%;
      }
    }
  }
}

.table-border-color {
  border-color: #0c3f2b;

  thead {
    --bs-table-bg: #ffe210;
  }
}

.flyer {
  box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.45);
  max-width: 15rem;
  transition: all 0.3s ease;

  &:hover {
    transform: scale(0.95);
  }
}

.address {
  display: grid;
  row-gap: 1.5rem;

  picture {
    grid-column: 1;
    grid-row: 1;
  }

  p {
    margin-bottom: 0;
    font-size: clamp(1rem, 0.877rem + 0.538vw, 1.2rem);
  }
}

.copyright {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #0c3f2b;
  color: #fff;
  font-weight: 500;
  text-align: center;
  font-size: clamp(1rem, 0.877rem + 0.538vw, 1.2rem);
}
