@layer page {
  /* Consolidated page styles for case-reading.html */
  /* Page-specific styles for case-reading.html */
  .simple-article {
    background: #f4f6f9;
  }
  .simple-hero {
    background: linear-gradient(135deg, #0a192f, #1e3a5f);
    color: #fff;
    padding: 72px 0 58px;
  }
  .simple-wrap {
    width: min(calc(100% - 40px), 980px);
    margin: auto;
  }
  .simple-hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 0 14px;
  }
  .simple-hero p {
    max-width: 820px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
  }
  .panel {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    padding: 28px 30px;
    margin: 28px 0;
    box-shadow: 0 10px 28px rgba(5, 17, 31, 0.06);
  }
  .panel h2 {
    font-family: "Noto Serif JP", serif;
    color: #1e3a5f;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
  }
  .panel h3 {
    color: #1e3a5f;
    margin: 22px 0 8px;
  }
  .panel p,
  .panel li {
    line-height: 1.95;
    color: #26364a;
  }
  .panel ul,
  .panel ol {
    margin-left: 1.35em;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .card {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-left: 5px solid #f97316;
    border-radius: 0 14px 14px 0;
    padding: 18px;
  }
  .card strong {
    display: block;
    color: #1e3a5f;
    margin-bottom: 6px;
  }
  .notice {
    background: #fff8df;
    border: 1px solid #f3d777;
    border-left: 6px solid #d4af37;
    border-radius: 0 14px 14px 0;
    padding: 17px 19px;
    font-weight: 800;
    color: #3b2f0b;
  }
  .case-flow {
    counter-reset: flow;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .case-flow li {
    counter-increment: flow;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 14px 16px;
    list-style: none;
    position: relative;
    padding-left: 54px;
  }
  .case-flow li::before {
    content: counter(flow);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #1e3a5f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
  }
  .link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .link-row a {
    display: inline-flex;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    color: #1e3a5f;
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    font-weight: 900;
  }
  @media (max-width: 760px) {
    .grid {
      grid-template-columns: 1fr;
    }
    .panel {
      padding: 22px 18px;
    }
  }

  /* Page-specific styles for case-reading.html */
  .simple-article {
    background: #fff;
  }
  .simple-wrap {
    width: min(calc(100% - 40px), 920px);
  }
  .panel {
    margin: 0;
    padding: 38px 0;
    border: 0;
    border-bottom: 1px solid #cfd8e2;
    border-radius: 0;
    box-shadow: none;
  }
  .panel h2 {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .grid {
    display: block;
    border-top: 1px solid #dbe4ee;
  }
  .card {
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #dbe4ee;
    border-radius: 0;
    background: #fff;
  }
  .case-flow {
    gap: 0;
    border-top: 1px solid #dbe4ee;
  }
  .case-flow li {
    padding: 18px 0 18px 42px;
    border: 0;
    border-bottom: 1px solid #dbe4ee;
    border-radius: 0;
    background: #fff;
  }
  .case-flow li::before {
    left: 0;
    border-radius: 0;
  }
  .notice {
    border-radius: 0;
    box-shadow: none;
  }
}
