@charset "utf-8";
/* Kosugi Maru をGoogle Fontsから読み込み（必ず @charset の直後） */
@import url("https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap");

/* =========================================================
   武知小児科内科ヘッダー（東住吉区デザイン対応） 完全版
   ========================================================= */

/* ------------------------
   基本変数
------------------------ */
:root {
  --c-bg-main: #fffaf5;        /* 背景全体のベージュ */
  --c-brown: #7b4a1b;          /* 文字用ブラウン */
  --c-green: #c7ec92;          /* TEL左背景 */
  --c-yellow: #ffe0a3;         /* TEL右背景 */
  --c-line: #e8d5b5;           /* 区切り線 */
  --font-main: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --jp-round: "Kosugi Maru", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* 全体を Kosugi Maru ベースに */
html,
body { 
  margin: 0;
  font-size: 18px;
  font-family: var(--jp-round);
}

.haikei {
  background-color: #fbf6f0;
}

.inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* ------------------------
   上部ロゴ・タイトル帯（grid）
------------------------ */
.logos {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 左：ロゴ群 / 右：TEL・診療時間 */
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左列にロゴ群 */
.kwc_logo,
.trg_logo,
.dammy_logo {
  grid-column: 1 / 2;
  margin-top: 30px;
}

/* ロゴ画像のスケール */
.kwc_logo img {
  height: auto;
  width: auto;
  max-height: clamp(48px, 12vw, 150px);
  max-width: 68%;
  object-fit: contain;
}

.trg_logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.trg_logo img { height: auto; max-height: 68px; }

/* ------------------------
   TEL・診療時間エリア（右列）
------------------------ */
.tel_area {
  grid-column: 2 / 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  font-size: 16px;
  line-height: 1.6;
}

.tel_box,
.tel_box2 {
  border-radius: 0 0 15px 15px;
  padding: 2% 5.2%;
  color: var(--c-brown);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel_box  { background: var(--c-green); }
.tel_box2 { background: var(--c-yellow); margin-left: 10px; }

.tel_box .label,
.tel_box2 .label {
  border: 1px solid var(--c-brown);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.tel_box .number,
.tel_box2 .number {
  font-size: 26px;
  font-weight: 700;
  text-wrap: nowrap;
}

/* 診療時間（TELの下段） */
.time_area {
  grid-column: 2 / 3;
  grid-row: 2;
  text-align: right;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-brown);
}

.time_area p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 0px;
}

/* 1570px以下で電話番号のフォントを少し小さく */
@media (max-width: 1570px) {
  .tel_box .number,
  .tel_box2 .number { 
    font-size: 20px; 
    color: #7a4a1b !important;
  }
	
  .tel_box .number,
  .tel_box2 .number a { 
    color: #7a4a1b !important; 
    border: none;
  }
}

.tel_box .number, 
.tel_box2 .number { 
  color: #7a4a1b !important;
}

.tel_box .number, 
.tel_box2 .number a { 
  color: #7a4a1b !important; 
  border: none;
}


/* ==========================
   スマホ用：電話番号カラー＆下線非表示
========================== */
@media (max-width: 768px) {
  .tel_area .number {
    color: #7a4a1b !important;        /* フォントカラー変更 */
    text-decoration: none !important; /* 下線を消す */
  }

  /* 念のため aタグで電話リンクされている場合も下線を消す */
  .tel_area a {
    text-decoration: none !important;
    color: #7a4a1b !important;
  }
}

/* ------------------------
   下部ナビゲーション（PC用）
------------------------ */
header.sp_none { background-color: #fbf6f0; }

.gnavi_wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 20px;
}

.gnavi {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.gnavi li { text-align: center; flex: 1 1 auto; }

.gnavi li a {
  display: block;
  text-decoration: none;
  color: var(--c-brown);
  font-size: 16px;
  transition: opacity 0.3s ease;
  font-weight: bold;
}
.gnavi li a:hover { opacity: 0.7; }

/* アイコン（仮） */
.gnavi li a::before {
  content: "";
  display: block;
  margin: 0 auto 6px;
  width: 35%;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
}
.gnavi li:nth-child(1) a::before { background-image: url("../img/icon_home.png"); }
.gnavi li:nth-child(2) a::before { background-image: url("../img/icon_hospital.png"); }
.gnavi li:nth-child(3) a::before { background-image: url("../img/icon_doctor.png"); }
.gnavi li:nth-child(4) a::before { background-image: url("../img/icon_child.png"); }
.gnavi li:nth-child(5) a::before { background-image: url("../img/icon_injection.png"); }
.gnavi li:nth-child(6) a::before { background-image: url("../img/icon_check.png"); }
.gnavi li:nth-child(7) a::before { background-image: url("../img/icon_news.png"); }

/* ------------------------
   スマホ時のレイアウト調整
------------------------ */
@media (max-width: 768px) {
  .logos {
    grid-template-columns: 1fr;   /* 1列 */
    row-gap: 15px;
    padding: 0 20px;
    text-align: center;
  }
  .trg_logo { justify-content: center; }
  .tel_area,
  .time_area {
    grid-column: 1 / -1;          /* 全幅 */
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  .tel_box2 { margin-left: 0; }

  /* PCナビはスマホでは非表示 */
  .sp_none { display: none !important; }
	
  .tel_box, .tel_box2 {
    border-radius: 15px 15px 15px 15px;
    margin-bottom: 10px;
    padding: 1% 5.2%;
  }
	
  .kwc_logo img {
    max-height: clamp(80px, 12vw, 150px);
  }
}


/* ------------------------
   ハンバーガー（スマホ専用）
------------------------ */

/* デフォルト：非表示（PC想定） */
.hamburger,
.globalMenuSp,
.denwa { display: none !important; }

/* PCでは常に非表示（強制） */
@media (min-width: 769px) {
  .hamburger,
  .globalMenuSp,
  .denwa,
  .pc_none {               /* "スマホ専用"ユーティリティもPCでは消す */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  .sp_none {               /* PC用ナビはPCで表示 */
    display: block !important;
  }
}

/* スマホのみ表示（～768px） */
@media (max-width: 768px) {

  /* ハンバーガーボタン */
  .hamburger {
    display: flex !important;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
  }
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .hamburger.is-active span:nth-child(1) { transform: translateY(13px) rotate(45deg); }
  .hamburger.is-active span:nth-child(2) { opacity: 0; }
  .hamburger.is-active span:nth-child(3) { transform: translateY(-13px) rotate(-45deg); }

  /* SPメニュー（スライド） */
  .globalMenuSp {
    display: flex !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    align-items: center;
    justify-content: center;
  }
  .globalMenuSp.is-open { transform: translateX(0); }

  .globalMenuSp ul {
    list-style: none;
    padding: 0; margin: 0;
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
  }
  .globalMenuSp li { margin: 20px 0; }
  .globalMenuSp a {
    text-decoration: none;
    font-size: 1.4rem;
    color: #6b390c;
    font-weight: 500;
  }

  /* 固定の電話ボタン */
  .denwa { display: block !important; }

  /* "スマホ専用を表示" ユーティリティ */
  .pc_none { display: block !important; }
	
  .sp_size {
    font-size:13px;
  }
}

/* 背景スクロール固定（メニューOpen時にJSが .no-scroll を付与） */
body.no-scroll { overflow: hidden; }


/* =========================
   メインビジュアル
========================= */
.mainvisual {
  width: 100%;
  max-width: 1300px;   /* 最大幅を1200pxに制限 */
  margin: 0 auto;      /* 中央寄せ */
  padding: 0 20px;     /* 両端に余白を確保 */
  box-sizing: border-box;
}

.mv_inner {
  position: relative;
  overflow: hidden;
  border-radius: 12px; /* 角丸は不要なら削除OK */
}

.mainvisual img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  .mainvisual {
    padding: 0 10px;   /* スマホ時は余白を少し狭く */
  }
}

/* 右側追従ボタン（固定表示） */
.follow-side-btn {
  position: fixed;
  top: 77%;
  right: calc(max(-25px, env(safe-area-inset-right, 0px) + -25px));
  transform: translateY(-50%);
  z-index: 2000;
  display: block;
  width: clamp(88px, 16vw, 200px);
  border-radius: 16px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.follow-side-btn:hover {
  transform: translateY(-50%) translateY(-2px) scale(1.02);
}
.follow-side-btn img {
  display: block;
  width: 95%;
  height: auto;
  border-radius: 16px;
}

/* 高さが低い画面で少し小さく */
@media (max-height: 600px) {
  .follow-side-btn { width: clamp(72px, 14vw, 160px); }
}

/* スマホで非表示（必要なければ削除） */
@media (max-width: 768px) {
  .follow-side-btn { display: none; }
}

/* 印刷時は非表示 */
@media print {
  .follow-side-btn { display: none !important; }
}

/* 動きを控えめに（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .follow-side-btn { transition: none; }
  .follow-side-btn:hover { transform: translateY(-50%); }
}


.mv_bg {
  background-color: #fbf6f0;
}


/* ==========================
   メインビジュアル：キャッチコピー付き（3段・可変幅対応）
========================== */
.mainvisual {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

.mv_inner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.mainvisual img {
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ▼キャッチコピー */
.mv_copy {
  position: absolute;
  top: 3%;
  left: 0%;
  color: #7f4c1f;
  z-index: 10;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.mv_copy p {
  margin: 0;
  background: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 22px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: width 0.3s ease;
  letter-spacing: 1.3px;
}

/* ▼各行の背景幅を画面幅に応じて可変化 */
.mv_copy p:nth-child(1) { width: clamp(240px, 30vw, 380px); }
.mv_copy p:nth-child(2) { width: clamp(280px, 35vw, 450px); }
.mv_copy p:nth-child(3) { width: clamp(200px, 22vw, 285px); }

.mv_copy p + p {
  margin-top: 8px;
}

.mv_copy_sp {
  background-color: #fbf6f0;
  text-align: center;
  padding-top: 10px;
}

.mv_copy_sp p {
  margin: 0;
  background: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #7a4a1b;
}

/* ==========================
   スマホ調整
========================== */
@media (max-width: 768px) {
  .mv_copy {
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: none;
  }

  .mv_copy p {
    display: inline-block;
    font-size: 15px;
    padding: 5px 12px;
    border-radius: 8px;
    line-height: 1.6;
    width: auto; /* スマホでは自動幅 */
  }
}


/* ==============================
   子ども予防接種セクション
   ============================== */
.vaccine-section {
  position: relative;
  background: #fbf6f0;
  padding: 100px 4%;
  overflow: hidden;
  padding-top: 150px;
}

.vaccine-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 80px;
}

/* 花飾り */
.flower1 {
  position: absolute;
  width: clamp(90px, 18vw, 120px);
  height: auto;
  pointer-events: none;
}

.flower2 {
  position: absolute;
  width: clamp(90px, 18vw, 140px);
  height: auto;
  pointer-events: none;
}

.flower-left {
  bottom: -100px;
  left: 0;
}

.flower-right {
  top: -147px;
  right: 0;
}

/* ボタン本体 */
.vaccine-btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

.vaccine-btn:hover {
  transform: scale(1.02);
}

.vaccine-btn img {
  display: block;
  width: 100%;
  max-width: 950px;
  height: auto;
}

/* ボタン内テキスト（コード出力） */
.vaccine-text {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  color: #fff;
  pointer-events: none;
}

.vaccine-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.vaccine-subtitle {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  margin: 6px 0 0;
  line-height: 1.2;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .vaccine-section {
    padding: 80px 4%;
  }
	
  .vaccine-inner {
    padding-bottom: 60px;
  }

  .flower-left {
    width: 50px;
    bottom: -50px;
    left: 30px;
  }

  .flower-right {
    width: 60px;
    top: -76px;
    right: 20px;
  }

  .vaccine-btn img {
    max-width: 90%;
  }

  .vaccine-text {
    right: 8%;
    text-align: right;
  }
	
  .mv_copy_sp {
    display: none !important;
  }
}


/* =========================================================
   診療カレンダーセクション
   ========================================================= */
.clinic-cal {
  background: #fffaf5;
  position: relative;
  overflow: hidden;
}

.clinic-cal__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.clinic-cal__icon {
  margin: 0 auto 8px;
  width: 70px;
  height: 70px;
}
.clinic-cal__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clinic-cal__title {
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: #7b4a1b;
  margin: 0;
}

.clinic-cal__lead {
  margin: 10px auto 30px;
  max-width: 700px;
  color: #7b695e;
  font-size: clamp(14px, 1.2vw, 18px);
}

.gcal-wrap {
  max-width: 900px;
  margin: 0 auto 50px;
}
.gcal-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.clinic-cal__wave img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   クリニック紹介セクション
   ========================================================= */
.clinic-intro {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.clinic-intro__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.clinic-intro__grid {
  display: grid;
  gap: 70px;
  align-items: start;
  grid-template-columns: minmax(300px, 410px) 1fr;
  margin-top: 50px;
}

.clinic-intro__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.clinic-intro__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #7b4a1b;
  margin: 0 0 14px;
}

.clinic-intro__desc {
  margin: 0 0 16px;
  color: #7f4c1f;
}

.clinic-intro__listwrap {
  margin-bottom: 14px;
}

.clinic-intro__listttl {
  font-weight: 700;
  color: #7b4a1b;
  margin: 0 0 6px;
}

.clinic-intro__list {
  margin: 0;
  padding: 0 0 0 1.3em;
  color: #5b4a3e;
}

.clinic-intro__list li {
  margin: 0.3em 0;
  position: relative;
  list-style: none;
}

.clinic-intro__list li::before {
  content: "●";
  position: absolute;
  left: -1.2em;
  top: 0;
  color: #7a4a1b;
  font-size: 0.9em;
  line-height: 1.8;
}

.clinic-intro__note {
  color: #7f4d1f;
  margin-top: 50px;
  font-size: 17px;
}

/* 飾りの木 */
.deco {
  position: absolute;
  pointer-events: none;
}
.deco--right {
  right: 20px;
  bottom: 10px;
  width: 120px;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  .clinic-intro__grid {
    grid-template-columns: 1fr;
  }
  .clinic-intro__photo {
    max-width: 520px;
    margin: 0 auto;
  }
  .deco--right {
    right: 10px;
    bottom: 0;
    width: 100px;
  }
	
  .clinic-cal {
    padding: 0 4%;
  }
}


/* =========================================================
   診療カレンダーセクション（別バージョン）
   ========================================================= */
.clinic-cal {
  background: #fbf6f0;
  position: relative;
  overflow: hidden;
}

.clinic-cal__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.clinic-cal__icon {
  margin: 0 auto 30px;
  width: 60px;
  height: 60px;
}
.clinic-cal__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clinic-cal__title {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #7f4c1f;
  margin: 0;
}

.clinic-cal__lead {
  margin: 40px auto 50px;
  max-width: 800px;
  color: #7b695e;
  font-size: clamp(16px, 1.2vw, 18px);
}

.gcal-wrap {
      max-width: 1200px;
  margin: 0 auto 50px;
}
.gcal-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.clinic-cal__wave img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   クリニック紹介セクション（別バージョン）
   ========================================================= */
.clinic-intro {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 100px;
}

.clinic-intro__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.clinic-intro__grid {
  display: grid;
  gap: 70px;
  align-items: start;
  grid-template-columns: minmax(300px, 410px) 1fr;
  margin-top: 50px;
}

.clinic-intro__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.clinic-intro__title {
  font-size: clamp(18px, 2.4vw, 37px);
  font-weight: 700;
  color: #7b4a1b;
  margin: 0 0 14px;
}

.clinic-intro__desc {
  margin: 40px 0px;
  color: #7f4c1f;
  margin-top: 60px;
}

.clinic-intro__listwrap {
  margin-bottom: 14px;
}

.clinic-intro__listttl {
  font-weight: 700;
  color: #7b4a1b;
  margin: 0 0 6px;
}

.clinic-intro__list {
  margin: 0;
  padding: 0 0 0 1.3em;
  color: #5b4a3e;
}

.clinic-intro__list li {
  margin: 0.8em 0;
  position: relative;
  list-style: none;
  color: #7f4c1f;
}

.clinic-intro__list li::before {
  content: "●";
  position: absolute;
  left: -1.2em;
  top: 0;
  color: #7a4a1b;
  font-size: 0.9em;
  line-height: 1.8;
}

.clinic-intro__note {
  color: #7f4d1f;
  margin-top: 50px;
  font-size: 17px;
}

/* 飾りの木 */
.deco {
  position: absolute;
  pointer-events: none;
}
.deco--right {
  right: 20px;
  bottom: 10px;
  width: 120px;
}

/* =========================================================
   レスポンシブ（別バージョン）
   ========================================================= */
@media (max-width: 900px) {
  .clinic-intro__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  .clinic-intro__photo {
    max-width: 300px;
    margin: 0 auto;
  }
  .deco--right {
    right: 10px;
    bottom: 0;
    width: 100px;
  }
  .clinic-cal__icon {
    margin: 0 auto 10px;
    width: 50px;
    height: 50px;
  }
	
  .clinic-cal__lead {
    margin: 20px auto 30px;
  }
	
  .clinic-intro {
    padding: 0 4%;
    margin-bottom: 0px;
  }
	
  .clinic-intro__desc {
    margin: 20px 0px;
    color: #7f4c1f;
    margin-top: 30px;
  }
	
  .clinic-intro__note {
    margin-top: 20px;
  }
}


/* =========================================================
   診療時間セクション（背景＝アセット 5.png）
   ========================================================= */
.clinic-time_bg {
  position: relative;
  padding: 130px 0;
  background-image: url(../img/snr_bg.png); /* 既存指定を保持 */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 130px;
  overflow: hidden;
}

.clinic-time__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  position: relative;
  padding: 0px 30px;
}

/* 見出し */
.clinic-time__head { margin-bottom: 40px; }
.clinic-time__icon { width: 60px; margin: 0 auto 30px; }
.clinic-time__icon img { width: 100%; height: auto; display: block; }
.clinic-time__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #7f4c1f;
  letter-spacing: 0.06em;
  margin: 0;
}

/* 表 */
.ctable-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 auto 10px;
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
  scrollbar-width: thin;             /* Firefox */
}
.ctable-wrap::-webkit-scrollbar { height: 8px; }
.ctable-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 4px; }
.ctable-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,.06); }

/* 基本テーブル */
.ctable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

/* ヘッダー */
.ctable thead th {
  background: #cfe94e;
  color: #694021;
  font-weight: 700;
  text-align: center;
  padding: 16px 10px;
  font-size: clamp(14px, 1.2vw, 16px);
  border-right: 1px solid #e7d7c6;
}
.ctable thead th:last-child { border-right: none; }

/* 時間列 */
.ctable tbody th.col-time {
  color: #7b4a1b;
  font-weight: 700;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 20px);
  border-top: 2px solid #b98c68;
}

/* 内容列 */
.ctable tbody td.col-kind {
  text-align: left;
  color: #7a4b2a;
  font-size: clamp(16px, 1.2vw, 18px);
  padding: 10px 0;
  border-top: 2px solid #b98c68;
}
.kind-strong { font-weight: 700; }
.kind-list { margin: 0; padding: 0; list-style: none; line-height: 1.7; }
.kind-list li { margin: 5px 0; }

.ex_p { padding: 20px 0; }

/* 曜日列（記号はHTMLで ●/×/◎ を記述） */
.ctable tbody td {
  height: 86px;
  text-align: center;
  vertical-align: middle;
  color: #6b3d14;
  font-size: 26px; /* 記号サイズ */
  font-weight: 700;
  border-top: 2px solid #b98c68;
  padding-left: 20px;
  padding-right: 20px;
}
.ctable tbody td:last-child { border-right: 0; }

/* 縦点線（内容列の右側） */
.ctable thead th:nth-child(3),
.ctable tbody th:nth-child(3),
.ctable tbody td:nth-child(3) {
  border-left: 2px dotted #b98c68;
}

/* 予約制バッジ */
.badge {
  display: inline-grid;
  place-items: center;
  margin-left: 0.6em;
  width: 60px;
  height: 60px;
  background: #f6a796;
  color: #6a3d14;
  border-radius: 50%;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 16px);
}

/* 備考 */
.clinic-notes {
  color: #6b4a1b;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.7;
  margin-top: 20px;
  text-align: left;
  font-weight: bold;
}
.clinic-notes p { margin: 0; }

/* レスポンシブ */
@media (max-width: 900px) {
  .clinic-time { padding: 80px 12px; border-radius: 60px; }
  .badge { width: 64px; height: 64px; }
  .ctable tbody td { height: 74px; }
}

/* --- ここから：SPで横スクロールを確実にする追加 --- */
@media (max-width: 768px) {
  .clinic-time { padding: 1px 12px; border-radius: 30px; margin-bottom: 80px;}
	
  .clinic-time_bg {
    padding: 50px 0;
    border-radius: 30px;
  }
	
  .clinic-time__icon {
    width: 50px;
    margin: 0 auto 10px;
  }
	
  .clinic-time__head {
    margin-bottom: 20px;
  }

  /* スクロールを発生させるため、テーブルに最小幅を付与 */
  .ctable {
    min-width: 880px;  /* 必要に応じて 820〜960px で微調整 */
  }

  .ctable thead th,
  .ctable tbody th.col-time,
  .ctable tbody td {
    font-size: 16px;
    padding: 10px 7px;
  }
  .ctable tbody td { font-size: 18px; }

  .clinic-notes { font-size: 14px; }
	
  .clinic-time__inner {
    padding: 0px 15px;
  }
}


/* =========================================================
   院長紹介カード（テキスト＋イラスト＋中央ボタン）
   ========================================================= */
.director-card {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background: #cbeb65;
  border-radius: 40px;
  padding: 120px 0px 70px;
  overflow: hidden;
  margin-top: 150px;
  margin-bottom: 150px;
}

.director-card__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 上部コンテンツ（左右配置） */
.director-card__content {
  display: grid;
  grid-template-columns: 1.9fr 0.8fr;
  align-items: center;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .director-card__content {
    grid-template-columns: 1fr;
    text-align: center;
    margin-bottom: 30px;
  }
}

/* 花の飾り */
.director-card__flower {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.director-card__flower--tl {
  left: 25px;
  top: 30px;
  width: 120px;
}
.director-card__flower--br {
  right: 50px;
  bottom: 33px;
  width: 120px;
}
@media (max-width: 600px) {
  .director-card__flower--tl {
    width: 60px;
    left: 10px;
    top: 15px;
  }
  .director-card__flower--br {
    width: 60px;
    right: 23px;
    bottom: 30px;
  }
}

/* テキスト */
.director-card__texts {
  color: #6b3d14;
}
.director-card__catch {
  margin: 0 0 50px;
  font-weight: 800;
  line-height: 2;
  letter-spacing: 0.06em;
  font-size: clamp(22px, 2.6vw, 34px);
}
.director-card__body {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 2;
}
.director-card__body p {
  margin: 0;
  text-align: left;
}

/* イラスト */
.director-card__figure {
  text-align: center;
  color: #6b3d14;
  margin: 0;
}
.director-card__figure img {
  width: min(420px, 82%);
  height: auto;
  display: inline-block;
}
.director-card__figure figcaption {
  margin-top: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: clamp(14px, 1.3vw, 20px);
}

/* ボタン中央配置 */
.director-card__btnwrap {
  text-align: center;
}
.director-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e2550a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 20px 100px;
  border-radius: 999px;
  box-shadow: 0 10px 0 #b23c00;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.2s ease;
}
.director-card__btn:hover {
  filter: brightness(1.05);
}
.director-card__btn:active {
  transform: translateY(2px);
  box-shadow: 0 8px 0 #b23c00;
}
.director-card__btnicon {
  display: block;
}

/* SP調整 */
@media (max-width: 768px) {
  .director-card {
    padding: 60px 7px 70px;
    border-radius: 30px;
    margin-top: 50px;
    margin-bottom: 0px;
  }
  .director-card__catch {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 20px;
  }
  .director-card__btn {
    padding: 12px 28px;
  }
	
  .director-card__body {
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .director-card__figure img {
    width: min(420px, 40%);
  }
}


/* ==============================================
   武知小児科内科の特徴
   ============================================== */
.tcc-features {
  /* 背景は無し（上部は透過） */
  padding: 80px 16px 100px;
  position: relative;
  overflow: hidden;
  padding-bottom: 0px;
}
.tcc-features__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 見出し */
.tcc-head { text-align: center; margin-bottom: 28px; }
.tcc-head__icon {     
  width: 60px;
  height: auto;
  margin: 0 auto 30px;
}
.tcc-head__icon img { width: 100%; height: auto; display: block; }
.tcc-head__title {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #7f4c1f;
  letter-spacing: .08em;
  margin: 0 0 40px;
}
.tcc-head__lead {
  color: #6a3d14;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.9;
  text-align: center;
}
.u-pc { display: inline; }
@media (max-width: 768px){ 
	
  .u-pc { display: none; } 
  .tcc-features {
    padding: 0;
  }
	
  .tcc-head__icon {
    width: 50px;
    margin: 0 auto 10px;
  }
	
  .tcc-head__title {
    font-size: clamp(20px, 2.2vw, 28px);
    margin: 0 0 20px;
  }
	
  .tcc-head__lead {
    padding: 0 4%;
    text-align: left;
  }
}

/* 特徴カード */
.tcc-cards{
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 120px;
}
.tcc-card{ margin: 0; text-align: center; color:#6b3d14; }
.tcc-card__img{
  width: 93%;
  height: auto;
  display: block;
  border-radius: 28px;
  background: #e9f5ff;
  margin: 0 auto;
}
.tcc-card__cap{ margin-top:20px; font-size:clamp(13px,1.1vw,16px); line-height:1.8; }
@media (max-width:900px){
  .tcc-cards{ grid-template-columns:1fr; gap:20px; }
  .tcc-card__cap {
    margin-top: 10px;
    font-size: clamp(16px, 1.1vw, 16px);
    line-height: 1.4;
  }
	
  .tcc-card__img {
    width: 80%;
  }
}

/* 境目（家と木） */
.tcc-seam{ position:relative; height:0; margin:42px 0; pointer-events:none; z-index:2; }
.tcc-seam__ie{ position:absolute; left:0; top:-85px; width:150px; height:auto; }
.tcc-seam__ki{ position:absolute; right:14px; top:-85px; width:170px; height:auto; }

/* 下部背景（画面いっぱい） */
.tcc-lower{
  position: relative;
  width: 100vw;
  left: 50%; margin-left: -50vw;
  right: 50%; margin-right: -50vw;
  background: #fbf6f0;
  margin-top: -36px;
  padding: 72px 16px 80px;
  z-index: 1;
}

/* 強調コピー */
.tcc-copy{ text-align:center; color:#6b3d14; margin-bottom:18px; }
.tcc-copy p { 
  margin-top: 10px;
  margin-bottom: 50px;
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 32px);
  letter-spacing: 0.06em;
  line-height: 2.2;
}

.under_bar {
  display: inline-block;
  border-bottom: 15px solid #ffdf99;
  line-height: 0.3;
  padding-bottom: 0;
  margin-bottom: -2px;
}

/* バッジリンク（ボタンを下端に重ねる） */
.tcc-badges{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
}
.tcc-badge{
  position: relative;       /* ★重ね合わせ用 */
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding-bottom: 34px;      /* ★下にボタン分の余白を確保 */
}
.tcc-badge__imgwrap{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  max-width:320px;
  margin-inline:auto;
}
.tcc-badge__imgwrap img{ width:100%; height:100%; object-fit:contain; display:block; }

/* ▼オレンジ丸ボタンを画像の下に半分重ねる */
.tcc-badge__arrow{
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2550a;
}
.tcc-badge__arrow::before{
  content:""; position:absolute; inset:0;
  width:12px; height:12px;
  border-top:3px solid #fff; border-right:3px solid #fff;
  transform:rotate(45deg);
  margin:auto;
  left: -5px;
}
.tcc-badge:hover .tcc-badge__arrow{ filter:brightness(1.05); }
.tcc-badge:active .tcc-badge__arrow{ transform:translate(-50%,2px); box-shadow:0 4px 0 #b23c00; }

@media (max-width:900px){
  .tcc-badges{ gap: 8px; }
  .tcc-badge__imgwrap{ max-width:300px; }
}

/* 注意帯 */
.tcc-note{
  margin: 26px auto 0;
  text-align: center;
  background: #ffdf99;
  color: #6b3d14;
  font-weight: 700;
  padding: 23px 20px;
  border-radius: 20px;
  width: max(280px, 48%);
  font-size: 22px;
}

/* SP微調整 */
@media (max-width:768px){
  .tcc-seam{ margin:32px 0; }
  .tcc-seam__ie{ width: 100px; top: -60px; left: 20px;}
  .tcc-seam__ki{  width: 120px;top: -70px; right: 15px;}
  .tcc-lower {
    margin-top: -28px; padding-top: 56px; padding-bottom: 60px; width: auto; left: 0%; margin-left: 0vw; right: 0%; margin-right: 0vw;
  }
  .tcc-copy p {
    margin-top: 0px;
    margin-bottom: 30px;
    line-height: 1.8;
  }
	
  .under_bar {
    border-bottom: 10px solid #ffdf99;
  }
	
  .tcc-badge__arrow {top: 237px;}
  .tcc-badge {
    padding-bottom: 0px;
  }
  .tcc-note {
    margin: 20px auto 0;
    padding: 15px 15px;
    width: max(280px, 48%);
    font-size: 16px;
    line-height: 1.4;
  }
	
  .tcc-badge__arrow {
    top: 97px;
    width: 16px;
    height: 16px;
  }
	
  .tcc-badge__arrow::before {
    width: 5px;
    height: 5px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    left: -2px;
  }
}


/* ==============================
   お知らせセクション
============================== */
.news {
  position: relative;
  padding: 120px 16px 0;
  overflow: visible;
}

/* 背景：上部 */
.news-bg-top {
  position: absolute;
  top: -40px;
  right: 0;
  width: clamp(220px, 34vw, 430px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* 背景：セクション間（下） */
.news-bg-between {
  position: absolute;
  left: 0;
  bottom: -360px;
  width: clamp(260px, 40vw, 510px);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* 見出し */
.news .news_title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #7f4c1f;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 0 0 40px;
  position: relative;
  z-index: 2;
}
.news_icon {
  width: 60px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.news_icon img {
  width: 60px;
  height: auto;
  margin: 0 auto 30px;
}

/* 外枠 */
.news .inner_wrap1 {
  max-width: 1120px;
  margin: 0 auto;
  background: #CFEF72;
  padding: 40px;
  border-radius: 36px;
  position: relative;
  z-index: 2;
}

/* 内側ボックス */
.news .n_waku {
  background: #fff;
  border-radius: 26px;
  padding: 30px 50px 70px;
}

/* 1行全体をクリック可能 */
.news .n_waku a {
  display: block;
  text-decoration: none;
  color: #6b3d14;
}

/* 行 */
.news .sp_danraku {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  column-gap: 24px;
  padding: 30px 0;
  border-bottom: 2px solid #b98c68;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.8;
}

/* 日付 */
.news .n_days {
  font-weight: 700;
  color: #6b3d14;
  letter-spacing: .02em;
  font-size: clamp(14px, 1.4vw, 18px);
}

/* カテゴリ */
.news .cate_mark {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  margin-right: 10px;
  border-radius: 999px;
  vertical-align: middle;
}

/* hover */
.news .n_waku a:hover {
  opacity: .85;
}


/* =============================================
   医療DX推進体制
   ============================================= */
.dxsec {
  position: relative;
  padding: 200px 16px 160px;
  overflow: visible;
  z-index: 0;
}

/* 背景：右側背面（mztm3） */
.dx-bg-right {
  position: absolute;
  right: 0;
  top: 610px;
  width: clamp(320px, 55vw, 600px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.dxsec__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 見出し */
.dxsec__head {
  text-align: center;
  margin-bottom: 40px;
}
.dxsec__icon {
  width: 50px;
  margin: 0 auto;
}
.dxsec__icon img {
  width: 60px;
  height: auto;
  margin: 0 auto 30px;
}
.dxsec__title {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #7f4c1f;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.dxsec__lead {
  font-size: clamp(16px, 1.2vw, 18px);
  color: #6b3d14;
  font-weight: 600;
  margin: 30px 0;
}

/* 外枠 */
.dx-box {
  background: #ffdf99;
  border-radius: 40px;
  padding: 40px;
  margin-top: 30px;
margin-bottom: 100px;
}
.dx-box__inner {
  background: #fff;
  border-radius: 28px;
  padding: 30px 50px;
  color: #6b3d14;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 2;
  font-weight: 500;
}

/* 段落 */
.dx-box__inner p {
  margin: 0 0 0.2em;
}

/* 備考と日付 */
.dx-note {
  margin-top: 20px;
  line-height: 1.9;
  margin: 40px 0 !important;
}
.dx-date {
  text-align: left;
  margin-top: 20px;
  font-weight: 700;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .news-bg-between {
    bottom: -90px;
    width: clamp(220px, 60vw, 460px);
  }
  .dxsec__icon img {
    width: 50px;
    margin: 0 auto 10px;
  }
  .dxsec {
    padding-top: 100px;
  }
  .dxsec__lead {
    line-height: 1.4;
    margin: 20px 0;
  }
  .dx-box {
    padding: 14px;
    border-radius: 30px;
	margin-bottom: 60px;
  }
	
  .dxsec__head {
    margin-bottom: 20px;
  }
  .dx-box__inner {
    padding: 15px 10px;
    border-radius: 20px;
  }
  .dx-bg-right {
    width: clamp(250px, 60vw, 520px);
    top: 200px;
  }
	
  .news_icon img {
    width: 50px;
    height: auto;
    margin: 0 auto 10px;
  }
	
  .news .news_title {
    margin: 0 0 20px;
  }
	
  .news .n_waku {
    border-radius: 30px;
    padding: 20px 20px 20px;
  }
	
  .news .inner_wrap1 {
    padding: 30px;
    border-radius: 30px;
  }
	
  .news .sp_danraku {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
  }
}


/* ===============================
   アクセスマップ（Google Map）
   =============================== */
.access-map {
  position: relative;
  width: 100vw;          /* 画面幅いっぱい */
  left: 50%;
  right: 50%;
  margin-left: -50vw;    /* コンテンツ中央基準で全幅化 */
  margin-right: -50vw;
}

.access-map .map-wrap {
  width: 100%;
  height: 560px;         /* 高さ固定 */
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Map action buttons */
.map-actions{
  max-width: 780px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  place-items: center;
  margin-bottom: 100px;
}

.map-btn{
  --btn-bg: #e2550a;
  --btn-shadow: #b23c00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 320px);
  padding: 18px 0px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 10px 0 var(--btn-shadow);
  position: relative;
  transition: transform .08s ease, filter .08s ease, box-shadow .08s ease;
}

.map-btn__arrow{
  width: 22px; height: 22px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 2px;
}

.map-btn:hover{ filter: brightness(1.05); }
.map-btn:active{
  transform: translateY(3px);
  box-shadow: 0 6px 0 var(--btn-shadow);
}

/* responsive */
@media (max-width: 720px){
  .map-actions{ grid-template-columns: 1fr; gap: 20px; }
}


/* =====================================
   Footer base
===================================== */
.site-footer{
  position: relative;
  background: #fbf6f0;
  color: #6b3d14;
  overflow: hidden;
}

/* 波背景 */
.footer-wave{
  width: 100%;
  height: auto;
}
.footer-wave img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本体レイアウト */
.footer-inner{
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px 40px;
  align-items: center;
  padding-bottom: 100px;
}

/* ====== 左側：医院情報 ====== */
.footer-logo{
  width: min(680px, 78%);
  margin: 0 0 12px 0;
}
.footer-logo img{
  width: 100%;
  height: auto;
  display: block;
}

.footer-address{
  margin: 0px 0 18px;
  font-weight: 600;
  letter-spacing: .02em;
}

.footer-address {
  font-size: 17px;
}

.footer-tels{
  margin: 0;
}
.footer-tels .footer-tel{
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}
.footer-tels dt{
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid;
  padding: 6px;
  font-size: 13px;
  font-weight: 700;
}
.footer-tels dd{
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .06em;
}

/* ====== 右側：バナーエリア ====== */
.footer-banners{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, 1fr);
  grid-template-areas:
    "feat b1 b2"
    "feat b3 b4";
  gap: 20px 20px;
  align-items: center;
  justify-items: center;
  padding-top: 80px;
}

/* 各配置指定 */
.footer-banners li:first-child{ grid-area: feat; }
.footer-banners li:nth-child(2){ grid-area: b1; }
.footer-banners li:nth-child(3){ grid-area: b2; }
.footer-banners li:nth-child(4){ grid-area: b3; }
.footer-banners li:nth-child(5){ grid-area: b4; }

/* aタグ：装飾なし */
.footer-banners li a{
  display: block;
  text-decoration: none;
}

/* ==== バナー画像設定 ==== */
/* 1枚目は大きいので制限なし */
.footer-banners li:first-child img{
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}


/* 2枚目以降は最大幅250px制限 */
.footer-banners li:not(:first-child) img{
  height: auto;
  max-width: 250px;
  display: block;
  object-fit: contain;
}

/* コピーライト */
.footer-copy{
  text-align: center;
  padding: 30px 0px;
  color: #6b3d14;
  font-size: clamp(12px, 1.2vw, 14px);
  background-color: #fff;
  font-weight: 700;
}

/* ====== レスポンシブ ====== */
@media (max-width: 1060px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 30px;
  }
}

@media (max-width: 980px){
  .footer-banners{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(100px, 1fr) repeat(2, 1fr);
  }
	
  .footer-brand {
    padding: 0 4%;
  }
	
  .footer-copy {
    padding: 15px 5px;
  }
	
  .footer-banners li:first-child img {
    width: 90px;
    gap: 10px 20px;
  }
}

@media (max-width: 560px){
  .footer-wave{ height: 20px; }
  .footer-tels .footer-tel{ grid-template-columns: 90px 1fr; }
  .footer-banners{
    padding: 0 10px;
    gap: 0px 5px;
  }
  .footer-banners li:not(:first-child) img{
    max-width: 100%;
  }
}

/* ==============================
   フッターナビゲーション
============================== */
.footer-nav {
  background: #fbf6f0;
  padding: 30px 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 40px;
}

.footer-links li {
  position: relative;
  font-size: clamp(14px, 1.5vw, 18px);
}

.footer-links li::after {
  content: "|";
  color: #7b4a1b;
  position: absolute;
  right: -22px;
  top: 0;
}

.footer-links li:last-child::after {
  content: none;
}

.footer-links a {
  text-decoration: none;
  color: #7b4a1b;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .footer-links {
    gap: 35px;
    font-size: 15px;
  }
  .footer-links li::after {
    right: -14px;
  }
}

hr {
  display: none;
}

#footer {
  display: none;
}


@media (max-width: 768px) {

  /* ハンバーガーボタン（線の間隔修正版） */
  .hamburger {
    display: flex !important;
    position: fixed;
    top: 22px;
    right: 15px;
    width: 40px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;                /* ← これで3本の線の間隔を固定 */
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #f35400;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* アクティブ時（×印変形） */
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(14.3px) rotate(43deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
	
  .footer-logo {
    width: min(680px, 70%);
  }
	
  .sp_con_info {
    max-width: 40%;
    margin: 0 auto;
    margin-bottom: 20px;
  }
	
  .sp_con_info .dnw {
    margin: 0;
    background-color: #6a3d14;
    display: inline-block;
    padding: 5px;
    color: #fff;
  }
	
  .sp_con_info .bng {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    margin-top: 7px;
    color: #6b3a0b;
  }
	
  .sp_con_info .uktk {
    margin: 0;
    background-color: #6a3d14;
    display: inline-block;
    padding: 5px;
    color: #fff;
  }
	
  .sp_con_info .tim {
    margin: 0;
    font-size: 24px;
    margin-top: 7px;
    color: #6b3a0b;
  }
}


/* ==========================
   スマホ用：電話番号カラー＆下線非表示（header/footer両方対応）
========================== */
@media (max-width: 768px) {

  /* ヘッダー電話番号 */
  .tel_area .number {
    color: #7a4a1b !important;     /* フォントカラー変更 */
    text-decoration: none !important; /* 下線非表示 */
  }

  .tel_area a {
    color: #7a4a1b !important;
    text-decoration: none !important;
  }

  /* フッター電話番号 */
  .footer-tels dd {
    color: #7a4a1b !important;      /* フォントカラー変更 */
    text-decoration: none !important; /* 下線非表示 */
  }

  .footer-tels a {
    color: #7a4a1b !important;
    text-decoration: none !important;
  }
}


/* ラッパー：位置基準＆サイズ管理（ボタンとイラストを分離） */
.apply-cta-wrap{
  --illu-w: 400px;
  --illu-x: -63px;
  --illu-y: -104px;
  --push-l: 200px;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

/* イラスト：ボタンの左上に重ねる（ボタンとは別要素） */
.apply-cta-illust{
  position: absolute;
  left: calc(0px + var(--illu-x));
  top:  calc(0px + var(--illu-y));
  width: var(--illu-w);
  z-index: 2;              /* ボタンより上に表示 */
  pointer-events: none;    /* クリックはボタンへ通す */
}
.apply-cta-illust img{
  display:block; width:100%; height:auto;
}

/* ==========================
   子ども予防接種：申し込み・予約 CTA（ボタン本体）
========================== */
.apply-cta{
  --cta-base: #e2550a;
  --cta-dk: #b23c00;
  --txt: #ffffff;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  height: auto;
  padding: 50px 60px 40px calc(200px + var(--push-l));
  border-radius: 9999px;
  color: var(--txt);
  text-decoration: none;
  background: #e25609;
  box-shadow: 0 18px 0 var(--cta-dk), 0 18px 24px rgba(0, 0, 0, .18);
  z-index: 1;
}

/* テキスト */
.apply-cta__text{
  position:relative;
  z-index: 3;
  text-align: center;
  line-height: 1.25;
}
.apply-cta__title{
  display:block;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: clamp(18px, 1.8vw, 32px);
  margin-bottom: 10px;
}
.apply-cta__sub{
  display:block;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(15px, 1.9vw, 22px);
}

/* 右矢印 */
.apply-cta__arrow{
  position: relative;
  width: 32px;
  height: 32px;
  z-index: 3;
}
.apply-cta__arrow::before{
  content:"";
  position:absolute; inset:0;
  border-top: 4px solid currentColor;
  border-right:4px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ホバー/アクティブ */
.apply-cta:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
  transition: transform .08s ease, filter .08s ease, box-shadow .08s ease;
}
.apply-cta:active{
  transform: translateY(3px);
  box-shadow: 0 12px 0 var(--cta-dk), 0 12px 18px rgba(0,0,0,.18);
}

/* 動きを控える設定に追従 */
@media (prefers-reduced-motion: reduce){
  .apply-cta,
  .apply-cta:hover,
  .apply-cta:active{ transition: none; transform: none; }
}

/* ========== レスポンシブ ========== */
@media (max-width: 780px){
  .apply-cta-wrap{
    --illu-w: 180px;
    --illu-x: -10px;
    --illu-y: -18px;
    --push-l: 150px;   /* テキスト押し下げ量を縮める */
  }
  .apply-cta{
    border-radius: 50px;
    padding: 24px 52px 24px calc(16px + var(--push-l));
    gap: 1px;
  }
	
  .apply-cta__arrow{
    position: relative;
    width: 18px;
    height: 18px;
    z-index: 3;
  }
	
  .apply-cta__sub {
    letter-spacing: .04em;
  }
	
  .apply-cta__title {
    margin-bottom: 6px;
  }
}

@media (max-width: 560px){
  .apply-cta-wrap{
    --illu-w: 140px;
    --illu-x: 8px;
    --illu-y: -40px;
    --push-l: 124px;
  }
  .apply-cta{
    padding: 10px 15px 10px calc(12px + var(--push-l));
  }
}


/* ==========================
   診療時間：右側追従（タブ+パネル一体） ※1
========================== */
.ch-wrap{
  --cl-brown: #7f4c1f;
  --cl-pink:  #f7638c;
  --cl-orange:#e2550a;
  --card-w:   240px;
  --strip-w:   70px;
  --card-h:   460px;
  position: fixed;
  top: 60%;
  right: 0;
  transform: translateY(-50%);
  z-index: 11000;
}

/* 一体カード */
.ch-card{
  position: relative;
  width: calc(var(--strip-w) + var(--card-w));
  height: var(--card-h);
  border-radius: 24px 0 0 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  overflow: hidden;
  transform: translateX(calc(100% - var(--strip-w))); /* 初期閉じ */
  transition: transform .35s ease;
}

/* タブ hover で開く */
.ch-card:has(.ch-card__strip:hover){
  transform: translateX(0);
}

/* JSフォールバック用 */
.ch-wrap.is-hover .ch-card{
  transform: translateX(0);
}

/* タブ */
.ch-card__strip{
  position: absolute;
  left: 0; top: 0;
  width: var(--strip-w);
  height: 100%;
  border: 0;
  border-radius: 26px 0 0 26px;
  background: var(--cl-pink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  z-index: 2;
}
.ch-strip__icon{ font-size: 26px; }
.ch-strip__label{
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .08em;
}

/* パネル */
.ch-card__inner{
  position: absolute;
  left: var(--strip-w);
  top: 0;
  width: var(--card-w);
  height: 100%;
  padding: 20px 16px 0;
  box-sizing: border-box;
  color: var(--cl-brown);
  background: #fff;
}

.ch-tag{
  display: inline-block;
  background: var(--cl-brown);
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 12px;
  margin: 0 0 6px;
  font-size: 18px;
}
.ch-tag--mt{ margin-top: 18px; }

.ch-tel{
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: .04em;
  line-height: 1.2;
}
.ch-tel a{ color: var(--cl-brown); text-decoration: none; }

.ch-time{
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* 中央丸矢印 */
.ch-cta{
  position: absolute;
  left: calc(var(--strip-w) + 12%);
  transform: translateX(-50%);
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cl-orange);
}
.ch-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  margin: auto;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  left: -6px;
}

/* イラスト */
.ch-gorilla{
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 70%;
  height: auto;
  pointer-events: none;
}
.ch-gorilla img{ width:100%; height:auto; display:block; }

.ch-card__strip:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 768px){
  .ch-wrap{ display: none; }
}


/* ==========================
   診療時間：右側追従（タブ+パネル一体） ※2（上書き版）
========================== */
.ch-wrap{
  --cl-brown: #7f4c1f;
  --cl-pink:  #f7638c;
  --cl-orange:#e2550a;
  --card-w:   200px;   /* 白パネル幅 */
  --strip-w:   70px;   /* ピンクタブ幅（見える幅） */
  --card-h:   420px;   /* 全体高さ */
  position: fixed;
  top: 60%;
  right: 0;
  transform: translateY(-50%);
  z-index: 11000;
}

/* 一体のカード（= タブ + パネル） */
.ch-card{
  position: relative;
  width: calc(var(--strip-w) + var(--card-w));
  height: var(--card-h);
  border-radius: 24px 0px 0px 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  overflow: hidden;

  /* ★閉じ：右へ隠してタブ分だけ残す */
  transform: translateX(calc(100% - var(--strip-w)));
  transition: transform .35s ease;
}

/* ★ホバーで開く：反応範囲を「タブ周辺のみに」限定 */
.ch-card__strip:hover ~ .ch-card__inner,
.ch-card__strip:hover,
.ch-card:hover {
  transform: translateX(0);
}

.ch-wrap:hover .ch-card {
  transform: translateX(calc(100% - var(--strip-w))); /* 全体hoverでは開かないようにする */
}

/* ★タブhoverでのみ開くよう調整 */
.ch-wrap .ch-card:hover {
  transform: translateX(0);
}

/* タブ */
.ch-card__strip{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--strip-w);
  height: 100%;
  border: 0;
  border-radius: 26px 0 0 26px;
  background: #6a3d14;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  cursor: pointer;
  z-index: 2;
}

/* ▼ホバー判定をタブ内だけに制限するため、透明受け領域を狭める */
.ch-card__strip::after{
  content:"";
  position:absolute;
  right:-6px; /* 以前より短くして反応範囲を狭く */
  top:0;
  width:6px;
  height:100%;
  background:transparent;
}

/* タブ内の文字 */
.ch-strip__icon{ color:#fff; display:grid; place-items:center; }
.ch-strip__label{
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .08em;
}

/* 白パネル */
.ch-card__inner{
  position: absolute;
  left: var(--strip-w);
  top: 0;
  width: var(--card-w);
  height: 100%;
  padding: 15px 10px 0px 10px;
  box-sizing: border-box;
  color: var(--cl-brown);
}

/* 内容 */
.ch-tag{
  display: inline-block;
  background: var(--cl-brown);
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 5px 10px;
  margin: 0 0 5px;
  font-size: 20px;
}
.ch-tag--mt{ margin-top: 20px; }

.ch-tel{
  margin: 0 0 0px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .04em;
  line-height: 1.2;
}
.ch-tel a{ color: var(--cl-brown); text-decoration: none; }

.ch-time{
  margin: 0px 0 0px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

/* 丸矢印 */
.ch-cta{
  position: absolute;
  left: calc(var(--strip-w) + 14%);
  transform: translateX(-50%);
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cl-orange);
}
.ch-cta::before{
  content: "";
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  margin: auto;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  border-radius: 2px;
  left: -7px;
}

/* イラスト */
.ch-gorilla{
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 70%;
  height: auto;
  pointer-events: none;
}

/* キーボードフォーカス */
.ch-card__strip:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* モバイルは非表示 */
@media (max-width: 768px){
  .ch-wrap{ display: none; }
}

/* ==========================
   スマホ時は Kosugi Maru を強制適用
   （iOS/Safariで要素ごとに既定フォントへ戻るのを防ぐ）
========================== */
@media (max-width: 768px){
  html, body,
  button, input, select, textarea,
  p, a, span, div,
  h1, h2, h3, h4, h5, h6,
  li, dt, dd, label, small, strong, em {
    font-family: var(--jp-round) !important;
  }

  /* フォームやメニューなどでブラウザ既定に戻りやすい箇所を念押し */
  .globalMenuSp a,
  .tel_area .label, .tel_area .number,
  .footer-tels dt, .footer-tels dd,
  .gnavi a, .mv_copy_sp p,
  .clinic-intro__desc, .clinic-intro__list,
  .clinic-time__title, .clinic-notes,
  .tcc-head__title, .tcc-head__lead, .tcc-card__cap,
  .news .n_waku a, .footer-links a {
    font-family: var(--jp-round) !important;
  }
	
  .chuui {
    font-size: 13px;
    text-align: left;
    text-wrap: nowrap;
    margin-top: 0px;
    padding: 4px 2px;
    border-radius: 7px;
    color: #7a4b2a;
    margin-bottom: 3px;
  }
}


/* ===== スマホ用：電話受付パネル（スクロールで浮かぶ） ===== */
.sp-contact-panel{
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  color: #7a4a1b;
  font-family: "Kosugi Maru","Zen Kaku Gothic New","Noto Sans JP",sans-serif;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease, box-shadow .28s ease;
  will-change: transform, opacity;
}

.sp-contact-panel.is-floating{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sp-contact-panel__tag{
  display: inline-block;
  background: #7a4a1b; 
  color: #fff;
  font-weight: 800; 
  letter-spacing: .04em;
  border-radius: 999px; 
  padding: 4px 8px;
  font-size: 12px; 
  margin-right: 6px;
}

.sp-contact-panel__tel{
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  text-decoration: none; 
  color: #7a4a1b; 
  font-weight: 800;
}
.sp-contact-panel__tel::before{ content:"📞"; font-size: 18px; }
.sp-contact-panel__number{ font-size: 18px; letter-spacing: .04em; }
.sp-contact-panel__times{ display: grid; grid-auto-flow: column; gap: 10px; align-items: center; white-space: nowrap; }
.sp-contact-panel__time{ font-weight: 800; font-size: 15px; letter-spacing: .04em; }

@media (max-width: 420px){
  .sp-contact-panel{ padding: 10px 12px; gap: 8px; border-radius: 14px; }
  .sp-contact-panel__number{ font-size: 17px; }
  .sp-contact-panel__time{ font-size: 14px; }
}
/* PCでは非表示 */
@media (min-width: 769px){
  .sp-contact-panel{ display: none !important; }
}



.hidari {
	text-align: left;
}

/* ===== Googleカレンダー 横スクロール対応 ===== */

/* PCでは通常表示 */
.calendar-scroll {
  width: 100%;
}

/* iframe基本設定 */
.calendar-iframe {
  width: 100%;
  height: 600px;
  border: 0;
}

/* スマホ時のみ横スクロール */
@media screen and (max-width: 768px) {
  .calendar-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iPhone対応 */
  }

  .calendar-iframe {
    min-width: 900px; /* ← 横スクロールさせたい幅 */
  }
	
	.hidari {
    font-size: 16px;
}

}

