/* =============================================
   pages/documents.css — 資料一覧
   ============================================= */


/* -------------------------------------------
   1. ページ説明
   ------------------------------------------- */
.page-description {
  text-align: center;
  font-size: 18px;
  color: var(--c-text-muted);
  line-height: 1.85;
  margin: 32px auto 48px;
  max-width: 880px;
  padding: 0 20px;
}


/* -------------------------------------------
   2. is-style-bar 見出し
   ------------------------------------------- */
.wp-block-heading.is-style-bar {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--c-brand-800);
  margin: 0 0 var(--sp-8);
  padding: 0 0 var(--sp-5);
  position: relative;
  letter-spacing: var(--tr-wide);
  line-height: var(--lh-heading);
  background-image: linear-gradient(to right, var(--c-brand-700), var(--c-brand-700));
  background-size: 80px 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.wp-block-heading.is-style-bar::before {
  content: none !important;
  display: none !important;
}
.wp-block-heading.is-style-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-line);
}


/* -------------------------------------------
   3. 取扱い資料グリッド（documents-grid）
   ------------------------------------------- */
.documents-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin: 0 !important;
}
.wp-block-columns.documents-grid > .wp-block-column.document-item,
.documents-grid .document-item {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 32px !important;
  border-radius: 8px;
  flex-basis: auto !important;
  margin: 0 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wp-block-columns.documents-grid > .wp-block-column.document-item:hover,
.documents-grid .document-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* document-title (is-style-square) */
.document-item .wp-block-heading.is-style-square.document-title,
.document-item h3.document-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-brand-800);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.document-item .wp-block-heading.is-style-square.document-title::before {
  background: var(--c-brand-700) !important;
}
.document-item p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-muted);
  margin: 0;
}


/* -------------------------------------------
   4. 資料請求の流れ（flow-steps）
   ------------------------------------------- */
.flow-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  position: relative;
}
.wp-block-columns.flow-steps > .wp-block-column.flow-step,
.flow-steps .flow-step {
  background: #fff;
  padding: 32px 24px !important;
  border-radius: 8px;
  text-align: center;
  position: relative;
  flex-basis: auto !important;
  margin: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* 矢印（最後以外） */
.wp-block-columns.flow-steps > .wp-block-column.flow-step:not(:last-child)::after,
.flow-steps .flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid var(--c-brand-700);
  z-index: 1;
}

/* STEPナンバー */
.flow-step .flow-number,
.flow-step p.flow-number {
  display: inline-block;
  background: var(--c-brand-800);
  color: #fff;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 16px 0;
}

/* タイトル（is-style-square.flow-step-title） */
.flow-step .wp-block-heading.is-style-square.flow-step-title,
.flow-step h3.flow-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 12px 0;
  line-height: 1.5;
  justify-content: center;
}
.flow-step .wp-block-heading.is-style-square.flow-step-title::before {
  display: none !important;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-muted);
  margin: 0;
}


/* -------------------------------------------
   5. 注釈
   ------------------------------------------- */
.t-small {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 32px 0 0 0;
  text-align: center;
}


/* -------------------------------------------
   6. レスポンシブ
   ------------------------------------------- */
@media (max-width: 1024px) {
  .documents-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .documents-grid,
  .flow-steps {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .wp-block-columns.flow-steps > .wp-block-column.flow-step:not(:last-child)::after,
  .flow-steps .flow-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -22px;
    transform: translateX(50%) rotate(90deg);
  }
}
