/*===========================================
  Campaign用CSS（統合版）
  EvolutionCMS + TailwindCSS + JavaScript対応
===========================================*/

/*---------------------------------------
  1. ベース設定：カラーパレット・フォント
----------------------------------------*/
:root {
  --brand-pink: #D38AC6;
  --brand-green: #29A285;
  --brand-blue: #1C8D99;
  --brand-muted: #8FAEA7;
  --brand-teal: #53C6B2;
  --brand-leaf: #92C683;
  --brand-gray: #C5CDCF;
  --brand-bg: #E9EFF1;
  --brand-lightblue: #B6E7E1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cabin', 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: var(--brand-bg);
  line-height: 1.6;

}

h1, h2, h3, h4, h5 {
  margin: 0;
}

p {
  margin-bottom: 1em;
}

/* コンテナ幅 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/*---------------------------------------
  2. ブランドカラーユーティリティクラス
----------------------------------------*/
/* brand-muted */
.text-brand-muted   { color: #8FAEA7; }
.bg-brand-muted     { background-color: #8FAEA7; }
.border-brand-muted { border-color: #8FAEA7; }

/* brand-teal */
.text-brand-teal    { color: #53C6B2; }
.bg-brand-teal      { background-color: #53C6B2; }
.border-brand-teal  { border-color: #53C6B2; }

/* brand-leaf / brand-lime */
.text-brand-leaf    { color: #92C683; }
.bg-brand-leaf      { background-color: #92C683; }
.border-brand-leaf  { border-color: #92C683; }

.text-brand-lime    { color: #92C683; }
.bg-brand-lime      { background-color: #92C683; }
.border-brand-lime  { border-color: #92C683; }

/* brand-green */
.text-brand-green   { color: #29A285; }
.bg-brand-green     { background-color: #29A285; }
.border-brand-green { border-color: #29A285; }

/* brand-blue */
.text-brand-blue    { color: #1C8D99; }
.bg-brand-blue      { background-color: #1C8D99; }
.border-brand-blue  { border-color: #1C8D99; }

/* brand-gray / brand-darkgrey */
.text-brand-gray    { color: #C5CDCF; }
.bg-brand-gray      { background-color: #C5CDCF; }
.text-brand-darkgrey { color: #C5CDCF; }
.bg-brand-darkgrey   { background-color: #C5CDCF; }

/* brand-lightblue */
.text-brand-lightblue { color: #B6E7E1; }
.bg-brand-lightblue   { background-color: #B6E7E1; }

/* brand-pink */
.text-brand-pink    { color: #D38AC6; }
.bg-brand-pink      { background-color: #D38AC6; }
.border-brand-pink  { border-color: #D38AC6; }

/*---------------------------------------
  3. ヘッダー
----------------------------------------*/
#site-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  border-bottom: 1px solid var(--brand-gray);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* ロゴエリア */
.logoarea {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  width: 38px;
  height: auto;
  margin-right: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.5rem;
  color: var(--brand-muted);
  margin: 0;
}

.logo-title {
  font-family: 'Arsenal', serif;
  font-size: 1.125rem;
  color: var(--brand-blue);
  margin: 2px 0 0;
}

/* PC用ナビゲーション */
.pc-nav {
  display: flex;
}

.pc-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.pc-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--brand-muted);
  transition: color 0.3s ease;
}

.pc-nav a:hover {
  color: var(--brand-blue);
}

.pc-nav a.active {
  color: var(--brand-blue);
  font-weight: 600;
}

/* モバイルナビゲーショントグル */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mobile-nav-toggle.open .line1 { 
  transform: rotate(45deg) translate(0px, 6px); 
}
.mobile-nav-toggle.open .line2 { 
  opacity: 0; 
}
.mobile-nav-toggle.open .line3 { 
  transform: rotate(-45deg) translate(0px, -6px); 
}

/* ドロワーナビゲーション */
.drawer-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.drawer-nav.open {
  right: 0;
}

/* オーバーレイ */
#drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

#drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* 閉じるボタン */
.drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--brand-blue);
  align-self: flex-end;
  margin: 0 16px 24px;
  cursor: pointer;
}

/* メニューリスト */
.drawer-menu {
  list-style: none;
  padding: 0 16px;
  margin: 0;
  flex-grow: 1;
}

.drawer-menu li {
  margin-bottom: 16px;
}

.drawer-menu a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.drawer-menu a:hover {
  color: var(--brand-pink);
}

/*---------------------------------------
  4. Campaign用 Sticky CTA
----------------------------------------*/
/* Sticky CTA のベーススタイル */
.sticky-cta {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-cta.hidden {
  transform: translateY(100%);
}

/* 2段構えレイアウト */
.cta-tier-1 {
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-blue) 100%);
}

.cta-tier-2 {
  background-color: #fff;
}

/* CTAボタンスタイル */
.cta-button-large {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cta-button-large:hover,
.cta-button-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}


/* 非表示/表示クラス */
.show-line .line-only { display: block; }
.show-line .no-line { display: none; }
.hide-line .line-only { display: none; }
.hide-line .no-line { display: block; }

/*---------------------------------------
  5. ヒーローセクション
----------------------------------------*/
.hero {
  background-color: var(--brand-pink);
  color: #fff;
  padding: 30px 0;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-left {
  flex: 1 1 300px;
  min-width: 280px;
}

.hero-right {
  flex: 1 1 300px;
  min-width: 280px;
  text-align: center;
}

.hero-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #fff;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: #fff;
}

.hero-image-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/*---------------------------------------
  6. ボタン共通スタイル
----------------------------------------*/
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--brand-leaf);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-outline:hover {
  background-color: var(--brand-blue);
  color: #fff;
}

/* ヒーロー内のボタン特別スタイル */
.hero-left .btn-primary {
  background-color: #fff;
  color: var(--brand-pink);
}

.hero-left .btn-primary:hover {
  background-color: var(--brand-gray);
  color: var(--brand-pink);
}

/*---------------------------------------
  7. セクションタイトル
----------------------------------------*/
.section-title {
  font-family: 'Arsenal', 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--brand-muted);
  text-align: center;
  margin-bottom: 40px;
}

/*---------------------------------------
  8. プラン一覧セクション
----------------------------------------*/
.plans {
  padding: 80px 0;
  background-color: #fff;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.plan-card {
  background-color: #fff;
  border: 1px solid var(--brand-gray);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.plan-title {
  font-family: 'Arsenal', 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  color: var(--brand-pink);
  margin-bottom: 8px;
}

.plan-tagline {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #555;
}

.plan-features {
  list-style: disc inside;
  margin-bottom: 16px;
  color: #555;
}

.plan-price {
  font-size: 1.25rem;
  color: var(--brand-green);
  margin-bottom: 20px;
}

.plan-price .tax {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

.plan-price .price-amount {
  font-weight: 700;
}

/*---------------------------------------
  9. 当院のこだわりセクション
----------------------------------------*/
.benefits {
  padding: 80px 0;
  background-color: var(--brand-bg);
}

.benefit-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.benefit-list li {
  background-color: #fff;
  border-left: 4px solid var(--brand-blue);
  padding: 16px 20px;
  font-weight: 500;
}

/*---------------------------------------
  10. クリニック紹介セクション
----------------------------------------*/
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about-text {
  max-width: 800px;
  margin: 0 auto 24px;
  text-align: center;
  color: #444;
}

/*---------------------------------------
  11. FAQセクション
----------------------------------------*/
.faq {
  padding: 80px 0;
  background-color: var(--brand-bg);
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 32px;
}

.faq-question {
  font-size: 1.25rem;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.faq-answer {
  color: #555;
  padding-left: 16px;
  border-left: 3px solid var(--brand-muted);
}

/*---------------------------------------
  12. お問い合わせセクション
----------------------------------------*/
.contact {
  padding: 80px 0;
  background-color: #fff;
}

.contact-text {
  text-align: center;
  color: #555;
  margin-bottom: 24px;
}

.contact-btn {
  display: inline-block;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--brand-gray);
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1rem;
  width: 100%;
}

.contact-form .required {
  color: var(--brand-pink);
  margin-left: 4px;
}

.contact-form textarea {
  resize: vertical;
}

/*---------------------------------------
  13. フッター情報部分
----------------------------------------*/
.footer-info {
  color: #FDFDFD;
  font-size: 0.875rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-info p {
  margin-bottom: 6px;
}

.footer-info i {
  margin-right: 6px;
  color: #FDFDFD;
}

.footer-links {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer-links a {
  color: #FDFDFD;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-gray);
}

footer p.copyright {
  font-size: 0.75rem;
  color: #FDFDFD;
  margin-bottom: 0;
}

/*---------------------------------------
  14. スクロールアニメーション
----------------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* スクロールターゲットアニメーション */
.scroll-target-animate {
  animation: scrollTargetPulse 0.8s ease-out;
}

.scroll-target-highlight {
  background: linear-gradient(135deg, 
    rgba(83, 198, 178, 0.15) 0%, 
    rgba(29, 141, 153, 0.1) 50%, 
    rgba(83, 198, 178, 0.05) 100%);
  border-radius: 8px;
  transition: background 0.3s ease;
  position: relative;
}

.scroll-target-highlight::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, var(--brand-teal), var(--brand-blue), var(--brand-green));
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
  animation: borderGlow 2s ease-in-out;
}

/* スクロールアニメーション用キーフレーム */
@keyframes scrollTargetPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(83, 198, 178, 0.7);
  }
  25% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(83, 198, 178, 0.3);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 0 20px rgba(83, 198, 178, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(83, 198, 178, 0);
  }
}

@keyframes borderGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.02);
  }
}

/*---------------------------------------
  15. トップに戻るボタン
----------------------------------------*/
.ui-to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid white;
  background-color: #0f766e;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  text-decoration: none;
}

.ui-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ui-to-top:hover {
  background-color: var(--brand-teal);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 16px rgba(83, 198, 178, 0.3);
}

.ui-to-top:active {
  transform: scale(1) translateY(0);
}

/*---------------------------------------
  16. レスポンシブ対応
----------------------------------------*/
@media (max-width: 768px) {
  /* ヘッダー */
  .header-flex {
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  .mobile-nav-toggle {
    display: block;
    order: 2;
    margin-bottom: 4px;
  }

  .logoarea {
    order: 0;
    margin-bottom: 4px;
  }

  .pc-nav {
    display: none;
  }

  /* コンテナに横余白を追加（px-4 = 1rem = 16px） */
  main .container,
  section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* ヒーロー */
  .hero-content {
    flex-direction: column;
  }

  .hero-left, .hero-right {
    width: 100%;
    min-width: auto;
  }

  .hero-left {
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* プラン */
  .plan-cards {
    grid-template-columns: 1fr;
  }

  /* Sticky CTA調整 */
  .cta-button-large {
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  .cta-button-small {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* トップに戻るボタン */
  .ui-to-top {
    bottom: 140px; /* Sticky CTAの上に配置 */
    right: 1rem;
  }
}

@media (min-width: 768px) {
  .ui-to-top {
    bottom: 140px; /* Sticky CTAの上に配置 */
    right: 1.5rem;
  }
}

@media (min-width: 1500px) {
  .main-nav {
    margin-left: auto;
    margin-right: 50px;
  }
}