/* やまなし文化学習協会について */

.page-about .btn-contact--header {
  background: var(--footer-bg);
}

.page-about .global-nav__list > li > a.is-current,
.page-about .global-nav__about-link.is-current {
  box-shadow: inset 0 -3px 0 var(--cat-blue);
}

.breadcrumb {
  padding: 10px 0 6px;
  font-size: 12px;
  color: var(--color-muted);
  border-bottom: 1px solid var(--header-border);
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb__list li:not(:last-child)::after {
  content: ">";
  color: #b0b0b0;
  font-size: 11px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-heading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f0f0 0%, #ebebeb 100%);
  padding: 40px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}

.page-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/common/bg_pattern1.jpg") center / 420px repeat;
  pointer-events: none;
}

.page-heading .container {
  position: relative;
  z-index: 1;
}

.page-heading__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--color-text);
}

.about-page {
  padding-block: 48px 72px;
}

.about-section {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section__heading {
  margin: 0 0 18px;
  text-align: center;
  font-family: "zen-maru-gothic", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.about-section__rule {
  width: 100%;
  height: 4px;
  margin: 0 auto 28px;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    #e60044 0%,
    #e60044 25%,
    #2e6fb1 25%,
    #2e6fb1 50%,
    #f0d03f 50%,
    #f0d03f 75%,
    #2ea0a0 75%,
    #2ea0a0 100%
  );
}

.about-section__body {
  max-width: 1100px;
  margin-inline: auto;
}

.about-section__body p {
  margin: 0 0 1.25em;
  text-align: justify;
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

.about-section__body p.about-section__sign {
  margin-top: 2em;
  text-align: right;
  font-weight: 500;
}

.about-section__subheading {
  margin: 32px 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.entrusted-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}

.entrusted-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  border: 1px solid var(--color-line);
}

.entrusted-table th,
.entrusted-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  vertical-align: top;
}

.entrusted-table thead th {
  background: #e8e8e8;
  font-weight: 700;
  text-align: center;
}

.entrusted-table tbody td:first-child {
  width: 38%;
  background: #f4f4f4;
  white-space: nowrap;
}

.entrusted-table tbody tr:nth-child(even) td:first-child {
  background: #ececec;
}

.entrusted-table tbody tr:nth-child(even) td:last-child {
  background: #fafafa;
}

.doc-year {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-line);
}

.doc-group {
  width: 850px;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 36px;
}

.doc-group:last-child {
  margin-bottom: 0;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .page-heading__title {
    font-size: 40px;
  }

  .about-section__heading {
    font-size: 25px;
  }

  .about-section__subheading {
    font-size: 25px;
    width: 850px;
    max-width: 100%;
    margin-inline: auto;
  }

  .entrusted-table-wrap {
    width: 850px;
    max-width: 100%;
    margin-inline: auto;
  }

  .entrusted-table {
    width: 100%;
  }

  .doc-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.doc-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-white);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-list__link:hover {
  text-decoration: none;
  border-color: #c5c5c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.doc-list__label {
  flex: 1;
  min-width: 0;
}

.doc-list__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* SP：協会下層（お知らせ・各固定ページ）コンテナの横余白 */
@media (max-width: 767px) {
  .page-about .container,
  .page-facilities .container,
  .page-contact .container,
  .page-privacy .container,
  .page-links .container,
  .page-news .container {
    padding-inline: var(--layout-gutter);
  }

  /* 受託施設テーブル：狭幅では期間列も折返し可 */
  .entrusted-table tbody td:first-child {
    white-space: normal;
  }

  .entrusted-table th,
  .entrusted-table td {
    padding: 10px 12px;
    font-size: 15px;
  }
}

/* 協会下層：SP のみ表示する改行（PC では 1 行のまま） */
.assoc-br--sp {
  display: none;
}

@media (max-width: 767px) {
  .assoc-br--sp {
    display: inline;
  }
}

/* ----- 404 Not Found ----- */
.error-404__body {
  padding: 48px 0 72px;
  text-align: center;
}

.error-404__code {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #d5d5d5;
}

.error-404__lead {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
}

.error-404__note {
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.75;
  color: #666;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.error-404__actions .btn-back-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 40px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  background: #3a2e2a;
  transition: opacity 0.2s;
}

.error-404__actions .btn-back-list:hover {
  text-decoration: none;
  opacity: 0.92;
  color: #ffffff;
}

.error-404__link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 40px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #3a2e2a;
  background: #f0f0f0;
  border: 1px solid #ddd;
  transition: opacity 0.2s;
}

.error-404__link-secondary:hover {
  text-decoration: none;
  opacity: 0.92;
  color: #3a2e2a;
}
