/*
 * 自由診療ページ - スマホ用（768px以下）
 */

/* Hero Section */
.hero {
  width: 100%;
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero__image {
  width: 70%;
  aspect-ratio: 1/1;
  margin-left: 30%;
  display: flex;
  justify-content: flex-end;
}

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

.hero__text {
  order: 2;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
}

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

.hero__description {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

/* Index Navigation - 縦並びもくじ */
.index-nav {
  width: 100%;
  padding: 20px 10px;
  background-color: var(--color-white);
}

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

.index-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  color: #8E826D;
  padding: 10px 0 10px 18px;
  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__text {
  font-size: 13px;
  line-height: 1.4;
  color: #000;
  text-align: left;
}

/* Main Content */
.main-content {
  padding-top: 40px;
}

/* Content Wrapper */
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px 30px;
}

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

/* Content Section */
.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 0px;
  padding-top: 60px;

}

.content-section__image {
  width: 250px;
  height: auto;
  object-fit: cover;
}

.content-section--image-right .content-section__image {
  order: 1;
  height: 329px;
}

.content-section--image-left .content-section__image {
  order: 2;
  width: 250px;
  height: auto;
}
.content-section__img {
  width: 60%;
  min-width: 260px;
}
.content-section__img img{
  width: 100%;
}
.content-section__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.content-section--image-right .content-section__text {
  order: 2;
}

.content-section--image-left .content-section__text {
  order: 1;
}

/* 中央画像レイアウト：タイトル → 画像 → テキスト */
.content-section--image-center .content-section__title {
  order: 1;
}

.content-section--image-center .content-section__img {
  order: 2;
}

.content-section--image-center .content-section__body {
  order: 3;
}

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

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

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

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

.content-section__body ul > li {
  margin-top: 0.5em;
}

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

.content-section__body ol > li {
  margin-top: 0.5em;
  padding-left: 0.3em;
}

/* Reservation Section */
.reservation {
  background-color: #EEE6DA;
  padding: 30px 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.reservation__button {
  width: 180px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #8E826D;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px;
}

.reservation__text {
  margin-top: 10px;
  font-size: 11px;
  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: 15px;
  margin: 40px 10px;
  padding: 0;
}

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

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

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

.doctor-comment .comment::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 15%;
  display: block;
  height: 0px;
  margin: auto 0;
  border-style: solid;
  border-width: 8px 12px 8px 0;
  border-color: transparent #f4f4f4 transparent transparent;
}
.doctor-comment .comment p{
  margin-bottom: 14px;
}
.doctor-comment .comment p:last-child{
  margin-bottom: 0px;
}

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

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

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

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

.page-faq-item__question {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  background-color: #fafafa;
}

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

.page-faq-item__q-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.page-faq-item__toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  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);
  width: 16px;
  height: 16px;
}

.page-faq-item__answer {
  padding: 0 15px;
  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: 15px 0;
}

.page-faq-item__a-text {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

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

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

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

.page-price-section__title {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 10px;
  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;
}
