/* ==============================
   Base
============================== */
.wbr {
  display: inline-block;
}

.services {
  padding-bottom: 5rem;
}

/* ==============================
   Common: section heading / inner width
   (HTML uses "section-title" / "section-inner" / "section-lead",
   not the site-wide "section_title" / "section_inner" in styles.css)
============================== */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  @media (width < 768px) {
    padding: 2.5rem 1.25rem;
  }
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.6;
  color: #007b79;
  text-align: center;
  margin: 0 auto 1rem auto;
  @media (width < 768px) {
    font-size: 1.5rem;
  }
}

.section-lead {
  font-family: sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
MV Section
========================================================================== */
.mv_section {
  position: relative;
  width: 100%;
  height: 31.25rem; /* 500px */
  display: flex;
  align-items: center;
  background-color: #f7f6f3;
  overflow: hidden;
  @media (max-width: 767px) {
    flex-direction: column;
    height: auto;
  }
}

.mv_content {
  position: relative;
  z-index: 10;
  margin: 0 auto 0 0;
  width: 100%;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  @media (max-width: 767px) {
    padding: 2rem 0;
    text-align: center;
    margin: auto;
    max-width: none;
  }
}

.mv_title {
  font-size: 2rem;
  font-weight: bold;
  color: #007b79;
  border-bottom: 0.125rem solid #007b79;
  display: block;
  padding: 0 0 1.2rem 0;
  margin-bottom: 1rem;
  @media (width < 768px) {
    margin: auto;
    margin-bottom: 1rem;
    padding: 0 1rem 1rem 1rem;
    font-size: 1.7rem;
    width: fit-content;
  }
}

.mv_subtitle {
  font-size: 1.5rem;
  line-height: 1.4;
  color: #333333;
  font-family: var(--serif);
  padding: 0;
  margin: 0;
}

.mv_image {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  @media (max-width: 767px) {
    position: relative;
    width: 100%;
    height: 15.625rem;
  }
}

.mv_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
   Symptom section
============================== */
.symptom {
  background: linear-gradient(to bottom, #f3f0e9, #ffffff);
}

.symptom-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  @media (width < 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (width < 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.symptom-list-item {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 0.75rem;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.symptom-list-item:hover {
  background-color: #eef4fb;
  border-color: #009c9a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(17, 92, 167, 0.15);
}

.symptom-list-item:hover .symptom-list-item-label {
  color: #009c9a;
}

.symptom-list-item:hover .symptom-list-item-more {
  color: #009c9a;
  border-bottom-color: #009c9a;
}

.symptom-list-item:hover .symptom-icon-wrap img {
  transform: scale(1.06);
}

.symptom-list-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0.75rem 1rem;
  gap: 0.5rem;
}

.symptom-icon-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}

.symptom-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symptom-icon-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.symptom-icon-pic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
  height: 52%;
}

.symptom-icon-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.symptom-list-item-label {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
  @media (width < 768px) {
    font-size: 1rem;
  }
}

.symptom-list-item-more {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  color: #333;
  border-bottom: 1px solid #999;
  padding-bottom: 0.25rem;
}

/* ==============================
   Flow section
============================== */
.flow {
  background: #fafafa;
}

.flow-subtitle {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: 0.8125rem;
  color: #009c9a;
  letter-spacing: 0.08125rem;
  margin-bottom: 3rem;
  @media (width < 768px) {
    margin-bottom: 2rem;
  }
}

.flow-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  margin-top: 3rem;
  @media (width < 768px) {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.flow-list-item {
  background: #fff;
  border: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-list-item picture {
  width: 100%;
  height: 12.375rem;
  overflow: hidden;
}

.flow-list-item picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-list-item-body {
  background: #fff;
  padding: 0.625rem 0.5rem;
  width: 16.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  @media (width < 768px) {
    width: 100%;
  }
}

.flow-list-item-num {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 2.125rem;
  color: #004030;
  letter-spacing: 0.125rem;
  margin: 0;
}

.flow-list-item-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #555;
  letter-spacing: 0.125rem;
  line-height: 1.6;
  margin: 0;
  @media (width < 768px) {
    font-size: 1.1rem;
  }
}

.flow-list-item-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: 1rem;
  color: #555;
  letter-spacing: 0.02rem;
  line-height: 1.8;
  text-align: center;
  margin: 0;
  @media (width < 768px) {
    font-size: 1rem;
  }
}

/* Flow arrows between steps */
.flow-list-item:not(:last-child) {
  position: relative;
  @media (width < 768px) {
    /* no arrow on mobile, already stacked */
  }
}

/* ==============================
   FAQ section
============================== */
.faq {
  background: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 960px;
  margin: auto;
  @media (width < 768px) {
    gap: 2rem;
  }
}

.faq-list-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #007b79;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  @media (width < 768px) {
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-left: auto;
  @media (width < 768px) {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #007b79;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq-toggle::before {
  width: 100%;
  height: 1px;
}

.faq-toggle::after {
  width: 1px;
  height: 100%;
}

.faq-list-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-q-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007b79;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 2;
  flex-shrink: 0;
  @media (width < 768px) {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    line-height: 1;
  }
}

.faq-q-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: #534741;
  line-height: 2;
  @media (width < 768px) {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
}

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  margin: 0;
  background: #f8f8f8;
  @media (width < 768px) {
    gap: 0.75rem;
    padding: 1rem;
  }
}

.faq-a-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  color: #a9803f;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 2;
  flex-shrink: 0;
  @media (width < 768px) {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    line-height: 1;
  }
}

.faq-a-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.125rem;
  color: #534741;
  line-height: 2;
  align-self: center;
  @media (width < 768px) {
    font-size: 0.9375rem;
    line-height: 1.75;
  }
}

/* ==============================
   Services section
============================== */
.services-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 3rem;
  @media (width < 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (width < 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-list-item {
  border: 1px solid #dee3d3;
  min-height: 5.25rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.services-list-item:hover {
  background-color: #e4efef;
  border-color: #009c9a;
}

.services-list-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 1.25rem 0.5rem 1rem;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.services-list-item span,
.services-list-item div {
  font-family: "Noto Serif JP", serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  line-height: 1.4;
  @media (width < 768px) {
    font-size: 0.875rem;
  }
}

.services-icon-wrap {
  position: relative;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

.services-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==============================
   Treatment sections
============================== */
.treatment {
  position: relative;
  scroll-margin-top: 1.5rem;
}

.treatment:nth-child(even) {
  background-color: #fafafa;
}

.treatment-header {
  padding-top: 6.25rem;
  padding-bottom: 1.5rem;
  border-left: 3px solid;
  padding-left: 2.625rem;
  @media (width < 768px) {
    padding-top: 3rem;
    padding-left: 1rem;
    border-left-width: 3px;
  }
}

.treatment-header-dark {
  border-left-color: #333;
}

.treatment-header-light {
  border-left-color: #004030;
}

.treatment-heading {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: #004030;
  margin: 2rem 0 0 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  @media (width < 768px) {
    font-size: 1.3rem;
    gap: 0.75rem;
  }
}

.treatment-badge {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #007b79;
  background-color: #007b7921;
  width: fit-content;
  letter-spacing: 0.1rem;
  padding: 0.1875rem 1.4625rem;
  position: relative;
  display: block;
  margin: auto;
  margin-top: 2rem;
  @media (width < 768px) {
    font-size: 1rem;
    padding: 0.125rem 0.75rem;
    letter-spacing: 0.15rem;
  }
}

.treatment-badge::before {
  border-left: 2px solid #007b79;
}

.treatment-body {
  display: flex;
  gap: 1.875rem;
  align-items: flex-start;
  position: relative;
  @media (width < 768px) {
    flex-direction: column;
  }
}

.treatment-bg01 {
  width: 100%;
  height: 100%;
  background-image: url(images/bg01.webp);
  background-position: left 15% top 30%;
  background-repeat: no-repeat;
  background-size: 80%;
}

.treatment-bg02 {
  width: 100%;
  height: 100%;
  background-image: url(images/bg02.webp);
  background-position: right 15% top 10%;
  background-repeat: no-repeat;
  background-size: 80%;
}

.treatment-bg03 {
  width: 100%;
  height: 100%;
  background-image: url(images/bg03.webp);
  background-position: left 15% top 30%;
  background-repeat: no-repeat;
  background-size: 80% 90%;
}

.treatment-content {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.treatment-checklist {
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  @media (width < 768px) {
    padding: 0;
  }
}

.treatment-checklist-item {
  position: relative;
  padding-left: 2.5rem;
  display: flex;
  align-items: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.15rem;
  line-height: 2.375rem;
  color: #007b79;
  @media (width < 768px) {
    font-size: 1.3rem;
    padding-left: 1.75rem;
    line-height: 1.6;
  }
}

.treatment-checklist-item::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 1rem;
  opacity: 0.6;
}

.treatment-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  @media (width < 768px) {
  }
}

.treatment-text p {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 2;
  color: #534741;
  @media (width < 768px) {
    font-size: 1rem;
    line-height: 1.9;
  }
}

.treatment-note {
  font-size: 0.9375rem !important;
  color: #333 !important;
}

.treatment-photo {
  flex: 1;
  min-width: 0;
  padding-top: 10rem;
  position: relative;
  @media (width < 768px) {
    order: -1;
    padding-top: 2rem;
  }
}

.treatment-photo::before {
  content: "";
  position: absolute;
  top: 4.375rem;
  right: -0.3125rem;
  width: 90%;
  height: 31.6625rem;
  opacity: 0.3;
  pointer-events: none;
}

.treatment-photo picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.treatment-detail {
  display: flex;
  gap: 0;
  margin-top: 4.5rem;
  background: #fff;
  @media (width < 768px) {
    flex-direction: column;
  }
}

.treatment-detail-photo {
  flex: 1 1 35%;
  min-width: 0;
  overflow: hidden;
}

.treatment-detail-photo picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
  @media (width < 768px) {
  }
}

.treatment-detail-text {
  flex: 1 1 65%;
  min-width: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  @media (width < 768px) {
    padding: 1.5rem;
  }
}

.treatment-subheading {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #333;
  letter-spacing: 0.15rem;
  line-height: 1.75;
  margin: 0;
  @media (width < 768px) {
    font-size: 1.2rem;
  }
}

.treatment-detail-text p {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.125rem;
  color: #534741;
  line-height: 2.375rem;
  @media (width < 768px) {
    font-size: 0.9375rem;
    line-height: 1.9;
  }
}

.treatment-btn-wrap {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

a.treatment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a9803f;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 1.25rem;
  padding: 1.5rem;
  width: 80%;
  max-width: 320px;
  margin: auto;
  position: relative;
  line-height: 1.6;
}

a.treatment-btn::after {
  content: "\25B6";
  margin-left: 0.5em;
}

a.treatment-btn.mini {
  padding: 0.8rem 2rem;
  line-height: 1.4;
  font-size: 1rem;
  max-width: 320px;
  margin: 0;
}

.treatment-banner {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.treatment-banner picture img {
  max-width: 100%;
  height: auto;
}
