@layer page {
  /* Consolidated page styles for guide-research.html */
  /* Page-specific styles for guide-research.html */
  .research-page {
    background: #f4f6f9;
  }
  .research-hero {
    background: linear-gradient(135deg, #0a192f, #1e3a5f 62%, #334155);
    color: #fff;
    padding: 76px 0 64px;
    position: relative;
    overflow: hidden;
  }
  .research-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
      circle at 78% 20%,
      rgba(249, 115, 22, 0.22),
      transparent 35%
    );
  }
  .research-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), 1120px);
    margin: auto;
  }
  .research-kicker {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.45);
    color: #fed7aa;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .research-hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.85rem, 4vw, 3.1rem);
    line-height: 1.25;
    margin: 0 0 18px;
  }
  .research-hero p {
    max-width: 820px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
  }
  .research-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
  .research-actions a {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
  }
  .research-actions .primary {
    background: #f97316;
    color: #fff;
  }
  .research-actions .secondary {
    border: 1px solid rgba(255, 255, 255, 0.46);
    color: #fff;
  }
  .research-wrap {
    width: min(calc(100% - 40px), 1120px);
    margin: auto;
    padding: 48px 0 92px;
  }
  .research-toc {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 34px;
  }
  .research-toc a {
    display: block;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-left: 4px solid #f97316;
    border-radius: 0 12px 12px 0;
    padding: 13px 15px;
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(5, 17, 31, 0.05);
  }
  .research-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);
  }
  .research-panel h2 {
    font-family: "Noto Serif JP", serif;
    color: #1e3a5f;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.38;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4af37;
  }
  .research-panel h3 {
    font-size: 1.05rem;
    color: #1e3a5f;
    margin: 24px 0 8px;
    padding-left: 12px;
    border-left: 4px solid #d4af37;
  }
  .research-panel p,
  .research-panel li {
    line-height: 1.9;
    color: #1a1a1a;
  }
  .method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
  }
  .method-card {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-left: 5px solid #1e3a5f;
    border-radius: 0 14px 14px 0;
    padding: 18px;
  }
  .method-card strong {
    display: block;
    color: #1e3a5f;
    margin-bottom: 7px;
  }
  .method-card span {
    display: inline-flex;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 9px;
    margin-bottom: 8px;
  }
  .read-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
  }
  .read-table th,
  .read-table td {
    border: 1px solid #dbe4ee;
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.75;
  }
  .read-table th {
    background: #f8fafc;
    color: #1e3a5f;
    font-weight: 900;
  }
  .caution {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 5px solid #f97316;
    border-radius: 0 14px 14px 0;
    padding: 17px 19px;
    margin: 14px 0;
  }
  .caution strong {
    color: #9a3412;
  }
  .next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .next-grid a {
    display: block;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-top: 4px solid #f97316;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 900;
  }
  .next-grid span {
    display: block;
    color: #4b5563;
    font-size: 0.86rem;
    line-height: 1.75;
    margin-top: 6px;
    font-weight: 500;
  }
  @media (max-width: 900px) {
    .research-toc,
    .next-grid {
      grid-template-columns: 1fr 1fr;
    }
    .method-grid {
      grid-template-columns: 1fr;
    }
    .read-table {
      display: block;
      overflow-x: auto;
    }
  }
  @media (max-width: 620px) {
    .research-toc,
    .next-grid {
      grid-template-columns: 1fr;
    }
    .research-panel {
      padding: 22px 18px;
    }
    .research-hero {
      padding: 58px 0 48px;
    }
  }

  /* Page-specific styles for guide-research.html */
  body.research-editorial {
    background: #fff;
  }
  body.research-editorial .research-inner,
  body.research-editorial .research-wrap {
    width: min(calc(100% - 40px), 920px);
  }
  body.research-editorial .research-kicker {
    text-transform: none;
    letter-spacing: 0.03em;
    border-radius: 3px;
  }
  body.research-editorial .research-hero h1 em {
    color: #fed7aa;
    font-style: normal;
  }
  body.research-editorial .research-actions,
  body.research-editorial .research-toc {
    display: none;
  }
  body.research-editorial .research-wrap {
    padding: 68px 0 92px;
  }
  body.research-editorial .research-panel {
    margin: 0;
    padding: 38px 0 42px;
    background: #fff;
    border: 0;
    border-top: 1px solid #cfd8e2;
    border-radius: 0;
    box-shadow: none;
  }
  body.research-editorial .research-panel:first-child {
    border-top: 2px solid #1e3a5f;
  }
  body.research-editorial .research-panel:last-child {
    border-bottom: 1px solid #cfd8e2;
  }
  body.research-editorial .research-panel h2 {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 18px;
    line-height: 1.5;
  }
  body.research-editorial .method-grid,
  body.research-editorial .next-grid {
    display: block;
    margin-top: 20px;
  }
  body.research-editorial .method-card {
    margin: 0;
    padding: 20px 0;
    background: #fff;
    border: 0;
    border-top: 1px solid #dbe4ee;
    border-radius: 0;
  }
  body.research-editorial .method-card:last-child {
    border-bottom: 1px solid #dbe4ee;
  }
  body.research-editorial .method-card span {
    display: block;
    width: max-content;
    margin: 0 0 6px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #9a3412;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
  body.research-editorial .next-grid a {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
    margin: 0;
    padding: 18px 0;
    background: #fff;
    border: 0;
    border-top: 1px solid #dbe4ee;
    border-radius: 0;
    box-shadow: none;
  }
  body.research-editorial .next-grid a:last-child {
    border-bottom: 1px solid #dbe4ee;
  }
  body.research-editorial .next-grid span {
    margin: 0;
  }
  body.research-editorial .caution {
    border-radius: 0;
    box-shadow: none;
  }
  body.research-editorial main a:hover {
    transform: none;
    box-shadow: none;
  }
  @media (max-width: 700px) {
    body.research-editorial .next-grid a {
      grid-template-columns: 1fr;
      gap: 5px;
    }
    body.research-editorial .research-inner,
    body.research-editorial .research-wrap {
      width: min(calc(100% - 30px), 920px);
    }
  }

  /* Page-specific styles for guide-research.html */
  body.research-editorial .research-kicker,
  body.research-editorial .method-card > span {
    display: none;
  }
  body.research-editorial .method-card {
    padding: 20px 0;
  }
}
