@charset "UTF-8";

/* ===== caries page ===== */

.caries__box .el__header {
  margin-bottom: 30px;
}

.caries__subtitle {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #2a7d9b;
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #2a7d9b;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .caries__subtitle { font-size: 16px; }
}

.caries__anchor {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.caries__anchor:has(li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.caries__anchor:has(li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
.caries__anchor:has(li:nth-child(5):last-child),
.caries__anchor:has(li:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
.caries__anchor li { display: flex; }
.caries__anchor li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 64px;
  position: relative;
  padding: 14px 36px;
  background: #f3f9fb;
  border: 1px solid #d6e8ee;
  border-radius: 6px;
  color: #1c4a5a;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.caries__anchor li a::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #2a7d9b;
  border-bottom: 2px solid #2a7d9b;
  transform: translateY(-75%) rotate(45deg);
}
.caries__anchor li a:hover {
  background: #2a7d9b;
  color: #fff;
}
.caries__anchor li a:hover::after {
  border-color: #fff;
}
@media (max-width: 767px) {
  .caries__anchor,
  .caries__anchor:has(li:nth-child(3):last-child),
  .caries__anchor:has(li:nth-child(4):last-child),
  .caries__anchor:has(li:nth-child(5):last-child),
  .caries__anchor:has(li:nth-child(6):last-child) { grid-template-columns: 1fr; gap: 8px; }
  .caries__anchor li a { font-size: 14px; padding: 12px 32px; min-height: 0; }
}

.caries__lead {
  font-size: 22px;
  font-weight: 700;
  color: #2a7d9b;
  margin: 10px 0 16px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .caries__lead { font-size: 18px; }
}

/* チェックリスト（✓） */
.caries__check {
  list-style: none;
  padding: 24px 28px;
  margin: 20px 0;
  background: #f3f9fb;
  border-radius: 10px;
}
.caries__check li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px dashed #cfe4ec;
}
.caries__check li:last-child { border-bottom: none; }
.caries__check li::before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: 8px;
  color: #2a7d9b;
  font-weight: 700;
  font-size: 18px;
}
@media (max-width: 767px) {
  .caries__check { padding: 18px 18px; }
  .caries__check li { font-size: 15px; padding-left: 28px; }
}

/* C0-C4 進行段階 */
.caries__stage {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.caries__stage__item {
  display: grid;
  grid-template-columns: 31% 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid #d6e8ee;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.caries__stage__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.caries__stage__body {
  min-width: 0;
}
.caries__stage__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d6e8ee;
  color: #1c4a5a;
  line-height: 1.4;
}
.caries__stage__lead {
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}
.caries__stage__dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 12px;
  column-gap: 16px;
}
.caries__stage__dl dt {
  font-weight: 700;
  color: #2a7d9b;
  background: #f3f9fb;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  align-self: start;
}
.caries__stage__dl dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  align-self: center;
}
@media (max-width: 767px) {
  .caries__stage__item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
  }
  .caries__stage__title { font-size: 17px; }
  .caries__stage__dl {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .caries__stage__dl dt { text-align: left; }
}

/* CAD/CAM メリット・デメリット */
.caries__merit {
  margin: 0;
}
.caries__merit dt {
  display: inline-block;
  background: #2a7d9b;
  color: #fff;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 15px;
}
.caries__merit dt:not(:first-of-type) {
  margin-top: 22px;
  background: #b08a45;
}
.caries__merit dd {
  margin: 0 0 4px;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.8;
}

/* h2 small variant (intro) */
.caries__box .el__header__title.small {
  font-size: 26px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .caries__box .el__header__title.small { font-size: 19px; }
}

/* SP only break */
.sp_only { display: none; }
@media (max-width: 767px) {
  .sp_only { display: inline; }
}

/* 比較テーブル */
.caries__table__wrap {
  margin: 16px 0 0;
  overflow-x: auto;
}
.caries__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}
.caries__table th,
.caries__table td {
  border: 1px solid #d6e8ee;
  padding: 12px 14px;
  vertical-align: middle;
  text-align: left;
}
.caries__table thead th {
  background: #2a7d9b;
  color: #fff;
  text-align: center;
  font-weight: 700;
}
.caries__table thead th:first-child {
  background: #f3f9fb;
  color: #1c4a5a;
}
.caries__table tbody tr:nth-child(even) {
  background: #f7fbfc;
}
.caries__table tbody th {
  background: #eaf3f6;
  color: #1c4a5a;
  font-weight: 700;
  width: 110px;
  text-align: center;
  white-space: nowrap;
}
.caries__table td img {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}
.caries__table__price td {
  text-align: center;
  font-weight: 700;
  color: #2a7d9b;
  font-size: 16px;
}
@media (max-width: 767px) {
  .caries__table__wrap { overflow-x: hidden; }
  .caries__table { font-size: 12px; table-layout: fixed; }
  .caries__table th, .caries__table td {
    padding: 6px 4px;
    word-break: break-word;
    line-height: 1.5;
  }
  .caries__table thead th { font-size: 11px; }
  .caries__table tbody th {
    width: 56px;
    font-size: 11px;
    padding: 6px 2px;
    white-space: normal;
  }
  .caries__table td img { max-width: 100%; }
}

/* visually hidden (a11y) */
.visually__hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* intro 画像＋チェックリストを中央寄せ */
.caries__intro__item {
  justify-content: center;
  align-items: center;
}
.caries__intro__item .dnfix__thumb img {
  border-radius: 30px;
}
.caries__box .el__thumb .dnfix__thumb img {
  border-radius: 30px;
}
.service__caries .el__thumb3::after {
  z-index: 2 !important;
  pointer-events: none;
}
.caries__intro__check {
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) {
  .caries__intro__check { justify-content: flex-start; width: 100%; }
  .caries__intro__check .caries__check { width: 100%; flex: 1 1 auto; }
}
