@charset "UTF-8";
/*
 * かなで歯科クリニック — カスタムCSS
 * カラー: コーラルピンク + イエローアクセント
 * コンテンツ幅: 1280px
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Shippori+Mincho:wght@400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');


/* =============================================
   共通
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Shippori Mincho', serif;
  color: #3D2C2C;
}

/* 下層ページ見出し */
.main-section h2 {
  color: #3D2C2C;
}

.main-section h3 {
  color: #3D2C2C;
}

.inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #D4736B;
  letter-spacing: 4px;
  font-weight: 500;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #3D2C2C;
  margin-top: 6px;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #D4736B;
  margin: 16px auto 0 auto !important;
  text-align: center;
  left: 0;
  right: 0;
}

.section-link-wrap { text-align: center; margin-top: 40px; }

.section-link {
  display: inline-block;
  padding: 16px 44px;
  border: 2px solid #D4736B;
  border-radius: 40px;
  color: #D4736B;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 1px;
}
.section-link:hover { background: #D4736B; color: #fff; }


/* =============================================
   1. Hero
   ============================================= */

.hero-section {
  position: relative;
  overflow: visible;
  background: #FFF5EE;
  min-height: 640px;
  margin-bottom: 80px;
  padding-top: 80px;
}

/* 透過ヘッダーの背後もヒーロー背景色にする */
body.home .site-header {
  background: transparent !important;
}
body.home::before {
  content: '';
  display: block;
  height: 0;
}

body.home { overflow-x: hidden; }

/* ♪ 音符 */
.hero-section::before {
  content: '♪'; position: absolute;
  top: 100px; left: calc(50% - 640px - 40px);
  font-size: 100px; color: #D4736B; opacity: 0.09;
  z-index: 0; pointer-events: none; transform: rotate(-12deg);
}
.hero-section::after {
  content: '♫'; position: absolute;
  bottom: 120px; left: calc(50% - 640px - 20px);
  font-size: 70px; color: #D4736B; opacity: 0.09;
  z-index: 0; pointer-events: none; transform: rotate(10deg);
}
.hero-section .hero-content::before {
  content: '♩'; position: absolute;
  top: 52%; left: -50px;
  font-size: 50px; color: #D4736B; opacity: 0.09;
  z-index: 0; pointer-events: none; transform: rotate(5deg);
}

.hero-section .hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  min-height: 640px; display: flex; align-items: center;
  position: relative; z-index: 2;
}

.hero-section .hero-content {
  flex: 0 0 48%; max-width: 560px;
  padding: 80px 0; position: relative; z-index: 2;
}

.hero-section .hero-content .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; color: #D4736B;
  letter-spacing: 4px; font-weight: 500; margin-bottom: 20px;
}

.hero-section .hero-content h1 {
  font-size: 44px; font-weight: 600; color: #3D2C2C;
  line-height: 1.7; margin-bottom: 18px;
}

.hero-section .hero-content .sub {
  font-size: 18px; color: #5A4040;
  line-height: 1.9; margin-bottom: 40px;
}

.hero-section .hero-content .btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-section .hero-content .btn-reserve {
  display: inline-block; background: #D4736B; color: #fff;
  padding: 18px 42px; border-radius: 40px; font-size: 16px; font-weight: 600;
  text-decoration: none; box-shadow: 0 6px 24px rgba(212,115,107,0.3); transition: all 0.3s;
}
.hero-section .hero-content .btn-reserve:hover {
  background: #C0574F; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,115,107,0.4);
}

.hero-section .hero-content .btn-tel {
  display: inline-block; background: #fff; color: #D4736B;
  padding: 18px 36px; border-radius: 40px; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 2px solid #F2A9A4; transition: all 0.3s;
}
.hero-section .hero-content .btn-tel:hover { background: #FFF5EE; }

.hero-section .hero-notice {
  font-size: 12px;
  color: #8B6060;
  margin-top: 16px;
  line-height: 1.6;
}

.hero-section .slide-indicator { display: flex; gap: 8px; margin-top: 36px; }
.hero-section .slide-indicator span {
  width: 36px; height: 3px; border-radius: 2px;
  background: #F2D5D2; transition: all 0.4s; cursor: pointer;
}
.hero-section .slide-indicator span.active { background: #D4736B; width: 52px; }

/* スライダー */
.hero-section .hero-slider {
  position: absolute; top: 120px; right: 0;
  width: 52vw; height: calc(100% + 60px);
  z-index: 1; overflow: hidden; border-radius: 20px 0 0 20px;
}
.hero-section .hero-slider .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-section .hero-slider .slide.active { opacity: 1; }
.hero-section .hero-slider .slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transform: scale(1); transition: transform 4s ease-out;
}
.hero-section .hero-slider .slide.active img { transform: scale(1.15); }
.hero-section .hero-slider::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,245,238,0.88) 0%, rgba(255,245,238,0.4) 18%, rgba(255,245,238,0) 35%);
}


/* =============================================
   2. 診療時間 + お知らせ
   ============================================= */

.section-schedule-news {
  padding: 140px 0 80px;
  background: #FFFFFF;
}

.sn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}

.info-card {
  background: #FFF8F5; border: 1px solid #F2E0DB;
  border-radius: 18px; padding: 32px 30px;
}

.info-card h4 {
  font-size: 20px; font-weight: 600; color: #3D2C2C;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.info-card h4 .dot {
  width: 10px; height: 10px; background: #D4736B;
  border-radius: 50%; flex-shrink: 0;
}

.schedule-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; }
.schedule-table th { color: #8B6060; font-weight: 500; padding: 10px 6px; font-size: 14px; }
.schedule-table th.off { color: #D4736B; }
.schedule-table td { padding: 12px 8px; border-top: 1px solid #F2D5D2; }
.schedule-table .row-label { font-size: 13px; color: #5A4040; text-align: left; font-weight: 500; }
.schedule-table .on { color: #D4736B; font-weight: 700; }
.schedule-table .off-mark { color: #E8CBC6; }
.schedule-note { font-size: 14px; color: #5A4040; margin-top: 16px; margin-bottom: 0px; line-height: 1.7; }

.news-item {
  padding: 16px 0; border-bottom: 1px solid #F2D5D2;
  display: flex; align-items: baseline; gap: 16px;
}
.news-item:last-of-type { border-bottom: none; }
.news-date { font-size: 14px; color: #D4736B; font-weight: 600; white-space: nowrap; }
.news-title { font-size: 16px; color: #3D2C2C; text-decoration: none; transition: color 0.2s; }
.news-title:hover { color: #D4736B; }
.more-link {
  display: block; text-align: center; font-size: 14px;
  color: #D4736B; font-weight: 600; margin-top: 18px;
  text-decoration: none; letter-spacing: 1px;
}
.more-link:hover { color: #C0574F; }


/* =============================================
   3. 当院の特徴
   ============================================= */

.section-features { padding: 90px 0; background: #FFF5EE; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.feature-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #F2D5D2; transition: all 0.4s;
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(212,115,107,0.12); transform: translateY(-4px);
}

.feature-card-img { height: 220px; position: relative; overflow: hidden; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(60,44,44,0.45) 100%);
}

/* 番号 — 医潤会サイトレベルの大きさ */
.feature-card-num {
  position: absolute; bottom: 14px; left: 18px; z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px; font-weight: 700; color: #FFFFFF;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35); line-height: 1; letter-spacing: 3px;
}

.feature-card-body { padding: 28px 24px; }
.feature-card-body h3 {
  font-size: 22px; font-weight: 600; color: #d4736b;
  margin-bottom: 12px; line-height: 1.6;
}
.feature-card-body p { font-size: 16px; color: #5A4040; line-height: 1.9; margin: 0; }

.feature-link-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #D4736B;
  border: 1.5px solid #D4736B;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.feature-link-btn:hover {
  background: #D4736B;
  color: #fff;
}


/* =============================================
   4. 院長ごあいさつ
   ============================================= */

.section-greeting { padding: 90px 0; background: #FFFFFF; }

.greeting-wrap { display: flex; gap: 56px; align-items: center; }

.greeting-photo {
  width: 300px; height: 370px; border-radius: 20px;
  flex-shrink: 0; overflow: hidden;
}
.greeting-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.greeting-body { flex: 1; }
.greeting-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; color: #F2A9A4; letter-spacing: 3px; display: block; margin-bottom: 4px;
}
.greeting-name { font-size: 28px; font-weight: 600; color: #3D2C2C; margin-bottom: 4px; }
.greeting-pos { font-size: 13px; color: #8B6060; display: block; margin-bottom: 24px; }
.greeting-body p { font-size: 16px; color: #5A4040; line-height: 2; margin-bottom: 18px; text-align: left;}
.greeting-body .section-link { margin-top: 10px; }
@media (max-width: 768px) {
.greeting-name { font-size: 28px; font-weight: 600; color: #3D2C2C; margin-bottom: 4px; text-align: center;}
}

/* =============================================
   5. 診療案内（写真＋説明文カード）
   ============================================= */

.section-treatment { padding: 90px 0; background: #FFF5EE; }

.treatment-hero-img {
  width: 100%;
  max-height: 360px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
}

.treatment-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.treatment-intro {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.treatment-intro h3 {
  font-size: 24px;
  font-weight: 600;
  color: #3D2C2C;
  margin-bottom: 24px;
}

.treatment-intro p {
  font-size: 16px;
  color: #5A4040;
  line-height: 2;
  margin-bottom: 14px;
  text-align: left;
}

.treatment-intro p:last-child {
  margin-bottom: 0;
}

.treatment-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}

.treatment-card {
  display: block; background: #fff;
  border: 1px solid #F2D5D2; border-radius: 18px;
  overflow: hidden; text-decoration: none; transition: all 0.3s;
}
.treatment-card:hover {
  border-color: #F2A9A4;
  box-shadow: 0 8px 28px rgba(212,115,107,0.1); transform: translateY(-3px);
}

.treatment-card-img {
  height: 200px; overflow: hidden;
}
.treatment-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center; display: block;
  transition: transform 0.4s;
}
.treatment-card:hover .treatment-card-img img {
  transform: scale(1.05);
}

.treatment-card-body {
  padding: 24px 22px;
}

.treatment-card-body h3 {
  font-size: 20px; font-weight: 600; color: #3D2C2C;
  margin: 0 0 10px; text-align: left;
}

.treatment-card-body p {
  font-size: 15px; color: #5A4040;
  margin: 0; text-align: left; line-height: 1.8;
}

.treatment-card-body .treatment-more {
  display: inline-block; margin-top: 14px;
  font-size: 14px; color: #D4736B; font-weight: 600;
  letter-spacing: 0.5px;
}


/* =============================================
   6. アクセス
   ============================================= */

.section-access { padding: 90px 0; background: #FFFFFF; }

.access-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start;
}
.access-map { width: 100%; height: 360px; border-radius: 20px; overflow: hidden; }
.access-map iframe { width: 100%; height: 100%; display: block; }

.access-table { width: 100%; font-size: 16px; border-collapse: collapse; border: none; }
.access-table th {
  width: 100px; font-weight: 600; color: #D4736B; font-size: 14px;
  padding: 18px 14px 18px 0;
  border-top: 1px solid #F2D5D2; border-bottom: none; border-left: none; border-right: none;
  vertical-align: top; text-align: left;
}
.access-table td {
  padding: 18px 0;
  border-top: 1px solid #F2D5D2; border-bottom: none; border-left: none; border-right: none;
  color: #3D2C2C;
}
.access-table tr:last-child th,
.access-table tr:last-child td { border-bottom: 1px solid #F2D5D2; }
.access-table td a { color: #3D2C2C; text-decoration: none; }
.access-table td a:hover { color: #D4736B; }


/* =============================================
   7. CTA
   ============================================= */

.section-cta {
  background: linear-gradient(135deg, #D4736B, #C0574F);
  padding: 72px 0; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.section-cta::before {
  content: ''; position: absolute; top: -60px; right: 8%;
  width: 260px; height: 260px; background: rgba(255,255,255,0.06); border-radius: 50%;
}
.section-cta h2 { font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 10px; position: relative; }
.section-cta h2::after { display: none; }
.section-cta p { font-size: 16px; opacity: 0.85; margin-bottom: 36px; position: relative; }

.cta-btns { display: flex; gap: 18px; justify-content: center; position: relative; }

.cta-btn-primary {
  display: inline-block; padding: 18px 48px; border-radius: 40px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  background: #F5C469; color: #3D2C2C;
  box-shadow: 0 4px 18px rgba(245,196,105,0.4); transition: all 0.3s;
}
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,196,105,0.5); }

.cta-btn-outline {
  display: inline-block; padding: 18px 42px; border-radius: 40px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); transition: all 0.3s;
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); }


/* =============================================
   Footer
   ============================================= */

.site-footer { background: #3D2C2C !important; }
.site-footer, .site-footer a, .site-footer p,
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6,
.site-footer li, .site-footer span, .site-footer .widget-title {
  color: rgba(255,255,255,0.85) !important;
}
.site-footer a:hover { color: #FFFFFF !important; }


/* =============================================
   Responsive — Tablet
   ============================================= */

@media (max-width: 1024px) {
  .inner { padding: 0 28px; }

  .hero-section, .hero-section .hero-inner { min-height: 540px; }
  .hero-section .hero-content { flex: 0 0 52%; max-width: 500px; }
  .hero-section .hero-content h1 { font-size: 36px; }
  .hero-section .hero-slider { width: 52vw; top: 100px; height: calc(100% + 40px); }

  .features-grid { gap: 20px; }
  .feature-card-img { height: 180px; }
  .feature-card-num { font-size: 56px; }
  .feature-card-body h3 { font-size: 18px; }
  .feature-card-body p { font-size: 14px; }

  .greeting-wrap { gap: 36px; }
  .greeting-photo { width: 240px; height: 300px; }

  .treatment-grid { gap: 16px; }
  .treatment-card-img { height: 150px; }
}


/* =============================================
   Responsive — SP
   ============================================= */

@media (max-width: 768px) {
  .inner { padding: 0 20px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 24px; }

  /* Hero */
  .hero-section {
    min-height: auto; margin-bottom: 0; overflow: hidden;
    display: flex; flex-direction: column-reverse;
  }
  .hero-section .hero-inner { min-height: auto; padding: 0; }
  .hero-section::before { font-size: 60px; top: 20px; left: 8px; opacity: 0.06; }
  .hero-section::after { font-size: 40px; bottom: auto; top: 100px; left: 30px; opacity: 0.05; }
  .hero-section .hero-content::before { font-size: 30px; top: 70px; left: 50px; opacity: 0.05; }
  .hero-section .hero-content {
    flex: none; max-width: 100%; padding: 36px 20px 32px; text-align: center;
  }
  .hero-section .hero-slider {
    position: relative; top: auto; bottom: auto; right: auto;
    width: 100%; height: 300px; border-radius: 0;
  }
  .hero-section .hero-slider::after {
    background: linear-gradient(180deg, rgba(255,245,238,0.5) 0%, transparent 30%);
  }
  .hero-section .hero-content .label { font-size: 12px; letter-spacing: 3px; margin-bottom: 14px; }
  .hero-section .hero-content h1 { font-size: 28px; line-height: 1.6; }
  .hero-section .hero-content .sub { font-size: 14px; margin-bottom: 28px; }
  .hero-section .hero-content .btns { flex-direction: column; gap: 10px; align-items: center; }
  .hero-section .hero-content .btn-reserve,
  .hero-section .hero-content .btn-tel { width: 100%; max-width: 300px; text-align: center; padding: 14px 0; }
  .hero-section .slide-indicator { justify-content: center; }

  /* Schedule + News */
  .section-schedule-news { padding: 48px 0; }
  .sn-grid { grid-template-columns: 1fr; gap: 20px; }
  .info-card { padding: 24px 20px; border-radius: 14px; }
  .info-card h4 { font-size: 17px; }
  .news-item { flex-direction: column; gap: 2px; padding: 12px 0; }

  /* Features */
  .section-features { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card-num { font-size: 56px; }
  .section-link { padding: 14px 36px; font-size: 14px; }

  /* Greeting */
  .section-greeting { padding: 56px 0; }
  .greeting-wrap { flex-direction: column; gap: 28px; text-align: center; }
  .greeting-photo { width: 220px; height: 260px; margin: 0 auto; }
  .greeting-name { font-size: 24px; }

  /* Treatment */
  .section-treatment { padding: 56px 0; }
  .treatment-hero-img { max-height: 220px; border-radius: 14px; margin-bottom: 32px; }
  .treatment-intro h3 { font-size: 20px; }
  .treatment-grid { grid-template-columns: 1fr; gap: 16px; }
  .treatment-card-img { height: 200px; }

  /* Access */
  .section-access { padding: 56px 0; }
  .access-wrap { grid-template-columns: 1fr; gap: 24px; }
  .access-map { height: 260px; }
  .access-table { font-size: 14px; }

  /* CTA */
  .section-cta { padding: 52px 0; }
  .section-cta h2 { font-size: 24px; }
  .cta-btns { flex-direction: column; gap: 10px; align-items: center; }
  .cta-btn-primary, .cta-btn-outline { width: 100%; max-width: 300px; text-align: center; }

  /* 下層ページ：メディアと文章ブロックの余白調整 */
  .main-section .wp-block-image {
    margin-bottom: 12px !important;
  }
  .main-section .wp-block-media-text {
    gap: 12px !important;
  }
  .main-section .wp-block-media-text .wp-block-media-text__content {
    padding-top: 8px !important;
  }
}


/* =============================================
   下層ページ共通：画像と見出しの余白調整
   ============================================= */
img {
  border-radius: 10px;
}

.main-section .wp-block-image {
  margin-bottom: 16px !important;
}

.main-section .wp-block-media-text__media + .wp-block-media-text__content h3,
.main-section .wp-block-media-text__media + .wp-block-media-text__content .wp-block-heading {
  margin-top: 8px !important;
}


/* =============================================
   院内ギャラリーカード
   ============================================= */

.gallery-cards .treatment-card-img {
  height: 280px;
}

@media (max-width: 768px) {
  .gallery-cards .treatment-card-img {
    height: 220px;
  }
}
