@charset "utf-8";

.l-inner {
  padding-inline: 20px;
  width: 100%;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .l-inner {
    padding-inline: 40px;
    max-width: calc(1246px + 40px * 2);
  }
}

.top__section-inner {
  padding-inline: 10px;
  margin-inline: auto;
  max-width: calc(1346px + 10px * 2);
  width: 100%;
}

/* =======================
（）英字のタイトル
=========================*/
.title__en {
  color: var(--color-title-en);
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: calc(200 / 1000 * 1em);
  line-height: calc(24 / 15);
}
/* =======================
（）英字下日本語タイトル
=========================*/
.title-ja {
  font-size: clamp(23px, 2.64vw, 36px);
  font-weight: 600;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(40 / 36);
}
/* =======================
description（小）
=========================*/
.description__base {
  font-size: 13px;
  line-height: calc(30 / 13);
}
/* =======================
縦書き
=========================*/
.vertical-text {
  writing-mode: vertical-rl; /* 右から左への縦書き */
  text-orientation: upright; /* 文字を正立させる */
}

/* =======================
ボタン
=========================*/
.section__button-link {
  min-width: 219px;
  background: var(--color-accent);
  padding: 13px 89px 13px 22px;
  border-radius: 5px;
  color: var(--color-white);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  line-height: calc(30 / 15);
  position: relative;
  display: inline-block;
}

.section__button-link::after {
  content: "";
  position: absolute;
  width: 30px;
  height: auto;
  aspect-ratio: 30/30;
  border-radius: 5px;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  background: url(../images/button-arrow-icon.svg) no-repeat center
    center/contain;
  transition: all 0.3s ease;
}

.section__button-link:hover {
  background: #b22517;
  opacity: 1;
}

.section__button-link:hover::after {
  right: 5px;
}

.section__button-link p {
  color: var(--color-white);
}

/* =====================
パンくずリスト
======================= */
.c-breadcrumbs__wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .c-breadcrumbs__wrapper {
    gap: 16px;
  }
}

.c-breadcrumbs__link {
  color: #aaaaaa;
}

.c-breadcrumbs__text {
  color: #d9d9d9;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: calc(60 / 1000 * 1em);
}

.c-breadcrumbs__icon {
  width: 7px;
  aspect-ratio: 7/8;
}

.c-breadcrumbs__icon img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: auto;
}

/* =======================
カテゴリー
=========================*/
.c-category {
  color: #372710;
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(24 / 14);
  background: var(--color-white);
  border-radius: 30px;
  padding: 15px;
  min-width: 160px;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

.c-category:hover,
.c-category:focus {
  opacity: 1;
  color: var(--color-white) !important;
  background: var(--color-accent);
}

/* ======================
ページネーション
========================== */
.webgene-pagination ul {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .webgene-pagination ul {
    gap: 30px;
  }
}

@media screen and (min-width: 1000px) {
  .webgene-pagination ul {
    gap: 30px;
    bottom: -80px;
  }
}

.number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.number a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: #4b4b4b;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
}

.selected a {
  color: var(--color-white);
  background: var(--color-accent);
}

.selected a:hover {
  color: var(--color-white) !important;
}

/* ページネーション矢印の基本スタイル */
.prev a,
.next a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #919191;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  transition: all 0.3s ease;
}

/* 疑似要素の基本設定 */
.prev a::before,
.next a::after {
  content: "";
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

/* Prevアイコン（左向き矢印）*/
.prev a::before {
  padding-right: 40px;
  background: url(../images/pagination-left.svg) no-repeat center center/contain;
}

/* Nextアイコン（右向き矢印）*/
.next a::after {
  padding-left: 40px;
  background: url(../images/pagination-right.svg) no-repeat center
    center/contain;
}

/* ホバー・フォーカス時のスタイル */
.prev a:hover,
.prev a:focus,
.next a:hover,
.next a:focus {
  color: #4b4b4b !important;
}

/* ホバー・フォーカス時のアイコン変更 */
.prev a:hover::before,
.prev a:focus::before {
  background: url(../images/pagination-left-b.svg) no-repeat center
    center/contain;
}

.next a:hover::after,
.next a:focus::after {
  background: url(../images/pagination-right-b.svg) no-repeat center
    center/contain;
}
