@charset "utf-8";
/* ==================================================
   MEDICAL / Treatment guide
   ================================================== */
.medical-page {
  --medical-accent: #A78F18;
  --medical-border: #D9CC91;
  --medical-text: #404040;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 76px;
  color: var(--medical-text);
}
.medical-page * { box-sizing: border-box; }

/* Category jump links */
.medical-anchor-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  width: min(560px, 100%);
  margin: 0 auto 46px;
}
.medical-anchor-nav a {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 38px 8px 16px;
  border: 1px solid var(--medical-border);
  border-radius: 5px;
  color: var(--medical-accent);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.medical-anchor-nav a > p { margin: 0; }
.medical-anchor-nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--medical-accent);
  transform: translateY(-50%);
}
.medical-anchor-nav a::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 18px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translateY(-65%) rotate(45deg);
}
.medical-anchor-nav a:hover { background: var(--medical-accent); color: #fff; }
.medical-anchor-nav a:hover::after { background: #fff; }
.medical-anchor-nav a:hover::before { border-color: var(--medical-accent); }

/* Treatment groups */
.medical-section { margin: 0 0 38px; scroll-margin-top: 110px; }
.medical-section:last-child { margin-bottom: 0; }
.medical-section__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--medical-border);
  color: var(--medical-accent);
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}
.medical-section__icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}
.medical-section__icon svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.medical-section__heading h2,
.medical-section__heading h3 {
  margin: 0;
  color: var(--medical-accent);
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}
.medical-card-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.medical-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 104px;
  padding: 17px 58px 17px 20px;
  border: 1px solid var(--medical-border);
  border-radius: 5px;
  background: #fff;
  color: var(--medical-text);
  text-decoration: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.medical-card__en {
  margin: 0 0 4px;
  color: var(--medical-accent);
  font-family: "Playfair Display", serif;
  font-size: 12px;
  line-height: 1.4;
}
.medical-card__title {
  margin: 0 0 7px;
  color: var(--medical-accent);
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}
.medical-card__description {
  max-width: 58em;
  margin: 0;
  color: var(--medical-text);
  font-size: 12px;
  line-height: 1.7;
}
.medical-card__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--medical-accent);
  color: #fff;
  transform: translateY(-50%);
  transition: transform .3s ease, background-color .3s ease;
}
.medical-card__arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.medical-card:hover { border-color: var(--medical-accent); box-shadow: 0 5px 18px rgb(64 64 64 / 8%); }
.medical-card:hover .medical-card__arrow { transform: translateY(-50%) scale(1.18); }

@media (max-width: 767px) {
  .medical-page { width: calc(100% - 32px); padding: 36px 0 56px; }
  .medical-anchor-nav { gap: 10px; margin-bottom: 36px; }
  .medical-anchor-nav a { min-height: 42px; padding: 8px 36px 8px 12px; }
  .medical-section { margin-bottom: 32px; }
  .medical-section__heading { margin-bottom: 14px; font-size: 15px; }
  .medical-card-list { gap: 12px; }
  .medical-card { min-height: 100px; padding: 15px 48px 15px 16px; }
  .medical-card__arrow { right: 14px; width: 22px; height: 22px; }
}
@media (max-width: 420px) {
  .medical-anchor-nav { grid-template-columns: 1fr; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .medical-anchor-nav a, .medical-card, .medical-card__arrow { transition: none; }
}


/* Anchor navigation text colors and horizontal alignment */
.medical-anchor-nav a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  color: #A78F18;
  text-align: left;
}
.medical-anchor-nav a > p { margin: 0; color: inherit; }
.medical-anchor-nav a:hover,
.medical-anchor-nav a:hover > p { color: #fff; }
.medical-anchor-nav a::after { top: 50%; right: 12px; bottom: auto; left: auto; transform: translateY(-50%); }
.medical-anchor-nav a::before { top: 50%; right: 18px; bottom: auto; left: auto; transform: translateY(-65%) rotate(45deg); }
@media (max-width: 767px) {
  .medical-anchor-nav a { min-height: 42px; padding: 8px 36px 8px 12px; }
}

/* test */