@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =======================================================
   【目次】
   1. 変数定義（:root）
   2. グローバル・共通設定（各パーツ、レイアウト、アニメーションなど）
   3. ヘッダー・メニュー・フッター関連
   4. トップページ：メインビジュアル (FV)
   5. トップページ：各セクション
   6. 下層ページ・ブログ関連
   7. SWELL標準機能の上書き（スマホガタつき防止）
======================================================= */

/* -------------------------------------------
 * 1. 変数定義
 * ------------------------------------------- */
:root{
  --base-color: #fffff9;
  --main-color: #f3a68c; /*(243, 166, 140)*/
  --main-light-color: #f8f5f1; /*(248, 245, 241)*/
  --accent-color: #4d332c; /*(77, 51, 44)*/
  --text-color: #282928;
  --banner-text: #fff;
  --section-bg: #edebeb;
  --primary-color: #e3b466; /*(227, 180, 102)*/
  --aww-color-theme-light: rgba(235, 140, 150, 0.2); /* ステップ1：薄いピンク */
  --aww-color-theme-dark: rgba(243, 166, 140, 0.4);  /* ステップ2：濃いピンク */
  --aww-color-theme-solid: #eb8c96; /* ステップ3：アイコン反転色 */
  --aww-color-text: #333333;
  --aww-color-text-sub: #888888;
  --color_border--table: rgba(77, 51, 44, 0.4);
  
/* Typography */
  --font-sans: 'M PLUS 1p', sans-serif;
  --font-heading: 'Noto Serif Japanese', serif;
  --font-en: 'Noto Serif Japanese', serif;
  --font-accent: "Roboto", sans-serif;
}






/* -------------------------------------------
 * 2. グローバル・共通設定
 * ------------------------------------------- */
/* --- ユーティリティ・基本 --- */
  .bold {
	font-weight: bold;
  }
  .keep {
	pointer-events: none;
	user-select: none;
  }

/* SWELL 特有のページ下部margin除去 */
  body #content {
	margin-bottom: 0px;
  }

/* --- 常時非表示(表示する場合がクラス削除) --- */
  .always-hid{
	display: none!important;
}

/* Typography Classes */
  .font-sans { font-family: var(--font-sans); }
  .font-heading { font-family: var(--font-heading); }
  .font-heading-en { font-family: var(--font-en); }
  .font-heading-num { font-family: var(--font-en); }
  .font-accent { font-family: var(--font-accent);}

/* -------------------------------------------
   各見出し
 * ------------------------------------------- */

/* 日本語見出しの追加設定 */
  .font-heading {
	font-size: 1.2rem!important;
	letter-spacing: .25rem;
  }

/* 英字見出しの追加設定 */
  .font-heading-en {
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: var(--main-color);
	letter-spacing: .25rem;
  }

/* 英字見出し(装飾用)の追加設定 */
.en {
	font-size: 12px;
	font-family: var(--font-en);
	font-style: italic;
	font-weight: 100;
	color: #c8c8c8;
	letter-spacing: .1rem;
	margin: 0 7px;
}

/* 数字見出しの追加設定 */
  .font-heading-num {
	  letter-spacing: .15rem;
      margin-right: 0;
	  margin-left: 0;
	  padding-right: 0;
	  padding-left: 0;
  }
@media (max-width: 800px) {
  .font-heading-num {
	  letter-spacing: .15rem;
      font-size: 16px!important;
  }
}

/* セクション大見出し */
.main-headline {
	font-family: var(--font-heading);
	font-size: 2rem!important;
	letter-spacing: .25em;
}
@media (max-width: 800px) {
  .main-headline {
	  font-size: 1.6rem!important;
	  letter-spacing: .15em;
  }
}

/* アクセント見出し1 (英字)*/
.accent-headline {
	font-family: var(--font-accent)!important;
	font-weight: 100!important;
	font-size: 3rem!important;
	letter-spacing: .15em;
	margin: 30px 0!important;
	padding: 0!important;
}
@media (max-width: 800px) {
  .main-headline {
	  font-size: 1.8rem!important;
	  letter-spacing: .15em;
  }
}

/* アクセント見出し2 */
.accent-headline-sec {
	font-family: var(--font-heading)!important;
	color: var(--accent-color);
	font-weight: 100!important;
	font-size: 1.5rem!important;
	letter-spacing: .15em;
	margin: 30px 0!important;
    padding: 0!important;
}
@media (max-width: 800px) {
  .main-headline-sec {
	  font-size: 1.2rem!important;
	  letter-spacing: .15em;
  }
}

/* アクセント見出し3 */
.emphasized-title{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

/* アクセント見出し3 (スペース有り)*/
.emphasized-title-space{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* -------------------------------------------
   テキスト装飾
 * ------------------------------------------- */

/* メールアドレス装飾 */
.address a{
    text-decoration: none;
	color: var(--main-color)!important;
  }

/* ※備考テキストデザイン */
 .remarks-text{
	font-size: .8rem;
    opacity: .6;
}

/* 検査項目テキストデザイン */
.diagnostic-items{
	font-size: 1.1rem;
	font-family: var(--font-sans);
	color: var(--main-color);
	font-weight: 300!important;
}


/* テーブルスクロールテキスト装飾 */
#main_content .c-scrollHint > span{
	color: var(--main-color)!important;
	font-weight: 600!important;
}

/* リンクテキスト(一般) */
.link-text {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--text-color);
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.link-text__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid currentColor;
    transition: transform 0.3s ease;
}

.link-text__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* -----------------------------------------
   ホバー時のアクション（マウスオーバー時）
   ----------------------------------------- */
.link-text:hover {
  color: var(--main-color);
}

.link-text:hover .link-text__icon {
  transform: translateX(3px);
}

/* -----------------------------------------
   アニメーション（常時）
   ----------------------------------------- */

/* 有機的な背景シェイプ（うねりアニメーション） */
@keyframes blob-drift {
    0%   { transform: translate(0px, 0px) scale(1); border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    33%  { transform: translate(30px, -50px) scale(1.05); border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    66%  { transform: translate(-20px, 20px) scale(0.95); border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
    100% { transform: translate(0px, 0px) scale(1); border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
}
  .blob-shape {
      animation: blob-drift 20s infinite alternate ease-in-out;
      will-change: transform, border-radius;
}

/* -----------------------------------
   ボタンカスタム02(テキストリンク)
------------------------------------ */
.custom-is-style-more_btn{
	border-radius: 8px;
}

/* リンク全体のコンテナ設定 */
.c-modern-arrow-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0; /* スマホでもタップしやすい上下の余白 */
  border-bottom: 1px solid #e5dcd6;
  color: var(--accent-color);
  text-decoration: none;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

/* テキスト部分の設定 */
.c-modern-arrow-link__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  padding-right: 20px; /* 矢印とテキストが被らないように余白を確保 */
}

/* 矢印アイコンの作成（画像不要のCSS描画） */
.c-modern-arrow-link__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0; /* テキストが長くなっても矢印が潰れないようにする */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* なめらかなイージング */
}

/* 矢印の線を疑似要素で作成 */
.c-modern-arrow-link__icon::before,
.c-modern-arrow-link__icon::after {
  content: "";
  position: absolute;
  background-color: var(--accent-color);
  transition: background-color 0.3s ease;
}

/* 矢印の横線 */
.c-modern-arrow-link__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

/* 矢印の斜め線（右半分） */
.c-modern-arrow-link__icon::after {
  top: 50%;
  right: 0;
  width: 8px;
  height: 1px;
  transform-origin: right center;
  transform: translateY(-50%) rotate(45deg);
}

/* -----------------------------------
   ホバー（スマホではタップ）時のアクション
------------------------------------ */
.c-modern-arrow-link:hover {
  border-bottom-color: var(--main-color);
  opacity: 0.8;
  color: var(--main-color);
}

.c-modern-arrow-link:hover .c-modern-arrow-link__icon {
  transform: translateX(8px);
}

/* ホバー時に矢印の色も合わせる場合 */
.c-modern-arrow-link:hover .c-modern-arrow-link__icon::before,
.c-modern-arrow-link:hover .c-modern-arrow-link__icon::after {
  background-color: var(--main-color);
}


/* -----------------------------------
   カスタムテキストリンク
------------------------------------ */
/* リンク全体のレイアウト設定 */
.c-simple-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease; /* 0.3秒でカラー変更 */
}

/* 矢印アイコンの基本設定 */
.c-simple-arrow-link__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* なめらかに移動 */
}

/* -----------------------------------
   ホバー（スマホではタップ）時のアクション
------------------------------------ */

/* 1. テキストとアイコンの色をメインカラーへじんわり変更 */
.c-simple-arrow-link:hover {
  color: var(--main-color);
}

/* 2. 矢印アイコンだけが少し右へ移動 */
.c-simple-arrow-link:hover .c-simple-arrow-link__icon {
  transform: translateX(6px);
}


/* リンク全体のレイアウト設定 */
.c-simple-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 矢印アイコンの基本設定 */
.c-simple-arrow-link__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -----------------------------------
   ホバー（スマホではタップ）時のアクション
------------------------------------ */

/* 1. テキストとアイコンの色をメインカラーへじんわり変更 */
.c-simple-arrow-link:hover {
  color: var(--main-color);
}

/* 2. 矢印アイコンだけが少し右へ移動 */
.c-simple-arrow-link:hover .c-simple-arrow-link__icon {
  transform: translateX(6px);
}


/* -----------------------------------------
   レイアウトデザイン
   ----------------------------------------- */

/* -------------------------------------------
   アシンメトリーデザイン設定
 * ------------------------------------------- */

/* ベースのセクション設定(右) */
.custom-partial-bg-right {
  position: relative;
  z-index: 0;
  background-color: transparent !important;
}

/* --- PC・タブレット用（801px以上） --- */
@media screen and (min-width: 801px) {
  .custom-partial-bg-right::before {
    content: "";
    position: absolute;
    height: 70%;
    top: 10%;
    right: 0;
    width: 70%;
    background-color: var(--main-light-color);
    z-index: -1;
  }
}

/* --- スマホ用（800px以下） --- */
@media screen and (max-width: 800px) {
  .custom-partial-bg-right::before {
    content: "";
    position: absolute;
    height: 80%;
    top: 0;
    right: 0;
    width: 70%; 
    background-color: var(--main-light-color); 
    z-index: -1;
    
    /* ※もしスマホでは背景色自体を消したい（全て透明にしたい）場合は、
       上記のコードを消して display: none; だけを記述 */
  }
}

/* ベースのセクション設定(左) */
.custom-partial-bg-left {
  position: relative;
  z-index: 0;
  background-color: transparent !important; /* ベースを完全に透明にする */
}

/* --- PC・タブレット用（801px以上） --- */
@media screen and (min-width: 801px) {
  .custom-partial-bg-left::before {
    content: "";
    position: absolute;
    height: 70%;
    top: 10%;
    left: 0;
    width: 70%;
    background-color: var(--main-light-color);
    z-index: -1;
  }
}

/* --- スマホ用（800px以下） --- */
@media screen and (max-width: 800px) {
  .custom-partial-bg-left::before {
    content: "";
    position: absolute;
    height: 80%;
    top: 0;
    left: 0;
    width: 70%;
    background-color: var(--main-light-color); 
    z-index: -1;
    
    /* ※もしスマホでは背景色自体を消したい（全て透明にしたい）場合は、
       上記のコードを消して display: none; だけを記述 */
  }
}

  .contact-group p a{
	z-index: 3 !important;
  }


/* --- 表示切り替えクラス --- */
@media (min-width: 961px) {
  .sp { display: none !important; }
  .md { display: none; }
}
@media screen and (min-width: 801px) and (max-width: 960px) {
  .sp { display: none; }
  .pc_only { display: none; }
}
@media (max-width: 800px) {
  .pc { display: none; }
  .md { display: none; }
}

/* グラデーションの区切り線 */
hr.custom-gradient-line {
    border: none !important; /* SWELLのデフォルトの線を消す */
    height: 1px !important;
    background: linear-gradient(to right, #f06292, #9c27b0, #2196f3) !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 3em 0 !important;
}

.post-wrapper{
   max-width: 900px;
}


/* =========================================
   バナーデザイン
========================================= */

/* =========================================
   カスタムバナーカード（単体）
========================================= */
/* カード本体 */
.custom-banner-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px; /* カード全体の角丸 */
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  height: 100%; /* SWELLのカラム内で高さを揃えるため */
}

/* カード全体の上に被せる透明な枠線（疑似要素） */
.custom-banner-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  pointer-events: none;
  transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 画像エリア */
.custom-banner-card__img {
  width: 100%;
  aspect-ratio: 2 / 1; /* 800x400の比率を維持 */
  overflow: hidden;
}

.custom-banner-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* コンテンツエリア */
.custom-banner-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* タイトル */
.custom-banner-card__title {
  font-size: 16px!important;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 12px;
  transition: color 0.3s ease;
/* ▼ 高さを2行分（48px）に固定 ▼ */
  height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行を超えたら自動的に「...」にする */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* テキストエリア下部 */
.custom-banner-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 16px;
}

/* 説明文 */
.custom-banner-card__desc {
  font-size: 12px;
  color: #888888;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
  /* ▼ 高さを3行分（57.6px）に固定 ▼ */
  height: 57.6px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3行を超えたら自動的に「...」にする */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* アイコン */
.custom-banner-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #333;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.custom-banner-card__icon svg {
  width: 100%;
  height: 100%;
}

/* ホバー時のアクション */
.custom-banner-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), inset 0 0 0 1px #a4c2f4;
}
/* ホバー時に上の透明な枠線をブルーに変える */
.custom-banner-card:hover::after {
  border-color: #a4c2f4;
}
.custom-banner-card:hover .custom-banner-card__title,
.custom-banner-card:hover .custom-banner-card__desc,
.custom-banner-card:hover .custom-banner-card__icon {
  color: var(--color_main, #3b5998); 
}
.custom-banner-card:hover .custom-banner-card__icon {
  transform: translateX(3px);
}

/* レスポンシブ対応（制約条件：800px以下） */
@media screen and (max-width: 800px) {
  .custom-banner-card__body {
    display: none;
  }
}

/* =========================================
   医師プロフィール ポップアップ（PC表示のみ）
========================================= */
@media screen and (min-width: 801px) {

  /* 1. SWELLテーブルのoverflowを完全に解除（親要素の制限も突破） */
  .wp-block-table td, 
  .wp-block-table th,
  .swell-block-table td,
  figure.wp-block-table,
  div.wp-block-table,
  .swell-block-table,
  .swell-block-table.u-scroll-x {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  /* 2. ラッパー要素 */
  .custom-doc-popup-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }
	
  .custom-doc-popup-wrap:hover {
    z-index: 99; /* 他のセルやテキストに負けないように強力な数値を設定 */
  }
  
  /* テーブルセル自体の階層も上げる */
  .wp-block-table td:hover,
  .swell-block-table td:hover {
    position: relative;
    z-index: 1;
  }

  /* 3. ホバー対象の医師名（リンクのように見せてクリック/ホバーを促す） */
  .custom-doc-popup-wrap .doc-name {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 2px;
    transition: all 0.3s ease;
  }
  .custom-doc-popup-wrap:hover .doc-name {
    border-bottom-color: #333;
  }

  /* 4. ポップアップ本体（基本は右側に表示） */
  .custom-doc-popup-wrap .doc-popup-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 50%;          /* 縦方向の中央に基準を合わせる */
    left: 100%;        /* テキストの右側に配置 */
    bottom: auto;
    transform: translateY(-50%) translateX(10px); /* スライドインの準備 */
    width: 400px;
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-left: 16px; /* 矢印分のスペース */
    text-align: left;
  }

  /* 5. 吹き出しの矢印（左向き・テキスト側を指す） */
  .custom-doc-popup-wrap .doc-popup-content::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;       /* ポップアップの左端に配置 */
    left: auto;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
  }

  /* 6. ホバー時のアクション（右側へスッと表示） */
  .custom-doc-popup-wrap:hover .doc-popup-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  /* =========================================
     右端セル用の左側ポップアップ表示（.is-right）
  ========================================= */
  .custom-doc-popup-wrap.is-right .doc-popup-content {
    right: 100%;       /* テキストの左側に配置 */
    left: auto;
    transform: translateY(-50%) translateX(-10px);
    margin-left: 0;
    margin-right: 16px;
  }
  .custom-doc-popup-wrap.is-right .doc-popup-content::after {
    left: 100%;        /* ポップアップの右端に配置 */
    right: auto;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
  }
  .custom-doc-popup-wrap.is-right:hover .doc-popup-content {
    transform: translateY(-50%) translateX(0);
  }

  /* 矢印の位置も右側の医師名の中央付近に合わせる */
  .custom-doc-popup-wrap.is-right .doc-popup-content::after {
    left: auto;
    right: 40px;
    transform: none;
  }
  
  /* SWELLブログパーツ特有の余白をリセット */
  .custom-doc-popup-wrap .swell-block-bp {
    margin-bottom: 0 !important;
  }
}

/* =========================================
   医師カード内のデザイン再現
========================================= */

/* カード全体のコンテナ */
.doc-card-inner {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
}

/* ヘッダー部分（画像と名前） */
.doc-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

/* 医師画像 */
.doc-card-image {
  flex: 0 0 120px; /* 画像の横幅を固定 */
}
.doc-card-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* 名前・専門エリア */
.doc-card-title-area {
  flex: 1;
}

.doc-card-name {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 15px 0 !important;
  letter-spacing: 0.05em;
}

.doc-card-spec .label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.doc-card-spec .text {
  font-size: 16px;
  margin: 0 !important;
}

/* 経歴セクション */
.doc-card-body .body-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px 0 !important;
  border-bottom: none; /* SWELLのデフォルト見出し装飾を消す場合 */
}

.career-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.career-list li {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 6px;
  position: relative;
  color: #444;
}

/* =========================================
   スマホ・タブレット表示（800px以下）の制御
   ポップアップを無効化し、通常のテキストとして扱う
========================================= */
@media screen and (max-width: 800px) {
  
  /* 1. ポップアップの中身を完全に非表示にする */
  .custom-doc-popup-wrap .doc-popup-content {
    display: none !important;
  }

  /* 2. タップ判定を無くす（誤動作防止） */
  .custom-doc-popup-wrap {
    pointer-events: none;
  }

  /* 3. ホバーを促す破線（リンク風の装飾）を消す */
  .custom-doc-popup-wrap .doc-name {
    border-bottom: none !important;
    padding-bottom: 0;
  }
}


/* =========================================
   アーカイブ（一覧）ページのタイトル装飾
========================================= */
h1.c-pageTitle,
.c-pageTitle__main,
.c-postTitle__ttl {
    font-size: 24px !important;
	font-family: var(--font-heading);
    font-weight: 300 !important; /* 絶対に細字にする */
    color: var(--text-color) !important;
    letter-spacing: 0.05em !important;
}

/* =========================================
   シンプルスタイルテーブルカスタム
========================================= */
.simple-custom-table tr>td {
	padding: 24px 11.25px 24px 11.25px;
}

.simple-custom-table-sec tr>td {
	border-bottom-width: 0px;
}


/* =========================================
   カスタムボタン（リキッド・フィル）
========================================= */

/* ボタンの基本スタイル */
.c-liquid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px; /* スマホでも押しやすい横幅 */
  width: 400px;
  padding: 14px 32px;
  border: 1px solid #4d332c; /* アクセントカラーの枠線 */
  border-radius: 50px;
  background-color: transparent;
  color: #4d332c; /* 通常時の文字色 */
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  overflow: hidden; /* はみ出るリキッドを隠す */
  z-index: 1;
  transition: color 0.4s ease;
  margin-bottom: 20px!important;
}

/* テキストとアイコンの配置 */
.c-liquid-btn__text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between; /* テキストを左、アイコンを右に引き離す */
  width: 100%; /* コンテナいっぱいに広げる */
  z-index: 3; /* リキッドより上に配置 */
}

/* アイコンのサイズ */
.c-liquid-btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* リキッド（塗りつぶし）の背景 */
.c-liquid-btn__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0; /* 最初は高さゼロ */
  background-color: rgba(243, 166, 140, .3);
  z-index: 2;
  transition: height 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); 
}

/* -----------------------------------
   ホバー（スマホではタップ）時のアクション
------------------------------------ */

.c-liquid-btn:hover {
  border-color: #f3a68c; /* 枠線もメインカラーに合わせる */
  /* 文字色はアクセントカラーのままで可読性を維持、
     もし白抜きにしたい場合は color: #fffff9; に変更 */
}

/* 下から色が満ちるアニメーション */
.c-liquid-btn:hover .c-liquid-btn__fill {
  height: 100%;
}

/* ホバー時にアイコンを少し揺らす（マイクロインタラクション） */
.c-liquid-btn:hover .c-liquid-btn__icon {
  transform: translateY(3px);
}

/* スマホ対応：タップ領域の確保と調整 */
@media (max-width: 768px) {
  .c-liquid-btn {
    width: 100%; /* スマホでは全幅にして押しやすく */
    padding: 16px 20px;
    font-size: 15px;
  }
}

/* SWELL リッチカラム - スマホ（800px以下）で順序を逆（右→左）にする設定 */
@media screen and (max-width: 800px) {
  .swell-col-reverse .swell-block-columns__inner{
   flex-direction: column-reverse;
  }
}


/* -------------------------------------------
 * 3. ヘッダー・メニュー・フッター関連
 * ------------------------------------------- */

/* --- PC表示用：オリジナルメガメニュー --- */
@media screen and (min-width: 961px) {
	
  .l-header__inner,.l-fixHeader__inner {
	height: 96px;
  }
	
  /* =========================================
     【共通設定】メガメニューの大枠とレイアウト
     ========================================= */
  li.custom-mega-menu > ul.sub-menu {
    position: absolute !important;
    left: 50% !important;
    top: 100% !important;
    transform: translateX(-40%) translateY(0) !important; 
    width: max-content !important; 
    min-width: 850px !important;
    background-color: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;    
    padding: 150px 40px 40px 40px !important; 
    overflow: hidden !important; 
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 40px !important;
    opacity: 0;
    visibility: hidden;    
    clip-path: inset(0 0 100% 0) !important; 
    transition: opacity 0.4s ease, visibility 0.4s, clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  li.custom-mega-menu:hover > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: inset(0 0 0 0) !important; 
  }

  /* =========================================
     【共通設定】レイヤー1（画像＋ブラー）のベース
     ========================================= */
  li.custom-mega-menu > ul.sub-menu::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100px !important;   
    background-size: cover !important;
    background-position: center !important;
    filter: blur(8px); 
    transform: scale(1.05) !important; 
    transform-origin: center !important;  
    z-index: 1 !important; 
    pointer-events: none !important;
  }

  /* =========================================
     【共通設定】レイヤー2（テキスト＋暗幕）のベース
     ========================================= */
  li.custom-mega-menu > ul.sub-menu::after {
    /* content: は個別設定で入れるため、ここでは指定しません */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 110px !important;  
    color: var(--banner-text)!important; 
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    font-weight: 200 !important;
    letter-spacing: 0.05em !important;
    background-color: rgba(0, 0, 0, 0.2) !important; /* 暗幕 */
	font-family: "Noto Serif Japanese",serif;
    display: flex !important;
    align-items: center !important;
    padding-left: 40px !important;
    box-sizing: border-box !important;
    z-index: 2 !important; 
    pointer-events: none !important;
  }

  /* =========================================
     【共通設定】子メニューのデザインとホバー効果
     ========================================= */
  li.custom-mega-menu > ul.sub-menu > li {
    border-bottom: none !important;
    width: 100% !important;
  }

  li.custom-mega-menu > ul.sub-menu > li > a {
    position: relative !important;
    padding: 10px 10px 10px 24px !important; 
    border-radius: 4px !important;
    color: var(--text-color) !important; 
    display: block !important;
    transition: color 0.3s ease, background-color 0.3s ease !important; 
  }

  li.custom-mega-menu > ul.sub-menu > li > a::before {
    content: "\003E" !important; 
    position: absolute !important;
    left: 8px !important; 
    top: 50% !important;
    transform: translateY(-50%) !important; 
    font-size: 14px !important;
    font-weight: bold !important;
    color: #888 !important; 
    transition: transform 0.3s ease, color 0.3s ease !important; 
  }
  
  li.custom-mega-menu > ul.sub-menu > li > a::after {
    content: none !important;
    display: none !important;
  }

  li.custom-mega-menu > ul.sub-menu > li > a:hover {
    background-color: #f5f5f5 !important; 
    color: #4d332c !important; 
  }

  li.custom-mega-menu > ul.sub-menu > li > a:hover::before {
    transform: translate(4px, -50%) !important; 
    color: #4d332c !important; 
  }

  /* =========================================
     ★【個別設定】画像とタイトルの出し分け（改行修正版）
     ========================================= */

  /* 1. 当院について */
  li.custom-mega-menu.menu-about > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-about.webp') !important;
  }
  li.custom-mega-menu.menu-about > ul.sub-menu::after {
    content: "当院について\A About us" !important;
    white-space: pre !important; /* ← 改行を強制 */
  }

  /* 2. クリニック */
  li.custom-mega-menu.menu-clinic > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-clinic.webp') !important;
  }
  li.custom-mega-menu.menu-clinic > ul.sub-menu::after {
    content: "クリニック\A Clinic" !important;
    white-space: pre !important;
  }

  /* 3. 人間ドック */
  li.custom-mega-menu.menu-dock > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-dock.webp') !important;
  }
  li.custom-mega-menu.menu-dock > ul.sub-menu::after {
    content: "人間ドック\A Medical Checkup" !important;
    white-space: pre !important;
  }

  /* 4. 健康診断 */
  li.custom-mega-menu.menu-kenshin > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-kenshin.webp') !important;
  }
  li.custom-mega-menu.menu-kenshin > ul.sub-menu::after {
    content: "健康診断\A Health Checkup" !important;
    white-space: pre !important;
  }

  /* 5. メディカルクラブ */
  li.custom-mega-menu.menu-medicalclub > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-medicalclub.webp') !important;
  }
  li.custom-mega-menu.menu-medicalclub > ul.sub-menu::after {
    content: "メディカルクラブ\A Medical Club" !important;
    white-space: pre !important;
  }

  /* 6. 予防接種 */
  li.custom-mega-menu.menu-vaccination > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-vaccination.webp') !important;
  }
  li.custom-mega-menu.menu-vaccination > ul.sub-menu::after {
    content: "予防接種\A Vaccination" !important;
    white-space: pre !important;
  }

  /* 7. 交通アクセス */
  li.custom-mega-menu.menu-access > ul.sub-menu::before {
    background-image: url('/wp-content/uploads/2026/04/menu-access.webp') !important;
  }
  li.custom-mega-menu.menu-access > ul.sub-menu::after {
    content: "交通アクセス\A Access" !important;
    white-space: pre !important;
  }
}

/* --- ヘッダー右側の電話バナーエリア --- */
.custom-header-tel {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-left: auto !important;
}

/* バナー画像自体のサイズとホバー調整 */
.custom-header-tel .tel-banner img {
    height: 40px !important;
    width: auto !important;
    vertical-align: bottom;
    transition: opacity 0.3s ease !important;
}

.custom-header-tel .tel-banner:hover img {
    opacity: 0.7 !important;
}

/* --- スマホ表示時の制御 --- */
@media screen and (max-width: 960px) {
    .custom-header-tel {
        /* スマホの狭いヘッダーではレイアウトが崩れるため非表示にする */
        display: none !important; 
    }
	
	.sp-menu-title {
		font-family: "Noto Serif Japanese",serif;
		border-bottom: solid 1px #f3a68c;
	}
	
	.sp-sub-menu {
	display: block;
    position: relative !important;
    padding: 0 10px 0 24px !important; 
    border-radius: 4px !important;
    color: #333 !important; 
    transition: color 0.3s ease, background-color 0.3s ease !important; 
  }
	
	.sp-sub-menu::before {
    content: "\003E" !important; 
    position: absolute !important;
    left: 8px !important; 
    top: 50% !important;
    transform: translateY(-50%) !important; 
    font-size: 14px !important;
    font-weight: bold !important;
    color: #888 !important; 
    transition: transform 0.3s ease, color 0.3s ease !important; 
  }
	
	.sp-sub-menu:hover { 
    color: #4d332c !important; 
  }
	
	.sp-sub-menu:hover::before {
    transform: translate(3px, -50%) !important; 
    color: #4d332c !important; 
  }
	
/*メニューの内容を消す*/
    .p-spMenu__nav{
	    display:none;
    }
/*メニューのタイトルを消す*/
    .c-widget__title.-spmenu{
        display:none;
    }
}

/* フッター */
/* キャッチコピーと横ラインのレイアウト */
  .footer-catchphrase {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 1.4rem;
	  font-family: var(--font-heading);
	  letter-spacing: .1;
      color: var(--accent-color);
      white-space: nowrap;
  }

  .footer-catchphrase::after {
    content: "";
    display: block;
    flex-grow: 1;
    height: 1px;
    background-color: var(--main-color);
}

  .footer-info-text {
	  font-size: 13px;
	  line-height: 24px;
  }

  .wp-block-columns>.wp-block-column .swell-block-linkList__item {
	  color: rgba(102, 102, 102, 1);
	  font-size: 13px;
  }

@media screen and (min-width: 801px) {
	.footer-info-text {
	    margin-left: 12px;
	}
}

/* =========================================
   4. トップページ：メインビジュアル (FV)
========================================= */
.custom-hero-section {
  position: relative;
  /* 画面幅いっぱいに強制的に広げる */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  
  /* ↓ フォールバック（JSが効く前や無効な環境用） */
  height: calc(100vh - 96px);
  height: calc(100svh - 96px);
  /* ↓ 【重要】独自のJS変数「--fv-vh」を適用し、PCヘッダーの高さ(96px)を引く */
  height: calc(var(--fv-vh, 1vh) * 100 - 96px) !important;
  
  overflow: hidden;
  background-color: #fff;
}

/* --- 背景スライダー --- */
.hero-bg-swiper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-bg-swiper .swiper-slide {
  width: 100%;
  height: 100%; /* これを追加してスライドの高さを確保 */
}

.hero-bg-swiper .bg-image {
  width: 100%;
  height: 115%; /* 上へ移動する余白を持たせる */
  background-size: cover;
  background-position: center bottom;
  transform: translateY(0);
  filter: brightness(1.15) contrast(0.9);
}
/* スライドが表示された時だけ上方向へのパン（移動）アニメーションを実行 */
.hero-bg-swiper .swiper-slide-active .bg-image,
.hero-bg-swiper .swiper-slide-prev .bg-image {
  animation: panUp 10s linear forwards;
}
@keyframes panUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5%); } /* ゆっくり上へ */
}

/* --- テキストの視認性確保用オーバーレイ --- */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* 上部は20%の白、下部に向かって90%の白になるグラデーション */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

/* --- 左下固定テキスト --- */
.hero-text-area {
  position: absolute;
  bottom: 8%;
  left: 5%;
  z-index: 10;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-catch {
  font-family: "Noto Serif JP", serif; /* 明朝体指定 */
  font-size: clamp(3rem, 3vw, 5rem)!important; /* 画面サイズに合わせて可変 */
  font-weight: 300!important;
  line-height: 1.3!important;
  margin-bottom: 1.5rem!important;
  letter-spacing: 0.25em!important;
}
.hero-sub {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 300!important;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* --- 右下固定 お知らせスライダー --- */
.hero-news-area {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 540px; /* PCでの最大幅 */
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
  padding: 20px 30px;
  border-radius: 8px 0 0 0;
}
.hero-news-swiper {
  height: 50px; /* 縦幅を固定して1件だけ見せる */
}
.hero-news-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none !important;
  color: #333;
  height: 100%;
  padding-right: 30px; /* ナビゲーション用の余白 */
}
.hero-news-date {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 60px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}
.hero-news-date .year { font-size: 0.65rem; color: #666; margin-bottom: 2px;}
.hero-news-date .month-day { font-size: 1.1rem; color: #888 ;font-family: 'Helvetica Neue', Arial, sans-serif;}
.hero-news-title {
  font-size: 0.95rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行で三点リーダー */
  -webkit-box-orient: vertical;
}

/* お知らせ用のカスタムナビゲーション（CSSで描画） */
.hero-news-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2;
}
.news-button-prev, .news-button-next {
  width: 12px; height: 12px;
  cursor: pointer;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.news-button-prev:hover, .news-button-next:hover { opacity: 1; }
.news-button-prev::after, .news-button-next::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border-top: 1.5px solid #333;
  border-right: 1.5px solid #333;
}
.news-button-prev::after { transform: rotate(-45deg); top: 4px;} /* 上向き */
.news-button-next::after { transform: rotate(135deg); top: -2px;} /* 下向き */

/* --- レスポンシブ調整（スマホ用） --- */
@media (max-width: 800px) {
  .custom-hero-section {
    /* ↓ スマホ用: JS変数を適用し、スマホヘッダー等の高さを引く */
    height: calc(100vh - 48px);
    height: calc(100svh - 48px);
    height: calc(var(--fv-vh, 1vh) * 100 - 48px) !important;
    margin-top: -32px !important;
  }
  .hero-text-area {
    bottom: 120px;
  }
  .hero-news-area {
    max-width: 100%;
    padding: 15px 20px;
  }
}

/* -------------------------------------------
 * 5. トップページ：各セクション
 * ------------------------------------------- */

.aww-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.aww-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aww-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 1. 背景・画像層 */
.aww-card__img-wrap {
  position: relative;
  height: 235px;
  overflow: hidden;
  z-index: 1;
}
.aww-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.aww-card__convex-shape {
  position: absolute;
  top: 200px; /* 画像エリアに少し食い込ませる */
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 35px;
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  z-index: 1;
}

/* 2. オーバーレイ層（中心から広がるアニメーション） */
.aww-card__overlay-light,
.aww-card__overlay-dark {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  clip-path: circle(0% at 50% 50%); /* カードの中心が起点 */
  z-index: 2; /* 背景層とコンテンツ層の間 */
}

/* ステップ1：薄い円 */
.aww-card__overlay-light {
  background-color: var(--aww-color-theme-light);
  /* ホバーアウト時の遅延：一番最後に消える */
  transition: clip-path 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.2s; 
}
/* ステップ2：濃い円 */
.aww-card__overlay-dark {
  background-color: var(--aww-color-theme-dark);
  /* ホバーアウト時の遅延：真ん中で消える */
  transition: clip-path 0.3s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}

/* 3. コンテンツ層（最前面） */
.aww-card__content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 40px 15px 25px;
  text-align: center;
  z-index: 3; /* オーバーレイの上に乗る */
}

/* アイコン周り（ステップ3） */
.aww-card__icon-container {
  position: absolute;
  top: -25px; /* 凸型背景と同じ位置に配置 */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aww-card__icon-bg {
  position: absolute;
  inset: 0;
  background-color: #fff;
  border-radius: 50%;
  transform: scale(0); /* 通常時は見えない */
  opacity: 0;
  /* ホバーアウト時の遅延：一番最初に消える */
  transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
  z-index: -1;
}
.aww-card__icon {
  width: 32px;
  height: 32px;
  background-color: var(--aww-color-text); /* 通常時のアイコン色 */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transition: background-color 0.2s ease 0s;
}

/* テキスト・ボタンスタイル */
.aww-card__text-wrap {
  margin-top: 10px;
}
.aww-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aww-color-text);
  margin-bottom: 5px;
  transition: color 0.2s ease 0s;
}
.aww-card__subtitle {
  font-size: 0.8rem;
  color: var(--aww-color-text-sub);
  margin-bottom: 15px;
  transition: color 0.2s ease 0s;
}
.aww-card__desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--aww-color-text);
  transition: color 0.2s ease 0s;
}
.aww-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  height: 32px;
}
.aww-card__action-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  transition: max-width 0.2s ease 0s, opacity 0.3s ease 0s, margin-right 0.2s ease 0s;
}
.aww-card__action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 50%;
  color: #ccc;
  transition: border-color 0.2s ease 0s, color 0.2s ease 0s;
}
.aww-card__mobile-arrow {
  display: none;
}

/* =========================================
   PC用 ホバーエフェクト（タイムライン制御）
========================================= */
@media (min-width: 801px) {
  /* 画像ズーム */
  .aww-card:hover .aww-card__img-wrap img { transform: scale(1.05); transition: transform 1s ease; }

  /* [Step 1] 薄い円（遅延 0s） */
  .aww-card:hover .aww-card__overlay-light {
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 2s cubic-bezier(0, 1.08, 0.99, 1) 0s;
  }
  
  /* [Step 2] 濃い円（遅延0.25s） */
  .aww-card:hover .aww-card__overlay-dark {
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 2.8s cubic-bezier(0, 1.08, 0.99, 1) 0.25s;
  }

  /* [Step 3] アイコンとテキストの反転（変更：すべての遅延を0.4s） */
  .aww-card:hover .aww-card__icon-bg {
    transform: scale(1);
    opacity: 1;
    transition: transform 0.4s ease 0.4s, opacity 0.4s ease 0.4s;
  }
  .aww-card:hover .aww-card__icon {
    background-color: var(--aww-color-theme-solid); 
    transition: background-color 0.4s ease 0.4s;
  }
  .aww-card:hover .aww-card__title,
  .aww-card:hover .aww-card__subtitle,
  .aww-card:hover .aww-card__desc {
    color: #fff;
    transition: color 0.3s ease 0.3s;
  }
  .aww-card:hover .aww-card__action-text {
    max-width: 100px;
    opacity: 1;
    margin-right: 10px;
    transition: max-width 0.3s ease 0.3s, opacity 0.3s ease 0.3s, margin-right 0.3s ease 0.3s;
  }
  .aww-card:hover .aww-card__action-icon {
    border-color: #fff;
    color: #fff;
    transition: border-color 0.3s ease 0.3s, color 0.3s ease 0.3s;
  }
}

/* =========================================
   スマホ用スタイル (800px以下) 
========================================= */
@media (max-width: 800px) {
  .aww-cards-container { grid-template-columns: 1fr; gap: 12px; }
  .aww-card { flex-direction: row; align-items: center; min-height: 90px; }
  .aww-card__img-wrap { width: 100px; height: 100px; flex-shrink: 0; }
  
  .aww-card__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px 0 20px;
    text-align: left;
  }
  
  .aww-card__text-wrap { margin: 0; }
  .aww-card__title { font-size: 1.1rem; margin-bottom: 2px; color: var(--aww-color-text); }
  .aww-card__subtitle { font-size: 0.8rem; margin-bottom: 0; color: var(--aww-color-text-sub); }
  
  .aww-card__mobile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--aww-color-text);
    border-radius: 50%;
    color: var(--aww-color-text);
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  .aww-card:hover .aww-card__mobile-arrow { transform: translateX(5px); }

  /* PC装飾要素を非表示 */
  .aww-card__overlay-light, .aww-card__overlay-dark,
  .aww-card__convex-shape, .aww-card__icon-container,
  .aww-card__desc, .aww-card__action { display: none !important; }
}


/* =========================================
   カスタム新着情報レイアウト
========================================= */
.p-customNews {
    position: relative;
    z-index: 1;
    margin-bottom: 2em;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 背景 (アシンメトリーデザイン) */
.p-customNews::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 90px); /* 日付部分の幅を引いた領域に背景を敷く */
    background-color: var(--main-light-color);
    border-radius: 6px;
    z-index: -1;
}

/* ヘッダー部分 */
.p-customNews__header {
    display: flex;
    align-items: center;
	margin-top: 0;
    padding: 20px 20px 20px 0;
    border-bottom: 1px solid #333; /* 区切り線 */
}

.p-customNews__icon {
    width: 90px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.p-customNews__icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-color);
}

.p-customNews__title {
    font-size: 20px!important;
    font-weight: 300!important;
    color: var(--text-color)!important;
    margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-left: -10px !important;
    flex-grow: 1;
}

.p-customNews__arrow {
    display: flex;
    align-items: center;
    color: var(--text-color);
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.p-customNews__arrow:hover {
    transform: translateX(3px);
    color: var(--main-color) !important;
}

.p-customNews__arrow svg {
    width: 36px;
    height: 36px;
}

/* リスト部分 */
.p-customNews__item {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-color) !important;
    border-bottom: 1px solid #E5E5E5;
    transition: background-color 0.3s ease, opacity 0.3s ease;
	height: 100px; /* ※必要に応じて 90px 等に微調整 */
    box-sizing: border-box;
}

.p-customNews__item:last-child {
    border-bottom: none;
}

/* =========================================
   Minimalist Shift アニメーション
========================================= */

/* ① リンクがない固定テキスト(div)への対策 */
div.p-customNews__item {
    cursor: default !important; /* ポインター(指マーク)にしない */
}
div.p-customNews__item:hover {
    opacity: 1 !important; /* 絶対に透けないように強制 */
    background-color: transparent !important;
}

/* ② テキスト部分に「じわっと」変化 */
.p-customNews__text {
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

/* ③ リンクがある記事(a)をホバーした時の発動アクション */
a.p-customNews__item:hover .p-customNews__text {
    transform: translateX(3px);
    color: var(--main-color) !important;
}

/* 日付エリア（左側・白背景部分） */
.p-customNews__date {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.p-customNews__year {
    font-size: 11px;
    color: #666;
    line-height: 1;
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #999; /* 年と月日の間の短い線 */
    width: 40px;
    text-align: center;
}

.p-customNews__md {
    font-size: 18px;
    color: #666;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* タイトルエリア（右側・ベージュ背景部分） */
.p-customNews__text {
    flex-grow: 1;
    padding: 20px 20px 20px 10px;
    font-size: 13px;
	font-weight: 600;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2行で三点リーダーに */
    overflow: hidden;
}

/* レスポンシブ対応 (スマホ表示時は余白などを調整) */
@media screen and (max-width: 800px) {
    .p-customNews__header {
        padding: 15px 15px 15px 0;
    }
    .p-customNews__date {
        width: 70px;
        padding: 15px 0;
    }
    .p-customNews::before {
        width: calc(100% - 70px);
    }
    .p-customNews__md {
        font-size: 16px;
    }
    .p-customNews__text {
        font-size: 13px;
        padding: 15px 15px 15px 10px;
    }
	/* スマホ表示時の安全対策 */
    .p-customNews__item {
        height: auto;       /* 固定高さを解除 */
        min-height: 85px;   /* 最低限の高さだけは担保する */
    }
}


/* SWELL フルワイドブロック - gallery用グラデーション */
.gallery {
  /* background-colorの干渉を防ぎ、明示的にグラデーションを描画 */
  background-image: linear-gradient(
    to bottom,
    rgba(88, 64, 58, 0) 0%,   /* 上部：透明 */
	rgba(88, 64, 58, 0.1) 40%,
    rgba(88, 64, 58, 0.2) 46%,
    rgba(88, 64, 58, 0.4) 50%,
    rgba(88, 64, 58, 0.2) 54%,
	rgba(88, 64, 58, 0.1) 60%,
    rgba(88, 64, 58, 0) 100%  /* 下部：透明 */
  ) !important;
}


/* -------------------------------------------
   路線図（タイムライン）コンポーネント（レスポンシブ対応）
------------------------------------------- */

/* === 1. 共通・ベーススタイル === */
.c-route-map-wrapper {
  width: 100%;
  margin-bottom: 2em;
}

.c-route-map {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.c-route-map__item {
  position: relative;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-color); /* 指定条件: カラー変数へ置換 */
}

/* 終点テキストのハイライト */
.c-route-map__item.is-highlight {
  color: #c0392b; 
}

/* 丸（ノード）の共通設定 */
.c-route-map__item::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background-color: var(--accent-color);
  z-index: 2;
}

/* 始点・終点の丸の共通設定（白抜き） */
.c-route-map__item.is-start::before {
  background-color: #fff;
  border: 2px solid var(--accent-color);
}
.c-route-map__item.is-end::before {
  background-color: #fff;
  border: 2px solid #c0392b;
}

/* 繋ぐ線の共通設定 */
.c-route-map__item::after {
  content: "";
  position: absolute;
  background-color: var(--accent-color);
  z-index: 1;
}

/* 最後の項目の後は線を消す */
.c-route-map__item:last-child::after {
  display: none;
}


/* === 2. PC表示（801px以上）: 横並び・縦書き === */
@media screen and (min-width: 801px) {
  .c-route-map-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
  }
  .c-route-map {
    justify-content: space-between;
    min-width: 800px;
  }
  .c-route-map__item {
    flex: 1;
    padding-top: 40px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
  }
  .c-route-map__item br {
    margin-bottom: 0.5em; /* 縦書き時の改行（列）間隔 */
  }
  
  /* 丸と線の配置（上部に配置して横へ伸ばす） */
  .c-route-map__item::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
  }
  .c-route-map__item.is-start::before,
  .c-route-map__item.is-end::before {
    width: 12px;
    height: 12px;
  }
  .c-route-map__item::after {
    top: 6px; /* 丸の中心高さ */
    left: 50%;
    width: 100%;
    height: 2px;
  }
}


/* === 3. スマホ表示（800px以下）: 縦並び・横書き === */
@media screen and (max-width: 800px) {
  .c-route-map-wrapper {
    padding: 10px 0;
  }
  .c-route-map {
    flex-direction: column;
  }
  .c-route-map__item {
    padding-left: 30px; /* 左の線と丸からの余白 */
    padding-bottom: 30px; /* 次の駅までの縦の間隔 */
    line-height: 1.4;
    letter-spacing: 0.05em;
  }
  .c-route-map__item:last-child {
    padding-bottom: 0;
  }
  
  /* スマホでの自然な改行のために br を少し調整 */
  .c-route-map__item br {
    display: block;
    content: "";
    margin-top: 2px;
  }

  /* 丸と線の配置（左側に配置して下へ伸ばす） */
  .c-route-map__item::before {
    top: 3px; /* テキスト1行目の高さに合わせて微調整 */
    left: 0;
    transform: none; /* PCのセンタリング指定を解除 */
    width: 14px;
    height: 14px;
  }
  .c-route-map__item.is-start::before,
  .c-route-map__item.is-end::before {
    width: 12px;
    height: 12px;
  }
  .c-route-map__item::after {
    top: 4px;
    left: 6px; /* 幅14pxの丸の中心点 (14÷2 - 2÷2 = 6) */
    width: 2px;
    height: 100%; /* 次の要素まで縦に伸ばす */
  }
}

/* -------------------------------------------
 * 6. 下層ページ・ブログ関連
 * ------------------------------------------- */

/*『人間ドックのお申し込み』*/

/* =========================================
   1. ブロークングリッド：画像エリア（左カラム）
========================================= */
.swell-broken-grid {
    position: relative;
    width: 100%;
    padding-bottom: 15%; 
    padding-left: 10%; 
    box-sizing: border-box;
   }

/* WP標準のfigureタグの余白をリセット */
.swell-broken-grid figure {
    margin: 0;
   }

/* メイン画像（奥・右上） */
.swell-broken-grid .bg-main-img {
    position: relative;
    z-index: 1;
    width: 100%;
   }
.swell-broken-grid .bg-main-img img {
    border-radius: 5px;
    display: block;
    width: 100%;
    height: auto;
   }

/* サブ画像1（手前・左下） */
.swell-broken-grid .bg-sub-img {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 60%;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    opacity: 0;
	animation: fadeUpSubImg 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
   }

.swell-broken-grid .bg-sub-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
   }

/* サブ画像2（手前・右下） */
.swell-broken-grid .bg-sub2-img {
    position: absolute;
    top: 300px;
    left: 400px;
    z-index: 3;
    width: 60%;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    opacity: 0;
	animation: fadeUpSubImg 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
   }

.swell-broken-grid .bg-sub2-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
   }

@media screen and (max-width: 799px) {
	.swell-broken-grid .bg-sub2-img{
		top: 220px;
		left: 170px;
	}
}

/* アニメーションの動きの定義（キーフレーム） */
@keyframes fadeUpSubImg {
    0% {
        opacity: 0;
        transform: translateY(40px); /* 40px下からスタート */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* 元の定位置へ */
    }
}

/* 2. テキストの重なり調整 (PC・タブレット表示時)※左カラム幅が60%以上であることを前提とした記述 */
@media screen and (min-width: 800px) {
    .overlap-text-box {
        position: relative;
        z-index: 10;
        margin-left: -15%; /* マイナスマージンで画像側に引き寄せる */
        padding-top: 10%;  /* テキストの開始位置を少し下げる */
    }
}

/* 3. レスポンシブ調整 (スマホ表示時) */
@media screen and (max-width: 799px) {
    .swell-broken-grid {
        padding-bottom: 25%;
        padding-left: 15%;
        padding-right: 5%;
        margin-bottom: 40px; /* 下のテキストとの余白 */
    }
    .swell-broken-grid .bg-main-img img {
        border-radius: 4px;
    }
    .swell-broken-grid .bg-sub-img {
        width: 65%;
        border-width: 3px;
        left: 0;
        bottom: 0;
    }
}

/* ========================================================
   ダウンロードカスタムアニメーション（Elegant Material）
   対象クラス： .custom-dl-element
======================================================== */

/* 1. SWELLデフォルトアニメーションの強制リセット */
.custom-dl-element img {
    /* 画像のズームエフェクトを無効化 */
    transition: none !important;
    transform: none !important;
}

/* 2. バナー要素のベース設定 */
.custom-dl-element {
    /* アニメーションの時間を設定（スッと動いてフワッと止まる高級なカーブ） */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.4s ease !important;
    display: block; /* リンク要素のレイアウト安定化 */
}

/* 3. PC環境（マウスホバー時）のインタラクション */
@media (hover: hover) and (pointer: fine) {
    .custom-dl-element:hover {
        /* 上に4pxフワッと浮き上がる */
        transform: translateY(-4px) !important;
        /* 柔らかく広がる影をつける */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
        /* 【追加要望】ほんの少し薄くなる（1.0が100%で、0.85は85%の濃さ） */
        opacity: 0.85 !important;
    }
}

/* 4. スマホ環境（指でタップ時）のインタラクション */
@media (hover: none) {
    .custom-dl-element:active {
        /* 指で押した瞬間に、少し奥に沈み込む（縮小させる） */
        transform: scale(0.96) !important;
        /* 押した時は影を消して、物理ボタンの「押し込み感」を強調 */
        box-shadow: none !important;
        /* タップ時も少し薄くして「押した」視覚的フィードバックを返す */
        opacity: 0.85 !important;
        /* タップ時の反応は素早く（0.1秒）して、キビキビ動かす */
        transition: transform 0.1s ease, opacity 0.1s ease !important;
    }
}

/* 4. コンタクト（連絡先）box設定 */
    .border-dock-num {
	    border-radius: 10px 10px 10px 10px;
	    padding-top: 50px !important;
	    padding-bottom: 50px !important;
	    display: flex;
	    justify-content: center;
	    border-width: 3px !important;
    }

    .contact-box{
	  position: relative;
	  overflow: hidden;
    }

/* 4.（表）人間ドック */
    .dock-table th{
	  font-size: 16px !important;
	  padding: 12px 0;
    }

/* 4. 小さめバナー */
@media screen and (min-width: 801px) {
    .reduction-banner{
		display: flex;
		margin: 0 auto;
	    width:80%;     
    }
}

/* ==============================================
   医院概要ページ
============================================== */

/* --- 医院概要用テーブルカスタマイズ(レスポンシブ) --- */
@media screen and (max-width: 800px) {
.profile-table td{
	font-size: .8rem!important;
	}
.profile-table th{
	min-width: 160px;
	max-width: 160px;
	width: 160px !important;
	}
}

/* --- 沿革テーブルカスタマイズ --- */
#main_content>div>div>div:nth-child(4)>div>figure>table>tbody>tr:nth-child(8)>th {
	border-style: none;
}
	

/* ==============================================
   理念・基本方針ページ
============================================== */
.p-clinic-concept {
    padding: 80px 20px;
}

/* --- 理念セクションのタイポグラフィ --- */
.p-clinic-concept .c-catch-en {
    text-align: center;
	color: var(--main-color);
    margin: 0!important;
	padding: 0!important;
}

.p-clinic-concept .c-catch-ja {
    text-align: center;
    margin-bottom: 24px;
}

.p-clinic-concept .c-catch-sub {
    text-align: center;
	color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* --- 各カードの見出し・リスト共通 --- */
.p-policy-card h3 {
    text-align: center;
    font-size: 18px;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.p-policy-card ul {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 1.5em; /* リストのインデント調整 */
}

.p-policy-card ul li {
    margin-bottom: 12px;
}

/* ==============================================
   PC表示用（801px以上）：ツリー構造・ボーダーなし
============================================== */
@media screen and (min-width: 801px) {
    .p-policy-columns {
        position: relative;
        padding-top: 50px; /* ツリーの線を描画する余白 */
    }

    /* ツリー構造：大元の縦線（理念から降りてくる線） */
    /* ★修正：高さを50pxにして、真ん中のカードまで「1本の線」で貫通させます */
    .p-policy-columns::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 50%;
        width: 1px;
        height: 60px;
        background-color: #888;
        transform: translateX(-50%);
    }

    /* ツリー構造：横線（少し隙間を開けるおしゃれな仕様） */
    .p-policy-columns::after {
        content: "";
        position: absolute;
        top: 25px;
        left: 16.66%; /* 左カラムの中央 */
        width: 66.66%; /* 右カラムの中央まで */
        height: 1px;
        background-color: #888;
    }

    .p-policy-card {
        position: relative;
        padding: 30px 20px 0; /* 上部にツリー線が入る余白 */
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* ツリー構造：各カードへ降りる縦線（左右のカード用） */
    .p-policy-card::before {
        content: "";
        position: absolute;
        top: -25px; /* 親の横線の位置からスタート */
        left: 50%;
        width: 1px;
        height: 25px;
        background-color: #888;
        transform: translateX(-50%);
    }

    /* ★追加：真ん中のカードの縦線だけを消す（親の大元の線に任せるため） */
    .p-policy-columns > .p-policy-card:nth-child(2)::before {
        display: none !important;
    }
}

/* ==============================================
   スマホ表示用（800px以下）：カード型・縦並び
============================================== */
@media screen and (max-width: 800px) {
    /* SWELLのカラムを強制的に1列にする */
    .p-clinic-concept .wp-block-columns.p-policy-columns {
        display: block !important;
    }
    
    .p-clinic-concept .wp-block-column {
        width: 100% !important;
        margin-bottom: 32px !important;
    }

    /* カードデザインの適用 */
    .p-policy-card {
        background-color: #ffffff;
        border-top: 4px solid var(--main-color);
        border-radius: 8px;
        padding: 24px 20px;
        box-shadow: 0 4px 15px rgba(77, 51, 44, 0.08); /* 優しい影 */
    }
	
	/* 一番最後のカードの下には余白を作らない */
    .p-clinic-concept .wp-block-column:last-child .p-policy-card {
        margin-bottom: 0;
    }

    /* 余白の微調整 */
    .p-clinic-concept {
        padding: 50px 15px;
    }
    .p-clinic-concept .c-catch-ja {
        font-size: 20px;
    }
}
