/* =================================
   Archive: voice（お客様の声）
   Figma 無題 file / node 1-4638
================================= */

.voice-archive-page-hero {
  background: #ffffff;
  border-top: 4px solid var(--color-primary-dark);
}

.voice-archive-page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 40px 80px;
  text-align: center;
}

.voice-archive-page-hero__title {
  margin: 0;
  font-family: "Shippori Mincho B1", var(--font-serif);
  font-size: clamp(3rem, 4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.35;
  color: #3e2b2c;
  letter-spacing: 0.04em;
}

.voice-archive-page-hero__subtitle {
  margin: 24px 0 0;
  font-family: "Shippori Mincho B1", var(--font-serif);
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: #b99663;
  letter-spacing: 0.08em;
}

.voice-archive-page .page-wrapper__content::before,
.voice-archive-page .page-wrapper__content::after {
  z-index: 2;
}

.voice-archive-page .page-wrapper__content > .voice-archive-section {
  margin: 0 auto 60px auto;
}

.voice-archive-section {
  background-color: #361a1c;
}

.voice-archive-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 80px 40px;
  box-sizing: border-box;
}

.voice-archive-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  gap: 32px;
}
.voice-archive-section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.26315789;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-align: center;
  white-space: pre-line;
}

.page-wrapper__content h2.voice-archive-section__title {
  text-align: center;
}

.voice-archive-section__tabs-outer {
  align-self: stretch;
  max-width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.voice-archive-section__tablist {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  padding-bottom: 12px;
  box-sizing: border-box;
  overflow: visible;
}

.voice-archive-section__tab {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 22px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
  color: #ffffff;
  background-color: #590d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  appearance: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.voice-archive-section__tab:hover:not(.voice-archive-section__tab--active) {
  opacity: 0.92;
}

.voice-archive-section__tab--active {
  color: #590d12;
  background-color: #ffffff;
  border: 1px solid #590d12;
  border-bottom-color: #ffffff;
  cursor: default;
}

.voice-archive-section__loading,
.voice-archive-section__empty,
.voice-archive-section__noscript {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.875;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-align: center;
}

.voice-archive-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  width: 100%;
  max-width: 100%;
  gap: 16px 34px;
}

.voice-archive-section__card {
  display: grid;
  grid-template-columns: 24px 150px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 0 14px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  min-height: 170px;
  padding: 16px 18px 34px;
  box-sizing: border-box;
  background-color: #ffffff;
  border: none;
}

.voice-archive-section__card-date {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  justify-self: center;
  margin: 0;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: #6d645f;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.voice-archive-section__card-thumb {
  width: 150px;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
}

.voice-archive-section__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.voice-archive-section__card-img--placeholder {
  min-height: 0;
  min-width: 0;
  aspect-ratio: auto;
}

.voice-archive-section__card-main {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 4px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.voice-archive-section__card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.voice-archive-section__card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: #1e1e1e;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb;
}

.voice-archive-section__stars {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  writing-mode: horizontal-tb;
}

.voice-archive-section__star {
  display: flex;
  line-height: 0;
  color: #ffa234;
}

.voice-archive-section__star svg {
  display: block;
  width: 15px;
  height: 15px;
}

.voice-archive-section__card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  margin-top: 0;
}

.voice-archive-section__card-excerpt {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #1e1e1e;
  text-align: left;
  writing-mode: horizontal-tb;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voice-archive-section__card-more-inline {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
  color: var(--color-yellow);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.voice-archive-section__card-more-inline:hover {
  opacity: 0.75;
}

/* ページネーション（Figma: 現行白丸＋#782524、他 #C7440C） */
.voice-archive-section .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.voice-archive-section__pager {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.voice-archive-section__pager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.voice-archive-section__pager-arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.voice-archive-section__pager-svg {
  display: block;
  flex-shrink: 0;
}

.voice-archive-section__pager-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-archive-section__pager-item {
  margin: 0;
  padding: 0;
}

.voice-archive-section__pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.voice-archive-section__pager-num.is-current {
  color: #231815;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: default;
}

.voice-archive-section__pager-num:not(.is-current):hover {
  background-color: rgba(0, 0, 0, 0.58);
}

@media (max-width: 768px) {
  .voice-archive-page-hero__inner {
    padding: 40px 20px 36px;
  }

  .voice-archive-page-hero__title {
    font-size: clamp(2.6rem, 7vw, 3.6rem);
  }

  .voice-archive-page-hero__subtitle {
    margin-top: 18px;
    font-size: 1.7rem;
  }

  .voice-archive-page .page-wrapper__content > .voice-archive-section {
    margin-top: 0;
  }

  .voice-archive-section__inner {
    padding: 60px 20px;
    gap: 40px;
  }

  .voice-archive-section__title {
    font-size: clamp(2.4rem, 6.5vw, 3.8rem);
  }

  .voice-archive-section__tablist {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
  }

  .voice-archive-section__tab {
    padding: 12px 12px;
    font-size: 1.3rem;
    white-space: normal;
    text-align: center;
  }

  .voice-archive-section__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .voice-archive-section__card {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .voice-archive-section__card-date {
    font-size: 1.3rem;
    writing-mode: horizontal-tb;
    justify-self: flex-start;
    align-self: auto;
    padding: 0;
  }

  .voice-archive-section__card-thumb {
    width: 150%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-left: -50px;
    margin-top:20px;
  }

  .voice-archive-section__card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
