@layer page {
  /* Page-specific styles for compliance.html */
  .compliance-hero {
    position: relative;
    overflow: hidden;
    background: #0b2a4a;
    color: #fff;
    padding: 74px 0 58px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  }
  .compliance-hero-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .compliance-hero-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.14) saturate(1.06);
  }
  .compliance-hero-bg-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        90deg,
        rgba(5, 17, 31, 0.38) 0%,
        rgba(5, 17, 31, 0.2) 52%,
        rgba(5, 17, 31, 0.08) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(5, 17, 31, 0.16) 100%
      );
  }
  .compliance-hero-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), 1120px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: end;
  }
  .compliance-hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(5, 17, 31, 0.46);
  }
  .compliance-hero-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.95;
    text-shadow: 0 2px 10px rgba(5, 17, 31, 0.42);
  }
  .compliance-hero-link a {
    color: #fff;
    font-weight: 900;
    text-underline-offset: 4px;
  }
  .hero-count {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
  }
  .hero-count-num {
    display: block;
    font-family: "Noto Serif JP", serif;
    color: var(--gold-lt);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 0.95;
  }
  .hero-count-label {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
    font-weight: 800;
    margin-top: 10px;
    line-height: 1.6;
  }
  .reading-guide {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 44px 0;
  }
  .reading-guide-inner {
    width: min(calc(100% - 40px), 1040px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 44px;
    align-items: start;
  }
  .reading-guide h2 {
    font-family: "Noto Serif JP", serif;
    color: var(--navy);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    line-height: 1.35;
  }
  .reading-guide p {
    color: var(--text-soft);
    line-height: 1.9;
    margin-bottom: 18px;
  }
  .reading-steps {
    display: grid;
    gap: 12px;
    counter-reset: step;
  }
  .reading-step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
  }
  .reading-step::before {
    content: counter(step, decimal-leading-zero);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.14);
    color: var(--navy);
    font-weight: 900;
    font-size: 0.76rem;
  }
  .reading-step strong {
    display: block;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 2px;
  }
  .reading-step span {
    display: block;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.75;
  }
  .case-anchor-nav {
    position: sticky;
    top: 75px;
    z-index: 80;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(5, 17, 31, 0.06);
  }
  .case-anchor-inner {
    width: min(calc(100% - 32px), 1180px);
    margin-inline: auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .case-anchor-inner::-webkit-scrollbar {
    display: none;
  }
  .case-anchor-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 15px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--t);
  }
  .case-anchor-link span {
    color: var(--red);
    font-family: "Noto Serif JP", serif;
    font-size: 0.9rem;
  }
  .case-anchor-link:hover {
    color: var(--navy);
    border-bottom-color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
  }
  .compliance-main {
    background: linear-gradient(180deg, #f6f8fb 0%, #fff 22%, #f6f8fb 100%);
  }
  .case-section {
    padding: 74px 0;
    border-bottom: 1px solid #e8edf4;
  }
  .case-section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.72);
  }
  .case-wrap {
    width: min(calc(100% - 40px), 1080px);
    margin-inline: auto;
  }
  .case-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .case-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
  }
  .case-title {
    font-family: "Noto Serif JP", serif;
    color: var(--navy);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .case-lead {
    max-width: 820px;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 34px;
  }
  .case-lead::before {
    content: none;
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(5, 17, 31, 0.07);
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .case-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: start;
    margin-bottom: 28px;
  }
  .case-figure {
    margin: 0;
    position: sticky;
    top: 142px;
  }
  .case-placeholder {
    min-height: 330px;
    border: 1.5px dashed #b7c2d0;
    border-radius: 10px;
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.92),
        rgba(244, 246, 249, 0.95)
      ),
      repeating-linear-gradient(
        -45deg,
        transparent 0 12px,
        rgba(30, 58, 95, 0.04) 12px 24px
      );
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
  }
  .placeholder-label {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(185, 28, 28, 0.09);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
  }
  .placeholder-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.45;
  }
  .case-figure figcaption {
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.7;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 3px solid rgba(212, 175, 55, 0.75);
  }
  .case-evidence-gallery {
    display: grid;
    gap: 14px;
  }
  .case-evidence-gallery figure {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .case-evidence-gallery img {
    width: 100%;
    height: auto;
    background: #f8fafc;
  }
  .case-evidence-gallery figcaption {
    padding: 10px 12px 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.65;
  }
  .publication-note {
    width: min(calc(100% - 40px), 1040px);
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--gold);
    border-radius: 0 10px 10px 0;
    background: #fffbeb;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.85;
  }
  .case-body {
    display: grid;
    gap: 22px;
  }
  .case-block {
    border-left: 4px solid var(--line);
    padding-left: 20px;
  }
  .case-block.problem {
    border-left-color: var(--red);
  }
  .case-block.law {
    border-left-color: var(--blue);
  }
  .case-block h3 {
    font-size: 0.98rem;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 10px;
  }
  .case-block p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.85;
  }
  .case-block p + p {
    margin-top: 10px;
  }
  .issue-list {
    list-style: none;
    display: grid;
    gap: 9px;
  }
  .issue-list li {
    position: relative;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.75;
    padding-left: 22px;
  }
  .issue-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
  }
  .law-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .law-tags span {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.74rem;
    font-weight: 800;
  }
  .strong-note {
    color: #7f1d1d;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--red);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    font-weight: 800;
    line-height: 1.8;
  }
  .case-actions {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid #dbe2ec;
    padding-top: 24px;
  }
  .case-actions h4 {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 900;
    margin-bottom: 10px;
  }
  .case-actions ul {
    list-style: none;
    display: grid;
    gap: 7px;
  }
  .case-actions li,
  .case-actions a {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.65;
    text-decoration: none;
  }
  .case-actions a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.7);
    text-underline-offset: 4px;
  }
  .closing-cta {
    background: linear-gradient(135deg, var(--navy), #13263f 58%, #6b1f1f);
    color: #fff;
    padding: 68px 0 76px;
  }
  .closing-inner {
    width: min(calc(100% - 40px), 1080px);
    margin-inline: auto;
  }
  .closing-cta h2 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .closing-cta p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
    margin-bottom: 28px;
  }
  .closing-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  .closing-link {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    transition: var(--t);
  }
  .closing-link:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.72);
    background: rgba(255, 255, 255, 0.1);
  }
  .closing-link strong {
    color: var(--gold-lt);
    font-size: 0.94rem;
    line-height: 1.45;
  }
  .closing-link span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    line-height: 1.55;
  }
  @media (max-width: 960px) {
    .compliance-hero-inner,
    .reading-guide-inner,
    .case-layout {
      grid-template-columns: 1fr;
    }
    .hero-count,
    .case-figure {
      position: static;
    }
    .case-actions,
    .closing-links {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 640px) {
    .compliance-hero {
      padding: 54px 0 42px;
    }
    .case-anchor-nav {
      top: 73px;
    }
    .case-section {
      padding: 54px 0;
    }
    .case-wrap,
    .compliance-hero-inner,
    .reading-guide-inner,
    .closing-inner {
      width: min(calc(100% - 28px), 1080px);
    }
    .case-placeholder {
      min-height: 260px;
      padding: 22px;
    }
    .case-actions,
    .closing-links {
      grid-template-columns: 1fr;
    }
    .case-anchor-link {
      padding: 12px 13px;
    }
  }
}
