@layer page {
  /* Consolidated page styles for audit/index.html */
  /* Page-specific styles for audit/index.html */
  /* ===== OPERATION CHECK APP ===== */

  :root {
    --risk-0: #15803d;
    --risk-0-bg: #f0fdf4;
    --risk-0-border: #bbf7d0;
    --risk-1: #2563eb;
    --risk-1-bg: #eff6ff;
    --risk-1-border: #bfdbfe;
    --risk-2: #d97706;
    --risk-2-bg: #fffbeb;
    --risk-2-border: #fde68a;
    --risk-3: #c2410c;
    --risk-3-bg: #fff7ed;
    --risk-3-border: #fed7aa;
    --risk-4: #b91c1c;
    --risk-4-bg: #fff5f5;
    --risk-4-border: #fed7d7;
  }

  body {
    background:
      radial-gradient(
        ellipse 80% 40% at 50% 0%,
        rgba(10, 25, 47, 0.05) 0%,
        transparent 60%
      ),
      linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  }

  /* ===== HERO — cinematic ===== */
  .audit-hero {
    position: relative;
    padding: 96px 0 120px;
    overflow: hidden;
    background: #0b2a4a;
  }
  .audit-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        90deg,
        rgba(5, 17, 31, 0.46) 0%,
        rgba(5, 17, 31, 0.24) 48%,
        rgba(5, 17, 31, 0.08) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(5, 17, 31, 0.12) 100%
      ),
      url("/assets/slides/1.jpg") center/cover;
    filter: brightness(1.08) saturate(1.08);
  }
  .audit-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }
  .audit-hero-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 40px), 1240px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 56px;
    align-items: center;
  }
  .audit-hero-left {
    position: relative;
  }
  .audit-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.42);
    color: var(--color-gold-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 26px;
  }
  .audit-hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
  }
  .audit-hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 22px;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  }
  .audit-hero h1 .accent {
    background: linear-gradient(
      135deg,
      var(--color-gold-light) 0%,
      var(--color-gold) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .audit-hero-lede {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
    line-height: 1.95;
    max-width: 580px;
    margin-bottom: 30px;
  }
  .audit-hero-lede strong {
    color: var(--color-gold-light);
    font-weight: 800;
  }
  .audit-hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .hero-meta-item {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
  }
  .hero-meta-item strong {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold-light);
    line-height: 1;
    margin-bottom: 4px;
  }

  /* ===== HERO RIGHT — 5 axis cards (stacked, linked) ===== */
  .audit-hero-axes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
  .audit-hero-axes-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 6px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .axes-head-title {
    font-family: "Noto Serif JP", serif;
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
  .axes-head-sub {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--color-gold-light);
    font-size: 0.85rem;
  }
  .axis-link {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #fff;
    transition: all 0.28s ease;
    cursor: pointer;
  }
  .axis-link:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateX(4px);
  }
  .axis-link-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(
      135deg,
      rgba(212, 175, 55, 0.22),
      rgba(212, 175, 55, 0.08)
    );
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
  }
  .axis-link-text {
    min-width: 0;
  }
  .axis-link-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
  }
  .axis-link-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
  }
  .axis-link-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 300;
    transition: all 0.3s ease;
  }
  .axis-link:hover .axis-link-arrow {
    color: var(--color-gold);
    transform: translateX(3px);
  }

  /* Risk legend compact in hero */
  .hero-legend-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 14px 6px 4px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mini-lv {
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }
  .mini-lv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 auto 4px;
  }
  .mini-lv-dot.lv0 {
    background: var(--risk-0);
  }
  .mini-lv-dot.lv1 {
    background: var(--risk-1);
  }
  .mini-lv-dot.lv2 {
    background: var(--risk-2);
  }
  .mini-lv-dot.lv3 {
    background: var(--risk-3);
  }
  .mini-lv-dot.lv4 {
    background: var(--risk-4);
  }
  .mini-lv-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
    font-weight: 700;
  }

  /* ===== MAIN SHELL ===== */
  .audit-shell {
    width: min(calc(100% - 40px), 1200px);
    margin: -72px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 0 120px;
  }

  /* ===== INTRO SECTION ===== */
  #screen-intro {
  }

  .intro-section-header {
    text-align: center;
    margin: 48px 0 40px;
  }
  .intro-section-kicker {
    display: inline-block;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: #7a5a0a;
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
  }
  .intro-section-title {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
  }
  .intro-section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    margin: 18px auto 0;
  }
  .intro-section-lead {
    font-size: 1rem;
    color: var(--color-text-soft);
    line-height: 1.85;
    max-width: 640px;
    margin: 0 auto;
  }

  /* ===== MODE CARDS — photos are visual only; text lives outside images ===== */
  .mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
  }
  .mode-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--color-line);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.06);
    text-align: left;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 520px;
  }
  .mode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.2);
    border-color: transparent;
  }
  .mode-card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #e5ecf3;
  }
  .mode-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: brightness(1.04) saturate(1.06);
  }
  .mode-card:hover .mode-card-image img {
    transform: scale(1.04);
  }
  .mode-card-image::before {
    content: none;
  }
  .mode-card-image::after {
    content: none;
  }
  .mode-card-head {
    margin-bottom: 16px;
  }
  .mode-card-kicker {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #fff7d8;
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: #775a10;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .mode-card-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.36rem;
    font-weight: 900;
    color: var(--color-navy);
    line-height: 1.3;
    letter-spacing: 0.01em;
    margin: 0;
  }
  .mode-card-body {
    padding: 26px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .mode-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-soft);
    line-height: 1.85;
    margin-bottom: 20px;
  }
  .mode-check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    border-radius: 14px;
    border-left: 3px solid var(--color-gold);
    margin-bottom: 22px;
  }
  .mode-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 500;
  }
  .mode-check::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
  }
  .mode-start-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--color-navy);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
  }
  .mode-card:hover .mode-start-btn {
    background: linear-gradient(135deg, var(--color-navy) 0%, #284b78 100%);
    transform: translateX(4px);
  }
  .mode-start-btn .arrow {
    transition: transform 0.3s ease;
  }
  .mode-card:hover .mode-start-btn .arrow {
    transform: translateX(6px);
  }

  /* ===== QUESTION SCREEN ===== */
  #screen-question {
    max-width: 820px;
    margin: 40px auto 0;
  }

  .q-progress-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 0 4px;
  }
  .q-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(26, 54, 93, 0.1);
    border-radius: 999px;
    overflow: hidden;
  }
  .q-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
    border-radius: 999px;
    transition: width 0.5s ease;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
  }
  .q-progress-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    white-space: nowrap;
  }

  .q-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    padding: 44px;
    box-shadow: 0 16px 48px rgba(10, 25, 47, 0.1);
    position: relative;
    overflow: hidden;
  }
  .q-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
      90deg,
      var(--color-navy),
      var(--color-gold),
      var(--color-navy)
    );
  }
  .q-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .q-axis-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(26, 54, 93, 0.07);
    color: var(--color-navy);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 1px solid rgba(26, 54, 93, 0.14);
  }
  .q-text {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: var(--color-navy);
    line-height: 1.55;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .q-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .q-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 2px solid var(--color-line);
    background: #fff;
    cursor: pointer;
    transition: all 0.28s ease;
    text-align: left;
    width: 100%;
  }
  .q-option:hover {
    border-color: var(--color-navy);
    background: linear-gradient(135deg, #f8fafc, #eef3f8);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.08);
  }
  .q-option-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-navy), #284b78);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
  }
  .q-option-text {
    font-size: 0.98rem;
    color: var(--color-text);
    line-height: 1.7;
    padding-top: 5px;
  }
  .q-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
  }
  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-line);
    background: #fff;
    color: var(--color-text-soft);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .btn-back:hover:not(:disabled) {
    border-color: var(--color-navy);
    color: var(--color-navy);
    background: #f8fafc;
  }
  .btn-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* ===== RESULT SCREEN ===== */
  #screen-result {
  }

  /* Result Hero Banner — cinematic */
  .result-risk-banner {
    border-radius: 28px;
    padding: 52px 56px;
    margin: 40px 0 36px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 24px 64px rgba(10, 25, 47, 0.2);
  }
  .result-risk-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
  }
  .result-risk-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
      circle,
      rgba(212, 175, 55, 0.15) 0%,
      transparent 65%
    );
    pointer-events: none;
  }
  .result-risk-banner.lv0 {
    background: linear-gradient(135deg, #14532d, #15803d, #166534);
  }
  .result-risk-banner.lv1 {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #1e40af);
  }
  .result-risk-banner.lv2 {
    background: linear-gradient(135deg, #78350f, #d97706, #92400e);
  }
  .result-risk-banner.lv3 {
    background: linear-gradient(135deg, #7c2d12, #c2410c, #9a3412);
  }
  .result-risk-banner.lv4 {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c, #991b1b);
  }

  .banner-inner {
    position: relative;
    z-index: 1;
  }
  .banner-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
  }
  .banner-risk-label {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  .banner-summary {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.06rem;
    line-height: 1.9;
    max-width: 760px;
  }
  .banner-counts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
  }
  .banner-count-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
  }
  .banner-count-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
  }

  /* ===== COMPREHENSIVE ASSESSMENT — the key new addition ===== */
  .assessment-panel {
    background: #fff;
    border-radius: 24px;
    padding: 48px 52px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-line);
    box-shadow: 0 16px 48px rgba(10, 25, 47, 0.08);
  }
  .assessment-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
      90deg,
      var(--color-navy) 0%,
      var(--color-gold) 50%,
      var(--color-navy) 100%
    );
  }
  .assessment-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 240px;
    background-image: url("/assets/slides/2.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
  }
  .assessment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid #eef3f8;
    position: relative;
  }
  .assessment-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .assessment-seal {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(
      circle at 30% 30%,
      #f4e7a6,
      var(--color-gold) 60%,
      #8a6d1f
    );
    display: grid;
    place-items: center;
    color: var(--color-navy-dark);
    font-family: "Noto Serif JP", serif;
    font-weight: 900;
    font-size: 1.4rem;
    border: 3px solid #fff;
    box-shadow:
      0 8px 24px rgba(212, 175, 55, 0.4),
      inset 0 1px 2px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
  }
  .assessment-title-group {
  }
  .assessment-kicker {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.08em;
    margin-bottom: 2px;
  }
  .assessment-title {
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: 0.02em;
    line-height: 1.3;
  }
  .assessment-date {
    text-align: right;
    font-size: 0.82rem;
    color: var(--color-text-soft);
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.04em;
  }
  .assessment-date strong {
    display: block;
    font-family: "Noto Serif JP", serif;
    color: var(--color-navy);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
  }

  .assessment-body {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 2.05;
    letter-spacing: 0;
    white-space: normal;
    word-break: break-word;
  }
  .assessment-body h4 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 24px 0 10px;
    padding-left: 14px;
    border-left: 4px solid var(--color-gold);
    letter-spacing: 0.02em;
  }
  .assessment-body p {
    margin-bottom: 16px;
  }
  .assessment-body p:first-letter {
    font-family: "Noto Serif JP", serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--color-navy);
    float: left;
    line-height: 1;
    margin: 4px 10px 0 0;
  }

  .check-result-summary,
  .check-result-risks,
  .check-result-documents,
  .check-result-actions,
  .check-result-contacts,
  .check-result-questions,
  .check-result-links,
  .check-result-note {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(10, 25, 47, 0.1);
    border-radius: 16px;
    background: #fff;
  }

  .check-result-summary {
    margin-top: 0;
    background: linear-gradient(
      135deg,
      rgba(212, 175, 55, 0.12),
      rgba(255, 255, 255, 0.9)
    );
    border-color: rgba(212, 175, 55, 0.24);
  }

  .check-result-summary h2,
  .check-result-risks h3,
  .check-result-documents h3,
  .check-result-actions h3,
  .check-result-contacts h3,
  .check-result-questions h3,
  .check-result-links h3 {
    margin: 0 0 10px;
    color: var(--color-navy);
    font-family: "Noto Serif JP", serif;
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .check-result-summary p,
  .check-result-note p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.85;
  }

  .check-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .check-result-list,
  .check-result-actions ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text);
    line-height: 1.85;
  }

  .check-result-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .check-result-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--color-navy);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
  }

  .check-result-links a:hover {
    border-color: rgba(212, 175, 55, 0.55);
    background: #fff;
  }

  .check-result-empty {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.75;
  }

  .assessment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 18px;
  }
  .assessment-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(26, 54, 93, 0.15);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .assessment-loading-text {
    font-family: "Noto Serif JP", serif;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }
  .assessment-loading-sub {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--color-text-soft);
    font-size: 0.9rem;
  }

  .assessment-error {
    padding: 24px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.92rem;
    line-height: 1.8;
  }
  .assessment-error strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  .assessment-footer {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px dashed #e5ecf3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .assessment-footer-note {
    font-size: 0.8rem;
    color: var(--color-text-soft);
    line-height: 1.7;
    max-width: 560px;
  }
  .btn-regenerate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--color-line);
    color: var(--color-navy);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
  }
  .btn-regenerate:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.06);
    color: var(--color-navy);
  }
  .btn-regenerate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Result layout */
  .result-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 26px;
    align-items: start;
  }
  .result-panel {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 8px 28px rgba(10, 25, 47, 0.06);
  }
  .result-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
  }
  .result-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-navy), #284b78);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
  }
  .result-panel h3 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: 0.02em;
  }
  .result-panel-sub {
    font-size: 0.85rem;
    color: var(--color-text-soft);
    margin-bottom: 22px;
    padding-left: 52px;
  }

  /* 5-axis visual bars */
  .axis-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 14px 0;
  }
  .axis-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .axis-bar-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .axis-bar-risk-label {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
  }
  .axis-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #e5ecf3;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .axis-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .fill-lv0 {
    background: linear-gradient(90deg, var(--risk-0), #16a34a);
  }
  .fill-lv1 {
    background: linear-gradient(90deg, var(--risk-1), #3b82f6);
  }
  .fill-lv2 {
    background: linear-gradient(90deg, var(--risk-2), #f59e0b);
  }
  .fill-lv3 {
    background: linear-gradient(90deg, var(--risk-3), #ea580c);
  }
  .fill-lv4 {
    background: linear-gradient(90deg, var(--risk-4), #dc2626);
  }

  /* Count grid */
  .risk-count-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eef3f8;
  }
  .risk-count-cell {
    border-radius: 12px;
    padding: 14px 6px;
    text-align: center;
    border: 1px solid;
    transition: transform 0.25s ease;
  }
  .risk-count-cell:hover {
    transform: translateY(-2px);
  }
  .risk-count-cell.lv0 {
    background: var(--risk-0-bg);
    border-color: var(--risk-0-border);
  }
  .risk-count-cell.lv1 {
    background: var(--risk-1-bg);
    border-color: var(--risk-1-border);
  }
  .risk-count-cell.lv2 {
    background: var(--risk-2-bg);
    border-color: var(--risk-2-border);
  }
  .risk-count-cell.lv3 {
    background: var(--risk-3-bg);
    border-color: var(--risk-3-border);
  }
  .risk-count-cell.lv4 {
    background: var(--risk-4-bg);
    border-color: var(--risk-4-border);
  }
  .risk-count-num {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
  }
  .risk-count-cell.lv0 .risk-count-num {
    color: var(--risk-0);
  }
  .risk-count-cell.lv1 .risk-count-num {
    color: var(--risk-1);
  }
  .risk-count-cell.lv2 .risk-count-num {
    color: var(--risk-2);
  }
  .risk-count-cell.lv3 .risk-count-num {
    color: var(--risk-3);
  }
  .risk-count-cell.lv4 .risk-count-num {
    color: var(--risk-4);
  }
  .risk-count-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-text-soft);
    letter-spacing: 0.04em;
  }

  /* Answer detail cards */
  .answer-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 6px;
  }
  .answer-cards::-webkit-scrollbar {
    width: 6px;
  }
  .answer-cards::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
  }
  .answer-cards::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
  }
  .answer-card {
    border-radius: 16px;
    border: 1px solid;
    padding: 20px 22px;
    transition: all 0.28s ease;
  }
  .answer-card:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }
  .answer-card.lv0 {
    background: var(--risk-0-bg);
    border-color: var(--risk-0-border);
    border-left: 5px solid var(--risk-0);
  }
  .answer-card.lv1 {
    background: var(--risk-1-bg);
    border-color: var(--risk-1-border);
    border-left: 5px solid var(--risk-1);
  }
  .answer-card.lv2 {
    background: var(--risk-2-bg);
    border-color: var(--risk-2-border);
    border-left: 5px solid var(--risk-2);
  }
  .answer-card.lv3 {
    background: var(--risk-3-bg);
    border-color: var(--risk-3-border);
    border-left: 5px solid var(--risk-3);
  }
  .answer-card.lv4 {
    background: var(--risk-4-bg);
    border-color: var(--risk-4-border);
    border-left: 5px solid var(--risk-4);
  }

  .answer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .answer-cat {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: 0.02em;
  }
  .answer-risk-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.04em;
  }
  .answer-risk-pill.lv0 {
    background: rgba(21, 128, 61, 0.16);
    color: var(--risk-0);
  }
  .answer-risk-pill.lv1 {
    background: rgba(37, 99, 235, 0.16);
    color: var(--risk-1);
  }
  .answer-risk-pill.lv2 {
    background: rgba(217, 119, 6, 0.16);
    color: var(--risk-2);
  }
  .answer-risk-pill.lv3 {
    background: rgba(194, 65, 12, 0.16);
    color: var(--risk-3);
  }
  .answer-risk-pill.lv4 {
    background: rgba(185, 28, 28, 0.16);
    color: var(--risk-4);
  }

  .answer-choice {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.6;
  }
  .answer-advice {
    font-size: 0.86rem;
    color: var(--color-text-soft);
    line-height: 1.8;
    margin-bottom: 12px;
  }
  .answer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .answer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(26, 54, 93, 0.08);
    color: var(--color-navy);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
  }
  .answer-link:hover {
    background: rgba(26, 54, 93, 0.16);
    transform: translateY(-1px);
  }

  /* Result actions */
  .result-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }
  .btn-restart,
  .btn-share,
  .btn-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.28s ease;
    letter-spacing: 0.02em;
  }
  .btn-restart {
    background: var(--color-navy);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25);
  }
  .btn-restart:hover {
    background: #284b78;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 54, 93, 0.35);
  }
  .btn-share {
    background: #000;
    color: #fff;
  }
  .btn-share:hover {
    background: #333;
    transform: translateY(-2px);
  }
  .btn-print {
    background: #fff;
    color: var(--color-navy);
    border: 1px solid var(--color-line);
  }
  .btn-print:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
  }

  /* Law modal */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1600;
    backdrop-filter: blur(4px);
  }
  .modal.is-open {
    display: flex;
  }
  .modal-content {
    width: min(860px, 100%);
    background: #fff;
    border-radius: 24px;
    border-top: 6px solid var(--color-gold);
    box-shadow: 0 32px 80px rgba(10, 25, 47, 0.4);
    position: relative;
    padding: 40px;
    max-height: 84vh;
    overflow: auto;
  }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-line);
    background: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
  }
  .modal-close:hover {
    background: #fff7ed;
    border-color: var(--color-gold);
  }

  .hidden {
    display: none;
  }

  /* Print styles */
  @media print {
    .site-header,
    .mobile-overlay,
    .footer,
    .result-actions-row,
    .btn-regenerate {
      display: none;
    }
    .audit-hero {
      display: none;
    }
    body {
      background: #fff;
    }
    .audit-shell {
      margin-top: 20px;
    }
    .assessment-panel {
      box-shadow: none;
      border: 1px solid #ccc;
      page-break-inside: avoid;
    }
    .result-panel {
      box-shadow: none;
      border: 1px solid #ccc;
    }
  }

  @media (max-width: 1100px) {
    .result-layout {
      grid-template-columns: 1fr;
    }
    .audit-hero-inner {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .mode-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 768px) {
    .audit-hero {
      padding: 64px 0 88px;
    }
    .mode-grid {
      grid-template-columns: 1fr;
    }
    .risk-count-grid {
      grid-template-columns: repeat(5, 1fr);
      gap: 4px;
    }
    .check-result-grid {
      grid-template-columns: 1fr;
    }
    .q-card,
    .assessment-panel,
    .result-panel,
    .result-risk-banner {
      padding: 28px 22px;
    }
    .assessment-header {
      flex-direction: column;
      align-items: flex-start;
    }
    .audit-shell {
      margin-top: -48px;
    }
  }
  @media (max-width: 480px) {
    .result-risk-banner {
      padding: 32px 24px;
    }
    .assessment-seal {
      width: 56px;
      height: 56px;
      font-size: 1.2rem;
    }
    .banner-risk-label {
      font-size: 1.8rem;
    }
  }

  /* Page-specific styles for audit/index.html */
  body {
    background: #fff;
  }
  .audit-hero {
    padding: 68px 0 58px;
    background: linear-gradient(135deg, #071a30, #183858);
  }
  .audit-hero::before,
  .audit-hero::after {
    display: none;
  }
  .audit-hero-inner {
    width: min(calc(100% - 40px), 920px);
    display: block;
  }
  .audit-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-shadow: none;
  }
  .audit-hero h1 .accent {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
  .audit-hero-lede {
    max-width: 820px;
    margin-bottom: 0;
  }
  .audit-hero-meta,
  .audit-hero-axes {
    display: none;
  }
  .audit-shell {
    width: min(calc(100% - 40px), 920px);
    margin: 0 auto;
    padding: 54px 0 96px;
  }
  .intro-section-header {
    text-align: left;
    margin: 0 0 30px;
  }
  .intro-section-title {
    font-size: clamp(1.55rem, 3vw, 2rem);
  }
  .intro-section-lead {
    max-width: 800px;
    margin: 0;
  }
  .mode-grid {
    display: block;
    border-top: 2px solid var(--color-navy);
  }
  .mode-card {
    width: 100%;
    display: block;
    margin: 0;
    padding: 24px 0;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .mode-card:hover {
    transform: none;
    box-shadow: none;
    background: #f8fafc;
  }
  .mode-card-image,
  .mode-card-kicker,
  .mode-check-list {
    display: none;
  }
  .mode-card-body {
    padding: 0;
  }
  .mode-card-title {
    margin: 0 0 8px;
  }
  .mode-card-desc {
    max-width: 760px;
    margin-bottom: 12px;
  }
  .mode-start-btn {
    display: inline;
    padding: 0;
    background: transparent;
    color: var(--color-navy);
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
  .mode-start-btn .arrow {
    display: none;
  }
  .q-card,
  .assessment-panel,
  .result-panel,
  .result-risk-banner,
  .answer-card,
  .assessment-error,
  .modal-content {
    border-radius: 0;
    box-shadow: none;
  }
  .q-card,
  .assessment-panel,
  .result-panel {
    background: #fff;
    border: 0;
    border-top: 2px solid var(--color-navy);
    padding: 28px 0;
  }
  .q-axis-badge,
  .answer-risk-pill,
  .axis-bar-risk-label,
  .banner-count-chip {
    border-radius: 0;
  }
  .result-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .result-panel-icon,
  .assessment-seal {
    display: none;
  }
  .result-panel-sub {
    padding-left: 0;
  }
  .answer-cards {
    max-height: none;
    overflow: visible;
    gap: 0;
  }
  .answer-card {
    padding: 20px 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--color-line);
    border-left: 4px solid currentColor;
    padding-left: 18px;
    transform: none;
  }
  .answer-card:hover {
    transform: none;
    box-shadow: none;
  }
  .axis-bar-track,
  .axis-bar-fill {
    border-radius: 0;
    box-shadow: none;
  }
  .risk-count-grid {
    gap: 0;
    border-top: 1px solid var(--color-line);
  }
  .risk-count-cell {
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--color-line);
    transform: none;
  }
  .btn-share,
  .btn-regenerate {
    display: none;
  }
  .check-result-links ul {
    display: block;
  }
  .check-result-links a {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: underline;
  }
  @media (max-width: 768px) {
    .audit-hero {
      padding: 52px 0 46px;
    }
    .audit-shell {
      margin: 0 auto;
    }
    .risk-count-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
}
