/*
|---------------------------------------------------------------
| qinc2026-archive.css - アーカイブページ共通スタイル
|---------------------------------------------------------------
*/

/* ==========================================================================
   Page Wrapper & Background
   ========================================================================== */
.archive-page {
  position: relative;
  overflow-x: clip;          /* decoのはみ出しによる横スクロール防止 */
}


/* ==========================================================================
   Header Decoration (positioned relative to each page's header)
   ========================================================================== */
.archive-page__header-deco {
  display: none;
}

/* ==========================================================================
   Page Header - Flat (page-hero レイアウト準拠、背景透過・角丸なし)
   ========================================================================== */
.archive-page__header {
  position: relative;
  z-index: 1;
  padding: 72px 0 0;
  text-align: center;
}

.archive-page__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-family-en);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
}

.archive-page__label-slash {
  font-weight: 100;
}

.archive-page__title {
  margin: 0;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--color-blue01);
  font-feature-settings: "palt" 1;
}

/* ==========================================================================
   Hero / Featured Article
   ========================================================================== */
.archive-page__hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 0;
}

.archive-hero__deco {
  position: absolute;
  top: -86px;
  left: -101px;                      /* デコ中心(202/2)がbody左端に来る */
  width: 202px;
  height: 211px;
  pointer-events: none;
  z-index: 0;
}

.archive-hero__deco img {
  width: 100%;
  height: 100%;
}

.archive-hero {
  position: relative;
  display: flex;
  gap: 48px;
  align-items: flex-start;

}

.archive-hero__body {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.archive-hero__image {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 46%;
  overflow: hidden;
  border-radius: 8px;
}

.archive-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-hero:hover .archive-hero__image img {
  transform: scale(1.05);
}

.archive-hero {
  transition: opacity 0.2s ease;
}

.archive-hero:hover {
  opacity: 0.7;
}

.archive-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.archive-hero__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-blue01);
  border-radius: 4px;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.archive-hero__badge:hover {
  opacity: 0.7;
}

.archive-hero__title {
  margin: 0 0 24px;
  font-family: var(--font-family-ja);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.5;
  color: var(--color-blue01);
}

/* Stretched link: ヒーロー全体を記事リンクのクリック領域にする */
.archive-hero__link {
  color: inherit;
  text-decoration: none;
}

.archive-hero__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-hero__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-end;
  font-family: var(--font-family-ja);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--color-blue01);
}

.archive-hero__excerpt {
  margin: 0 0 32px;
  font-family: var(--font-family-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--color-blue01);
}

.archive-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--color-white);
  overflow: hidden;
  flex-shrink: 0;
}

.archive-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-hero__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-hero__author-name {
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.33;
  color: #0367a5;
}

.archive-hero__author-date {
  font-family: var(--font-family-en);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  color: var(--color-blue01);
}

/* ==========================================================================
   Section Heading
   ========================================================================== */
.archive-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
}

.archive-section__header .archive-section__heading {
  margin: 0;
}

.archive-section__link {
  font-family: var(--font-family-ja);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.14;
  color: var(--color-blue01);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.archive-section__link:hover {
  opacity: 0.7;
}

.archive-section__heading {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  font-family: var(--font-family-ja);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-blue01);
}

/* ==========================================================================
   Article Card (Horizontal)
   ========================================================================== */
.archive-articles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-article {
  position: relative;
  display: flex;
  gap: 32px;
  padding: 12px 0;
}

.archive-article:hover {
  opacity: 0.7;
}

.archive-article + .archive-article {
  border-top: none;
}

.archive-article__image {
  flex: 0 0 264px;
  height: 163px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #ccc;
}

.archive-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-article:hover .archive-article__image img {
  transform: scale(1.05);
}
}

.archive-article__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.archive-article__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.archive-article__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--color-blue01);
  border-radius: 4px;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 10px;
  line-height: 15px;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.archive-article__badge:hover {
  opacity: 0.7;
}

.archive-article__title {
  margin: 0 0 8px;
  font-family: var(--font-family-ja);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-blue01);
}

/* Stretched link: カード全体を記事リンクのクリック領域にする */
.archive-article__link {
  color: inherit;
  text-decoration: none;
}

.archive-article__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.archive-article__excerpt {
  margin: 0 0 auto;
  font-family: var(--font-family-ja);
  font-weight: 350;
  font-size: 14px;
  line-height: 1.43;
  color: var(--color-blue01);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.archive-article__meta {
  margin-top: 8px;
  font-family: var(--font-family-en);
  font-size: 12px;
  line-height: 1.33;
  color: var(--color-blue01);
}

.archive-article__meta-author {
  font-weight: 700;
  color: #0367a5;
}

.archive-article__meta-sep {
  font-weight: 400;
  color: var(--color-blue-grey02);
  margin: 0 4px;
}

.archive-article__meta-date {
  font-weight: 400;
}

/* ==========================================================================
   Article Card - Grid (Vertical / 4-column)
   ========================================================================== */
.archive-articles--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.archive-articles--grid .archive-article {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 0;
  padding: 0;
}

.archive-articles--grid .archive-article:hover {
  opacity: 1;
}

.archive-articles--grid .archive-article__image {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  border: 1px solid var(--color-blue-grey);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #fff;
  margin-bottom: 16px;
}

.archive-articles--grid .archive-article__image img {
  width: 100%;
  height: auto;
  object-fit: unset;
  transition: transform 0.5s ease;
}

.archive-articles--grid .archive-article:hover .archive-article__image img {
  transform: scale(1.05);
}

.archive-articles--grid .archive-article__body {
  display: contents;
}

.archive-articles--grid .archive-article__title {
  font-size: 16px;
  margin: 0 0 8px;
}

.archive-articles--grid .archive-article__excerpt {
  -webkit-line-clamp: unset;
  margin: 0;
}

.archive-articles--grid .archive-article__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: start;
  margin-top: 12px;
}

.archive-article__category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ==========================================================================
   "もっと見る" Link
   ========================================================================== */
.archive-more {
  display: block;
  padding: 40px 0;
  text-align: center;
}

.archive-more__link {
  font-family: var(--font-family-ja);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.43;
  color: var(--color-blue01);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.archive-more__link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Content Area (relative z-index)
   ========================================================================== */
.archive-page__content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

/* ==========================================================================
   Responsive - Hero
   ========================================================================== */
@media screen and (max-width: 1200px) {
  .archive-hero__deco {
    left: 10%;
    top: -40%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 1024px) {
  .archive-page__header {
    padding: 48px 0 0;
  }

  .archive-page__label {
    font-size: 20px;
  }

  .archive-page__title {
    font-size: 36px;
  }

  .archive-hero {
    gap: 32px;
    min-height: auto;
  }

  .archive-hero__title {
    font-size: 28px;
  }

  .archive-hero__image {
    width: 40%;
  }
}

@media screen and (max-width: 768px) {
  .archive-page__header {
    padding: 36px 0 0;
  }

  .archive-page__label {
    font-size: 16px;
  }

  .archive-page__title {
    font-size: 26px;
  }

  .archive-page__hero {
    padding: 48px 0;
  }

  .archive-hero {
    flex-direction: column;
    gap: 24px;
  }

  .archive-hero__image {
    width: 100%;
    max-height: 240px;
  }

  .archive-hero__title {
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    width: 100%;
  }

  .archive-hero__body {
    width: 100%;
  }

  .archive-hero__excerpt {
    font-size: 14px;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive - Article Card
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .archive-article__image {
    flex: 0 0 200px;
    height: 130px;
  }

  .archive-article__title {
    font-size: 18px;
  }

  .archive-articles--grid {
    gap: 24px;
  }

  .archive-articles--grid .archive-article__image {
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 768px) {
  .archive-article {
    flex-direction: column;
    gap: 12px;
  }

  .archive-article__image {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .archive-article__title {
    font-size: 16px;
  }

  .archive-articles--grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .archive-articles--grid .archive-article__image {
    margin-bottom: 10px;
  }

  .archive-articles--grid .archive-article__title {
    font-size: 14px;
  }
}

