* { box-sizing:border-box}
html { scroll-behavior:smooth; scroll-padding-top:22px; -webkit-text-size-adjust:100%}
body { margin:0; background:var(--cream); color:var(--body); font:400 1rem/1.65 "Montserrat","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI",Meiryo,system-ui,sans-serif}
button,a,input { touch-action:manipulation; -webkit-tap-highlight-color:transparent}
button,select { font:inherit}
button,a { color:inherit}
a { text-underline-offset:3px}
button { cursor:pointer}
button:disabled { cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid var(--blue); outline-offset:4px}
[hidden] { display:none!important}
svg { width:17px; height:17px; flex:none; vertical-align:middle; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.wrap { width:min(1040px,100%); margin:auto; padding:0 24px}
.site-header { border-bottom:1px solid var(--line-warm)}
.header-row { min-height:78px; padding-block:10px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 30px}
.brand { display:flex; align-items:center; gap:8px; color:var(--ink); text-decoration:none; white-space:nowrap}
.brand img { height:43px; width:38px; object-fit:contain}
.brand strong { font-size:1.5rem; letter-spacing:-.04em; font-weight:750}
.brand strong span { color:var(--blue-text)}
.brand-description { font-size:.875rem; color:var(--muted)}
.header-tools { margin-left:auto; display:flex; flex-wrap:wrap; align-items:center; gap:12px}
.header-link { text-decoration:none; color:var(--muted); font-size:.875rem}
.icon-button { border:0; background:transparent; border-radius:50%; padding:9px; display:grid; place-items:center; color:var(--body)}
.icon-button:hover { background:var(--sunken)}
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:4px 9px; font-size:.8125rem; color:var(--muted); margin:24px 0 19px}
.breadcrumbs a { text-decoration:none}
.breadcrumbs a:hover { color:var(--blue-text)}
.breadcrumbs svg { width:12px; height:12px}
.case-heading { padding-bottom:23px; border-bottom:1px solid var(--line-warm); margin-bottom:23px}
.heading-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:9px}
.badges { display:flex; gap:6px; align-items:center; flex-wrap:wrap}
.badge { display:inline-flex; align-items:center; gap:5px; font-size:.8125rem; line-height:1.5; padding:3px 8px; border:1px solid var(--line-warm); border-radius:99px; color:var(--body); background:var(--card)}
.badge.open { background:var(--blue-soft); border-color:var(--chip-line); color:var(--blue-text); font-weight:600}
.badge.neutral { background:var(--sunken)}
.share { border:0; background:transparent; font-size:.875rem; display:flex; gap:6px; align-items:center; color:var(--muted); padding:6px 0 6px 10px; white-space:nowrap}
.share svg { width:14px; height:14px}
h1,h2,h3,p { margin:0}
h1 { text-wrap:balance; font-size:1.75rem; line-height:1.5; color:var(--ink); font-weight:600; max-width:900px; overflow-wrap:anywhere}
.heading-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px 17px; margin-top:11px; font-size:.875rem; color:var(--muted)}
.heading-meta span { display:inline-flex; gap:6px; align-items:center}
.heading-meta .organization { color:var(--body); font-weight:550}
.heading-meta svg { width:14px; height:14px}
.content-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; align-items:start; gap:23px}
.main-column { min-width:0; display:flex; flex-direction:column; gap:18px}
.panel { border:1px solid var(--line-warm); border-radius:14px; background:var(--card); overflow:hidden}
.panel-content { padding:19px 21px}
.section-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:3px 12px; margin-bottom:13px}
.section-heading h2 { font-size:1.125rem; color:var(--ink); font-weight:600; letter-spacing:.015em}
.section-note { font-size:.8125rem; color:var(--muted)}
.summary-text { line-height:1.8}
.summary-conditions, .summary-links { display:block; margin-top:.65em }
.summary-links, .summary-plan { font-size:.875rem }
.summary-links { color:var(--muted) }
.summary-plan { display:inline-block; margin-top:.35em }
.quick-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:18px; margin:17px 0 0; border-top:1px solid var(--line-warm); padding-top:4px}
.fact { padding:11px 0 10px}
.fact dt { color:var(--muted); font-size:.8125rem; margin-bottom:3px}
.fact dd { line-height:1.6; margin:0; color:var(--ink)}
.award-method { grid-column:1 / -1}
.award-method q:not([hidden]) { display:block; margin-top:3px; color:var(--muted)}
.case-number { display:flex; flex-wrap:wrap; gap:7px; align-items:center}
.copy-number { border:0; background:transparent; padding:2px; color:var(--muted); display:inline-flex}
.copy-number svg { width:13px; height:13px}
.classification { display:flex; gap:9px; align-items:flex-start; background:var(--sunken); border-radius:8px; padding:10px 12px; font-size:.875rem; margin-top:4px}
.classification svg { width:16px; height:16px; color:var(--blue-text); margin-top:1px}
.classification strong { color:var(--body); font-weight:600}
.classification span { color:var(--muted)}
.source-excerpt { border-top:1px solid var(--line-warm)}
.source-excerpt summary { padding:13px 21px; font-size:.875rem; list-style:none; display:flex; justify-content:space-between; align-items:center; color:var(--body); cursor:pointer}
.source-excerpt summary::-webkit-details-marker { display:none}
.source-excerpt summary svg { width:14px; height:14px; transition:transform .18s}
.source-excerpt[open] summary svg { transform:rotate(180deg)}
.excerpt-body { padding:0 21px 18px; line-height:1.8}
.excerpt-body a { display:inline-block; margin-top:10px; color:var(--blue-text); font-size:.875rem}
.document-top { margin-bottom:13px}
.document-count { margin-left:7px; padding:1px 6px; border-radius:4px; color:var(--muted); background:var(--sunken); font-size:.8125rem; font-weight:500}
.file-row { display:flex; align-items:center; gap:11px; padding:13px 0; border-top:1px solid var(--line-warm)}
.file-icon { width:36px; height:42px; border-radius:7px; background:var(--blue-soft); color:var(--blue-text); display:flex; align-items:center; justify-content:center}
.file-icon svg { width:21px; height:21px}
.file-info { min-width:0; flex:1}
.file-info strong { overflow-wrap:anywhere; color:var(--ink); font-weight:600; display:block}
.file-info small { display:block; font-size:.8125rem; color:var(--muted); margin-top:2px; overflow-wrap:anywhere}
.file-action { border:1px solid var(--line-warm); background:transparent; border-radius:8px; display:flex; align-items:center; gap:5px; font-size:.875rem; white-space:nowrap; padding:6px 9px}
.file-action:hover { border-color:var(--blue-ring); color:var(--blue-text)}
a.file-action { text-decoration:none}
.file-action svg { width:14px; height:14px}
.download-note { color:var(--muted); font-size:.8125rem; margin-top:3px}
.consult { display:flex; flex-wrap:wrap; gap:8px 11px; align-items:center; padding:14px 17px; border:1px solid var(--line-warm); border-radius:12px}
.consult img { width:36px; height:36px; object-fit:cover; border-radius:50%; filter:saturate(.8)}
.consult-copy { min-width:0; flex:1 1 11rem}
.consult-copy strong { display:block; color:var(--body); font-weight:550; font-size:.875rem}
.consult-copy span { color:var(--muted); font-size:.8125rem}
.consult a { color:var(--blue-text); font-size:.875rem}
.sidebar { position:sticky; top:22px}
.action-panel { border-color:var(--chip-line)}
.deadline-header { padding:19px 19px 16px; background:var(--blue-soft); border-bottom:1px solid var(--chip-line)}
.deadline-label { display:flex; flex-wrap:wrap; gap:5px; align-items:center; justify-content:space-between; font-size:.875rem; color:var(--body)}
.remaining { font-size:.8125rem; color:var(--blue-text); border:1px solid var(--blue-ring); padding:1px 7px; border-radius:99px}
.date-year { display:block; font-size:.875rem; margin:11px 0 1px; color:var(--muted)}
.date-main { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 10px; line-height:1.25; color:var(--ink)}
.date-main strong { font-size:2.3125rem; font-weight:550; letter-spacing:-.05em; font-variant-numeric:tabular-nums}
.date-main span { font-size:.875rem}
.date-hint { font-size:.8125rem; color:var(--muted); margin-top:9px}
.action-body { padding:17px 18px 18px}
.action-body .issuer-action { margin-bottom:10px }
.button { display:flex; width:100%; justify-content:center; align-items:center; gap:8px; min-height:2.625rem; padding:5px 8px; line-height:1.5; text-align:center; border:1px solid var(--line-warm); border-radius:9px; font-size:.875rem; font-weight:550; text-decoration:none; background:var(--card); color:var(--ink)}
.button:hover { background:var(--sunken)}
.button.primary { border-color:var(--blue); background:var(--blue); color:white}
.button.primary:hover { background:#0065be; border-color:#0065be}
.button svg { width:15px; height:15px}
.membership-note { text-align:center; font-size:.8125rem; color:var(--muted); margin:8px 0 14px}
.official-caption { text-align:center; color:var(--muted); font-size:.8125rem; margin-top:8px}
.side-note { margin:14px 3px 0; font-size:.8125rem; color:var(--muted); line-height:1.8}
.side-note p { margin:0 0 6px}
.side-note span { color:var(--body)}
.related { margin-top:26px; padding-top:22px; border-top:1px solid var(--line-warm)}
.related-heading { display:flex; flex-wrap:wrap; gap:3px 10px; align-items:baseline; justify-content:space-between; margin-bottom:12px}
.related h2 { font-size:1.125rem; font-weight:600; color:var(--ink)}
.related-heading a { font-size:.875rem; color:var(--muted)}
.related-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px}
.related-case { display:block; padding:15px 17px; border:1px solid var(--line-warm); border-radius:12px; text-decoration:none; background:var(--card)}
.related-case:hover { border-color:var(--blue-ring)}
.related-case .small-meta { display:flex; flex-wrap:wrap; gap:2px 9px; justify-content:space-between; color:var(--muted); font-size:.8125rem; margin-bottom:5px}
.related-case strong { overflow-wrap:anywhere; line-height:1.6; color:var(--ink); font-weight:550; display:block}
.related-case:hover strong { color:var(--blue-text)}
.related-case .small-meta .near { color:var(--warn-ink)}
.site-footer { margin-top:30px; padding:20px 0 24px; border-top:1px solid var(--line-warm); font-size:.8125rem; color:var(--muted)}
.footer-row { display:flex; justify-content:space-between; align-items:center; gap:10px}
.footer-row a { color:var(--body)}
.mobile-actions { display:none}

.report-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(94px,25%); align-items:center; border-color:var(--blue-ring); background:linear-gradient(115deg,var(--card),var(--blue-soft)) }
.report-card:has(> .report-paper[hidden]) { grid-template-columns:minmax(0,1fr) }
.report-label,.report-languages { display:block; color:var(--blue-text); font-size:.84rem; font-weight:600 }
.report-card h2 { font-size:clamp(1.4rem,2.2vw,2rem); line-height:1.35; letter-spacing:-.035em; margin:9px 0 }
.report-languages { margin-top:9px }
.report-paper { display:grid; gap:5px; margin-right:17px; padding:14px 10px; transform:rotate(2deg); border:1px solid var(--chip-line); border-radius:6px; background:var(--card); box-shadow:4px -4px var(--field); overflow-wrap:anywhere }
.report-paper span,.report-paper small { font-size:.76rem; color:var(--muted) }.report-paper strong { font-size:1.15rem }
.report-actions { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; gap:13px; border-top:1px solid var(--chip-line); background:var(--card); padding:13px 20px }
.report-actions strong { color:var(--blue-text); font-size:.88rem }.report-actions strong[data-state=failed] { color:var(--warn-ink) }
.report-actions p { font-size:.86rem; color:var(--muted) }.report-actions .button,.report-reader>.button { width:auto; flex:none; padding-inline:14px }
.report-actions .button:disabled { color:var(--muted); background:var(--sunken); border-color:var(--line) }
.report-reader { position:fixed; inset:0; width:100vw; max-width:none; height:100dvh; max-height:none; padding:0; margin:0; border:0; background:var(--card) }
.report-reader[open] { display:flex; flex-direction:column }.report-reader>.button { align-self:flex-start; margin:5px 12px }
.report-reader iframe { border:0; width:100%; min-height:0; flex:1 }.report-reader::backdrop { background:var(--card) }
@media(max-width:570px) { .report-card { grid-template-columns:1fr }.report-paper{display:none}.report-actions{flex-direction:column;align-items:stretch;padding:13px 16px} }

@media(min-width:1100px) { .wrap { padding-left:24px; padding-right:24px}
}
@media(max-width:760px) { .wrap { padding:0 17px}
.header-row { min-height:69px; gap:6px 12px}
.brand strong { font-size:1.375rem}
.brand img { height:36px; width:32px}
.brand-description,.header-link { display:none}
.header-tools { gap:4px}
.breadcrumbs { margin:18px 0 15px}
.case-heading { padding-bottom:19px; margin-bottom:17px}
.share span { display:none}
.share { padding:5px}
.share svg { width:17px; height:17px}
h1 { font-size:1.5rem}
.heading-meta { gap:4px 11px; margin-top:9px}
.content-grid { grid-template-columns:minmax(0,1fr); gap:17px}
.sidebar { position:static; grid-row:1}
.action-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr))}
.deadline-header { padding:15px 13px; border-bottom:0; border-right:1px solid var(--chip-line)}
.date-year { margin-top:8px}
.date-main strong { font-size:1.875rem}
.action-body { padding:15px 12px}
.membership-note { margin:6px 0 10px}
.official-caption { margin-top:6px}
.panel-content { padding:16px 17px}
.quick-facts { margin-top:13px; column-gap:12px}
.fact { padding-top:10px; padding-bottom:8px}
.classification { padding:9px 10px}
.source-excerpt summary { padding:12px 17px}
.excerpt-body { padding:0 17px 15px}
.file-action { padding:6px 8px}
.file-action span { display:none}
.file-action svg { width:16px; height:16px}
.consult { padding:13px}
.consult img { width:32px; height:32px}
.related { margin-top:22px; padding-top:17px}
.related-grid { grid-template-columns:minmax(0,1fr); gap:9px}
.related-case { padding:13px 15px}
.site-footer { margin-top:22px; padding:17px 0 22px}
.footer-row { display:block}
.footer-row p+p { margin-top:6px}
.mobile-actions.show { display:flex; position:fixed; z-index:10; bottom:0; left:0; right:0; padding:10px 15px max(10px,env(safe-area-inset-bottom)); gap:10px; align-items:center; background:var(--card); border-top:1px solid var(--line-warm); box-shadow:0 -5px 22px #00000008}
.mobile-actions .mobile-date { flex:1; min-width:0; font-size:.8125rem; line-height:1.5}
.mobile-date strong { font-size:1rem; display:block; color:var(--ink)}
.mobile-actions .button { width:auto; max-width:65%}
body { padding-bottom:calc(3.75rem + max(10px,env(safe-area-inset-bottom)))}
}
/* A large browser font can also make the two-column panel too narrow on a tablet. */
@media (width > 640px) and (max-width:28em) {
.action-panel { grid-template-columns:minmax(0,1fr)}
.deadline-header { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; border-right:0; border-bottom:1px solid var(--chip-line)}
.deadline-label,.date-hint { flex-basis:100%}
.date-year,.date-hint { margin:0}
.quick-facts { grid-template-columns:minmax(0,1fr)}
.fact { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:8px}
.fact dt { margin:0}
}

@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto}
*,*::before,*::after { transition:none!important}
}


/* The member interface owns its dialogs and account menu. */
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--body); }
.icon-btn:hover { background: var(--sunken); }
.archive-note { margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--warn-line); border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
#notice:empty { margin: 0; }
#notice > .quota:not(.warn) { display: none; }
#notice .quota { margin: 0 0 18px; }
#copy-status { position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%); padding: 10px 15px; border-radius: 9px; background: var(--ink); color: var(--cream); z-index: 25; width: max-content; max-width: calc(100% - 28px); }
.button:disabled { opacity: .6; }
.fact dd, .excerpt-body, .summary-text, .small-meta { overflow-wrap: anywhere; }
#documents { scroll-margin-top: 20px; }
#documents:focus { outline: 2px solid var(--blue-ring); outline-offset: 3px; }
@media(max-width:760px) {
  #account .avatar-btn { font-size: .875rem; gap: 5px; padding-right: 0; }
  #account .avatar { width: 25px; height: 25px; font-size: .8125rem; }
  .toast { bottom: 85px; }
}

@media (max-width: 640px) {
  body { font: 400 .8125rem/1.65 "Montserrat","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif; padding-bottom: 4.25rem; }
  .header-row { gap: 12px; }
  #account .btn { font-size: .6875rem; padding: 7px 13px; }
  #account .avatar-btn, #account .avatar, #notice .quota p { font-size: .6875rem; }
  .breadcrumbs, .badge, .heading-meta { font-size: .625rem; }
  h1 { font-size: 1.25rem; line-height: 1.6; font-weight: 650; letter-spacing: -.025em; }
  .section-heading { align-items: center; gap: 3px 12px; }
  .section-heading h2 { font-size: .8125rem; font-weight: 650; }
  .section-note, .fact dt, .file-info small, .download-note { font-size: .5625rem; }
  .summary-text { font-size: .75rem; line-height: 1.9; letter-spacing: .01em; }
  .fact dd, .file-info strong { font-size: .6875rem; }
  .classification, .document-count { font-size: .625rem; }
  .source-excerpt summary { font-size: .625rem; color: var(--muted); }
  .excerpt-body { font-size: .6875rem; line-height: 1.9; color: var(--muted); }
  .excerpt-body a { font-size: .6875rem; }
  .file-action { font-size: .5625rem; }
  .consult { gap: 9px; }
  .consult-copy { flex: 1; }
  .consult-copy strong, .consult a { font-size: .625rem; }
  .consult-copy span { font-size: .5625rem; }
  .action-panel { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); }
  .deadline-label { align-items: start; font-size: .625rem; }
  .remaining { padding: 0 6px; font-size: .5625rem; }
  .date-year { margin-top: 10px; font-size: .625rem; }
  .date-main { gap: 7px; }
  .date-main span { font-size: .625rem; }
  .date-hint { max-width: 126px; font-size: .5625rem; line-height: 1.8; }
  .button { min-height: 2.25rem; padding: revert; gap: 6px; font-size: .625rem; line-height: inherit; }
  .button svg { width: 14px; height: 14px; }
  .membership-note { font-size: .5625rem; }
  .official-caption { display: flex; justify-content: center; text-align: start; font-size: .5rem; }
  .side-note, .site-footer { font-size: .625rem; }
  .related-heading { align-items: center; }
  .related h2 { font-size: .8125rem; }
  .related-heading a, .related-case strong { font-size: .6875rem; }
  .related-case strong { line-height: 1.7; }
  .related-case .small-meta, .footer-row { font-size: .5625rem; }
  .mobile-actions .mobile-date { min-width: 90px; font-size: .5625rem; }
  .mobile-date strong { font-size: .875rem; }
  .mobile-actions .button { min-width: min(174px,65%); font-size: .6875rem; }
}
@media (max-width: 350px) {
  .wrap { padding: 0 13px; }
  .badge, .consult a { font-size: .5625rem; }
  .brand strong { font-size: 1.25rem; }
  .action-panel { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); }
  .action-body { padding-inline: 9px; }
  .date-main { gap: 4px; }
  .date-main strong { font-size: 1.75rem; }
  .consult-copy strong { max-width: 180px; }
  .quick-facts { grid-template-columns: minmax(0,1fr); }
  .fact { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 8px; }
  .fact dt { margin: 0; }
}
