@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.2
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 必要ならここにコードを書く */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* 1023px以下 */
@media screen and (max-width: 1023px){
  /* 必要ならここにコードを書く */
}

/* 834px以下 */
@media screen and (max-width: 834px){
  /* 必要ならここにコードを書く */
}

/* 480px以下 */
@media screen and (max-width: 480px){
  /* 必要ならここにコードを書く */
}

/************************************
** ロゴとタイトルの位置や横並び
************************************/
.custom-header-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30%; /* ロゴとタイトルを上下調節 */
  left: 0;
  transform: translateY(-50%);
  margin-left: 40px; /* 左の余白調整 */
}

.custom-header-title-wrap img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.custom-header-title-wrap .site-title-text {
  font-size: 32px; /* これのみが効いている */
  font-family: 'HKReiKK', sans-serif;
  font-weight: normal;
}

@media screen and (max-width: 480px) {
  .custom-header-title-wrap {
    margin-left: 80px; /* ← 好きな大きさに調整可 */
  }
}

/************************************
** 隷書体フォントを読み込む
************************************/
@font-face {
  font-family: 'HKReiKK';
  src: url('/wp/wp-content/themes/cocoon-child-master/fonts/hkreikk.woff') format('woff'),
       url('/wp/wp-content/themes/cocoon-child-master/fonts/hkreikk.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/************************************
** サイトタイトルロゴテキストに適用
************************************/
.site-name,
.site-title-text {
  font-family: 'HKReiKK', sans-serif !important;
}

.site-name {
  font-size: 48px; /* ← これは効いていない */
  line-height: 1.2;
}

.site-title-text {
  font-size: 48px; /* ← これは効いていない */
  line-height: 1.2;
}

/* 本来のタイトル文字を非表示にする */
.site-name-text {
  display: none;
}

/************************************
** ヘッダーコンテナ調整
************************************/
.header-in {
  position:;
}

.header-container {
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 9999;
}

.admin-bar .header-container {
  top: 32px; /* ログインバー補正 */
}

body {
  padding-top: 40px; /* 固定ヘッダー分 */
}


/************************************
** 全幅設定
************************************/
.wrap,
.content,
.article,
.entry-content,
.container,
#main,
.main,
#content,
.l-entry,
.l-content,
.l-inner,
.l-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body,html {
  padding: 0 !important;
  margin: 0 !important;
}

/************************************
** グローバルメニューのフォントと背景
************************************/
#navi .navi-in > ul > li > a {
  font-size: 16px !important;
  font-weight: normal !important;
  color: #ffffff !important;
}

#navi {
  background-color: #88abda !important;
}


/************************************
** 固定ページの日付非表示
************************************/
.home .date-tags,
.home .update-date {
  display: none !important;
}

/************************************
** フッター設定
************************************/
.footer-program {
  font-size: 16px !important; /* PCサイズ */
  text-align: center !important;
}

.footer-program span {
  font-size: 14px !important;
}

@media screen and (max-width: 767px) {
  .footer-program {
    font-size: 14px !important;
  }
  .footer-program span {
    font-size: 12px !important;
  }
}

/************************************
/* Smart Slider 3 のメインコンテナの余白をなくす例 */
/************************************
/* 
.n2-ss-slider-1,
.n2-ss-slider-2,
.n2-ss-slider-3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
ではだめで個別に書かないといけないが、.
n2-ss-slider-3 だけでよさそう */


.n2-ss-slider-3 {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    padding-top: 0 !important;
    padding-bottom: 0rem !important;
}




/************************************
** MetaSlider設定 キャプション背景 使用せず
************************************/
#metaslider-id-1877 .caption-wrap {
  background: rgba(0, 0, 0, 0.1) !important;
}



/************************************
** タイトルの上が隠れてしまう問題を解決
同時に左右インデントを設ける。記事も同様
***********************************/

/* 固定ページタイトル　PC */
.page-title-space {
  margin-top: 7em !important;
  padding-left: 1em;           /* 左余白 */
  padding-right: 1em;          /* 右余白 */
}

/* 固定ページタイトル　スマホ */
@media screen and (max-width: 767px) {
  .page-title-space {
    margin-top: 3em !important;
	padding-left: 0.5em;           /* 左余白 */
    padding-right: 0.5em;          /* 右余白 */
  }
}

/* 固定ページ本文　PC */
.page-space {
  margin-top: 2em !important;
  padding-left: 1em;           /* 左余白 */
  padding-right: 1em;          /* 右余白 */
}

/* 固定ページ本文　スマホ */
@media screen and (max-width: 767px) {
  .page-space {
    margin-top: 0em !important;
	padding-left: 0.5em;           /* 左余白 */
    padding-right: 0.5em;          /* 右余白 */
  }
}

/* 投稿タイトル　PC */
.post-title-space {
  margin-top: 7em !important;
  padding-left: 1em;           /* 左余白 */
  padding-right: 1em;          /* 右余白 */
}

/* 投稿タイトル　スマホ */
@media screen and (max-width: 767px) {
  .post-title-space {
    margin-top: 3em !important;
	padding-left: 0.5em;           /* 左余白 */
    padding-right: 0.5em;          /* 右余白 */
  }
}

/* 投稿本文　PC */
.post-space {
  margin-top: 2em !important;
  padding-left: 1em;           /* 左余白 */
  padding-right: 1em;          /* 右余白 */
}

/* 投稿本文　スマホ */
@media screen and (max-width: 767px) {
  .post-space {
    margin-top: 0em !important;
	padding-left: 0.5em;           /* 左余白 */
    padding-right: 0.5em;          /* 右余白 */
  }
}

/************************************
** サイトロゴにサイトのホームへのリンク、Coccon設定、アクセス解析に記載部分あり
した後のリンクの色と下線をもとに戻す
***********************************/
.site-title-text a {
  text-decoration: none;     /* 通常時の下線をなくす */
  color: inherit;            /* 通常時の色を親要素と同じにする */
  transition: color 0.3s ease; /* なめらかに色が変わる */
}

.site-title-text a:hover,
.site-title-text a:focus,
.site-title-text a:active {
  color: #007acc;  /* お好みの色に変更（例：やや明るめの青） */
}


/************************************
SmartSlider の矢印、スマホのみ大きくして透明度もかえる
***********************************/

@media screen and (max-width: 767px) {
  /* 矢印ボタンの背景を大きくし、色と透明度も調整 */
  #n2-ss-3-arrow-previous,
  #n2-ss-3-arrow-next {
    width: 64px !important;
    height: 64px !important;
    background-color: rgba(0, 0, 0, 0.2) !important;  /* 半透明の黒背景 */
    border-radius: 6px !important;                    /* 角丸にしたい場合 */
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  /* 矢印画像そのものの大きさ調整 */
  #n2-ss-3-arrow-previous img,
  #n2-ss-3-arrow-next img {
    width: 36px !important;
    height: 36px !important;
  }
}


/* ブランドカラー設定 */
:root {
  --brand: #C4D6FF;         /* ボタンの基調色（淡い青） */
  --brand-ink: #0A2A6B;     /* 文字色：濃い紺でコントラスト確保 */
  --brand-edge: #9BB8FF;    /* ふち色：境界を認識しやすく */
}

/* ヒーローCTAのベース（既存の hero-cta を活かします） */
.hero-cta { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .wp-block-button__link{
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 2px solid transparent;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  text-decoration: none;
  backdrop-filter: saturate(1.2) blur(2px); /* 写真上で視認性UP（未対応でも無害） */
}

/* 1) メイン（塗り）ボタン：ブランド色＋濃紺テキストで強コントラスト */
.hero-cta .btn-primary .wp-block-button__link{
  /* color-mix が使える環境ではわずかに透けさせて写真となじませる */
  background: color-mix(in srgb, var(--brand) 92%, transparent);
  color: var(--brand-ink) !important;
  border-color: var(--brand-edge);
}
/* color-mix 非対応ブラウザ用フォールバック */
@supports not (color-mix(in srgb, white 50%, black 50%)) {
  .hero-cta .btn-primary .wp-block-button__link { background: rgba(196,214,255,.92); }
}

/* 2) アウトライン：暗めのガラス面＋ブランド色の文字＆枠線 */
.hero-cta .btn-outline .wp-block-button__link{
  background: rgba(0,0,0,.20);      /* 写真が明るくても文字が沈みにくい */
  color: var(--brand) !important;    /* ブランド色の文字 */
  border-color: var(--brand);        /* ブランド色の枠線 */
}

/* ホバー（軽い浮き上がり） */
@media (hover:hover){
  .hero-cta .btn-primary .wp-block-button__link:hover{
    filter: brightness(0.98);
    transform: translateY(-1px);
  }
  .hero-cta .btn-outline .wp-block-button__link:hover{
    /* うっすらブランド色を足す */
    background: color-mix(in srgb, var(--brand) 25%, rgba(0,0,0,.20));
    transform: translateY(-1px);
  }
}

/* 固定ヘッダー対策の既存値を活かしつつ、#map はさらに上で止める */
:root { --header-offset: 72px; }  /* すでにあればこの行は不要 */

#map { 
  /* 既存のオフセット + 追加分（例：+48px） */
  scroll-margin-top: calc(var(--header-offset) + 48px);
}
#contact {
  scroll-margin-top: calc(var(--header-offset) + 72px);
}


/* モバイルはより多めに止めたい場合72px 80px 88px… と 8px刻み */
@media (max-width: 767px){
  #map { scroll-margin-top: calc(var(--header-offset) + 60px); }
}
@media (max-width: 767px){
  #contact {
    scroll-margin-top: calc(var(--header-offset) + 16px);
  }
}


/* 診療カレンダー見出しを“超シンプル＋中央”に */
.h-simple{
  text-align: center !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: .6em 0 .4em !important;
  color: inherit !important;
  display: block;
}
/* テーマや装飾スタイルの擬似要素を無効化 */
.h-simple::before,
.h-simple::after{ content: none !important; }



/* シンプル見出し（他節と揃える） */
.h-simple{
  text-align:center!important;background:none!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:.6em 0 .4em!important;
}
.h-simple::before,.h-simple::after{content:none!important}

/* 診療時間テーブル（以前の見た目に近い最小スタイル） */
.table-hours{margin:10px auto 0;border-collapse:collapse;text-align:center}
.table-hours th,.table-hours td{border:1px solid #ccc;padding:6px 8px;white-space:nowrap}
.table-hours caption{caption-side:top;font-weight:700;margin-bottom:.4em}

/* アンカーの停止位置（必要なら既存の値で調整） */
:root { --header-offset: 72px; } /* すでにあれば不要 */
#contact { scroll-margin-top: calc(var(--header-offset) + 72px); } /* 数値は好みで */



/* 診療案内テーブルの曜日ヘッダー色を以前と同じに */
.table-hours thead th{ background:#f0f0f0; }         /* 平日 */
.table-hours thead th:nth-child(1){ background:#f9d5d5; } /* 日 */
.table-hours thead th:nth-child(7){ background:#d5e5f9; } /* 土 */

/* 境界と余白も以前の数値に合わせる */
.table-hours th,
.table-hours td{ border:1px solid #ccc; padding:5px; }


/* ハンバーガー　babamenu を強制上書き */
#header #header-in #babamenu-fab{
  width: 40px !important;
  height: 40px !important;
  background: #88abda !important;  /* 医院色 */
  border-radius: 9px !important;
}
#header #header-in #babamenu-fab::before{
  font-size: 20px !important;
}

/* ボタン影を完全に無効化（hover時も含めて） */
#babamenu-fab,
#header #header-in #babamenu-fab,
#babamenu-fab:hover,
#babamenu-fab:focus {
  box-shadow: none !important;
}

#babamenu-fab{
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,.08); /* 任意。いらなければ削除 */
}