/* =============================================================
   clean.css — Brizy出力をクリーンHTML化した独自CSS
   第1弾：ヒーロー（画像スライダー）
   PC＝横長画像(mainimg-6/main-14)、SP＝縦長画像(SPmain-3/SPmain-15-1)を切替
   背景画像はCSS相対パス（../img/hero/）で指定＝メディアクエリで差し替え可能
   ============================================================= */

.chero {
  position: relative;
  width: 100%;
  margin-top: -30px;
  min-height: 820px;
  overflow: hidden;
}
.chero__slides { position: absolute; inset: 0; z-index: 1; }
.chero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.chero__slide.is-active { opacity: 1; }

/* PC用背景画像 */
.chero__slide--1 { background-image: url(../img/hero/mainimg-6.jpg); background-position: 47% 50%; }
.chero__slide--2 { background-image: url(../img/hero/main-14.jpg);  background-position: 50% 50%; }

.chero__inner {
  position: relative; z-index: 2;
  max-width: 1170px;
  min-height: 820px;
  margin: 0 auto;
  padding: 75px 15px;
  box-sizing: border-box;
  display: flex;
}
.chero__box {
  margin-top: 377px;       /* 本番の上部スペーサー */
  margin-left: 25%;        /* 左25%空け＋幅50%＝中央 */
  width: 50%;
  box-sizing: border-box;
  padding: 30px 40px;
  background-image: linear-gradient(90deg, rgba(255,255,255,1) 17%, rgba(246,215,223,1) 100%);
}
.chero__title {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 43px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;     /* 各行は<br>で改行。折り返さない（PC） */
  color: rgb(83, 62, 19);
  text-shadow: rgba(79,79,79,.55) 2px 4px 5px;
}
.chero__lead {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: rgb(83, 62, 19);
  text-shadow: rgba(245,212,209,1) 1px 2px 4px;
}
.chero__dots {
  position: absolute; z-index: 3;
  left: 0; right: 0; bottom: 40px;
  display: flex; justify-content: center; gap: 14px;
}
.chero__dots button {
  width: 12px; height: 12px; padding: 0;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}
.chero__dots button.is-active { background: #fff; }

/* ---------- モバイル（〜767px）：SP縦長画像＋文字ボックス重ね ---------- */
@media (max-width: 767px) {
  .chero { margin-top: 0; min-height: 0; }

  /* スライダー領域を縦長SP画像の比率(430:640)で確保 */
  .chero__slides { position: relative; inset: auto; aspect-ratio: 43 / 64; }
  .chero__slide--1 { background-image: url(../img/hero/SPmain-3.jpg);     background-position: center; }
  .chero__slide--2 { background-image: url(../img/hero/SPmain-15-1.jpg);  background-position: center; }

  /* 文字ボックスを画像中央に重ねる */
  .chero__inner {
    position: absolute; inset: 0; z-index: 2;
    max-width: 100%; min-height: 0; margin: 0;
    padding: 0 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .chero__box {
    margin: 0; width: 100%;
    padding: 20px 18px;
  }
  .chero__title { font-size: 26px; line-height: 1.6; white-space: normal; }
  .chero__lead { font-size: 13px; }
  .chero__dots { bottom: 16px; }
}

/* =============================================================
   共通クリーンセクション土台（Brizy外枠の置換）
   ============================================================= */
.csec { position: relative; }
.csec--pad { padding: 75px 0; }
.csec--center { text-align: center; }
/* 「数字で見る秋桜会」セクションのみ背景画像（淡い院内写真） */
.csec--numbg { background: url(../img/uploads/2025/05/img-82.webp) center center / cover no-repeat; }
.csec__inner { margin: 0 auto; padding: 0 15px; box-sizing: border-box; }

/* 正確な診断 リード文 */
.csec-lead { margin-top: 18px; }
.csec-lead p {
  color: rgb(100, 74, 47);
  font-family: "Noto Serif JP", serif;
  font-size: 18px; line-height: 1.8; letter-spacing: 1px; margin: 0;
}
@media (max-width: 767px) {
  .csec--pad { padding: 44px 0; }
  .csec-lead p { font-size: 15px; text-align: justify; }
}

/* ---------- セクション英字ラベル（アイコン＋EN＋線） ---------- */
.csec-label { margin-bottom: 26px; }
.csec-label__icon { display: block; width: 46px; height: auto; margin: 0 auto 8px; }
.csec-label__en {
  display: inline-flex; align-items: center;
  font-family: "Lato", sans-serif; font-size: 20px; letter-spacing: .12em; line-height: 1;
  color: rgb(224, 143, 166);
}
.csec-label__en::before, .csec-label__en::after {
  content: ""; display: inline-block; width: 46px; height: 1px;
  background: rgb(224, 143, 166); margin: 0 22px;
}

/* ---------- RECOMMEND 動画グリッド ---------- */
.csec-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.csec-video { aspect-ratio: 16 / 9; }
.csec-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 総合歯科（チーム医療は下へはみ出すため下余白確保） ---------- */
.csec--team { padding: 75px 0 500px; }

@media (max-width: 767px) {
  .csec-videos { grid-template-columns: 1fr; }
  .csec--team { padding: 44px 0; }
  .csec--team .csec__inner { padding: 0; }
  .csec-label__en { font-size: 17px; }
  .csec-label__en::before, .csec-label__en::after { width: 28px; margin: 0 14px; }
}

/* 治療の特徴（下余白少なめ） */
.csec--feat { padding: 75px 0 15px; }
@media (max-width: 767px) { .csec--feat { padding: 44px 0 10px; } }

/* 汎用見出し（診療科目・お悩み等のBrizyリッチテキスト見出し） */
.csec-h2 { font-family: "Noto Serif JP", serif; font-weight: 400; font-size: clamp(22px, 3vw, 30px); color: rgb(83, 62, 19); line-height: 1.5; margin: 0; }
.csec--pad2 { padding: 50px 0; }
/* お悩み（4列グリッド） */
.csec-nayami { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 767px) {
  .csec--pad2 { padding: 44px 0; }
  .csec-nayami { grid-template-columns: 1fr 1fr; }
}

/* 治療の流れ（上下余白控えめ） */
.csec--flow { padding: 15px 0; }

/* =============================================================
   ヘッダー（クリーン化：ロゴ＋PCメニュー＋SPメニュー）
   固定ではなく通常フロー（本番Brizy: position:relative）
   PCメニュー(.headermenu)・SPメニュー(#skr-*)は各自CSS/JSで動作
   ============================================================= */
.chead { position: relative; z-index: 1055; width: 100%; }
.chead__inner { display: flex; align-items: center; padding: 10px; box-sizing: border-box; }
.chead__logo { flex: 0 0 30%; max-width: 30%; display: flex; justify-content: center; }
.chead__logo img { width: 100%; max-width: 420px; height: auto; display: block; }
.chead__pcnav { flex: 0 0 70%; max-width: 70%; }
@media (max-width: 1024px) {
  .chead__inner { padding: 8px 14px; }
  .chead__pcnav { display: none; }
  .chead__logo { flex: 1 1 auto; max-width: 60%; justify-content: flex-start; }
}

/* ---------- NEWS（動的リスト） ---------- */
.cnews { max-width: 900px; margin: 30px auto 0; text-align: left; list-style: none; padding: 0; }
.cnews__item { border-bottom: 1px solid #ece3e6; }
.cnews__item a { display: flex; gap: 28px; align-items: baseline; padding: 18px 6px; transition: opacity .2s; }
.cnews__item a:hover { opacity: .7; }
.cnews__date { flex: 0 0 auto; color: rgb(200,140,160); font-family: "Lato", sans-serif; font-size: 14px; }
.cnews__ttl { color: #3c3c3c; font-size: 15px; line-height: 1.6; }

/* ---------- 初診カウンセリング ---------- */
.ccounsel { max-width: 900px; margin: 0 auto; border: 1px solid rgb(240,210,220); border-radius: 8px; padding: 44px; text-align: center; }
.ccounsel__ttl { font-family: "Noto Serif JP", serif; font-size: 24px; color: rgb(83,62,19); margin: 0 0 16px; }
.ccounsel__text { font-size: 15px; line-height: 2; margin: 0 0 22px; }
.ccounsel__tel { display: inline-flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 700; color: rgb(83,62,19); font-family: "Lato", sans-serif; }
.ccounsel__tel-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(200,116,138); color: #fff; font-size: 24px; }
@media (max-width: 767px) {
  .ccounsel { padding: 20px; }
  .ccounsel__tel { font-size: 20px; }
}

/* ---------- お問い合わせ帯 ---------- */
.ccontact { background: rgb(252,235,240); text-align: center; padding: 46px 20px; }
.ccontact__sub { color: rgb(224,143,166); font-size: 16px; margin: 4px 0; }
.ccontact__main { font-family: "Noto Serif JP", serif; font-size: clamp(20px,3vw,28px); color: rgb(83,62,19); font-weight: 700; margin: 8px 0; }

/* ---------- Instagram ---------- */
.csec--insta { padding: 15px 0 40px; }

/* ---------- スタッフブログ（動的カード） ---------- */
.csec--blog { padding: 15px 0 75px; }
.cblog { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 34px; text-align: left; }
.cblog__card { display: block; }
.cblog__figure { margin: 0 0 12px; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; background: #f5eef1; }
.cblog__figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cblog__card:hover .cblog__figure img { transform: scale(1.05); }
.cblog__date { color: rgb(200,140,160); font-family: "Lato", sans-serif; font-size: 13px; }
.cblog__ttl { font-size: 15px; color: #3c3c3c; line-height: 1.6; margin: 4px 0 0; font-weight: 500; }
@media (max-width: 767px) { .cblog { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 院内写真ループ（marquee） ---------- */
.cphotoloop { overflow: hidden; padding: 8px 0; }
.cphotoloop .image-container { display: flex; gap: 12px; width: max-content; animation: cphotoloop 45s linear infinite; }
.cphotoloop .image-container img { height: 200px; width: auto; border-radius: 6px; display: block; }
@keyframes cphotoloop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
