/* ==============================================
   Reset & Base
   ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f3f7ff;
  color: #14263f;
  font-family: 'Ryo Gothic PlusN', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
    'メイリオ', Meiryo, 'MS PGothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ==============================================
   Hero — PC
   ============================================== */
.hero {
  background: #f3f7ff;
}

.hero__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 240px 120px 0 124px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Title block — border-bottom, full width */
.hero__title-block {
  width: 100%;
  border-bottom: 1px solid rgba(20, 38, 63, 0.4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0;
}

/* Category badge pill */
.category-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(20, 38, 63, 0.64);
  border-radius: 18px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 1.5px;
  color: #14263f;
  white-space: nowrap;
}

/* Title row: dots + h1 */
.hero__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
}

.dot--green {
  background: #9fc707;
}

.dot--blue {
  background: #0798ed;
}

.hero__title {
  font-size: 40px;
  font-weight: normal;
  line-height: 1.8;
  letter-spacing: 4px;
  color: #14263f;
}

.hero__en {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 2.4px;
  color: #14263f;
}

/* Breadcrumb — right-aligned (auto-width child in items-end container) */
/* ============= Breadcrumb ============= */
/* ============= Breadcrumb ============= */
.breadcrumb {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: min(100%, 1360px);
  padding: 24px 20px;
  margin-inline: auto;
}

.breadcrumb__link {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
}

.breadcrumb__dot {
  display: block;
  width: 6px;
  height: 6px;
  background: #9fc707;
  border-radius: 50%;
  flex-shrink: 0;
}

.breadcrumb__current {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
  opacity: 0.64;
}

/* ==============================================
   Article Body — PC
   ============================================== */
.article {
  background: #f3f7ff;
}

.article__container {
  width: min(900px, 94%);
  margin: 0 auto;
  padding-bottom: 80px;

  P {
    font-size: 1.5rem;
    line-height: 2.4;
    font-weight: 400;
    margin-bottom: 1em;
  }

  .article__date {
    font-size: 15px;
    line-height: 2;
    color: #444444;
    text-align: right;
    padding-top: 4px;
    margin-bottom: 40px;
    font-weight: 500;
  }
}

/* Date — right-aligned */


/* H2 heading */
.article__h2 {
  font-size: 20px;
  font-weight: normal;
  line-height: 2;
  color: #000000;
  border-bottom: 1px solid rgba(20, 38, 63, 0.64);
  padding: 8px 0;
  margin-bottom: 0;
}

/* Body text block */
.article__body {
  padding-bottom: 24px;
}

.article__body p {
  font-size: 15px;
  line-height: 2;
  color: #000000;
}

/* Horizontal divider */
.article__divider {
  border: none;
  height: 1px;
  background: rgba(20, 38, 63, 0.2);
  margin: 0 0 24px;
}

/* Contact / bullet list */
.article__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
}

.article__list li {
  font-size: 15px;
  line-height: 2;
  color: #000000;
}

/* Main article image */
.article__image-wrap {
  border-radius: 8px;
  overflow: hidden;
  height: 527px;
  width: 100%;
}

.article__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================================
   Related Posts Section — PC
   ============================================== */
.related {
  background: #647184;
}

.related__container {
  width: min(980px, 94%);
  margin: 0 auto;
  padding: 80px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Header: title left, button below right-aligned */
.related__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.related__title {
  width: 100%;
}

.related__en {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.8;
  letter-spacing: 3.2px;
  color: #ffffff;
}

.related__ja {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.8;
  letter-spacing: 1.6px;
  color: #ffffff;
}

/* Related grid — PC: 3 columns */
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  width: 100%
}

.blog-list-btn {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  padding: 12px 4px 12px 16px;
  align-self: flex-end;
  text-decoration: none;
  margin-top: 0;
}

.blog-list-btn__text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: #14263f;
  padding-right: 120px;
  white-space: nowrap;
}

.blog-list-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-left: 1px solid #14263f;
}

.blog-list-btn__icon .material-icons-outlined {
  font-size: 18px;
  color: #14263f;
  line-height: 1.2;
}

.related__list {
  display: flex;
  flex-direction: column;

  a {
    display: flex;
    align-items: center;
    width: 100%;
    color: #fff;
    border-bottom: solid 1px rgb(255 255 255 / 40%);
    padding: 24px 16px;

    &:first-child {
      border-top: solid 1px rgb(255 255 255 / 40%);
    }

    .related-item__content {
      width: calc(100% - 40px);
      display: flex;
      flex-direction: column;
      gap: 12px;

      .related-item__meta {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;

        .related-item__date {
          font-family: 'Unbounded', sans-serif;
          font-size: 1.2rem;
          width: auto;
        }

        .related-item__category {
          border: solid 1px #fff;
          border-radius: 24px;
          width: auto;
          font-size: 1.2rem;
          font-weight: 500;
          padding: 2px 12px;
          line-height: 1.6;
        }
      }

      .related-item__title {
        font-size: 1.6rem;
        font-weight: 500;
      }


    }

    span {
      width: 40px;
    }
  }
}

@media screen and (max-width:1024px) {

  .breadcrumb__link,
  .breadcrumb__current {
    font-size: 11px;
  }

  .article__container {
    padding-bottom: 64px;

    P {
      font-size: 1.4rem;
      line-height: 2.4;
      font-weight: 400;
      margin-bottom: 1em;
    }

    .article__date {
      font-size: 14px;
      margin-bottom: 32px;
    }
  }
}

/* ==============================================
   SP Styles — max-width: 767px
   ============================================== */
@media (max-width: 767px) {

  /* Hero */
  .hero__container {
    padding: 160px 11px 80px;
    align-items: flex-end;
    gap: 8px;
  }

  .hero__title-block {
    gap: 12px;
    padding-bottom: 4px;
  }

  .category-tag {
    padding: 0 16px;
    font-size: 11px;
    letter-spacing: 1.1px;
  }

  .hero__heading {
    gap: 8px;
    align-items: flex-start;
  }

  .title-dots {
    gap: 2px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .hero__title {
    font-size: 24px;
    letter-spacing: 2.4px;
    line-height: 1.6;
  }

  .hero__en {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.2px;
    padding-left: 14px;
  }

  .blog-list-btn {
    align-self: flex-start;
  }

  .blog-list-btn__text {
    padding-right: 80px;
  }

  /* Breadcrumb — in-flow, right-aligned, wrap */
  .breadcrumb {
    padding: 8px 0;
    justify-content: flex-end;
    gap: 2px 8px;
  }

  .breadcrumb__link {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .breadcrumb__dot {
    width: 4px;
    height: 4px;
  }

  .breadcrumb__current {
    font-size: 10px;
    letter-spacing: 1px;
  }

  /* Article */

  .article__h2 {
    font-size: 18px;
  }

  .article__body {
    padding-bottom: 16px;
  }

  .article__body p {
    font-size: 14px;
  }

  .article__divider {
    margin: 0 0 16px;
  }

  .article__list {
    padding-bottom: 16px;
  }

  .article__list li {
    font-size: 14px;
  }

  .article__image-wrap {
    height: 215px;
  }

  /* Related section */
  .related__container {
    padding: 40px 12px;
    gap: 40px;
  }

  .related__header {
    gap: 16px;
  }

  .related__en {
    font-size: 32px;
  }

  .related__ja {
    font-size: 16px;
  }



  /* Related grid — single column on SP */
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 16px;
  }

  .article__container {
    padding-bottom: 48px;

    P {
      font-size: 1.3rem;
      line-height: 2.0;
      font-weight: 400;
      margin-bottom: 1em;
    }

    .article__date {
      font-size: 14px;
      margin-bottom: 32px;
    }
  }

  .related__list {

    a {
      padding: 16px 12px;

      .related-item__content {
        width: calc(100% - 24px);
        gap: 8px;

        .related-item__meta {
          gap: 12px;

          .related-item__date {
            font-size: 1.0rem;
          }

          .related-item__category {
            font-size: 1.0rem;
            padding: 1px 8px;
          }
        }

        .related-item__title {
          font-size: 1.4rem;
        }

      }

      span {
        width: 32px;
      }
    }
  }
}

@media screen and (max-width:640px) {

  .related__grid {
    gap: 12px;
  }

  .article__container {
    padding-bottom: 40px;

    P {
      font-size: 1.2rem;
      line-height: 2.2;
      font-weight: 500;
    }

    .article__date {
      font-size: 13px;
      margin-bottom: 24px;
    }
  }

  .related__list {

    a {
      padding: 12px 8px;

      .related-item__content {
        width: calc(100% - 24px);
        gap: 6px;

        .related-item__meta {
          gap: 12px;

          .related-item__date {
            font-size: 0.9rem;
          }

          .related-item__category {
            font-size: 0.9rem;
            padding: 1px 8px;
          }
        }

        .related-item__title {
          font-size: 1.3rem;
        }

      }

      span {
        width: 24px;
      }

      .material-icons-outlined {
        font-size: 20px;
      }
    }
  }
}