/* Peri-implantitis Page Specific Styles */

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

/* Section 1: ～専門的な対応ができる歯科医院として～ */
.treatment-section:has(.treatment-section__subtitle--orange) .treatment-section__image {
  width: 380px;
  border-radius: 20px;
  background: #f0f0f0;
  overflow: hidden;
}

.treatment-section__text-content p.treatment-section__subtitle.treatment-section__subtitle--orange {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fa9a00;
  line-height: 1.6;
  margin: 0;
}

.treatment-section__title--left {
  text-align: left;
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}

.treatment-section:has(.treatment-section__subtitle--orange) .treatment-section__text {
  font-size: 18px;
  font-weight: 500;
}

/* Section 2: インプラント周囲炎の原因と症状 */
.treatment-peri__causes-symptoms {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.treatment-peri__causes {
  flex: 1;
  max-width: 575px;
}

.treatment-peri__symptoms {
  flex: 1;
  max-width: 575px;
}

.treatment-peri__symptoms-list {
  background: #fff;
  border-radius: 8px;
  padding: 20px 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.treatment-peri__symptom-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.treatment-peri__symptom-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.treatment-peri__symptom-item p {
  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;
}

.treatment-peri__symptoms-note {
  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;
  text-align: center;
  margin-top: 24px;
}

/* Section 3: 一般的な歯科医院の限界 */
.treatment-peri__limit-image {
  margin: 40px auto 0;
  width: 100%;
  max-width: 1068px;
  border-radius: 8px;
  overflow: hidden;
}

.treatment-peri__limit-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Section 4: なかい歯科での治療や予防への取り組み */

.treatment-peri__expertise-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  overflow: hidden;
}

.treatment-peri__expertise-header {
  background: #fa9a00;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-peri__expertise-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  word-break: auto-phrase;
}

.treatment-peri__expertise-list {
  padding: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.treatment-peri__expertise-item {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 20px;
}

.treatment-peri__expertise-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid #fa9a00;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fa9a00;
}

.treatment-peri__expertise-item p {
  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;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.treatment-peri__expertise-note {
  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;
  text-align: center;
  margin-top: 40px;
  word-break: auto-phrase;
}

/* Section 5: 治療の選択肢と予防のポイント */
.treatment-peri__treatment-prevention {
  display: flex;
  gap: 50px;
  margin-bottom: 40px;
}

.treatment-peri__treatment-card,
.treatment-peri__prevention-card {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.treatment-peri__treatment-title,
.treatment-peri__prevention-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fa9a00;
  line-height: 1.6;
  margin: 0 0 21px;
  text-align: center;
  word-break: auto-phrase;
}

.treatment-peri__treatment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.treatment-peri__treatment-item {
  display: flex;
  gap: 19px;
  align-items: center;
}

.treatment-peri__treatment-badge {
  padding: 6px 45px 12px;
  border-radius: 68px;
  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: #fff;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  width: 179px;
  flex-shrink: 0;
}

.treatment-peri__treatment-badge--initial {
  background: #73e45a;
}

.treatment-peri__treatment-badge--moderate {
  background: #fa9a00;
}

.treatment-peri__treatment-badge--severe {
  background: #ad1a1a;
}

.treatment-peri__treatment-item p {
  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;
  line-height: 1.6;
  margin: 0;
}

.treatment-peri__prevention-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.treatment-peri__prevention-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.treatment-peri__prevention-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #fa9a00;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.treatment-peri__prevention-text {
  flex: 1;
}

.treatment-peri__prevention-text-bold {
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  margin: 0 0 0;
}

.treatment-peri__prevention-text p:not(.treatment-peri__prevention-text-bold) {
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.treatment-peri__message-box {
  background: #fff5e5;
  border: 1px solid #fa9a00;
  border-radius: 8px;
  padding: 40px 30px;
  margin-top: 40px;
}

.treatment-peri__message-bold {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fa9a00;
  line-height: 1.6;
  margin: 0 0 1em;
}

.treatment-peri__message-box p:not(.treatment-peri__message-bold) {
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin: 0 0 1em;
}

.treatment-peri__message-box p:last-child {
  margin-bottom: 0;
}

/* Section 6: 科学的エビデンス */
.treatment-section--gray {
  background: #f9f9f9;
}

.treatment-peri__reference {
  color: #fa9a00;
  text-decoration: underline;
}

.treatment-section__inner:has(.treatment-button--reference) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.treatment-button--reference {
  margin-top: 40px;
  max-width: 407px;
  width: 100%;
  padding: 16px 40px 18px;
  font-size: 24px;
  cursor: pointer;
  border: none;
}

/* Reference Modal */
.treatment-peri__modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.treatment-peri__modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.treatment-peri__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.treatment-peri__modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1382px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.treatment-peri__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-bottom: 1px solid #eee;
}

.treatment-peri__modal-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  margin: 0;
  word-break: auto-phrase;
}

.treatment-peri__modal-close {
  background: #fa9a00;
  border: none;
  border-radius: 32px;
  padding: 20px 30px;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
}

.treatment-peri__modal-close:hover {
  opacity: 0.8;
}

.treatment-peri__modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  position: relative;
}

.treatment-peri__modal-text {
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

.treatment-peri__modal-text p {
  margin: 0 0 1em;
}

.treatment-peri__modal-text p:last-child {
  margin-bottom: 0;
}

/* Custom Scrollbar */
.treatment-peri__modal-body::-webkit-scrollbar {
  width: 8px;
}

.treatment-peri__modal-body::-webkit-scrollbar-track {
  background: #d9d9d9;
}

.treatment-peri__modal-body::-webkit-scrollbar-thumb {
  background: #fa9a00;
  border-radius: 4px;
}

.treatment-peri__modal-body::-webkit-scrollbar-thumb:hover {
  background: #e08900;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .treatment-peri__causes-symptoms {
    gap: 30px;
  }

  .treatment-peri__causes,
  .treatment-peri__symptoms {
    max-width: 100%;
  }

  .treatment-peri__treatment-prevention {
    gap: 30px;
  }

  .treatment-peri__treatment-card,
  .treatment-peri__prevention-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .treatment-section:has(.treatment-section__subtitle--orange) .treatment-section__image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 380 / 404;
  }

  .treatment-section__subtitle--orange {
    font-size: 24px;
  }

  .treatment-section__title--left {
    font-size: 20px;
  }

  .treatment-peri__causes-symptoms {
    flex-direction: column;
    align-items: center;
  }

  .treatment-peri__symptoms-list {
    padding: 20px;
  }

  .treatment-peri__expertise-title {
    font-size: 20px;
    padding: 0 15px;
  }

  .treatment-peri__expertise-item {
    gap: 10px;
  }

  .treatment-peri__expertise-item p {
    font-size: 16px;
  }

  .treatment-peri__expertise-note {
    font-size: 20px;
  }

  .treatment-peri__treatment-prevention {
    flex-direction: column;
  }

  .treatment-peri__treatment-list {
    align-items: center;
  }

  .treatment-peri__treatment-badge {
    width: auto;
    padding: 6px 30px 12px;
  }

  .treatment-peri__treatment-item {
    flex-direction: column;
    gap: 10px;
  }

  .treatment-peri__message-box {
    padding: 30px 20px;
  }

  /* Modal Responsive */
  .treatment-peri__modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .treatment-peri__modal-header {
    padding: 15px;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .treatment-peri__modal-title {
    font-size: 20px;
  }

  .treatment-peri__modal-close {
    padding: 12px 20px;
    font-size: 16px;
    align-self: flex-end;
  }

  .treatment-peri__modal-body {
    padding: 15px;
  }

  .treatment-peri__modal-text {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .treatment-peri__modal-content {
    width: 95%;
    max-width: 100%;
  }

  .treatment-peri__modal-header {
    padding: 20px;
  }

  .treatment-peri__modal-title {
    font-size: 24px;
  }

  .treatment-peri__modal-close {
    padding: 16px 24px;
    font-size: 18px;
  }

  .treatment-peri__modal-body {
    padding: 20px;
  }

  .treatment-peri__modal-text {
    font-size: 18px;
  }
}