/* ------------------------------
  資料ダウンロードページ専用スタイル
  （共通ヘッダー／フッター／SubPageHero／CTAは style.css を参照）
------------------------------ */

.reg-mark {
  font-size: 0.5em;
  vertical-align: super;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: max(1.75rem, 24px);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-dark);
}

.section-heading::after {
  width: 2.75rem;
  height: 0.1875rem;
  margin-top: 1rem;
  border-radius: 0.125rem;
  background-color: var(--color-primary);
  content: "";
}

/* 冒頭リード文 */
.page-intro {
  max-width: 84rem;
  margin: 3rem auto 0;
  padding: 0 3rem;
  font-size: max(0.875rem, 12px);
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text-light);
}

/* セクション共通 */
.page-section {
  max-width: 84rem;
  margin: 0 auto;
  padding: 4rem 3rem;
}

/* 製品ごとのグループ */
.download-group {
  max-width: 84rem;
  margin: 0 auto;
}

.download-group + .download-group {
  margin-top: 3.5rem;
}

.download-group__raw-name {
  margin-bottom: 0.25rem;
  font-size: max(1rem, 14px);
  font-weight: 600;
  color: var(--color-text-light);
}

.download-group__title {
  font-size: max(1.1875rem, 16px);
  font-weight: 700;
  color: var(--color-primary-dark);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #dbe5ee;
}

.download-group__title a {
  color: inherit;
}

@media (any-hover: hover) {
  .download-group__title a:hover {
    color: var(--color-primary);
    opacity: 1;
  }
}

/* 資料リスト */
.resource-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  border: 1px solid #dbe5ee;
  border-radius: 0.5rem;
  background-color: #fff;
}

.resource-item__label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: max(0.9375rem, 13px);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.resource-item__meta {
  font-size: max(0.75rem, 11px);
  font-weight: 500;
  color: #91a2b3;
}

.resource-item__buttons {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.resource-item__button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  font-size: max(0.8125rem, 12px);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.resource-item__button svg {
  fill: currentcolor;
}

.resource-item__button--download {
  background-color: var(--color-primary);
  color: #fff;
}

@media (any-hover: hover) {
  .resource-item__button--view:hover {
    background-color: var(--color-primary);
    color: #fff;
    opacity: 1;
  }

  .resource-item__button--download:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    opacity: 1;
  }
}

/* ------------------------------
  レスポンシブ
------------------------------ */
@media screen and (max-width: 1199px) {
  .page-intro,
  .page-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media screen and (max-width: 767px) {
  .page-intro {
    padding: 0 1.25rem;
    font-size: 0.8125rem;
  }

  .page-section {
    padding: 3rem 1.25rem;
  }

  .section-heading {
    font-size: 1.375rem;
  }

  .download-group + .download-group {
    margin-top: 2.5rem;
  }

  .resource-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .resource-item__buttons {
    width: 100%;
  }

  .resource-item__button {
    flex: 1;
    justify-content: center;
  }
}
