/* Hero Section */
.hero__content {
  background-image: url(../../img/treatment/cad-cam/cad_cam-hero.jpg);
}


/* Section 2: YouTube */
.treatment-section:has(.treatment-cadcam__youtube) {
  padding: 0 0 80px;
}

.treatment-cadcam__youtube {
  display: flex;
  justify-content: center;
}

.treatment-cadcam__youtube-embed {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.treatment-cadcam__youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Section 3: CAD/CAM冠のメリット */
.treatment-section:has(.treatment-cadcam__benefits) {
  padding: 0 0 80px;
}

.treatment-cadcam__benefits {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.treatment-cadcam__benefit-card {
  flex: 0 1 340px;
  background: #fff5e5;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.treatment-cadcam__benefit-number {
  width: 60px;
  height: 60px;
  background: #fa9a00;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.treatment-cadcam__benefit-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fa9a00;
  margin: 0;
}

.treatment-cadcam__benefit-text {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Section 4: 各種被せ物の比較 */
.treatment-section:has(.treatment-cadcam__comparison) {
  padding: 0 0 80px;
}

.treatment-cadcam__comparison {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .treatment-cadcam__comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
}

.treatment-cadcam__comparison-table {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
  border-radius: 8px;
  overflow: hidden;
}

.treatment-cadcam__comparison-table th,
.treatment-cadcam__comparison-table td {
  border: 1px solid #ccc;
}

.treatment-cadcam__comparison-table thead th {
  background: #e0e0e0;
  padding: 12px;
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
  height: 48px;
}

.treatment-cadcam__comparison-table thead th:first-child {
  background: #fff;
  width: 165px;
  padding: 0;
}

.treatment-cadcam__comparison-table thead th:nth-child(2) {
  width: 220px;
}

.treatment-cadcam__comparison-table thead th.treatment-cadcam__comparison-table--highlight {
  background: #fa9a00;
  color: #fff;
  width: 220px;
  position: relative;
  border-left: 3px solid #fa9a00;
  border-right: 3px solid #fa9a00;
  border-top: 3px solid #fa9a00;
  border-bottom: 1px solid #ccc;
}

.treatment-cadcam__comparison-table thead th:nth-child(4) {
  width: 220px;
}

.treatment-cadcam__comparison-table tbody th {
  background: #ccc;
  padding: 12px;
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
  height: 48px;
  width: 165px;
}

.treatment-cadcam__comparison-table tbody th:first-child {
  background: #fff;
}

.treatment-cadcam__comparison-table tbody td {
  background: #fff;
  padding: 12px 62px;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-align: center;
  height: 48px;
  width: 220px;
}

.treatment-cadcam__comparison-table tbody td.treatment-cadcam__comparison-table--highlight {
  background: #fff5e5;
  border-left: 3px solid #fa9a00;
  border-right: 3px solid #fa9a00;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-weight: 700;
  color: #fa9a00;
  position: relative;
}

.treatment-cadcam__comparison-table tbody tr:first-child td.treatment-cadcam__comparison-table--highlight {
  border-top: none;
}

.treatment-cadcam__comparison-table tbody tr:last-child td.treatment-cadcam__comparison-table--highlight {
  border-bottom: 3px solid #fa9a00;
}

/* Section 5: 保険適用の条件 */
.treatment-section:has(.treatment-cadcam__conditions) {
  padding: 0 0 80px;
}

.treatment-section__inner:has(.treatment-cadcam__conditions) {
  max-width: 1122px;
}

.treatment-cadcam__conditions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.treatment-cadcam__conditions-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treatment-cadcam__condition-card {
  background: #fff;
  border: 1px solid #fa9a00;
  border-radius: 8px;
  padding: 16px 17px;
}

.treatment-cadcam__condition-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fa9a00;
  margin: 0 0 10px;
}

.treatment-cadcam__condition-text {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.treatment-cadcam__condition-text strong {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-weight: 700;
}

.treatment-cadcam__condition-note {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #757575;
  line-height: 1.4;
  margin: 8px 0 0;
}

.treatment-cadcam__conditions-image {
  max-width: 402px;
  flex: 0.7;
  background: #f0f0f0;
  border-radius: 8px;
border: 1px dashed #CCC;
}

.treatment-cadcam__conditions-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Section 6: 症例詳細 */
.treatment-case:has(.treatment-cadcam__case-details) {
  padding: 0 0 80px;
}

.treatment-cadcam__case-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.treatment-cadcam__case-detail-row {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.treatment-cadcam__case-detail-label {
  flex: 0 0 135px;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.treatment-cadcam__case-detail-value {
  flex: 1;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* Section 7: 歯科技工士と補綴専門医が連携 */
.treatment-section__inner--cadcam7 {
  max-width: 748px;
}

/* Section 8: CAD/CAM冠の注意点 */
.treatment-cadcam__cautions {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.treatment-cadcam__caution-card {
  flex: 0 1 340px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.treatment-cadcam__caution-number {
  width: 60px;
  height: 60px;
  background: #666;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.treatment-cadcam__caution-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.treatment-cadcam__caution-text {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

/* Section 9: 治療の流れ */
.treatment-cadcam__flow {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.treatment-cadcam__flow-item {
  background: #fff5e5;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.treatment-cadcam__flow-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fa9a00;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.treatment-cadcam__flow-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treatment-cadcam__flow-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fa9a00;
  margin: 0;
}

.treatment-cadcam__flow-text {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {

  .treatment-cadcam__benefit-card {
    max-width: 100%;
  }

  .treatment-cadcam__comparison-table {
    font-size: 14px;
    max-width: 100%;
  }

  .treatment-cadcam__comparison-table thead th,
  .treatment-cadcam__comparison-table tbody th,
  .treatment-cadcam__comparison-table tbody td {
    padding: 8px 20px;
  }

  .treatment-cadcam__comparison-table thead th:first-child,
  .treatment-cadcam__comparison-table tbody th:first-child {
    width: auto;
    min-width: 100px;
  }

  .treatment-cadcam__comparison-table thead th:nth-child(2),
  .treatment-cadcam__comparison-table thead th.treatment-cadcam__comparison-table--highlight,
  .treatment-cadcam__comparison-table thead th:nth-child(4),
  .treatment-cadcam__comparison-table tbody td {
    width: auto;
    min-width: 150px;
  }
}

@media (max-width: 768px) {

  .treatment-cadcam__youtube-embed {
    width: 100%;
    max-width: 100%;
  }

  .treatment-cadcam__benefits {
    flex-direction: column;
  }

  .treatment-cadcam__benefit-card {
    flex: 0 0 auto;
  }

  .treatment-cadcam__benefit-title,
  .treatment-cadcam__caution-title {
    font-size: 18px;
  }

  .treatment-cadcam__benefit-text,
  .treatment-cadcam__caution-text {
    font-size: 14px;
  }

  .treatment-cadcam__comparison-table {
    font-size: 12px;
    max-width: none;
    min-width: 700px;
  }

  .treatment-cadcam__comparison-table thead th,
  .treatment-cadcam__comparison-table tbody th,
  .treatment-cadcam__comparison-table tbody td {
    padding: 6px 8px;
  }

  .treatment-cadcam__comparison-table thead th:first-child,
  .treatment-cadcam__comparison-table tbody th:first-child {
    width: auto;
    min-width: 80px;
  }

  .treatment-cadcam__comparison-table thead th:nth-child(2),
  .treatment-cadcam__comparison-table thead th.treatment-cadcam__comparison-table--highlight,
  .treatment-cadcam__comparison-table thead th:nth-child(4),
  .treatment-cadcam__comparison-table tbody td {
    width: auto;
    min-width: 100px;
  }

  .treatment-cadcam__comparison-table tbody td.treatment-cadcam__comparison-table--highlight {
    border-left-width: 2px;
    border-right-width: 2px;
  }

  .treatment-cadcam__comparison-table tbody tr:first-child td.treatment-cadcam__comparison-table--highlight {
    border-top-width: 2px;
  }

  .treatment-cadcam__comparison-table tbody tr:last-child td.treatment-cadcam__comparison-table--highlight {
    border-bottom-width: 2px;
  }

  .treatment-cadcam__conditions {
    flex-direction: column;
  }

  .treatment-cadcam__conditions-image {
    height: 250px;
    flex: 0 0 auto;
    max-width: 100%;
  }

  .treatment-cadcam__condition-title {
    font-size: 16px;
  }

  .treatment-cadcam__condition-text {
    font-size: 13px;
  }

  .treatment-cadcam__condition-note {
    font-size: 11px;
  }

  .treatment-cadcam__case-detail-label {
    flex: 0 0 100px;
    font-size: 13px;
  }

  .treatment-cadcam__case-detail-value {
    font-size: 13px;
  }

  .treatment-cadcam__cautions {
    flex-direction: column;
  }

  .treatment-cadcam__caution-card {
    flex: 0 0 auto;
  }

  .treatment-cadcam__flow-title {
    font-size: 18px;
  }

  .treatment-cadcam__flow-text {
    font-size: 14px;
  }
}

.wb-treatment-message {
  background: #fff;
  padding: 80px 50px;
  width: 100%;
}

@media (max-width: 768px) {
  .wb-treatment-message {
    padding: 60px 20px 40px;
  }
}

.wb-treatment-message__content {
  display: grid;
  gap: 54px;
  grid-template-areas: "pic body";
  grid-template-columns: auto 628px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 1024px) {
  .wb-treatment-message__content {
    grid-template-areas: "body" "pic";
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .wb-treatment-message__content {
    gap: 32px;
  }
}

.wb-treatment-message__pic {
  grid-area: pic;
  height: 30dvw;
  margin-left: calc(50% - 50dvw);
  max-height: 576px;
  position: relative;
}

@media (max-width: 1024px) {
  .wb-treatment-message__pic {
    height: 46dvw;
    max-height: unset;
  }
}

.wb-treatment-message__pic img {
  border-radius: 16px 25px 100px 16px;
  height: 100%;
  margin-left: auto;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .wb-treatment-message__pic img {
    border-radius: 0 25px 100px 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wb-treatment-message__pic img {
    border-radius: 0 15px 50px 0;
  }
}

.wb-treatment-message__body {
  display: grid;
  gap: 30px;
  grid-area: body;
  grid-template-rows: auto 1fr;
}

.wb-treatment-message__heading {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fa9a00;
  line-height: 1.2;
  letter-spacing: 0.64px;
}

@media (max-width: 1024px) {
  .wb-treatment-message__heading {
    font-size: 28px;
  }
}

.wb-treatment-message__text {
  color: #333;
  display: grid;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  font-weight: 500;
  gap: 1.5em;
  letter-spacing: 0.36px;
  line-height: 2;
  place-content: start;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .wb-treatment-message__text {
    font-size: 16px;
  }
}

.wb-treatment-message__text--subhead {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  margin: 0 0 16px;
}

.wb-treatment-message__text--link {
  color: #fa9a00;
  text-decoration: underline;
}