:root {
  --bg: #0b0d0c;
  --panel: #121613;
  --panel2: #171c18;
  --line: #283028;
  --text: #f2f4ef;
  --muted: #aab3a7;
  --accent: #d7c59a;
  --accent2: #f0dfae;
  --green: #95c98d;
  --blue: #89b6ca;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(
      circle at 80% 0,
      rgba(215, 197, 154, 0.07),
      transparent 30rem
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #0a0d0bf2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 8px 20px;
  text-decoration: none;
}
.logo {
  width: 38px;
  height: 38px;
  border: 1px solid #5b563f;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #25261d, #11140f);
  font-weight: 900;
  color: var(--accent2);
}
.brand b {
  font-size: 15px;
  letter-spacing: 0.05em;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #bbc2b9;
  border-radius: 12px;
  padding: 10px 12px;
}
.nav a:hover,
.nav a[aria-current] {
  background: #1b211c;
  color: #fff;
}
.nav a[aria-current] {
  box-shadow: inset 3px 0 var(--accent);
}
.ico {
  width: 22px;
  text-align: center;
}
.side-note {
  position: absolute;
  left: 24px;
  right: 20px;
  bottom: 20px;
  color: #7f897d;
  font-size: 11px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 24px;
  border-bottom: 1px solid #283028bf;
  background: #0b0d0cd9;
  backdrop-filter: blur(16px);
}
.topbar a {
  text-decoration: none;
  color: #cfc7a8;
  font-size: 13px;
}
.content {
  width: min(920px, calc(100% - 48px));
  margin: auto;
  padding: 42px 0 80px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumb a {
  text-decoration: none;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-weight: 800;
}
.article-header h1,
.index-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 10px 0 16px;
}
.lead {
  font-size: 17px;
  color: #c5ccc2;
  max-width: 760px;
}
.updated {
  font-size: 11px;
  color: #7f897d;
  margin-top: 18px;
}
.answer-box {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid #756d55;
  border-radius: 16px;
  background: linear-gradient(135deg, #26251a, #151913);
}
.answer-box strong {
  display: block;
  color: var(--accent2);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.answer-box p {
  margin: 0;
  color: #eef0e9;
}
.tool-cta {
  display: inline-block;
  padding: 13px 18px;
  border: 1px solid #756d55;
  border-radius: 12px;
  background: #292719;
  color: #fff0c6;
  font-weight: 900;
  text-decoration: none;
}
.tool-cta:hover {
  background: #353121;
}
.toc {
  margin: 30px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.toc b {
  font-size: 13px;
}
.toc ol {
  margin: 8px 0 0;
  padding-left: 22px;
}
.toc a {
  text-decoration: none;
  color: #c9d0c6;
}
.toc a:hover {
  color: var(--accent2);
}
article h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 52px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
article h3 {
  font-size: 18px;
  margin: 30px 0 8px;
}
article p {
  color: #c3cbc0;
  margin: 10px 0;
}
article p strong {
  color: #fff;
  font-weight: 900;
}
article strong,
article b {
  font-weight: 900;
}
article li > b,
.warning > b,
.tip > b,
.field-note > strong,
.surgery-rule > strong {
  font-weight: 900;
}
article li {
  color: #c3cbc0;
  margin: 7px 0;
}
.steps {
  display: grid;
  gap: 10px;
  counter-reset: step;
  padding: 0;
}
.steps li {
  list-style: none;
  position: relative;
  padding: 15px 16px 15px 54px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.steps li:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #171810;
  font-weight: 900;
}
.tip,
.warning {
  margin: 20px 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: #151a16;
  border-left: 4px solid var(--green);
  color: #cbd2c8;
}
.warning {
  border-left-color: #d9b968;
}
.tip b,
.warning b {
  color: #fff;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: var(--panel);
  border: 1px solid var(--line);
}
.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare th {
  color: var(--accent2);
  font-size: 12px;
}
.checklist {
  padding: 18px 20px 18px 42px;
  border: 1px solid #3e493d;
  border-radius: 14px;
  background: #121813;
}
.next {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.next-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  text-decoration: none;
  transition: 0.16s;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: #756d55;
}
.guide-card small {
  color: var(--accent);
  font-weight: 800;
}
.guide-card b {
  display: block;
  font-size: 17px;
  line-height: 1.5;
  margin: 7px 0;
}
.guide-card span {
  font-size: 12px;
  color: var(--muted);
}
.index-hero {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #171c18, #101310);
  margin-bottom: 24px;
}
.index-intro {
  color: var(--muted);
}
kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid #4a5149;
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #191d19;
  color: #fff;
  font: inherit;
  font-size: 0.86em;
  line-height: 1.5;
}
.faq {
  margin-top: 50px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 15px 2px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq details p {
  font-size: 14px;
}
.footer {
  margin-top: 60px;
  color: #7f897d;
  font-size: 11px;
}
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }
  .brand {
    padding-bottom: 10px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav a {
    flex: 0 0 auto;
  }
  .side-note {
    display: none;
  }
  .topbar {
    display: none;
  }
  .content {
    width: min(100% - 28px, 920px);
    padding-top: 28px;
  }
  .article-header h1,
  .index-hero h1 {
    font-size: 34px;
  }
  .next-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .index-hero {
    padding: 22px;
  }
  article h2 {
    font-size: 23px;
  }
}

.item-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.item-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #151a16, #0e110f);
  text-align: center;
}
.item-figure img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: contain;
  margin: auto;
  filter: drop-shadow(0 8px 12px #0008);
}
.item-figure figcaption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: #d4dad1;
}
.item-figure small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.wide-visual {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}
.wide-visual img {
  width: 160px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px #0008);
}
.wide-visual p {
  margin: 0;
}
.field-note {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px dashed #676149;
  border-radius: 13px;
  background: #191912;
}
.field-note strong {
  display: block;
  color: var(--accent2);
  margin-bottom: 5px;
}
.source-credit {
  font-size: 10px;
  color: #7f897d;
  text-align: right;
  margin-top: -13px;
}

.treatment-map {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.treatment-group-head {
  margin: 18px 0 0;
  padding: 0 2px;
}
.treatment-group-head:first-child {
  margin-top: 0;
}
.treatment-group-head h3 {
  margin: 0 0 3px;
  color: var(--accent2);
  font-size: 19px;
}
.treatment-group-head p {
  margin: 0;
  color: #c3cbc0;
  font-size: 13px;
}
.treatment-row {
  display: grid;
  grid-template-columns: 150px 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #151a16, #0e110f);
}
.treatment-row.critical {
  border: 2px solid #b85f58;
  background: linear-gradient(145deg, #281716, #120f0e);
  box-shadow: 0 0 0 4px #b85f5818;
}
.critical-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #b85f58;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.necrosis-limb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 7px;
  border: 2px solid #a5aaa3;
  border-radius: 50%;
  background: #050605;
  color: #ef8d85;
  font-size: 15px;
  font-weight: 950;
  box-shadow: inset 0 0 0 5px #191c19;
}
.damaged-limb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 7px;
  border: 2px solid #8dae88;
  border-radius: 50%;
  background: #142016;
  color: #bfe7b9;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 0 0 5px #1c2c1e;
}
.surgery-rule {
  margin: 22px 0;
  padding: 20px;
  border: 2px solid #b85f58;
  border-radius: 15px;
  background: #231514;
}
.surgery-rule strong {
  display: block;
  color: #ffb0a9;
  font-size: 18px;
}
.surgery-rule p {
  margin: 5px 0 0;
  color: #e5cac7;
}
.status-visual {
  text-align: center;
}
.status-visual img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 7px;
  image-rendering: auto;
}
.status-visual strong,
.treatment-items > strong {
  display: block;
  font-size: 14px;
}
.status-visual small,
.treatment-items small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.treatment-arrow {
  color: var(--accent2);
  font-size: 24px;
  text-align: center;
}
.treatment-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}
.treatment-item {
  display: grid;
  grid-template-columns: 62px minmax(90px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 180px;
  flex: 1 1 190px;
  padding: 8px 10px;
  border: 1px solid #303830;
  border-radius: 11px;
  background: #111411;
}
.treatment-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px #0008);
}
.treatment-item b {
  font-size: 12px;
}

@media (max-width: 560px) {
  .item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .item-figure {
    padding: 10px;
  }
  .item-figure img {
    height: 88px;
  }
  .wide-visual {
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 13px;
  }
  .wide-visual img {
    width: 92px;
    height: 90px;
  }
  .treatment-row {
    grid-template-columns: 76px 20px minmax(0, 1fr);
    gap: 7px;
    padding: 11px 8px;
  }
  .status-visual img {
    width: 44px;
    height: 44px;
  }
  .treatment-arrow {
    font-size: 18px;
  }
  .treatment-item {
    grid-template-columns: 48px minmax(72px, 1fr);
    min-width: 100%;
    padding: 6px;
  }
  .treatment-item img {
    width: 48px;
    height: 48px;
  }
}
