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

/* Relative container; items-end right-aligns the breadcrumb */
.hero__container {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 963px;
  padding-left: 120px;
  padding-right: 120px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Left content block */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 480px;
}

/* Page Title */
.page-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 260px;
}

.page-title__row {
  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;
}

.page-title__ja {
  font-size: 40px;
  font-weight: normal;
  line-height: 1.8;
  letter-spacing: 4px;
  color: #14263f;
  white-space: nowrap;
}

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

/* Description */
.hero__desc {
  font-size: 15px;
  line-height: 2.4;
  letter-spacing: 0.6px;
  color: #14263f;
}

/* Hero image */
.hero__img-wrap {
  border-radius: 4px;
  overflow: hidden;
  height: 265px;
  width: 100%;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ==============================================
   News List Section — PC
   ============================================== */
.news-section {
  background: #f3f7ff;
}

.news-section__inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  padding: 80px 0;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* ==============================================
   Category Sidebar — PC only
   ============================================== */
.category-nav {
  width: 280px;
  flex-shrink: 0;
}

.category-nav__list {
  display: flex;
  flex-direction: column;
}

.category-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(20, 38, 63, 0.4);
}

.category-nav__link {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: rgba(20, 38, 63, 0.64);
}

.category-nav__link--active {
  color: #14263f;
}

.category-nav__arrow {
  font-size: 16px;
  color: rgba(20, 38, 63, 0.64);
  flex-shrink: 0;
}

.category-nav__arrow--active {
  color: #14263f;
}

/* ==============================================
   News List — PC
   ============================================== */
.news-list {
  display: flex;
  flex-direction: column;
  width: calc(100% - 320px)
}

/* ==============================================
   News Item — PC
   ============================================== */
.news-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 40px 40px 12px;
  border-bottom: 1px solid rgba(20, 38, 63, 0.4);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.news-item:hover {
  opacity: 0.7;
}

/* Left: date + category + title */
.news-item__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 563px;
}

/* Meta row: date + category pill */
.news-item__meta {
  display: flex;
  align-items: center;
  gap: 25px;
}

.news-item__date {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #14263f;
  white-space: nowrap;
}

/* Category pill — border only (not filled) */
.news-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border: 1px solid rgba(20, 38, 63, 0.4);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(20, 38, 63, 0.8);
  white-space: nowrap;
  overflow: hidden;
}

/* Article title */
.news-item__title {
  font-size: 15px;
  line-height: normal;
  color: #14263f;
  font-weight: 500;
}

/* Arrow icon — right side, vertically centered in 66px */
.news-item__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  width: 24px;
  font-size: 24px;
  letter-spacing: 0.96px;
  color: #14263f;
  flex-shrink: 0;
}

.pagination__inner {
  margin: 80px 0 120px;

  .nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-family: "unbounded", sans-serif;



    .page-numbers {
      opacity: 0.8;
      transition: opacity 0.3s ease;

      &:hover {
        opacity: 0.64;
      }

      &.current {
        opacity: 0.4;

        &:hover {
          opacity: 0.4;
        }
      }
    }
  }
}

@media screen and (max-width:1024px) {
  .news-section__inner {
    padding: 64px 0;
    gap: 24px;
  }

  .news-item__meta {
    gap: 16px;
  }

  .category-nav {
    width: 240px;
  }

  .news-list {
    width: calc(100% - 264px);
  }

  .news-item {
    padding: 32px 16px 32px 8px;
  }
}

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

  /* Hero */
  .hero__container {
    min-height: auto;
    padding: 40px 11px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 40px;
  }

  .hero__content {
    width: 100%;
    gap: 24px;
  }

  .page-title {
    width: 100%;
  }

  .page-title__row {
    gap: 8px;
  }

  .title-dots {
    gap: 2px;
  }

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

  .page-title__ja {
    font-size: 24px;
    letter-spacing: 2.4px;
  }

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

  .hero__desc {
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.48px;
    padding-left: 14px;
  }

  .hero__img-wrap {
    height: 205px;
  }

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

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

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

  /* News section */
  .news-section__inner {
    padding: 64px 0;
    flex-direction: column;
    gap: 0;
  }

  /* Hide category sidebar on SP */
  .category-nav {
    order: 2;
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .category-nav__item:first-child {
    border-top: 1px solid rgba(20, 38, 63, 0.4);
  }

  /* News list — full width on SP */
  .news-list {
    width: 100%;
  }

  /* News item — simplified on SP (no arrow, compact padding) */
  .news-item {
    flex-direction: column;
    padding: 12px 8px;
    gap: 12px;
  }

  .news-item__content {
    width: 100%;
    gap: 12px;
  }

  .news-item__date {
    font-size: 10px;
  }

  .news-item__category {
    font-size: 10px;
  }

  .news-item__title {
    font-size: 14px;
  }

  /* Hide arrow on SP */
  .news-item__arrow {
    display: none;
  }

  .pagination__inner {
    margin: 40px 0;
  }
}

@media screen and (max-width:640px) {
  .news-section__inner {
    padding: 40px 0;
  }

  .news-item__content {
    gap: 6px;
  }

  .news-item__category {
    font-size: 9px;
  }
}