/*
 * Home Articles Section
 */

/* =========================================================
   Home / Articles
   木机の上の書籍ジャーナル
   ========================================================= */
.s-home-articles {
  position: relative;
  padding: clamp(4rem, 8vh, 8rem) 0 clamp(7rem, 12vh, 12rem);
  padding-inline: 0;
  background-color: hsl(25, 30%, 22%);
  background-image: url("/assets/images/common/bg/bg_wooden_desk.webp");
  background-size: cover;
  background-position: center;
  overflow: visible;
}

.s-home-articles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 68% 62% at 55% 34%,
      hsla(36, 38%, 72%, 0.06) 0%,
      hsla(30, 22%, 26%, 0.14) 42%,
      hsla(22, 30%, 8%, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      hsla(0, 0%, 100%, 0.02) 0%,
      hsla(0, 0%, 0%, 0.12) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.s-home-articles__env {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width, 1080px));
  margin: 0 auto;
  padding: 0 var(--space-4);
  perspective: 1400px;
}

.s-home-articles__book {
  position: relative;
  z-index: 10;
  width: 100%;
  border-radius: 12px;
  transform: rotateX(1.35deg);
  box-shadow:
    0 58px 94px hsla(20, 35%, 6%, 0.48),
    0 26px 38px hsla(24, 28%, 8%, 0.34),
    0 11px 17px hsla(25, 24%, 8%, 0.22);
}

.s-home-articles__book::before {
  content: "";
  position: absolute;
  inset: auto 1% -1.45rem;
  height: 2.6rem;
  background: radial-gradient(
    ellipse at center,
    hsla(18, 40%, 5%, 0.44) 0%,
    hsla(18, 40%, 5%, 0.17) 55%,
    hsla(18, 40%, 5%, 0) 100%
  );
  filter: blur(13px);
  z-index: 0;
  pointer-events: none;
}

.s-home-articles__book-cover {
  position: absolute;
  top: -14px;
  right: -14px;
  bottom: -18px;
  left: -14px;
  border-radius: 10px 15px 15px 10px;
  background:
    linear-gradient(180deg, hsla(24, 26%, 20%, 0.92), hsla(18, 28%, 12%, 0.98)),
    linear-gradient(90deg, hsla(38, 40%, 50%, 0.07), transparent 28%);
  box-shadow:
    inset 0 1px 0 hsla(38, 45%, 72%, 0.08),
    inset -12px 0 18px hsla(0, 0%, 0%, 0.12),
    0 12px 18px hsla(20, 35%, 8%, 0.25);
  z-index: 1;
}

.s-home-articles__book-cover::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 16px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    hsla(40, 28%, 28%, 0.55),
    hsla(20, 20%, 8%, 0.3)
  );
  opacity: 0.85;
}

.s-home-articles__book-foredge {
  position: absolute;
  top: 6px;
  bottom: 8px;
  z-index: 1;
  overflow: hidden;
}

.s-home-articles__book-foredge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      hsla(42, 18%, 95%, 0.78) 0 1px,
      hsla(39, 14%, 78%, 0.46) 1px 2px,
      hsla(39, 12%, 70%, 0.18) 2px 3px,
      transparent 3px 4px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0 5px,
      hsla(34, 18%, 52%, 0.12) 5px 6px,
      transparent 6px 9px
    );
  opacity: 0.95;
  mix-blend-mode: multiply;
}

.s-home-articles__book-foredge--left {
  left: -11px;
  width: 15px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(
    to left,
    hsla(42, 28%, 89%, 1) 0,
    hsla(42, 24%, 86%, 1) 2px,
    hsla(41, 20%, 82%, 1) 5px,
    hsla(40, 17%, 78%, 1) 8px,
    hsla(39, 14%, 73%, 1) 11px,
    hsla(39, 12%, 67%, 1) 15px
  );
}

.s-home-articles__book-foredge--right {
  right: -11px;
  width: 15px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    to right,
    hsla(43, 30%, 91%, 1) 0,
    hsla(42, 26%, 87%, 1) 2px,
    hsla(41, 22%, 83%, 1) 5px,
    hsla(40, 18%, 79%, 1) 8px,
    hsla(39, 14%, 74%, 1) 11px,
    hsla(39, 12%, 68%, 1) 15px
  );
}

.s-home-articles__book-pages {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 4px 10px 10px 4px;
  background-color: hsl(42, 34%, 88%);
  background-image:
    radial-gradient(circle at 12% 8%, hsla(0, 0%, 100%, 0.2), transparent 22%),
    radial-gradient(
      circle at 85% 26%,
      hsla(35, 35%, 60%, 0.07),
      transparent 18%
    ),
    linear-gradient(180deg, hsla(42, 22%, 92%, 0.18), hsla(35, 20%, 80%, 0.05)),
    url("/assets/images/common/bg/bg_parchment_texture.webp");
  background-size: auto, auto, auto, cover;
  background-position: center;
  background-blend-mode: screen, multiply, multiply, multiply;
  box-shadow:
    inset 0 0 0 1px hsla(36, 24%, 58%, 0.16),
    inset 0 0 90px hsla(30, 40%, 18%, 0.14),
    inset 8px 0 18px hsla(28, 22%, 10%, 0.08),
    inset -8px 0 18px hsla(28, 22%, 10%, 0.08);
}

.s-home-articles__book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 118px;
  margin-left: -59px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    to right,
    hsla(30, 18%, 14%, 0) 0%,
    hsla(30, 18%, 14%, 0.07) 16%,
    hsla(28, 18%, 12%, 0.2) 34%,
    hsla(26, 24%, 8%, 0.48) 50%,
    hsla(28, 18%, 12%, 0.22) 66%,
    hsla(30, 18%, 14%, 0.07) 84%,
    hsla(30, 18%, 14%, 0) 100%
  );
}

.s-home-articles__book-spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    180deg,
    hsla(30, 18%, 20%, 0.12),
    hsla(30, 28%, 6%, 0.28),
    hsla(30, 18%, 20%, 0.12)
  );
}

.s-home-articles__page {
  position: relative;
  min-width: 0;
  padding: clamp(2.1rem, 4.1vh, 3.4rem) clamp(2.05rem, 4vw, 3.1rem)
    clamp(2rem, 4.1vh, 3rem);
  box-sizing: border-box;
}

.s-home-articles__page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 14% 12%,
      hsla(35, 40%, 70%, 0.06),
      transparent 22%
    ),
    radial-gradient(
      circle at 84% 84%,
      hsla(28, 25%, 42%, 0.05),
      transparent 18%
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

.s-home-articles__page--left {
  padding-right: clamp(3.1rem, 5vw, 4.7rem);
}

.s-home-articles__page--right {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-left: clamp(3.1rem, 5vw, 4.7rem);
}

.s-home-articles__bookmark {
  position: absolute;
  top: -7px;
  left: 12px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 30px;
  height: 96px;
  padding-bottom: 8px;
  background: linear-gradient(
    180deg,
    hsla(352, 46%, 46%, 1) 0%,
    hsla(350, 54%, 28%, 1) 100%
  );
  box-shadow: 3px 6px 12px hsla(0, 0%, 0%, 0.22);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 11px), 0 100%);
}

.s-home-articles__bookmark-paw {
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  color: hsla(45, 86%, 71%, 1);
}

.s-home-articles__header {
  position: relative;
  z-index: 2;
  margin-bottom: 2.7rem;
  padding-left: 2.55rem;
}

.s-home-articles__eyebrow {
  margin: 0 0 0.42rem;
  color: hsla(174, 44%, 31%, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-home-articles__title {
  margin: 0 0 0.95rem;
  color: hsl(25, 30%, 12%);
  font-size: clamp(1.66rem, 3.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.24;
  text-wrap: pretty;
}

.s-home-articles__header-rule {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}

.s-home-articles__header-rule span {
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    hsla(175, 32%, 34%, 0.4),
    hsla(30, 20%, 54%, 0.18)
  );
}

.s-home-articles__header-rule span:first-child {
  width: 112px;
}

.s-home-articles__header-rule span:last-child {
  width: 78px;
}

.s-home-articles__lead {
  max-width: 28rem;
  margin: 0;
  color: hsla(30, 20%, 24%, 0.92);
  font-size: 0.98rem;
  line-height: 1.92;
}

.s-home-articles__feature-wrapper {
  position: relative;
  z-index: 2;
}

.s-home-articles__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  text-decoration: none;
  background:
    linear-gradient(180deg, hsla(44, 28%, 95%, 0.97), hsla(42, 28%, 92%, 0.95)),
    radial-gradient(circle at 20% 14%, hsla(0, 0%, 100%, 0.18), transparent 28%);
  border: 1px solid hsla(32, 18%, 74%, 0.7);
  border-radius: 4px;
  box-shadow:
    0 8px 18px hsla(28, 18%, 12%, 0.08),
    0 2px 4px hsla(28, 18%, 12%, 0.04);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease,
    background-color 0.34s ease,
    opacity 0.34s ease;
}

.s-home-articles__card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 10;
  width: 62px;
  height: 19px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    hsla(44, 26%, 88%, 0.9),
    hsla(40, 24%, 82%, 0.78)
  );
  box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.08);
  pointer-events: none;
}

.s-home-articles__card--sub:nth-child(even)::before {
  transform: translateX(-50%) rotate(2.8deg);
}

a.s-home-articles__card:hover {
  transform: translateY(-3px) rotate(0.45deg);
  box-shadow:
    0 16px 28px hsla(28, 22%, 10%, 0.14),
    0 5px 10px hsla(28, 22%, 10%, 0.08);
}

.s-home-articles__card-visual {
  position: relative;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.s-home-articles__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

a.s-home-articles__card:hover .s-home-articles__card-img {
  transform: scale(1.028);
}

.s-home-articles__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.18rem 1.18rem 1.12rem;
}

.s-home-articles__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.s-home-articles__date {
  color: hsla(30, 16%, 40%, 0.95);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.s-home-articles__status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.45rem;
  border: 1px solid hsla(40, 24%, 68%, 0.75);
  border-radius: 999px;
  background: hsla(42, 30%, 88%, 0.85);
  color: hsl(25, 28%, 26%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.s-home-articles__card-title {
  margin: 0 0 0.56rem;
  color: hsl(25, 34%, 18%);
  font-size: 1.11rem;
  font-weight: 700;
  line-height: 1.42;
  text-wrap: pretty;
}

.s-home-articles__card--sub .s-home-articles__card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1em * 1.42 * 2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.s-home-articles__card-text {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  color: hsla(30, 15%, 34%, 0.94);
  font-size: 0.86rem;
  line-height: 1.74;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.s-home-articles__card-action {
  margin-top: auto;
  padding-top: 0.92rem;
  border-top: 1px dotted hsla(32, 22%, 70%, 0.8);
  text-align: right;
}

.s-home-articles__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: hsla(174, 48%, 32%, 1);
  font-size: 0.8rem;
  font-weight: 700;
}

.s-home-articles__action-btn span {
  transition: transform 0.22s ease;
}

a.s-home-articles__card:hover .s-home-articles__action-btn span {
  transform: translateX(4px);
}

.s-home-articles__tag-tab {
  display: inline-block;
  padding: 0.27rem 0.82rem 0.28rem;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(
    180deg,
    hsla(175, 44%, 40%, 0.96),
    hsla(175, 46%, 31%, 0.96)
  );
  color: #fff;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.s-home-articles__card-tab-area {
  position: absolute;
  top: 0.82rem;
  left: 0;
  z-index: 2;
}

.s-home-articles__card--feature .s-home-articles__card-visual {
  aspect-ratio: 16 / 10;
}

.s-home-articles__card--sub .s-home-articles__card-visual {
  aspect-ratio: 16 / 9;
}

.s-home-articles__right-viewport {
  position: relative;
  overflow: hidden;
  min-height: 34.75rem;
}

.s-home-articles__right-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.68s cubic-bezier(0.22, 0.8, 0.2, 1);
  will-change: transform;
}

.s-home-articles__right-sheet {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  opacity: 0.74;
  transform: translate3d(2rem, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.52s ease,
    transform 0.68s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.s-home-articles__right-sheet.is-active,
.s-home-articles__right-sheet.is-entering {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.s-home-articles__right-sheet.is-entering .s-home-articles__card {
  animation: homeArticlesCardIn 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.s-home-articles__right-sheet.is-entering .s-home-articles__card:nth-child(2) {
  animation-delay: 70ms;
}

@keyframes homeArticlesCardIn {
  from {
    opacity: 0;
    transform: translate3d(2rem, 0, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.s-home-articles__sub-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.s-home-articles__shelf-note {
  max-width: 22rem;
  margin: auto auto 0;
  padding-top: 1.15rem;
  color: hsla(30, 16%, 34%, 0.9);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
  line-height: 1.7;
}

.s-home-articles__controls {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  width: calc(100% - clamp(2.05rem, 4vw, 3.1rem));
  margin: 1.25rem 0 0 auto;
  padding-right: clamp(1.6rem, 3vw, 2.4rem);
}

.s-home-articles__page-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.s-home-articles__page-btn,
.s-home-articles__view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.5rem;
  padding: 0.58rem 1.12rem;
  border: 1px solid hsla(32, 22%, 68%, 0.78);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    hsla(42, 30%, 93%, 0.98),
    hsla(42, 28%, 89%, 0.96)
  );
  box-shadow:
    0 4px 10px hsla(30, 18%, 12%, 0.06),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.26);
  color: hsl(25, 38%, 18%);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    opacity 0.28s ease;
}

.s-home-articles__page-btn:hover:not(:disabled),
.s-home-articles__view-all:hover {
  transform: translateY(-2px);
  border-color: hsla(174, 34%, 46%, 0.65);
  box-shadow:
    0 8px 16px hsla(30, 18%, 12%, 0.1),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.3);
}

.s-home-articles__page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.s-home-articles__page-indicator,
.s-home-articles__folio {
  color: hsla(30, 15%, 70%, 0.95);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.s-home-articles__view-all-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: hsla(174, 46%, 33%, 1);
}

.s-home-articles__view-all-arrow,
.s-home-articles__page-btn span {
  transition: transform 0.22s ease;
}

.s-home-articles__view-all:hover .s-home-articles__view-all-arrow,
.s-home-articles__page-btn--next:hover:not(:disabled) span {
  transform: translateX(3px);
}

.s-home-articles__page-btn--prev:hover:not(:disabled) span {
  transform: translateX(-3px);
}

.s-home-articles__folio {
  position: absolute;
  right: clamp(2.35rem, 4vw, 3.1rem);
  bottom: 1.3rem;
  color: hsla(30, 14%, 42%, 0.72);
}

.s-home-articles__desk-prop {
  position: absolute;
  right: -12rem;
  bottom: 0;
  z-index: 20;
  width: clamp(15rem, 33vw, 20rem);
  pointer-events: none;
  transform: rotate(-40deg);
}

.s-home-articles__desk-prop-shadow {
  position: absolute;
  inset: 42% 9% 6% 18%;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    hsla(18, 35%, 6%, 0.26) 0%,
    hsla(18, 35%, 6%, 0.08) 58%,
    transparent 100%
  );
  filter: blur(9px);
  transform: rotate(-18deg);
}

.s-home-articles__desk-prop-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.97;
  filter: drop-shadow(8px 12px 12px hsla(20, 34%, 8%, 0.22));
  transform: rotate(12deg);
}

.s-home-articles__diorama-wrapper {
  position: absolute;
  left: -0.9rem;
  bottom: -11.35rem;
  z-index: 10;
  width: clamp(18rem, 27vw, 21rem);
  pointer-events: none;
}

.s-home-articles__diorama-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 11px 16px hsla(0, 0%, 0%, 0.38));
}

@media (max-width: 1080px) {
  .s-home-articles__desk-prop {
    display: none;
  }
}

@media (max-width: 860px) {
  .s-home-articles {
    padding: clamp(4.4rem, 9vw, 6.4rem) 0 clamp(5.3rem, 10vw, 7.2rem);
  }

  .s-home-articles__env {
    width: min(100%, 48rem);
    padding-inline: clamp(1rem, 3.5vw, 1.5rem);
    perspective: none;
  }

  .s-home-articles__book {
    transform: none;
    border-radius: 16px;
    box-shadow:
      0 18px 34px hsla(24, 28%, 8%, 0.22),
      0 7px 14px hsla(24, 28%, 8%, 0.12);
  }

  .s-home-articles__book::before,
  .s-home-articles__book-cover,
  .s-home-articles__book-foredge,
  .s-home-articles__book-spine,
  .s-home-articles__desk-prop,
  .s-home-articles__folio {
    display: none;
  }

  .s-home-articles__book-pages {
    grid-template-columns: 1fr;
    border-radius: 16px;
    box-shadow:
      inset 0 0 0 1px hsla(36, 24%, 58%, 0.14),
      inset 0 0 54px hsla(30, 36%, 18%, 0.09);
  }

  .s-home-articles__page,
  .s-home-articles__page--left,
  .s-home-articles__page--right {
    width: 100%;
    padding: clamp(1.9rem, 4.8vw, 2.55rem);
  }

  .s-home-articles__page--left {
    padding-bottom: clamp(1.35rem, 3vw, 1.8rem);
    border-bottom: 1px solid hsla(34, 22%, 62%, 0.24);
  }

  .s-home-articles__page--right {
    padding-top: clamp(1.35rem, 3vw, 1.8rem);
  }

  .s-home-articles__header {
    margin-bottom: clamp(1.7rem, 4vw, 2.2rem);
  }

  .s-home-articles__right-viewport {
    min-height: 0;
  }

  .s-home-articles__right-sheet {
    transform: translate3d(0, 1rem, 0);
  }

  .s-home-articles__right-sheet.is-entering .s-home-articles__card {
    animation-name: homeArticlesCardInMobile;
  }

  .s-home-articles__sub-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2.4vw, 1.15rem);
  }

  @keyframes homeArticlesCardInMobile {
    from {
      opacity: 0;
      transform: translate3d(0, 1.1rem, 0) scale(0.985);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  .s-home-articles__controls {
    width: 100%;
    margin-top: 1.15rem;
    padding-right: 0;
    justify-content: center;
  }

  .s-home-articles__page-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .s-home-articles__diorama-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 1;
    width: min(58vw, 15rem);
    margin: 1.7rem auto 0;
  }
}

@media (max-width: 640px) {
  .s-home-articles {
    padding: clamp(3.4rem, 10vw, 4.6rem) 0 clamp(4.5rem, 12vw, 5.8rem);
    overflow: hidden;
  }

  .s-home-articles::before {
    background:
      radial-gradient(
        ellipse 90% 34% at 50% 6%,
        hsla(38, 42%, 74%, 0.1),
        transparent 58%
      ),
      linear-gradient(180deg, hsla(22, 24%, 8%, 0.34), hsla(22, 30%, 8%, 0.66));
  }

  .s-home-articles__env {
    width: min(100%, 27.5rem);
    padding-inline: clamp(0.9rem, 4vw, 1.15rem);
  }

  .s-home-articles__book {
    border-radius: 18px;
    box-shadow:
      0 20px 34px hsla(22, 28%, 6%, 0.28),
      0 8px 16px hsla(22, 28%, 6%, 0.16);
  }

  .s-home-articles__book-pages {
    display: block;
    overflow: visible;
    border-radius: 18px;
    background-size: auto, auto, auto, 520px auto;
  }

  .s-home-articles__page,
  .s-home-articles__page--left,
  .s-home-articles__page--right {
    padding: clamp(1.28rem, 5vw, 1.62rem);
  }

  .s-home-articles__page--left {
    padding-top: clamp(1.48rem, 5vw, 1.8rem);
    padding-bottom: 1.22rem;
  }

  .s-home-articles__page--right {
    padding-top: 1.22rem;
  }

  .s-home-articles__bookmark {
    left: 0.95rem;
    width: 24px;
    height: 74px;
    padding-bottom: 7px;
  }

  .s-home-articles__bookmark-paw {
    width: 14px;
    height: 14px;
  }

  .s-home-articles__header {
    margin-bottom: 1.42rem;
    padding-left: 2.05rem;
  }

  .s-home-articles__eyebrow {
    margin-bottom: 0.34rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .s-home-articles__title {
    margin-bottom: 0.72rem;
    font-size: clamp(1.42rem, 7vw, 1.9rem);
    line-height: 1.28;
  }

  .s-home-articles__header-rule {
    margin-bottom: 0.72rem;
  }

  .s-home-articles__header-rule span:first-child {
    width: 86px;
  }

  .s-home-articles__header-rule span:last-child {
    width: 58px;
  }

  .s-home-articles__lead {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .s-home-articles__card {
    overflow: hidden;
    border-radius: 10px;
    box-shadow:
      0 10px 18px hsla(28, 18%, 12%, 0.1),
      0 2px 4px hsla(28, 18%, 12%, 0.05);
  }

  .s-home-articles__card::before {
    top: -8px;
    width: 48px;
    height: 14px;
  }

  .s-home-articles__card-visual {
    border-radius: 10px 10px 0 0;
  }

  .s-home-articles__card--feature .s-home-articles__card-visual {
    aspect-ratio: 16 / 9.5;
  }

  .s-home-articles__card-body {
    padding: 0.98rem 1rem 1rem;
  }

  .s-home-articles__card-meta {
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .s-home-articles__date {
    font-size: 0.74rem;
  }

  .s-home-articles__status-badge {
    padding: 0.14rem 0.42rem;
    font-size: 0.58rem;
  }

  .s-home-articles__card-title {
    font-size: 1rem;
    line-height: 1.48;
  }

  .s-home-articles__card-text {
    margin-bottom: 0.86rem;
    font-size: 0.84rem;
    line-height: 1.68;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .s-home-articles__card-action {
    padding-top: 0.76rem;
  }

  .s-home-articles__sub-list {
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
  }

  .s-home-articles__card--sub {
    display: grid;
    grid-template-columns: minmax(5.8rem, 36%) minmax(0, 1fr);
    min-height: 8.3rem;
  }

  .s-home-articles__card--sub::before {
    left: 28%;
  }

  .s-home-articles__card--sub .s-home-articles__card-visual {
    min-height: 100%;
    aspect-ratio: auto;
    border-radius: 10px 0 0 10px;
  }

  .s-home-articles__card--sub .s-home-articles__card-body {
    padding: 0.82rem 0.86rem;
  }

  .s-home-articles__card--sub .s-home-articles__card-meta {
    display: grid;
    justify-content: start;
    gap: 0.34rem;
    margin-bottom: 0.46rem;
  }

  .s-home-articles__card--sub .s-home-articles__card-title {
    min-height: auto;
    margin-bottom: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .s-home-articles__tag-tab {
    padding: 0.22rem 0.52rem 0.24rem;
    font-size: 0.58rem;
  }

  .s-home-articles__card-tab-area {
    top: 0.56rem;
  }

  .s-home-articles__shelf-note {
    margin: 1rem auto 0;
    padding-top: 0;
    font-size: 0.74rem;
  }

  .s-home-articles__controls {
    gap: 0.72rem;
    margin-top: 1rem;
    padding-inline: 1rem;
  }

  .s-home-articles__page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.58rem;
  }

  .s-home-articles__page-indicator {
    order: -1;
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .s-home-articles__page-btn,
  .s-home-articles__view-all {
    width: 100%;
    min-height: 2.72rem;
    padding: 0.66rem 0.95rem;
  }

  .s-home-articles__page-btn {
    max-width: none;
  }

  .s-home-articles__view-all {
    max-width: 19rem;
  }

  .s-home-articles__diorama-wrapper {
    width: min(72vw, 15.7rem);
    margin-top: 1.25rem;
    margin-bottom: -2.4rem;
  }
}

@media (max-width: 380px) {
  .s-home-articles__card--sub {
    grid-template-columns: minmax(5.15rem, 34%) minmax(0, 1fr);
    min-height: 8rem;
  }

  .s-home-articles__card--sub .s-home-articles__card-body {
    padding: 0.74rem 0.76rem;
  }

  .s-home-articles__card--sub .s-home-articles__card-title {
    font-size: 0.81rem;
    line-height: 1.46;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-home-articles__card,
  .s-home-articles__card-img,
  .s-home-articles__right-track,
  .s-home-articles__right-sheet,
  .s-home-articles__action-btn span,
  .s-home-articles__view-all-arrow,
  .s-home-articles__page-btn span {
    animation: none !important;
    transition: none !important;
  }

  .s-home-articles__page-btn:hover:not(:disabled),
  .s-home-articles__view-all:hover,
  .s-home-articles__card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    filter: none;
  }
}
