/* General Dentistry Page Specific Styles */

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


/* Section 2: 虫歯の進行と治療方法 */
.treatment-section--grd {
  background: linear-gradient(to bottom, #fff5e5 0%, #fff5e5 50%, #fff 100%);
  border-top: 1px solid #eee;
}

.treatment-section--grd .treatment-section__title {
  font-size: 32px;
  letter-spacing: 0.64px;
}

.treatment-general__stages {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
  flex-wrap: wrap;
}

.treatment-general__stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: calc((100% - (32px * 4)) / 5);
  flex-shrink: 0;
}

.treatment-general__stage-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  padding: 38px 39px;
  border-radius: 8px;
  color: #fff;
}

.treatment-general__stage:nth-child(1) .treatment-general__stage-header {
  background: #73e45a;
}

.treatment-general__stage:nth-child(3) .treatment-general__stage-header {
  background: #ebbb1c;
}

.treatment-general__stage:nth-child(5) .treatment-general__stage-header {
  background: #fa9a00;
}

.treatment-general__stage:nth-child(7) .treatment-general__stage-header {
  background: #ee5725;
}
.treatment-general__stage:nth-child(9) .treatment-general__stage-header {
  background: #ad1a1a;
}

.treatment-general__stage-code {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.treatment-general__stage-label {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  display: grid;
  min-height: 56px;
  place-content: center;
  text-align: center;
}

.treatment-general__stage-image {
  width: 130px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.treatment-general__stage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-general__stage-content {
  flex: 1;
  background: #fff5e5;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.treatment-general__stage-content p {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.treatment-general__stage-content p:not(:last-child) {
  margin-bottom: 0;
}

.treatment-general__stage-arrow {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 6px;
  width: 32px;
  flex-shrink: 0;
}

.treatment-general__stage-arrow img {
  width: 50px;
  height: 50px;
}

/* Section 3: 虫歯を防ぐには？ */
.treatment-general__prevention {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 40px;
}

.treatment-general__prevention-row {
  display: flex;
  gap: 64px;
  justify-content: center;
}

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

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

.treatment-general__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;
  text-align: center;
  margin: 0;
  padding: 2px 0 1.72px;
}

.treatment-general__prevention-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.5;
  text-align: center;
  margin: 0;
  padding: 1px 0 3px;
}

.treatment-general__prevention-note {
  background: #fff5e5;
  padding: 32px 48px;
  margin-top: 40px;
}

.treatment-general__prevention-note 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;
  text-align: center;
  margin: 0;
}

.treatment-general__prevention-note p:not(:last-child) {
  margin-bottom: 0;
}

/* Section 4: 定期検診のメリット */
.treatment-general__benefits {
  margin-top: 40px;
}

.treatment-general__benefits-row {
  display: grid;
  gap: 40px 30px;
  grid-template-columns: repeat(3, 1fr);
}

.treatment-general__benefit-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.treatment-general__benefit-image {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.treatment-general__benefit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-general__benefit-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-bottom: 36px;
}

.treatment-general__benefit-title {
  font-family: 'FOT-TsukuARdGothic_Std', 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 18.7px;
  font-weight: 700;
  color: #fa9a00;
  line-height: 1.6;
  margin: 0;
  padding: 2px 0 3px;
}

.treatment-general__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: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 1px 0 3px;
}

/* Section 5: Message */
.treatment-general__message-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  line-height: 1;
  margin-bottom: 40px;
}

.treatment-section__image--message {
  width: 402px;
  height: 302px;
  border: 1px dashed #ccc;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.treatment-section__image--message img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.treatment-section__content {
  gap: 60px;
  align-items: center;
}

.treatment-general__message-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 738px;
}

.treatment-general__message-text 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;
  padding: 1px 20px 3px;
  white-space: pre-wrap;
}

/* Section 6: 治療の流れ */
.treatment-general__flow {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.treatment-general__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;
  line-height: 1.6;
  margin: 0;
  padding: 2px 0 3px;
}

.treatment-general__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;
  padding: 1px 0 3px;
}

/* Section 7: CTA */
.treatment-cta__tel-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .treatment-section__inner--message {
    padding: 80px 0 60px;
  }

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

  .treatment-general__stage {
    width: 100%;
    max-width: 500px;
  }

  .treatment-general__stage-label {
    min-height: unset;
  }

  .treatment-general__stage-label br {
    display: none;
  }

  .treatment-general__stage-content {
    min-height: unset;
  }

  .treatment-general__stage-arrow {
    transform: rotate(90deg);
    width: 50px;
    height: 50px;
    margin: 10px 0;
  }

  .treatment-general__stage-arrow img {
    transform: rotate(0deg);
  }

  .treatment-general__prevention-row {
    flex-direction: column;
    gap: 30px;
  }

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

  .treatment-general__benefits-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .treatment-section__content {
    flex-direction: column;
    gap: 40px;
  }

  .treatment-section__image--message {
    width: 100%;
    max-width: 402px;
    height: auto;
    aspect-ratio: 402 / 302;
  }
}

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

  .treatment-section__image--message {
    width: 100%;
    max-width: 402px;
    height: auto;
  }

  .treatment-general__prevention {
    gap: 30px;
  }

  .treatment-general__prevention-note {
    padding: 20px;
  }

  .treatment-general__benefits-row {
    grid-template-columns: 1fr;
  }

  .treatment-general__benefit-card {
    width: 100%;
    height: auto;
  }

  .treatment-section__image--message {
    width: 100%;
    height: auto;
    aspect-ratio: 402 / 302;
  }

  .treatment-general__flow {
    gap: 20px;
  }

  .treatment-general__flow-item {
    flex-direction: column;
    gap: 15px;
  }
}

/* 20260723書き直し分 */
.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;
  }
}