/*
 * 自由診療ページ - PC用（769px以上）
 */

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__text {
  width: 40%;
  margin-top: -20px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hero__title {
  font-size: clamp(
    28px,
    calc(28px + (100vw - 768px) * (36 - 28) / (1500 - 768)),
    36px
  );
  line-height: 1.2;
  font-weight: 400;
}

.hero__title--gold {
  color: #675231;
}

.hero__description {
  font-size: clamp(
    14px,
    calc(22px + (100vw - 768px) * (14 - 22) / (1500 - 768)),
    14px
  );
  line-height: 1.6;
  font-weight: 400;
  margin-top: 20px;
  padding-right: 30px;
  box-sizing: border-box;
}

.hero__image .pc_only{
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__image {
  width: 60%;
  max-height: 600px;
  aspect-ratio: 9 / 8;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Index Navigation - 縦並びもくじ */
.index-nav {
  width: 100%;
  padding: 60px 20px 0px 20px;
  background-color: #fff;
}

.index-nav .nav-inner {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 20px;
  border: 10px solid #eee9e1;
  gap: 0;
}

.index-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  color: #8E826D;
  padding: 12px 0 12px 20px;
  transition: opacity 0.3s;
  border-bottom: 1px solid #e5e5e5;
}
.index-nav__item:last-child {
  border-bottom: none;
}
.index-nav__item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: block;
  width: 4px;
  height: 4px;
  background-color: #8E826D;
  border-radius: 50%;
}
.index-nav__item:hover {
  opacity: 0.7;
}

.index-nav__text {
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  text-align: left;
}

/* Content Wrapper */
.content-wrapper {
  width: calc(100% - 40px);
  max-width: 1500px;
  margin: 20px auto 0 auto;
}

.content-wrapper > * + * {
  margin-top: 81px;
}

/* Content Section */
.content-section {
  display: flex;
  gap: 43px;
  margin-top: 4px;
  padding-top: 76px;
}

.content-section--image-right {
  flex-direction: row;
}

.content-section--image-left {
}

.content-section--image-center {
  flex-direction: column;
  align-items: center;
}

.content-section--image-center .content-section__img {
  width: 50%;
  max-width: 600px;
}

.content-section--image-center .content-section__text {
  width: 100%;
  max-width: 900px;
}

.content-section--image-center .content-section__body {
  width: 100%;
  max-width: 900px;
}

.content-section--text-only .content-section__text {
  max-width: 1398px;
}

.content-section__image {
  width: 344px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.content-section--image-left .content-section__image {
  width: 523px;
  height: 381px;
}
.content-section__img {
  width: 30%;
}
.content-section__img img{
  width: 100%;
}
.content-section__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.content-section__title {
  position: relative;
  padding-left: 28px;
  font-size: 32px;
  line-height: 1.6;
  font-weight: 400;
}
.content-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: block;
  width: 14px;
  height: calc(100% - 14px);
  margin: auto 0;
  background: #B8A991;
}

.content-section__body {
  font-size: 18px;
  line-height: 1.8;
}

.content-section__body p + p {
  margin-top: 1em;
}

.content-section__body ul {
  list-style: none;
  padding-left: 1.5em;
  margin: 1em 0 1em 0;
}

.content-section__body ul > li {
  position: relative;
  margin-top: 0.4em;
}
.content-section__body ul > li:before {
  content: "・";
  position: absolute;
  left: -1.2em;
  display: inline-block;
}

.content-section__body ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 1em 0 1em 0;
}

.content-section__body ol > li {
  margin-top: 0.4em;
  padding-left: 0.3em;
}
/* Reservation Section */
.reservation {
  background-color: #EEE6DA;
  margin-top: 80px;
  padding: 60px 0 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reservation__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reservation__button {
  width: 300px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #8E826D;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.1em;
  line-height: 1;
  transition: opacity 0.3s;
}

.reservation__button:hover {
  opacity: 0.8;
}

.reservation__text {
  margin-top: 20px;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
}
/* Color Text Classes */
.f-brown {
  color: #977437;
}
.f-blue {
  color: #3b58a7;
}
.f-red {
  color: #ed1f24;
}

/* Bold Text */
.content-section__body strong,
.doctor-comment .comment strong {
  font-weight: 800;
}

/* Doctor Comment Section */
.doctor-comment {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.doctor-comment .icon {
  flex-shrink: 0;
  width: 20%;
}

.doctor-comment .icon img {
  width: 100%;
  height: auto;
}

.doctor-comment .comment {
  position: relative;
  flex: 1;
  background: #f4f4f4;
  border-radius: 20px;
  padding: 25px 30px;
  font-size: 18px;
  line-height: 1.6;
}

.doctor-comment .comment::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 30px;
  border-style: solid;
  border-width: 12px 20px 12px 0;
  border-color: transparent #f4f4f4 transparent transparent;
}
.doctor-comment .comment p{
  margin-bottom: 14px;
}
.doctor-comment .comment p:last-child{
  margin-bottom: 0px;
}
.treatment-menu {
  margin-top: 80px;
}

/* ===========================================
   FAQ Section (ページ内よくある質問)
   =========================================== */
.page-faq-section {
  max-width: 900px;
  margin: -12px auto;
  padding: 72px 20px;
}

.page-faq-section__title {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid #b8a991;
}

.page-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-faq-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.page-faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-faq-item__question {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  position: relative;
  background-color: #fafafa;
}

.page-faq-item__q-label {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-tan);
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
}

.page-faq-item__q-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0;
}

.page-faq-item__toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.page-faq-item.is-open .page-faq-item__toggle {
  transform: rotate(180deg);
}

.page-faq-item__icon {
  color: var(--color-accent-tan);
}

.page-faq-item__answer {
  padding: 0 20px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.page-faq-item.is-open .page-faq-item__answer {
  margin: 20px 0;
}

.page-faq-item__a-text {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.05em;
}

.page-faq-item__a-text p {
  margin-bottom: 1em;
}

.page-faq-item__a-text p:last-child {
  margin-bottom: 0;
}

/* ===========================================
   Price Table Section (ページ内料金表)
   =========================================== */
.page-price-section {
  max-width: 1000px;
  margin: -12px auto;
  padding: 72px 20px;
}

.page-price-section__title {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 2px solid #b8a991;
}

.page-price-section__image {
  text-align: center;
}

.page-price-section__image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
