/* ---------- JOURNEY ---------- */
.journey {
  position: relative;
  overflow: hidden;
  padding-block: 8.75rem;
  background: linear-gradient(180deg, #f4faff 0%, #eaf3fa 55%, #ffffff 100%);
  isolation: isolate;
  margin-top: 7.5rem;
}

/* コンテンツ */
.journey__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.journey__lead {
  max-width: 62rem;
  margin: 2.5rem auto 0;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  line-height: 2.2;
}

/* ---------- JOURNEY VISUAL ---------- */
.journey__visual {
  position: absolute;
  z-index: 0;
  left: -3rem;
  bottom: -2rem;
  width: min(65vw, 65rem);
  pointer-events: none;
  opacity: 0.5;
  border-radius: 0;
  overflow: visible;

  /* 画像を右側に向かって透明にする */
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 35%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );

  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.95) 35%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.2) 80%,
    transparent 100%
  );
}

.journey__visual img {
  display: block;
  width: 100%;
  height: auto;

  /* 画像全体を表示 */
  object-fit: contain;
  object-position: left center;
}

/* 写真の上のブルーオーバーレイは解除 */
.journey__visual::after {
  display: none;
}

/* 下部のライン */
.journey::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(80%, 1000px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(84, 140, 178, 0.3),
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}

/* タブレット */
@media (max-width: 900px) {
  .journey__visual {
    left: -6rem;
    bottom: -2rem;
    width: 18rem;
    opacity: 0.45;
  }
}

/* スマートフォン */
@media (max-width: 600px) {
  .journey {
    padding-block: 6rem 8rem;
    margin-top: 4rem;
  }

  .journey__visual {
    left: auto;
    right: -3rem;
    bottom: -5rem;
    width: 14rem;
    opacity: 0.3;
  }

  .journey__lead {
    margin-top: 2rem;
    font-size: 0.875rem;
    line-height: 2;
  }

  .journey::before {
    width: 18rem;
    top: -6rem;
    right: -8rem;
  }
}
/* ---------- BEGINNING ---------- */
.beginning {
  padding-block: 7.5rem;
  background: #fff;
}

.beginning__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: left;
}

.beginning__text {
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  line-height: 2.2;
}

@media screen and (max-width: 768px) {
  .beginning {
    padding: 1.5rem 0 2.5rem;
  }

  .beginning__text {
    margin-top: 1.75rem;
    font-size: 0.8125rem;
    line-height: 2;
  }
}

/* * ---------- COUNTRY(UK / Malaysia など共通) ---------- * */
.country {
  padding: 2rem 0 4rem;
  background: #fff;
}

.country__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 青い帯(国名) */
.country__label {
  margin: 0;
  padding: 1.375rem 1rem;
  background: #5f87ad;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-align: center;
}

.country__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: center;
  margin-top: 5rem;
}

.country__thumb {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.country__img {
  display: block;
  width: 100%;
  aspect-ratio: 661 / 323;
  object-fit: cover;
}

.country__title {
  margin: 0;
  font-family: var(--familySerifJP);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.country__text {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

/* 左右を入れ替えたいとき: <div class="country__row country__row--reverse"> */
.country__row--reverse .country__thumb {
  order: 2;
}

@media screen and (max-width: 560px) {
  .country__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- PAST AWARDEES ---------- */

.past-awardees {
  padding-bottom: 7.5rem;
  background: #fff;
}

.past-awardees__Inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: left;
}

.past-event__moreText {
  margin-bottom: 3.75rem;
  letter-spacing: 0.08em;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 2rem 0 6rem;
  background: #fff;
}

.gallery__title {
  margin: 0;
  font-family: var(--familySerifJP);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
}

.gallery__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.gallery__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery__link {
  display: block;
  overflow: hidden;
  background: #d9d9d9;
}

.gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 286 / 204;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .gallery__link:hover .gallery__img {
    transform: scale(1.06);
  }
}

@media screen and (max-width: 1024px) {
  .gallery__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .gallery {
    padding: 1.5rem 0 4rem;
  }

  .gallery__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-top: 1.75rem;
  }
}

/* ---------- GALLERY ページネーション ---------- */
.gallery__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.gallery__pagerBtn {
  position: relative;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.gallery__pagerBtn.is-active {
  border-color: #5f87ad;
  background: #5f87ad;
  color: #fff;
  pointer-events: none;
}

@media (hover: hover) {
  .gallery__pagerBtn:not(.is-active):not(:disabled):hover {
    border-color: #5f87ad;
    color: #5f87ad;
  }
}

.gallery__pagerBtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 前へ・次へ(矢印をCSSで描く) */
.gallery__pagerBtn--prev::after,
.gallery__pagerBtn--next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.gallery__pagerBtn--prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.gallery__pagerBtn--next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

@media screen and (max-width: 768px) {
  .gallery__pager {
    gap: 0.375rem;
    margin-top: 2rem;
  }

  .gallery__pagerBtn {
    min-width: 2.5rem;
    height: 2.5rem;
  }
}
