/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
}

/* メインコンテナ */
.lp-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
}

/* 各セクション */
.lp-section {
  width: 100%;
  display: block;
}

.lp-section img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* 固定CTAボタン（画像版） */
.fixed-cta-button {
  position: fixed;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 380px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fixed-cta-button:hover {
  transform: translateX(-50%) scale(1.02);
  opacity: 0.95;
}

.fixed-cta-button:active {
  transform: translateX(-50%) scale(0.98);
}

.fixed-cta-button img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* PC表示時の調整（基本的にはスマホ前提） */
@media screen and (min-width: 751px) {
  .lp-container {
    max-width: 450px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  }
  
  .site-footer {
    max-width: 450px;
  }
  
  .fixed-cta-button {
    max-width: 400px;
  }
}

/* フッター余白（固定CTAの高さ分） */
.lp-container {
  padding-bottom: 80px;
}

/* スマートフォン向け調整 */
@media screen and (max-width: 480px) {
  .cta-button {
    padding: 10px 16px;
    font-size: 12px;
    min-width: 120px;
  }
  
  .cta-icon {
    font-size: 16px;
  }
}

/* 画像の遅延読み込み時のちらつき防止 */
.lp-section {
  min-height: 100px;
  background-color: #f8f8f8;
}

.lp-section img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .cta-button,
  .lp-section img {
    transition: none;
  }
}

/* 印刷時のスタイル */
@media print {
  .fixed-cta {
    display: none;
  }
  
  .lp-container {
    padding-bottom: 0;
    max-width: 100%;
    box-shadow: none;
  }
}

/* ===== FAQアコーディオン ===== */
.faq-section {
  background-color: #ffffff;
  min-height: auto !important;
}

.faq-header {
  position: relative;
  padding: 30px 20px 25px;
  text-align: center;
  overflow: hidden;
}

.faq-header-bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44a08d 100%);
  border-radius: 50%;
  opacity: 0.9;
}

.faq-tooth-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.faq-tooth-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.faq-title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}

.faq-title {
  font-size: 26px;
  color: #4ECDC4;
  font-weight: bold;
  margin-bottom: 2px;
}

.faq-subtitle {
  font-size: 12px;
  color: #999;
  letter-spacing: 1px;
}

.faq-accordion {
  padding: 0 15px 30px;
}

.faq-item {
  background: #FFF9F0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 18px 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(78, 205, 196, 0.05);
}

.faq-q-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #4ECDC4;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
}

.faq-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #4ECDC4;
  border-bottom: 2px solid #4ECDC4;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 5px;
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff;
}

.faq-answer-inner {
  display: flex;
  padding: 20px 15px;
  gap: 12px;
  border-top: 1px solid #E8E8E8;
}

.faq-a-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #FF6B6B;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-answer p {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* FAQ レスポンシブ */
@media screen and (max-width: 480px) {
  .faq-header {
    padding: 25px 15px 20px;
  }
  
  .faq-tooth-icon {
    left: 10px;
  }
  
  .faq-tooth-icon img {
    width: 45px;
    height: 45px;
  }
  
  .faq-title {
    font-size: 22px;
  }
  
  .faq-subtitle {
    font-size: 11px;
  }
  
  .faq-header-bg {
    width: 80px;
    height: 80px;
    top: -30px;
    right: -30px;
  }
  
  .faq-q-text {
    font-size: 14px;
  }
  
  .faq-answer p {
    font-size: 13px;
  }
}

/* ===== 医院紹介スライダー ===== */
.clinic-section {
  background: linear-gradient(180deg, #e8f4f2 0%, #d4ebe7 50%, #e8f4f2 100%);
  min-height: auto !important;
  padding-bottom: 30px;
}

.clinic-header {
  padding: 30px 20px 20px;
  text-align: center;
}

.clinic-title {
  font-size: 28px;
  color: #4ECDC4;
  font-weight: bold;
  letter-spacing: 4px;
}

/* スライダー */
.clinic-slider {
  position: relative;
  padding: 0 15px;
  margin-bottom: 25px;
}

.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #4ECDC4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: #44a08d;
  transform: translateY(-50%) scale(1.05);
}

.slider-prev {
  left: 5px;
}

.slider-next {
  right: 5px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: #4ECDC4;
  transform: scale(1.2);
}

.dot:hover {
  background: #44a08d;
}

/* 医院情報 */
.clinic-info {
  background: #ffffff;
  margin: 0 15px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.clinic-info-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #E8E8E8;
}

.clinic-info-row:last-child {
  border-bottom: none;
}

.clinic-label {
  width: 80px;
  font-weight: bold;
  color: #333;
  flex-shrink: 0;
}

.clinic-value {
  flex: 1;
  color: #555;
  line-height: 1.6;
}

/* Googleマップ */
.clinic-map {
  margin: 20px 15px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.clinic-map iframe {
  display: block;
}

/* スライダー レスポンシブ */
@media screen and (max-width: 480px) {
  .clinic-title {
    font-size: 24px;
  }
  
  .slider-btn {
    width: 36px;
    height: 36px;
  }
  
  .slider-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .clinic-label {
    width: 70px;
    font-size: 14px;
  }
  
  .clinic-value {
    font-size: 14px;
  }
}

/* ===== フッター ===== */
.site-footer {
  background: #f8f8f8;
  color: #333333;
  padding: 40px 20px 100px;
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 25px;
  padding: 0 10px;
}

.footer-logo-img {
  max-width: 100%;
  width: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.footer-info {
  margin-bottom: 25px;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.footer-info-item:last-child {
  margin-bottom: 0;
}

.footer-icon {
  flex-shrink: 0;
  color: #4ECDC4;
  margin-top: 2px;
}

.footer-info-item a {
  color: #E91E8C;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-info-item a:hover {
  color: #c4187a;
  text-decoration: underline;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4ECDC4;
  text-decoration: underline;
}

.footer-copyright {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.footer-copyright p {
  font-size: 11px;
  color: #888;
}

/* フッター レスポンシブ */
@media screen and (max-width: 480px) {
  .site-footer {
    padding: 30px 15px 90px;
  }
  
  .footer-logo-img {
    max-width: 200px;
  }
  
  .footer-info-item {
    font-size: 13px;
  }
  
  .footer-copyright p {
    font-size: 10px;
  }
}
