/*
Theme Name: SWELL CHILD
Template: swell
Version: 1.0.0
Description: 東京心療内科メンクリメンタルクリニック カスタムテーマ
*/

/* ============================================================
   カラー変数
============================================================ */
:root {
  --main: #5BC8E8;
  --main-dark: #2C7A8C;
  --accent: #7DC87A;
  --accent-dark: #4A9647;
  --bg-light: #f0fafb;
  --bg-green: #f2faf2;
  --border: #d0eaf0;
  --text-sub: #666666;
}

/* CTA内の開院準備中バッジ */
.cta_opening_badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  margin: 0 0 20px;
}

/* ============================================================
   グローバル
============================================================ */
body {
  font-family: "游ゴシック Medium", "Yu Gothic Medium", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
#header { border-bottom: 3px solid var(--main) !important; }

/* ヘッダーのキャッチフレーズを非表示（別途カスタム表示するため） */
.c-catchphrase { display: none !important; }

/* ロゴ横クリニック名 */
.header_clinic_name {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-dark);
  letter-spacing: 0.05em;
  padding-left: 16px;
  margin-left: 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
@media (max-width: 959px) {
  .header_clinic_name { display: none !important; }
}

/* ============================================================
   ヘッダー：レイアウト整合
============================================================ */
/* ヘッダーはoverflow:visibleにしてドロップダウンが表示できるようにする */
.l-header,
#header {
  overflow: visible !important;
}

/* ロゴ＋キャッチフレーズを横並びに整列 */
.l-header__logo {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
  overflow: hidden !important; /* キャッチフレーズのはみ出しはロゴ内でクリップ */
}

/* ロゴ画像サイズ */
.l-header .c-headLogo img {
  max-height: 58px !important;
  width: auto !important;
  display: block !important;
}

/* キャッチフレーズ（.c-catchphrase）: 1行・ブランドカラー */
.c-catchphrase {
  font-family: "Zen Maru Gothic", "游ゴシック Medium", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--main-dark) !important;
  letter-spacing: 0.1em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
  display: block !important;
  border-left: 2px solid var(--main) !important;
  padding-left: 10px !important;
  margin-top: 4px !important;
}

/* ============================================================
   開院準備中バー
============================================================ */
.prep_bar {
  background: var(--main-dark);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.prep_bar .tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 1px 10px;
  border-radius: 3px;
  font-size: 11px;
  margin-right: 10px;
}

/* ============================================================
   メインビジュアル（フルワイド）
============================================================ */
/* #mainimage {
  position: relative;
  width: 100%;
  min-height: 740px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
} */

#mainimage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* .mainimage_bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #cce8f0 0%, #d6edd6 100%); 
    background-image: URL("https://tokyomental-clinic.com/wp-content/uploads/2026/04/image_top_mv.jpg");
    background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9bbfc8;
  font-size: 14px;
} */

.mainimage_bg {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 1333;
  max-height: 780px;
  background-image: url("https://tokyomental-clinic.com/wp-content/uploads/2026/04/image_top_mv.jpg");
  background-size: cover;
  background-position: center top;  /* ← center center → center top で頭を残す */
  background-repeat: no-repeat;
}



.main_overlay {
  position: absolute;  /* ← relative → absolute */
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 60px 48px 160px;
	margin-top: 80px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.main_overlay h1,
.hero_catchcopy {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--main-dark);  /* ← #fff から変更 */
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(255,255,255,0.8);  /* ← 白い発光で背景から浮かす */
  letter-spacing: 0.08em;
  margin: 0;
}
/* 
.hero_badges {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 3;
} */


.hero_badges {
  position: absolute;  /* ← relative → absolute */
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  padding: 24px 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 3;
}


.hero_badge_item {
  width: 110px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--main-dark);
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(44,122,140,0.1);
  padding: 10px;
}
.hero_badge_item .badge-img {
  width: 36px; height: 36px;
  background: var(--bg-light);
  border-radius: 50%;
  margin-bottom: 6px;
  flex-shrink: 0;
}

/* ============================================================
   セクション共通
============================================================ */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.section.bg-green { background: var(--bg-green); }
.section_head { text-align: center; margin-bottom: 56px; }
.section_head h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--main-dark);
  margin-bottom: 12px;
}
.section_head h2::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: linear-gradient(to right, var(--main), var(--accent));
  margin: 14px auto 0;
  border-radius: 1px;
}
.section_head p { font-size: 14px; color: var(--text-sub); margin-top: 12px; }

/* ============================================================
   当院について（sec01）— 全幅フルブリードレイアウト
============================================================ */
.sec01 {
  padding: 20px 0;
  background: #fff;
  overflow: hidden;
}
.sec01_inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  min-height: 450px;
}
.sec01_img {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 40px 32px;
  overflow: visible;
}
.sec01_img .img-placeholder {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 5 / 3.8;
  min-height: unset;
  height: auto;
  /* 横長の有機的なブロブ形 */
  border-radius: 55% 45% 50% 50% / 40% 38% 62% 60%;
  background: linear-gradient(135deg, #cce8f0 0%, #d5ecd5 100%);
}
.sec01_text {
  width: 80%;
  padding: 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
	margin:0 auto;
}
.sec01_text .clinic-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-dark);
  letter-spacing: 0.05em;
}
.sec01_text .clinic-label::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--main);
  border-radius: 1px;
  flex-shrink: 0;
}
.sec01_text h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  color: var(--main-dark);
  margin-bottom: 24px;
  line-height: 1.55;
}
.sec01_text p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 28px;
}
.btn_about {
  display: inline-block;
  background: var(--main-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 36px;
  border-radius: 4px;
	width:50%;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s;
}
.btn_about:hover { background: var(--main); }

/* ============================================================
   ループスライダー
============================================================ */
.loop_slider_wrap {
  overflow: hidden;
  padding: 48px 0;
  background: #fff;
}
.loop_slider {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: loop-slide 30s linear infinite;
}
.loop_slider:hover { animation-play-state: paused; }
.loop_slider_item {
  width: 400px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.loop_slider_item .img-placeholder {
  width: 100%; height: 100%;
  border-radius: 16px;
  background: #daeef5;
  min-height: unset;
  font-size: 12px;
}
.loop_slider_item:nth-child(even) .img-placeholder { background: #daf0da; }
.loop_slider_item:nth-child(3n) .img-placeholder { background: #cce6f0; }
@keyframes loop-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   当院の特徴（交互レイアウト）
============================================================ */
.features_list { display: flex; flex-direction: column; gap: 60px; }
.feature_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.feature_row.reverse { direction: rtl; }
.feature_row.reverse > * { direction: ltr; }
.feature_img .img-placeholder { aspect-ratio: 16/10; min-height: unset; }
.feature_row.reverse .feature_img .img-placeholder { background: #daf0da; }
.feature_text h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--main-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.feature_text h3 span {
  display: inline-block;
  background: linear-gradient(to right, var(--main-dark), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feature_text p { font-size: 14px; color: var(--text-sub); line-height: 1.85; }
.feature_no {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* ============================================================
   img-placeholder 共通
============================================================ */
.img-placeholder {
  width: 100%;
  background: #daeef5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aacdd6;
  font-size: 13px;
  letter-spacing: 0.05em;
  min-height: 220px;
}

/* ============================================================
   診療内容
============================================================ */
.conditions_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.condition_item {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.condition_item:hover { background: var(--bg-light); }
.condition_item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--main);
  border-radius: 50%;
  flex-shrink: 0;
}
.condition_item:nth-child(3n) { border-right: none; }
.condition_note { text-align: center; margin-top: 20px; font-size: 13px; color: #888; }

/* ============================================================
   診療時間・アクセス
============================================================ */
.hours_access_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hours_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours_table caption {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--main-dark);
  text-align: left;
  padding-bottom: 12px;
}
.hours_table th {
  background: var(--main-dark);
  color: #fff;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
}
.hours_table td {
  padding: 11px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.hours_table .day { text-align: left; font-weight: 500; background: var(--bg-light); }
.hours_table .closed { color: #c0392b; font-weight: 700; }
.hours_table .open { color: var(--main-dark); font-weight: 700; }
.access_info h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--main-dark);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.access_info dl { display: grid; grid-template-columns: 90px 1fr; font-size: 14px; }
.access_info dt {
  padding: 11px 0;
  font-weight: 500;
  color: var(--main-dark);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.access_info dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  color: #444;
}
.access_info dt:last-of-type,
.access_info dd:last-of-type { border-bottom: none; }
.map_wrap { margin-top: 40px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.map_wrap iframe { width: 100%; height: 300px; border: none; display: block; }

/* ============================================================
   院長紹介
============================================================ */
.doctor_card {
/*   display: grid; */
  grid-template-columns: 220px 1fr;
  gap: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(44,122,140,0.08);
  max-width: 800px;
  margin: 0 auto;
}
.doctor_photo .img-placeholder { width: 180px; height: 220px; min-height: unset; border-radius: 12px; }
.doctor_info .role { font-size: 12px; font-weight: 700; color: var(--main); letter-spacing: 0.1em; margin-bottom: 8px; }
.doctor_info .name {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--main-dark);
  margin-bottom: 4px;
}
.doctor_info .name-en { font-size: 13px; color: #999; margin-bottom: 20px; }
.doctor_info .message {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.doctor_info .message p + p { margin-top: 12px; }

/* ============================================================
   FAQ
============================================================ */
.faq_list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq_item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.faq_q {
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--main-dark);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq_q::before {
  content: 'Q';
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--main);
  flex-shrink: 0;
}
.faq_a {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  display: flex;
  gap: 14px;
}
.faq_a::before {
  content: 'A';
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
}

/* ============================================================
   CTA
============================================================ */
.cta_section {
  background: var(--main-dark);
  padding: 72px 20px;
  text-align: center;
  color: #fff;
}
.cta_section h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  margin-bottom: 10px;
  color: #fff;
}
.cta_section > p { font-size: 14px; opacity: 0.8; margin-bottom: 30px; }
.cta_tel {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.cta_hours { font-size: 13px; opacity: 0.75; }

/* ============================================================
   ハンバーガーメニュー
============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--main-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp_nav_drawer {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  z-index: 999;
  padding: 80px 0 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sp_nav_drawer.open { transform: translateX(0); }
.sp_nav_drawer ul { list-style: none; }
.sp_nav_drawer ul li a {
  display: block;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sp_nav_drawer ul li a:hover { background: var(--bg-light); color: var(--main-dark); }
.sp_nav_drawer .drawer_tel { padding: 24px 32px 0; text-align: center; }
.sp_nav_drawer .drawer_tel a {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--main-dark);
  text-decoration: none;
}
.sp_nav_drawer .drawer_tel small { display: block; font-size: 11px; color: #888; margin-top: 4px; }
.sp_nav_drawer .drawer_close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--main-dark);
}
.drawer_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.drawer_overlay.open { display: block; }

/* ============================================================
   SWELLコンテナ 完全上書き（カスタムテンプレート共通）
   対象：トップページ(.home) + 診療案内(.page-template-page-service)
============================================================ */

/* 診療案内ページのSWELLコンテナリセット */
.page-template-page-service #post_slider,
.page-template-page-service .p-postSlider { display: none !important; }

.page-template-page-service .l-main,
.page-template-page-service .l-mainArea,
.page-template-page-service #main,
.page-template-page-service .l-contents,
.page-template-page-service .l-content,
.page-template-page-service #content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  flex: none !important;
}
/* l-container はヘッダー内でも使われるので除外 */
.page-template-page-service #content.l-container {
  padding-top: 0 !important;
}
.page-template-page-service .l-article,
.page-template-page-service .p-pageBody,
.page-template-page-service .entry-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}
.page-template-page-service .l-sidebar,
.page-template-page-service #sidebar { display: none !important; }

/* ============================================================
   SWELLコンテナ 完全上書き（トップページ）
============================================================ */

/* ── 1. SWELLのpost sliderを完全非表示 ── */
.home #post_slider,
.home .p-postSlider {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ── 2. ヘッダー上の青いラインを非表示 ── */
.c-headBar,
.l-header__bar,
.l-header::before,
#header::before {
  display: none !important;
  height: 0 !important;
}

/* ── 3. ヘッダー下ライン ── */
.l-header {
  border-bottom: 3px solid var(--main) !important;
  box-shadow: none !important;
}

/* ── 4. SWELLのJS offset（--swl-offset-y）による上部余白を除去 ── */
.home .l-main,
.home .l-mainArea,
.home #main,
.home .l-contents,
.home .l-article,
.home .p-pageBody,
.home .entry-content,
.home [id="main"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}
/* 原因：#content.l-content.l-container の padding-top を除去 */
.home #content,
.home .l-content,
.home .l-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* WP admin bar + SWELL offset の合算余白をゼロに */
.home.admin-bar .l-main,
.home.admin-bar #main,
.home.admin-bar #content,
.home.admin-bar .l-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── 5. 全SWELLコンテナを縦積み・フルワイド・overflow visible に ── */
/* overflow:hidden があるとブレイクアウトが効かないため全部visible */
.home .l-main,
.home .l-mainArea,
.home #main,
.home .l-contents,
.home .l-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important;
  flex: none !important;
  box-sizing: border-box !important;
}

.home .l-article,
.home .p-pageBody,
.home .entry-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* ── 6. サイドバーを完全に非表示 ── */
.home .l-sidebar,
.home #sidebar {
  display: none !important;
  width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── 7. prep_bar・メインビジュアル・スライダー・CTAを全幅に ── */
/* 親のoverflow:visibleが確保されたため機能する */
.home .prep_bar,
.home #mainimage,
.home .loop_slider_wrap,
.home .cta_section {
  position: relative !important;
  width: 100vw !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* ── 8. 各セクション内コンテナは1000px中央寄せを維持（sec01は除く） ── */
.home .section .container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 768px) {
  /* ── スマホ ヘッダー ── */
  .l-header__inner {
    min-height: 76px !important;
    padding: 10px 16px !important;
    align-items: center !important;
    display: flex !important;
  }
  /* スマホ ロゴ画像：大きめに */
  .l-header .c-headLogo img {
    max-height: 70px !important;
  }
  /* スマホではキャッチフレーズ非表示 */
  .c-catchphrase {
    display: none !important;
  }
  /* スマホ：キャッチフレーズは短く1行表示 */
  .c-catchphrase {
    font-size: 11px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ── スマホ メインビジュアル ── */
/*   #mainimage { min-height: 500px !important; }
  .main_overlay { padding: 40px 24px 180px; } */
	
.mainimage_bg {
  aspect-ratio: 3 / 4;
  background-position: center top;
  max-height: 450px;  /* PCのmax-heightをリセット */
}
.main_overlay { padding: 32px 20px 100px; 

	}
	
  .main_overlay h1, .hero_catchcopy { font-size: 26px; letter-spacing: 0.05em; }
  .hero_badges { flex-wrap: wrap; gap: 8px; padding: 16px; justify-content: center; }
  .hero_badge_item {
    width: auto; height: auto;
    aspect-ratio: unset;
    border-radius: 20px;
    flex-direction: row;
    font-size: 12px;
    padding: 8px 14px;
    gap: 6px;
    white-space: nowrap;
  }
  .hero_badge_item .badge-img { width: 18px; height: 18px; margin-bottom: 0; }
  /* sec01 スマホ：縦並びに */
  .sec01_inner { flex-direction: column; min-height: auto; }
  .sec01_img { width: 100%; padding: 40px 32px 20px; }
  .sec01_img .img-placeholder { max-width: 100%; aspect-ratio: 4/3.2; }
  .sec01_text { width: 100%; padding: 0 24px 48px; }
  .feature_row, .feature_row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .conditions_wrap { grid-template-columns: 1fr 1fr; }
  .hours_access_grid { grid-template-columns: 1fr; }
  .doctor_card { grid-template-columns: 1fr; }
  .doctor_photo .img-placeholder { width: 140px; height: 170px; }
}
@media (max-width: 480px) {
  .conditions_wrap { grid-template-columns: 1fr; }
  .hero_badge_item { font-size: 11px; padding: 7px 12px; }
}

/* コンテンツ末尾〜フッター間の余白を完全除去 */
#wrapper,
#page,
.l-wrap,
.l-main,
.l-mainArea,
.l-article,
.l-contents,
.l-content,
.entry-content,
.p-pageBody,
.p-entryBottom,
.p-entry__footer,
.p-entry__bottom,
.l-main__footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* フッター自体のmargin-topも除去 */
.site_footer,
#site_footer {
  margin-top: 0 !important;
}

/* ============================================================
   共通フッター
============================================================ */
.site_footer {
  background: #fff;
  border-top: 3px solid var(--main);
}

/* フッターメインエリア */
.footer_main {
  padding: 60px 0 40px;
}
.footer_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer_grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

/* クリニック情報 */
.footer_logo_img {
  max-height: 56px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.footer_clinic_name {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer_address {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 12px;
}
.footer_tel {
  font-size: 22px;
  font-weight: 700;
  color: var(--main-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.footer_tel:hover { color: var(--main); }
.footer_hours_note {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
  line-height: 1.7;
}
.footer_hours_note span { color: #c0392b; }

/* 診療時間テーブル */
.footer_section_title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.footer_hours_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.footer_hours_table th {
  background: var(--main-dark);
  color: #fff;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
}
.footer_hours_table td {
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.f_day { text-align: left; font-weight: 500; background: var(--bg-light) !important; }
.f_closed { color: #c0392b; font-weight: 700; }
.f_open { color: var(--main-dark); font-weight: 700; }
.footer_note { font-size: 11px; color: #999; margin-top: 8px; }

/* アクセス・地図 */
.footer_access_text {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.7;
}
.footer_map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* 診療案内リンク */
.footer_service_links {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
}
.footer_service_title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--main-dark);
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}
.footer_service_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 0;
}
.footer_service_grid a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 7px 0 7px 14px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s, padding-left 0.2s;
}
.footer_service_grid a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: 700;
}
.footer_service_grid a:hover {
  color: var(--main-dark);
  padding-left: 18px;
}
@media (max-width: 768px) {
  .footer_service_grid { grid-template-columns: repeat(2, 1fr); }
}

/* フッターナビ */
.footer_nav {
  padding-top: 20px;
}
.footer_nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0; padding: 0;
}
.footer_nav a {
  font-size: 13px;
  color: var(--main-dark);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.footer_nav a:hover { color: var(--main); text-decoration: underline; }

/* コピーライト */
.footer_copy {
  background: var(--main-dark);
  padding: 14px 24px;
  text-align: center;
}
.footer_copy p {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: 0.04em;
}

/* フッター レスポンシブ */
@media (max-width: 768px) {
  .footer_grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer_main { padding: 40px 0 28px; }
}

/* ============================================================
   診療案内ページ（page-service.php）
============================================================ */

/* ページヒーロー */
.page_hero {
  background: linear-gradient(135deg, var(--main-dark) 0%, #2a8fa0 100%);
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}
.page_breadcrumb {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.page_breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.page_hero_title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.page_hero_sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

/* 対応症状カテゴリー */
.service_categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.service_cat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(44,122,140,0.06);
  transition: box-shadow 0.2s;
}
.service_cat:hover { box-shadow: 0 4px 20px rgba(44,122,140,0.12); }
.service_cat_head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.service_cat_head h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0;
}
.service_list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service_list li {
  font-size: 14px;
  color: #444;
  padding-left: 16px;
  position: relative;
}
.service_list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--main);
  border-radius: 50%;
}

/* 初診の流れ（画像＋テキスト交互レイアウト） */
.flow_list { display: flex; flex-direction: column; gap: 0; }
.flow_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.flow_row:last-child { border-bottom: none; }
.flow_row.reverse { direction: rtl; }
.flow_row.reverse > * { direction: ltr; }
.flow_img .img-placeholder {
  aspect-ratio: 4/3;
  min-height: unset;
  border-radius: 16px;
}
.flow_body { display: flex; flex-direction: column; gap: 12px; }
.flow_step_num {
  display: block;
  color: var(--main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin: 0;
  opacity: 0.75;
}
.flow_body h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.flow_body p {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin: 0;
}
.flow_tel a {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .flow_row,
  .flow_row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; padding: 36px 0; }
  .flow_row.reverse .flow_img { order: -1; }
}

/* SWELLのパンくずを診療案内テンプレートで非表示 */
.page-template-page-service .l-breadcrumb,
.page-template-page-service .c-breadcrumb,
.page-template-page-service nav[aria-label="パンくずリスト"],
.page-template-page-service .p-breadcrumbs {
  display: none !important;
}

/* 初診の流れ（縦並び） */
.flow_wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
  gap: 0;
}
.flow_step {
  background: #fff;
  border-radius: 12px;
  padding: 28px 36px;
  box-shadow: 0 2px 12px rgba(44,122,140,0.07);
  border-left: 4px solid var(--main);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 24px;
  align-items: center;
}
.flow_step_num {
  font-size: 11px;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.1em;
  text-align: center;
}
.flow_step h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark);
  margin-bottom: 6px;
}
.flow_step p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}
.flow_tel a {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-dark);
  text-decoration: none;
}
.flow_arrow {
  text-align: center;
  font-size: 22px;
  color: var(--border);
  padding: 6px 0;
  line-height: 1;
}

/* 受診にあたって */
.notes_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.note_card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
}
.note_card h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.note_card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.note_card ul li {
  font-size: 14px;
  color: #444;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.note_card ul li:last-child { border-bottom: none; }
.note_card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-size: 12px;
}
.note_card p { font-size: 14px; color: #555; line-height: 1.8; }

/* 診療案内 レスポンシブ */
@media (max-width: 768px) {
  .service_categories { grid-template-columns: 1fr; }
  .flow_step { grid-template-columns: 80px 1fr; padding: 20px; }
  .notes_grid { grid-template-columns: 1fr; }
}

/* ========================================
   当院について ページ
======================================== */

/* 当院について コンテナリセット */
.page-template-page-about .l-contents,
.page-template-page-about .l-mainArea,
.page-template-page-about .l-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-template-page-about #content.l-container {
  padding: 0 !important;
  max-width: 100% !important;
}
.page-template-page-about .l-article {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-page-about .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.page-template-page-about .l-breadcrumb,
.page-template-page-about .c-breadcrumb { display: none !important; }

/* 院長ご挨拶 */
.about_greeting_wrap {
/*   display: grid; */
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}
.about_greeting_img .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
}
.about_label {
  display: inline-block;
  color: var(--main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--main);
}
.about_greeting_title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--main-dark);
  line-height: 1.5;
  margin: 0 0 24px;
}
.about_greeting_body p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}
.about_greeting_sign {
  margin-top: 28px;
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}
.about_greeting_sign span {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-dark);
  display: block;
  margin-top: 4px;
}

/* 当院の特徴 */
.about_features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about_feature_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.about_feature_img .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0;
}
.about_feature_body {
  padding: 24px;
}
.about_feature_body h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--main-dark);
  line-height: 1.5;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.about_feature_body p {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin: 0;
}

/* 悩みグリッド */
.worry_grid,
.visitor_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.worry_item,
.visitor_item {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  position: relative;
  padding-left: 36px;
}
.worry_item::before,
.visitor_item::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main);
  opacity: 0.7;
}

/* 診療方針 */
.about_policy_wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}
.about_policy_img .img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
}
.about_policy_title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--main-dark);
  line-height: 1.5;
  margin: 0 0 24px;
}
.about_policy_body p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* CTA セクション */
.about_cta_section {
  background: var(--main-dark) !important;
}
.about_cta_inner {
  text-align: center;
  padding: 20px 0;
}
.about_cta_inner h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}
.about_cta_inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin-bottom: 32px;
}
.about_cta_btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta_btn_tel {
  display: inline-block;
  background: #fff;
  color: var(--main-dark);
  font-size: 20px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.cta_btn_outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* 当院について レスポンシブ */
@media (max-width: 900px) {
  .about_features { grid-template-columns: 1fr; }
  .worry_grid, .visitor_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about_greeting_wrap,
  .about_policy_wrap { grid-template-columns: 1fr; gap: 32px; }
  .about_policy_wrap { direction: ltr; }
  .about_policy_img { order: -1; }
  .about_greeting_title,
  .about_policy_title { font-size: 22px; }
  .worry_grid, .visitor_grid { grid-template-columns: 1fr; }
  .about_cta_inner h2 { font-size: 22px; }
  .cta_btn_tel { font-size: 18px; }
}

/* ========================================
   診療時間・アクセス ページ
======================================== */
.page-template-page-access .l-contents,
.page-template-page-access .l-mainArea,
.page-template-page-access .l-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-template-page-access #content.l-container {
  padding: 0 !important;
  max-width: 100% !important;
}
.page-template-page-access .l-article {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-page-access .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.page-template-page-access .l-breadcrumb,
.page-template-page-access .c-breadcrumb { display: none !important; }

/* 診療時間テーブル */
.access_hours_wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.access_hours_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.access_hours_table th {
  background: var(--main-dark);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  text-align: center;
}
.access_hours_table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.access_hours_table .day_label {
  font-weight: 700;
  color: var(--main-dark);
  text-align: left;
}
.access_hours_table .open {
  color: var(--main-dark);
  font-size: 18px;
  font-weight: 700;
}
.access_hours_table .closed {
  color: #aaa;
  font-size: 14px;
}
.access_hours_notes p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
  color: #333;
}
.access_hours_notes p strong { color: var(--main-dark); }
.access_hours_notes .note_small {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}
.access_tel_btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--main-dark);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* アクセスレイアウト */
.access_info_wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.access_block {
  margin-bottom: 32px;
}
.access_block:last-child { margin-bottom: 0; }
.access_block h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.access_block p {
  font-size: 15px;
  color: #444;
  line-height: 1.85;
  margin: 0;
}
.access_station_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.access_station_list li {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.station_line {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  color: #fff;
}
.station_line.gotanda  { background: #e60012; }
.station_line.asakusa  { background: #ef7c00; }
.station_line.yamanote { background: #80c241; }
.access_tel_link {
  font-size: 20px;
  font-weight: 700;
  color: var(--main-dark);
  text-decoration: none;
}
.access_img_wrap .img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 16px;
}
.access_map_embed iframe { display: block; }

/* 受診ガイドグリッド */
.access_guide_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.access_guide_card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.access_guide_card h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.access_guide_card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.access_guide_card ul li {
  font-size: 14px;
  color: #444;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.access_guide_card ul li:last-child { border-bottom: none; }
.access_guide_card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-size: 12px;
}
.access_guide_card p {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin: 0;
}

/* アクセス レスポンシブ */
@media (max-width: 900px) {
  .access_hours_wrap { grid-template-columns: 1fr; }
  .access_info_wrap { grid-template-columns: 1fr; }
  .access_guide_grid { grid-template-columns: 1fr; }
}

/* ========================================
   お知らせ
======================================== */
.news_list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.news_item {
  border-bottom: 1px solid var(--border);
}
.news_link {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 4px;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}
.news_link:hover { color: var(--main-dark); }
.news_date {
  font-size: 13px;
  color: var(--main-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.news_title {
  font-size: 15px;
  line-height: 1.6;
}
.news_empty {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 32px 0;
}
@media (max-width: 768px) {
  .news_link { flex-direction: column; gap: 4px; }
}

/* ========================================
   よくある質問 ページ
======================================== */
.page-template-page-faq .l-contents,
.page-template-page-faq .l-mainArea,
.page-template-page-faq .l-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}
.page-template-page-faq #content.l-container {
  padding: 0 !important;
  max-width: 100% !important;
}
.page-template-page-faq .l-article {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-template-page-faq .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.page-template-page-faq .l-breadcrumb,
.page-template-page-faq .c-breadcrumb { display: none !important; }

.faq_cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.faq_cta p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

/* ========================================
   診療案内 メガメニュー
======================================== */
@media (min-width: 960px) {
  #gnav, .c-gnavWrap, .c-gnav {
    overflow: visible !important;
  }
  /* li は position:relative のまま（SWELLデフォルト）→ sub-menuの基準になる */
  .c-gnav > li.has-megamenu {
    position: relative !important;
  }
  /* sub-menu: liを基準に中央揃え */
  .c-gnav > li.has-megamenu > .sub-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 680px !important;
    background: #fff !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14) !important;
    border-top: 3px solid var(--main) !important;
    padding: 28px 36px !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 40px !important;
    top: 100% !important;
    z-index: 9999 !important;
  }
  /* SWELLはopacity/visibilityでhover制御 */
  .c-gnav > li.has-megamenu:hover > .sub-menu {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .c-gnav > li.has-megamenu .sub-menu > li {
    float: none !important;
    width: 100% !important;
    position: relative !important;
  }
  .c-gnav > li.has-megamenu .sub-menu > li > a {
    display: block !important;
    padding: 11px 0 11px 18px !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 14px !important;
    color: #444 !important;
    text-decoration: none !important;
    background: none !important;
    white-space: nowrap !important;
    transition: color 0.2s, padding-left 0.2s !important;
    position: relative !important;
  }
  .c-gnav > li.has-megamenu .sub-menu > li > a::before {
    content: "›" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--main) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
  /* SWELLのttlスパンのslideアニメを無効化 */
  .c-gnav > li.has-megamenu .sub-menu .ttl {
    left: 0 !important;
    transition: none !important;
  }
  .c-gnav > li.has-megamenu .sub-menu > li > a:hover {
    color: var(--main-dark) !important;
    padding-left: 22px !important;
    background: var(--bg-light) !important;
  }
}

/* ========================================
   診療案内 詳細ページ共通
======================================== */

.service_detail_intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.service_detail_intro.reverse {
  direction: rtl;
}
.service_detail_intro.reverse > * {
  direction: ltr;
}
.service_detail_img .img-placeholder {
  aspect-ratio: 4/3;
  border-radius: 16px;
  min-height: unset;
}
.service_detail_text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service_detail_text p {
  font-size: 15px;
  color: #444;
  line-height: 1.9;
  margin: 0;
}

.section_head--left {
  text-align: left;
  margin-bottom: 16px;
}
.section_head--left h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--main);
  display: inline-block;
}

/* 症状カード：フラットデザイン（カテゴリ見出し＋リスト） */
.symptom_cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.symptom_card {
  background: #fff;
  padding: 28px 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.symptom_card:nth-child(2n) { border-right: none; }
.symptom_card:nth-last-child(-n+2) { border-bottom: none; }
.symptom_card h4 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--main-dark);
  margin: -28px -28px 18px;
  padding: 10px 18px;
  letter-spacing: 0.04em;
}
.symptom_card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.symptom_card ul li {
  font-size: 14px;
  color: #444;
  padding: 8px 0 8px 14px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}
.symptom_card ul li:last-child { border-bottom: none; }
.symptom_card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 5px; height: 5px;
  background: var(--main);
  border-radius: 50%;
}

.detail_list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail_list li {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.detail_list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.treatment_steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.treatment_step {
  background: #fff;
  border-radius: 16px;
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(44,122,140,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.treatment_step_no {
  width: 64px;
  height: 64px;
  background: var(--main-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  gap: 2px;
}
.treatment_step_no .step_label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.85;
}
.treatment_step_no .step_num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.treatment_step h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0;
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  width: 100%;
  text-align: center;
}
.treatment_step p {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
  margin: 0;
  text-align: left;
}

.checklist_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.checklist_item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
}
.checklist_item::before {
  content: '✓';
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.service_cta {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-light);
  border-radius: 20px;
  border: 2px solid var(--border);
}
.service_cta > p {
  font-size: 16px;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.7;
}
.cta_hours {
  font-size: 13px !important;
  color: var(--text-sub) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .service_detail_intro,
  .service_detail_intro.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
  .symptom_cards { grid-template-columns: 1fr; }
  .treatment_steps { grid-template-columns: 1fr; }
  .checklist_grid { grid-template-columns: 1fr; }
}

/* ============================================================
   サイトマップページ
============================================================ */
.sitemap_block {
  margin-bottom: 48px;
}
.sitemap_heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sitemap_heading_icon {
  font-size: 18px;
}
.sitemap_list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sitemap_item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--main-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.sitemap_item a::before {
  content: '›';
  color: var(--main);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.sitemap_item a:hover {
  background: var(--bg-light);
  border-color: var(--main);
}
.sitemap_item--top > a {
  background: var(--bg-light);
  font-weight: 700;
}
.sitemap_child {
  list-style: none;
  padding: 4px 0 0 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sitemap_item--child > a {
  font-size: 13px;
  padding: 8px 14px;
  background: #fafafa;
}
.sitemap_item--child > a::before {
  content: '–';
  font-size: 14px;
}
.sitemap_date {
  font-size: 12px;
  color: var(--text-sub);
  flex-shrink: 0;
  font-weight: 400;
}

/* ============================================================
   公開日・更新日 表示
============================================================ */
.page_dates {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sub);
}
.page_dates_item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page_dates_label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--main-dark);
  background: rgba(44,122,140,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.page_dates_val {
  font-size: 13px;
  color: #555;
}
@media (max-width: 768px) {
  .page_dates { justify-content: flex-start; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
}

/* ============================================================
   休職相談・診断書発行ページ
============================================================ */

/* 傷病手当金グリッド */
.leave_kyufu_wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}
.leave_kyufu_intro {
  margin-bottom: 24px;
  font-size: 15px;
  color: #444;
  line-height: 1.75;
}
.leave_kyufu_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.leave_kyufu_item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.leave_kyufu_item:last-child { border-right: none; }
.leave_kyufu_label {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--main-dark);
  margin: -20px -16px 14px;
  padding: 8px 12px;
  letter-spacing: 0.05em;
}
.leave_kyufu_val {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.leave_kyufu_val strong {
  font-size: 22px;
  color: var(--main-dark);
  display: block;
}
.leave_note {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 16px;
  padding-left: 1em;
  text-indent: -1em;
}

/* 休職フロー */
.leave_flow {
  max-width: 640px;
  margin: 0 auto;
}
.leave_flow_step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}
.leave_flow_no {
  width: 64px;
  height: 64px;
  background: var(--main-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.leave_flow_no .step_label {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}
.leave_flow_no .step_num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.leave_flow_body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--main-dark);
  margin: 0 0 8px;
}
.leave_flow_body p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.7;
}
.leave_flow_arrow {
  text-align: center;
  font-size: 22px;
  color: var(--main);
  line-height: 1;
  padding: 6px 0;
}

/* FAQ */
.faq_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}
.faq_item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq_q {
  background: var(--bg-light);
  padding: 16px 20px 16px 52px;
  font-weight: 700;
  font-size: 15px;
  color: var(--main-dark);
  position: relative;
}
.faq_q::before {
  content: 'Q';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--main-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.faq_a {
  padding: 16px 20px 16px 52px;
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  position: relative;
}
.faq_a::before {
  content: 'A';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .leave_kyufu_grid { grid-template-columns: repeat(2, 1fr); }
  .leave_kyufu_item:nth-child(2) { border-right: none; }
  .leave_kyufu_item:nth-child(3) { border-top: 1px solid var(--border); }
  .leave_kyufu_item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .leave_flow_step { gap: 16px; padding: 18px 18px; }
  .leave_kyufu_wrap { padding: 24px 16px; }
}
