/* ============================================
   service-tabs.css — service投稿タブUI
   cure_tcd082-child
   ============================================ */

/* タブナビゲーション */
.service-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  background: #f5f5f5;
  border-bottom: 3px solid #00bcd4;
  margin: 20px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.service-tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 14px 10px;
  background: #f5f5f5;
  border: none;
  border-right: 1px solid #ddd;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #555;
  line-height: 1.4;
  transition: background 0.25s, color 0.25s;
}

.service-tab-btn:last-child {
  border-right: none;
}

.service-tab-btn.active {
  background: #00bcd4;
  color: #fff;
}

.service-tab-btn:hover:not(.active) {
  background: #e0f7fa;
}

/* タブコンテンツ
   display:none を使わず、height+opacity で制御。
   コンテンツをDOMに残すことでGooglebotが全タブを正常にインデックスできる。 */
.service-tab-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.service-tab-content.active {
  max-height: none;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
}

/* タブ内 共通テキスト（.tab-body 内のpタグに適用） */
.tab-body p {
  font-size: 0.98rem;
  line-height: 1.8rem;
  margin: 0 0 20px 0;
}

#service_single .post_content .tab-body p {
  margin: 0 0 8px 0;
}

#service_single .post_content td {
  vertical-align: middle;
}

#service_single .top_headline {
  font-weight: 600;
  color: #333;
}

.service-tab-content h4 {
  margin-top: 0;
}

#service_single .post_content :not(h2):not(h3):not(h4):not(h5):not(h6) + h3 {
  margin-top: 20px !important;
}

/* h2 見出し：上アクセントボーダー（固定幅） */
#service_single .post_content h2 {
  color: #333 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 36px 0 16px !important;
  font-size: 1.25em;
}

#service_single .post_content h2::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #00a7ce;
  margin: 0 auto 17px;
}

/* 診療科目一覧 */
#service_single .service_list {
  margin: 60px 0 80px 0 !important;
}

/* お知らせボックス 上部スペース */
.oshirase-box {
  margin-bottom: 60px;
}

/* 交通事故ブログ：お客様の声プラグインのカードに被らないよう余白を確保 */
#blog_archive.service_blog_archive {
  clear: both;
  margin-top: 80px;
}


/* ============================================
   スタッフグリッド
   ============================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
  margin: 20px 0;
}

.staff-card {
  text-align: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

.staff-photo {
  width: 70%;
  aspect-ratio: 3 / 4;
  margin: 0 auto 10px;
  border-radius: 5px;
  overflow: hidden;
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.staff-card h3 {
  font-size: 1.4em !important;
  font-weight: bold;
  margin: 15px 0 4px !important;
  color: #00bcd4;
  border-left: none !important;
  padding-left: 0 !important;
}

.staff-card p {
  font-size: 0.8rem;
  line-height: 1.4rem;
}

.staff-role {
  font-size: 0.88em;
  color: #00bcd4;
  font-weight: bold;
  margin: 0 0 6px;
}

.staff-desc {
  font-size: 0.85em;
  line-height: 1.6;
  color: #555;
  margin: 0 0 6px;
}

.staff-hobby {
  font-size: 0.8em;
  color: #888;
  margin: 0;
}

.staff-schedule {
  font-size: 0.8em;
  color: #e67e22;
  font-weight: bold;
  margin: 0 0 6px;
}


/* ============================================
   アコーディオン（症状別タブなど）
   ============================================ */
.accordion {
  margin: 20px 0;
}

.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background: #00bcd4;
  color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  transition: background 0.3s;
  user-select: none;
}

.accordion-header:hover {
  background: #00acc1;
}

.accordion-header::after {
  content: '▼';
  font-size: 0.75em;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 10px;
}

.accordion-header.open::after {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 4000px;
}

.accordion-body {
  padding: 20px;
  background: #fff;
}

.accordion-body h4 {
  margin: 0 0 10px;
  color: #00bcd4;
  font-size: 0.95em;
}

.accordion-body h4 + * {
  margin-top: 0;
}

.accordion-body ul,
.accordion-body ol {
  margin: 0 0 8px;
}

.accordion-rec {
  background: #e8f5e9;
  border-radius: 4px;
  padding: 15px;
  margin-top: 15px;
}

.accordion-rec h4 {
  color: #2e7d32 !important;
}

.accordion-rec-item {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.accordion-rec-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.accordion-rec-item-body {
  flex: 1;
}

.accordion-rec-item strong {
  display: block;
  font-size: 1em;
}

.accordion-rec-item span {
  font-size: 0.85em;
  color: #555;
}

/* メニュータブへのリンクボタン */
.accordion-tab-link {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  background: #fff;
  border: 1px solid #4caf50;
  border-radius: 20px;
  color: #2e7d32;
  font-size: 0.82em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.accordion-tab-link:hover {
  background: #4caf50;
  color: #fff !important;
}


/* ============================================
   サービスカードグリッド（予約方法タブなど）
   ============================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.service-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.service-card h3 {
  font-size: 1.4em;
  color: #333;
  margin: 0 0 10px;
  border-left: none !important;
  padding-left: 0 !important;
}

.service-card-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem !important;
  line-height: 1.2rem !important;
  text-align: center;
  margin: 0 0 12px !important;
}

.service-card-note::before,
.service-card-note::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 2px;
  height: 14px;
  background: rgba(0, 0, 0, 0.3);
}

.service-card-note::before {
  transform: rotate(-25deg);
}

.service-card-note::after {
  transform: rotate(25deg);
}

.service-card-icon {
  display: block;
  margin: 0 auto 14px;
  width: 34px;
  height: 34px;
}

.service-cta-btn {
  display: inline-block;
  background: #f8910a;
  color: #fff !important;
  padding: 10px 25px;
  text-decoration: none !important;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 12px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.service-cta-btn:hover {
  background: #f44336;
  color: #fff !important;
}

.service-cta-btn.line {
  background: #06C755;
}

.service-cta-btn.line:hover {
  background: #05a848;
}

.service-info-box {
  background: #fff8e1;
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 4px;
  text-align: center;
}

.service-info-box h4 {
  margin: 0 0 15px;
  color: #333;
}

.service-info-box p {
  margin: 0;
}


/* ============================================
   症状別カードセレクタ
   ============================================ */
.symptom-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 0;
}

.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}

.symptom-card:hover {
  border-color: #00bcd4;
  background: #e0f7fa;
}

.symptom-card.active {
  border-color: #00bcd4;
  background: #00bcd4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
}

.symptom-icon {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.symptom-label {
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.3;
}

.symptom-panels {
  margin: 16px 0 0;
}

.symptom-panel {
  display: none;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  animation: serviceTabFadeIn 0.25s ease;
}

.symptom-panel.active {
  display: block;
}

.symptom-panel h4 {
  color: #00bcd4;
  font-size: 0.95em;
  margin: 0 0 6px;
}

.symptom-panel h4 + p {
  margin-top: 0;
}


.flow-area {
  align-items: center;
}

.flow-area:not(:has(.youtube)) {
  justify-content: center;
}

#service_single .flow-area .flow-text {
  padding-top: 0;
}

.flow-area .youtube iframe {
  display: block;
  max-width: 100%;
}


/* ============================================
   モバイル対応
   ============================================ */
@media (max-width: 768px) {
  .service-tab-btn {
    font-size: 0.85em;
    padding: 11px 6px;
    min-width: 70px;
  }

  .oshirase-box {
    margin-bottom: 40px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .symptom-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .symptom-label {
    font-size: 0.9em;
  }

  .accordion-header {
    font-size: 1em;
    padding: 13px 15px;
  }
}
