@layer page {
  /* Page-specific styles for education-board-responsibility.html */
  .law-wrap {
    width: min(calc(100% - 40px), 1100px);
    margin-inline: auto;
    padding: 56px 0 96px;
  }

  /* 法令カード群 */
  .law-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
  }
  .lc {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
  }
  .lc:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 1px solid var(--line);
  }
  .lc:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .lc-header {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 0;
    cursor: pointer;
    user-select: none;
    padding: 0;
    transition: background 0.2s ease;
  }
  .lc-header:hover {
    background: #f8fafc;
  }
  .lc-num {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    font-family: "Noto Serif JP", serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--navy);
    border-right: 3px solid transparent;
    transition: border-color 0.2s;
  }
  .lc.is-open .lc-num {
    border-color: var(--gold);
  }
  .lc-meta {
    padding: 16px 20px;
  }
  .lc-kicker {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .lc-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--navy);
  }
  .lc-lead {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.55;
    margin-top: 3px;
  }
  .lc-toggle {
    padding: 0 22px;
    color: var(--text-soft);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }
  .lc.is-open .lc-toggle {
    transform: rotate(180deg);
  }
  .lc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0 solid var(--line);
  }
  .lc.is-open .lc-body {
    max-height: 1200px;
    border-top-width: 1px;
  }
  .lc-inner {
    padding: 28px 28px 32px 76px;
  }
  .lc-inner .law-quote {
    margin: 0 0 18px;
  }
  .lc-inner p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 14px;
  }
  .lc-inner h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    margin: 20px 0 8px;
    padding-left: 10px;
    border-left: 3px solid var(--gold);
  }
  .egov-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    transition: var(--t);
  }
  .egov-link:hover {
    background: #dbeafe;
  }

  /* 5論点マトリクス */
  .matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 40px;
  }
  .mx-col {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .mx-head {
    padding: 14px 12px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
  }
  .mx-body {
    background: #fff;
    border: 1px solid var(--line);
    border-top: none;
    padding: 12px;
  }
  .mx-law {
    display: block;
    font-size: 0.75rem;
    color: var(--navy);
    padding: 5px 8px;
    border-radius: 7px;
    margin-bottom: 5px;
    background: rgba(5, 17, 31, 0.05);
    font-weight: 700;
    line-height: 1.4;
  }
  .mx-col:nth-child(1) .mx-head {
    background: #1d4ed8;
  }
  .mx-col:nth-child(2) .mx-head {
    background: #0e7490;
  }
  .mx-col:nth-child(3) .mx-head {
    background: #b45309;
  }
  .mx-col:nth-child(4) .mx-head {
    background: #7c3aed;
  }
  .mx-col:nth-child(5) .mx-head {
    background: #0f766e;
  }

  @media (max-width: 900px) {
    .matrix {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 600px) {
    .matrix {
      grid-template-columns: 1fr 1fr;
    }
    .lc-inner {
      padding: 20px 16px;
    }
    .lc-num {
      font-size: 0.85rem;
    }
  }

  .page-hero {
    position: relative;
    overflow: hidden;
  }
  .page-hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .page-hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05);
  }
  .page-hero-bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      160deg,
      rgba(5, 17, 31, 0.32) 0%,
      rgba(5, 17, 31, 0.14) 60%,
      rgba(5, 17, 31, 0.05) 100%
    );
  }
  .page-hero-inner {
    position: relative;
    z-index: 1;
  }

  /* ↓ Photo hero overrides — keep white text on photo background ↓ */
  .page-hero {
    background: transparent;
    border-top: none;
    border-bottom: none;
  }
  .page-hero h1 {
    color: #fff;
  }
  .page-hero h1 em {
    color: var(--gold-lt);
  }
  .page-hero p {
    color: rgba(255, 255, 255, 0.88);
  }
  .page-hero-kicker {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-lt);
  }
  .hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
  }
  .hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
  }
}
