/* ==============================================
   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;
}

/* "Blog" subtitle */
.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: 500;
    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;
  }

  img {
    width: 100%;
  }

  img.original {
    width: auto;
  }
}

/* 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 {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 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;
}

/* Blog List button — right-aligned */
.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 grid — PC: 3 columns */
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  width: 100%
}

/* ==============================================
   Blog Card (shared)
   ============================================== */
.blog-card {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 120px;

}

.blog-card:last-child {
  display: none;
}

.blog-card__media {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.blog-card__date-col {
  width: 14px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-card__date {
  display: inline-block;
  transform: rotate(90deg);
  white-space: nowrap;
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  /* white on dark bg */
  letter-spacing: 1.2px;
  padding-left: 16px;
}

.blog-card__img-wrap {
  flex: 1;
  aspect-ratio: 6 / 5;
  border-radius: 8px;
  overflow: hidden;
}

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

.blog-card__body {

  position: absolute;
  bottom: -24%;
  left: 0;
  width: 94%;
  background: #ffffff;
  border-radius: 6px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.blog-card__title {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #14263f;
  word-break: break-word;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #14263f;
  border-radius: 20px;
  font-size: 10px;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

.blog-card__tags {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #14263f;
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
}

.blog-card__btn .material-icons-outlined {
  font-size: 14px;
  line-height: 1;
}

@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;
  }

  /* 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: 24px;
  }

  .related__header {
    gap: 16px;
  }

  .related__en {
    font-size: 32px;
  }

  .related__ja {
    font-size: 16px;
  }

  /* Blog List button — left-aligned on SP */
  .blog-list-btn {
    align-self: flex-start;
  }

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

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

  /* Blog cards — full width on SP */
  .blog-card {
    width: 100%;
    margin-bottom: 20%;
  }

  .blog-card__date-col {
    width: 12px;
    height: 72px;
  }

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

  .blog-card__body {
    padding: 12px;
  }

  .blog-card:last-child {
    display: block;
  }

  .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;
    }
  }
}

@media screen and (max-width:640px) {
  .blog-card__title {
    font-size: 10px;
    line-height: 1.4;
  }

  .blog-card__tag {
    font-size: 8px;
    font-weight: 600;
  }

  .blog-card__body {
    position: relative;
    padding: 8px;
    gap: 4px;
    bottom: 0;
    top: 0;
    width: calc(100% - 4px);
    border-radius: 6px;
    margin-top: -8%;
  }

  .blog-card__img-wrap {
    border-radius: 6px;
  }

  .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;
    }
  }
}