.blog-item {
  padding: 87px 0 50px;

  @media screen and (min-width: 769px) {
    box-sizing: content-box;
    padding: 201px 0 90px;
  }
}

:where(.blog-item) {
  .blog-item__inner {
    display: flex;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      padding: 0 25px;
      margin-bottom: 30px;
    }

    @media screen and (min-width: 769px) {
      gap: 56px;
      padding: 0 25px;
      justify-content: center;
      margin-bottom: 60px;
    }
  }

  .blog-item__thumb {
    background: #C4C4C4;
    width: 100%;
    height: calc(var(--vw) * 210);
    border-radius: 30px;
    overflow: hidden;

    @media screen and (max-width: 768px) {
      margin-bottom: 18px;
    }

    @media screen and (min-width: 769px) {
      width: 526px;
      height: 314px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .blog-item__content {
    @media screen and (min-width: 769px) {
      width: 584px;
      padding-top: 30px;
    }
    h2 {
      font-weight: bold;
      margin-bottom: 4px;
    }
  }

  .blog-item__date {
    color: #004E98;
    opacity: 0.41;
    font-weight: 600;
    font-size: calc(var(--rem) * 13);
    letter-spacing: 0.65px;
    margin-bottom: 6px;

    @media screen and (min-width: 769px) {
      margin-bottom: 12px;
      font-size: calc(var(--rem) * 15);
      letter-spacing: 0.75px;
    }
  }

  .blog-item__title {
    font-weight: 600;
    font-size: calc(var(--rem) * 17);
    letter-spacing: 0.85px;
    line-height: 26px;
    margin-bottom: 12px;

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 25);
      letter-spacing: 1.25px;
      margin-bottom: 28px;
      line-height: 34px;
    }
  }

  .blog-item__text {
    font-weight: 600;
    font-size: calc(var(--rem) * 13);
    letter-spacing: 0.65px;
    margin-bottom: 28px;
    line-height: 25px;

    @media screen and (min-width: 769px) {
      font-size: calc(var(--rem) * 13);
      letter-spacing: 0.65px;
      margin-bottom: 28px;
    }
  }

  .all {
    padding-left: 25px;
    @media screen and (min-width: 769px) {
      padding-left: 135px;
    }
  }

  :where(.all) {
    .all-wrap-inner {
      position: relative;
    }

    .all__title {
      font-family: "century-gothic", sans-serif;
      font-weight: bold;
      font-size: calc(var(--rem) * 40);
      letter-spacing: 2px;
      margin-bottom: 6px;

      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 62);
        letter-spacing: 3.9px;
        margin-bottom: 12px;
      }
    }

    .all__list-title {
      font-weight: 600;
      font-size: calc(var(--rem) * 16);
      letter-spacing: 1.28px;
      margin-bottom: 22px;

      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 18);
        letter-spacing: 1px;
        margin-bottom: 31px;
      }
    }

    .all-wrap {
      display: flex;
      flex-direction: column;
      gap: 34px;

      @media screen and (min-width: 769px) {
        padding-left: 70px;
        gap: 60px;
      }
    }

    .all-list-wrapper {
      overflow-x: auto;
      white-space: nowrap;
      -ms-overflow-style: none;
      scrollbar-width: none;
      padding-bottom: calc(var(--vw) * 35);

      @media screen and (min-width: 769px) {
        margin-left: calc(var(--vw) * 67);
        padding-bottom: 55px;
      }
    }

    .simplebar-scrollbar::before {
      background: #007CA9 !important;
      border-radius: 0;
      height: 3px !important;
      top: 0px !important;
      opacity: 1 !important;
      border-radius: 0 !important;

      @media screen and (min-width: 769px) {
        height: 8px !important;
      }
    }

    .simplebar-scrollbar.simplebar-visible::before {
      opacity: 1;
    }

    .simplebar-track {
      background: #F3F3F3;
      height: 3px !important;
      width: calc(var(--vw) * 200);
      @media screen and (min-width: 769px) {
        width: calc(var(--vw) * 842);
        height: 8px !important;
      }
    }

    .all-list-wrapper::-webkit-scrollbar {
      display: none;
    }

    .all-list {
      display: flex;
      gap: 30px;

      @media screen and (min-width: 769px) {
        gap: 40px;
      }
    }

    .all-item {
      width: 240px;
      box-sizing: content-box;
      flex-shrink: 0;

      &:last-child {
        padding-right: calc(var(--vw) * 30);

        @media screen and (min-width: 769px) {
          padding-right: calc(var(--vw) * 40);
        }
      }

      @media screen and (min-width: 769px) {
        width: 300px;
      }
    }

    .all-thumb {
      height: 160px;
      border-radius: 20px;
      overflow: hidden;
      background: #CBCBCB;
      margin-bottom: 16px;

      @media screen and (min-width: 769px) {
        height: 191px;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .all-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .all-cat {
      border-radius: 50px;
      border: 1.15px solid #007CA9;
      font-size: calc(var(--rem) * 8.4);
      font-weight: bold;
      letter-spacing: 0.84px;
      padding: 4px 13px;

      @media screen and (min-width: 769px) {
        border: 1.5px solid #007CA9;
        font-size: calc(var(--rem) * 11);
        font-weight: bold;
        letter-spacing: 1.1px;
        padding: 3px 13px;
      }
    }

    .all-date {
      font-size: calc(var(--rem) * 10);
      font-weight: bold;
      letter-spacing: 0.5px;

      @media screen and (min-width: 769px) {
        letter-spacing: 0.65px;
        font-size: calc(var(--rem) * 13);
      }
    }

    .all-title {
      display: block;
      font-size: calc(var(--rem) * 13.7);
      letter-spacing: 0.685px;
      font-weight: 600;
      margin-bottom: 8px;

      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 18);
        letter-spacing: 0.9px;
      }
    }

    .all-excerpt {
      font-size: calc(var(--rem) * 10);
      letter-spacing: 0.5px;
      font-weight: 600;
      color: #00536F;
      white-space: pre-wrap;
      overflow: hidden;
      display: -webkit-box;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;

      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 12);
        letter-spacing: 0.6px;
        width: 300px;
        height: 36px;
      }
    }

    .all-more {
      font-weight: bold;
      font-size: calc(var(--rem) * 12);
      letter-spacing: 1.2px;
      position: absolute;
      bottom: -6px;
      right: calc(var(--vw) * 45);
      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 16);
        letter-spacing: 1.6px;
        bottom: 0px;
        right: calc(var(--vw) * 120);
      }
      &::after {
        content: "";
        display: inline-block;
        position: absolute;
        right: -22px;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        background-image: url("../../images/icon_arrow.svg");
        background-size: contain;
        background-repeat: no-repeat;
        @media screen and (min-width: 769px) {
          right: -38px;
          width: 21px;
          height: 21px;
        }
      }
    }
    .all-empty {
      font-weight: 600;
      font-size: calc(var(--rem) * 15);
      letter-spacing: 0.75px;
      @media screen and (min-width: 769px) {
        font-size: calc(var(--rem) * 20);
        letter-spacing: 1.6px;
      }
    }
  }
}

/* ロゴとテキストを縦並びにして中央に揃える */
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

/* 追加テキストの基本スタイル（PC向け） */
.header-subtitle {
  font-size: 10px;
  color: #333;
  margin-top: 8px;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap; /* テキストが途中で改行されるのを防ぐ */
}

/* スマホ用レスポンシブ対応（画面幅が768px以下の場合） */
@media screen and (max-width: 768px) {
  .header-subtitle {
    font-size: 10px; /* ブラウザ制限に引っかからないように基準は10px */
    transform: scale(0.65); /* ★ここでサイズ調整！0.65＝65%のサイズになります */
    transform-origin: top center; /* 上の中央を基準に縮小する */
    margin-top: 5px; /* 縮小すると隙間が広く見えるので、マージンを減らして調整 */
  }
}