@charset "utf-8";


/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');

/*slick.cssの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css");

/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("slide.css");
@import url("inview.css");


/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）
---------------------------------------------------------------------------*/
:root {

	--primary-color: #9de3dd;			/*テンプレートのメインまたはアクセントとなる色*/
	--primary-inverse-color: #261212;		/*primary-colorの対として使う色*/

	--global-space: 5vw;	/*サイト内の余白の一括管理用。画面幅100%＝100vwです。*/
}


/*animation1のキーフレーム設定（開閉ブロックのアニメーションに使用）
---------------------------------------------------------------------------*/
@keyframes animation1 {
	0% {left: -200px;}
	100% {left: 0px;}
}


/*opa1のキーフレーム設定（汎用的）
---------------------------------------------------------------------------*/
@keyframes opa1 {
	0% {opacity: 0;}
	100% {opacity: 1;}
}




/*全体の設定
---------------------------------------------------------------------------*/
body * {box-sizing: border-box;}

html, body {
    margin: 0;           /* HTMLとBODYの両方のマージンをなくす */
    padding: 0;          /* HTMLとBODYの両方のパディングをなくす */
    width: 100%;         /* 幅を100%に設定 */
    height: 100%;        /* 高さを100%に設定 */
    overflow-x: hidden;
}

body {
    box-sizing: border-box;
    font-family: 'Monotype Corsiva', 'MS 明朝';
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    -webkit-text-size-adjust: none;
    color: var(--primary-inverse-color);
    line-height: 2;
    animation: opa1 0.2s 0.5s both;
    background-image: url("../images/back4.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative; /* オーバーレイを重ねるための基準点 */
}

.background-overlay-white {
    /* 画面全体にオーバーレイを固定 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* rgba()で透明度を調整した白色を設定 */
    background-color: rgba(255, 255, 255, 0.6); /* 50%透明な白色 */
    
    /* コンテンツの下に配置 */
    z-index: -1;
}

.content {
    /* オーバーレイの上に表示するために`z-index`を設定 */
    position: relative;
    z-index: 1;
    /* コンテンツのスタイル */
    color: #000; /* テキストの色を黒にする（白い背景に合わせる） */
}




/*リセット*/
figure {margin: 0;}
dd {margin: 0;}
nav,ul,li,ol {margin: 0;padding: 0;}
nav ul {list-style: none;}
input {font-size: 1rem;}
section li {margin-left: 1rem;}

/*table全般の設定*/
table {border-collapse:collapse;}

/*画像全般の設定*/
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}

/*videoタグ*/
video {max-width: 100%;}

/*iframeタグ*/
iframe {width: 100%;}

/*sectionが続く場合*/
section + section {
	margin-top: 4vw;	/*sectionの上に空けるスペース*/
}



/*背景白く
---------------------------------------------------------------------------*/
.box {
    background-color: rgba(255, 255, 255, 0.6); /* 半透明の白 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*titleフォント
---------------------------------------------------------------------------*/

/*タイトル1*/
.title1 {
	font-size: 1.3rem;		/*文字サイズ*/
	letter-spacing: 0.1em;	/*文字間隔を少しだけ広くする*/
	font-weight: normal;	/*デフォルトの太字を標準に*/
}




/* タイトル2 */
.title2 {
    font-size: 1.0rem;         /* 文字サイズ */
    font-weight: bold;         /* 太字にする */
    color: #003B46;           /* 文字色 */
    line-height: 0.8;         /* 行間を狭める（1.2倍） */
}


.space {
    height: 40px;  /* スペースの高さ */
}


/*text2
---------------------------------------------------------------------------*/

.text2  {
margin-bottom: 10px; /* 下のスペース */
padding: 0 20px;  /* 左右に20pxのパディングを追加 */
}

/* フォントの指定 */

.text2 p {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 18px;
}




/* 画面幅800px以下の場合 */
@media screen and (max-width: 800px) {
    .text2 .text {
        font-size: 16px;  /* 小さくする */
    }
    
    .text2  p {
        font-size: 16px;  /* 同様に小さくする */
    }
}


/* 左右にスペースのある本文 */
.about-text {
    padding: 0 60px; /* 左右に40pxの余白を追加 */
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    
}

@media screen and (max-width: 800px) {
    .about-text {
        font-size: 14px;  /* 画面が小さくなった時に文字サイズを小さくする */
        padding: 0 20px;  /* スマホ画面では左右の余白を小さくする */
    }
}


.text3 {
    text-align: left;  /* 左揃え */
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 1.2rem;  /* サイズ調整 */
    max-width: 90%;      /* 最大幅を設定（必要に応じて調整） */
    margin: 0 auto;     /* 画面中央に配置 */
    display: block;     /* ブロック要素にして中央寄せ */
}

.text3 .p2 {
    text-align: center;              /* テキストの内容を中央揃えに */
    font-weight: bold;
    font-size: 1.3em;
    color: #333;
    position: relative;
    white-space: nowrap;
    margin: 0 auto;                  /* ブロック全体を中央に配置 */
    margin-bottom: 1rem; /* 下に少しスペースを追加 */
}

.text3 .p2::after {
    content: '';                        /* 擬似要素に空の内容を設定 */
    position: absolute;                 /* 絶対位置 */
    bottom: 0;                          /* 下に配置 */
    left: 0;                            /* 左端に配置 */
    width: 100%;                         /* 文字幅に合わせて横幅を設定 */
    height: 5px;                        /* 下線の太さ */
    background: #f5f37d; /* グラデーションを下線に適用 */
    border-radius: 5px;                 /* 丸みをつけておしゃれな感じに */
    
}



/* スマホ画面用のスタイル */
@media screen and (max-width: 800px) {
    .text3 {
        font-size: 15px;  /* 画面が小さくなった時に文字サイズを小さくする */
         margin: 0 auto;     /* 画面中央に配置 */
        padding: 0 5px;  /* スマホ画面では左右の余白を小さくする */
        max-width: 95%;  /* テキストが画面幅に合わせて広がる */
    }
    
    .text3 .p2 {
    	font-size: 1.0rem;
    	text-align: center;  
    }


}


.text4 {
    text-align: center;  /* 左揃え */
    font-size: 1.2rem;  /* サイズ調整 */
    max-width: 90%;      /* 最大幅を設定（必要に応じて調整） */
    margin: 0 auto;     /* 画面中央に配置 */
    display: block;     /* ブロック要素にして中央寄せ */
}
@media screen and (max-width: 800px) {
    .text4 {
        font-size: 16px;  /* 画面が小さくなった時に文字サイズを小さくする */
        padding: 0 20px;  /* スマホ画面では左右の余白を小さくする */
    }
}




.highlight-text {
  background-color: #fff9c4; /* やさしい黄色 */
  padding: 0.2em;
  border-radius: 0.2em;
}

.red-text {
  color: #d32f2f; /* 落ち着いた赤 */
  font-weight: bold;
}


.bold-text {
    font-weigt: bold;  /* 太字にする */
}


/* リンクの色を青文字に変更 */
a.blue-link {
  color: #007bff; /* 青色 */
  text-decoration: none; /* アンダーラインを削除 */
  transition: color 0.3s ease, filter 0.3s ease; /* 色と輝きをスムーズに変更 */
}

/* ホバー時に明るくなる */
a.blue-link:hover {
  color: #66b3ff; /* 明るい青色 */
  filter: brightness(1.2); /* 明るくする */
}






/* 電話番号のフォント */
.phone-link {
    font-family: 'Arial', serif; /* フォントをArialに変更 */
    font-size: 2.0rem;  /* サイズを調整 */
    font-weight: bold;  /* 太字にする */
    color: #916b01;  /* 色を変更（例: 黒） */
    max-width: 80%;      /* 最大幅を設定（必要に応じて調整） */
    text-decoration: none;  /* 下線を除去 */
    text-align: center;  /* 中央揃え */
    margin: 0 auto;     /* 画面中央に配置 */
    display: block;     /* ブロック要素にして中央寄せ */
    letter-spacing: 0.1em;  /* 文字間を開ける */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  /* 文字の影を追加 */
}

.phone-link i {
    margin-right: 10px;  /* アイコンとテキストの間にスペースを追加 */
}
/*リンク（全般）設定
---------------------------------------------------------------------------*/
a {
	color: #000;		/*リンクテキストの色*/
	transition: 0.3s;	/*マウスオン時の移り変わるまでの時間設定。0.3秒。*/
}
a:hover {
	filter: brightness(1.2);		/*マウスオン時に少し明るくする*/
}


/*container（フッター以外を囲むブロック）
---------------------------------------------------------------------------*/
#container {
	padding: 0 var(--global-space);	/*上下、左右へのcontainer内の余白。左右の余白はcss冒頭で指定しているglobal-spaceを読み込みます*/
}


/*contents（mainを囲むブロック）
---------------------------------------------------------------------------*/
#contents {
	padding: 3vw 0 5vw;	/*上、左右、下へのcontents内の余白。画面幅100%＝100vwです。*/
}

/*トップページのコンテンツ*/
.home #contents {
	padding-top: calc(3vw + 40px);	/*スライドショー上のボタンが画像下に移動するので重ならないよう適当にpxを指定しています*/
}

/*ヘッダー（ロゴや電話番号が入っている最上段のブロック）
---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
header {
    margin-top: 0; /* 上の余白を0に設定 */
    margin-left: 0;  /* 左側のマージンを0に設定 */
    padding-left: 0; /* 左側のパディングを0に設定 */
    display: flex;	/*ヘッダー内にあるボックスを横並びにする*/
    justify-content: space-between;
    align-items: center;
	padding: 10px 0; /* ✅ 上下の余白を狭くする */
}

#logo img {
    margin-left: 0;  /* 左側のマージンを0に設定 */
    padding-left: 0; /* 左側のパディングを0に設定 */
    width: 100%; /* 親要素の100%の幅に設定 */
    max-width: 100px; /* 最大幅を300pxに設定 */
    min-width: 50px; /* 最小幅を150pxに設定 */
    height: auto; /* 高さは自動で調整 */
}

/* 縮小画面時（電話番号と同じように中央揃え） */
@media screen and (max-width: 800px) {
    header {
        flex-direction: column; /* ヘッダー内の要素を縦に並べる */
        justify-content: center; /* 横方向に中央揃え */
        text-align: center; /* テキストやロゴを中央揃え */
    }

    #logo img {
        width: 70%; /* 幅を70%に設定して、ロゴを縮小 */
        max-width: 250px; /* 最大幅を250pxに設定 */
        min-width: 150px; /* 最小幅を150pxに設定 */
    }
}


/*電話番号ブロック*/
address {
	font-style: normal;
	line-height: 1.2;	/*行間を狭くする*/
	text-align: center;	/*文字をセンタリング*/
	padding: 10px 0;	/*上下、左右へのブロック内の余白*/
	margin-top: 30px;	/*上に空けるスペース。文字サイズボックスに重ならないように。*/
}

/*電話番号*/
address .tel {
	font-size: 2rem;	/*文字サイズを２倍に。*/
	color: var(--primary-inverse-color);	/*文字色。css冒頭で指定しているprimary-colorを読み込みます*/
}
address.margin-top-reset {margin-top: 0;}

	/*画面幅900px以下の追加指定*/
	@media screen and (max-width:800px) {
	
	/*ヘッダーブロック*/
	header {
		flex-direction: column;	/*ヘッダー内にあるボックスを縦並びにする*/
	}
	
	/*ロゴ画像*/
	#logo img {
		margin-top: 10px;	/*ロゴの上に空けるスペース*/
	}
	
	/*電話番号ブロック*/
	address {
		margin-top: 0;	/*マージンのリセット*/
	}
	
	}/*追加指定ここまで*/

/*========================================================================
    メニューブロック全体：初期設定
==========================================================================*/

/* 共通のナビゲーションスタイル */
#menubar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#menubar a {
    display: block;
    text-decoration: none;
    color: #000000;
}
#menubar span {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.1em;
    opacity: 0.6;
}
a.ddmenu::before {
    font-family: "Font Awesome 5 Free";
    content: "\f078";
    font-weight: bold;
    font-size: 0.7rem;
    padding-right: 0.5rem;
}

/* ロゴの設定 */
#menubar #logo {
    display: flex;
    align-items: flex-start;
    height: 60px;
}
#menubar #logo img {
    height: 50px;
    width: auto;
    margin-top: -7px;
}
#menubar_hdr.display-none {
    display: none;
}

/*========================================================================
    大きな端末用（PCなど）
==========================================================================*/

/* メニューブロックを画面上部に固定 */
.large-screen #menubar {
    position: sticky;
    top: 0;
    z-index: 2;
    transition: opacity 0.3s;
    line-height: 1.5;
    opacity: 1;
}

/* メニュー項目を横並びにする */
.large-screen #menubar > nav > ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

/* メニュー項目（li）の設定 */
.large-screen #menubar li {
    flex: 1;
    position: relative;
    text-align: center;
    white-space: nowrap;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* リンク（a要素）の設定 */
.large-screen #menubar li a {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 0.8rem 0;
    height: 100%;
}
.large-screen #menubar li a:hover {
    filter: brightness(1.2);
}

/* ドロップダウンメニューの初期設定（全ドロップダウンを非表示に） */
.large-screen #menubar li.dropdown > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
}

/* ホバー時に1段目を表示 */
.large-screen #menubar li.dropdown:hover > ul {
    display: block;
}

/* 治療案内のサブメニュー（2段目）の初期設定 */
.large-screen #menubar li.service-category > ul {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10000;
}

/* ホバー時に2段目を表示 */
.large-screen #menubar li.service-category:hover > ul {
    display: block;
}

/* ドロップダウン内のリンクの余白 */
.large-screen #menubar li.dropdown ul li a {
    padding: 0.6rem 1rem !important;
}


/* メニューをデフォルトで非表示 */
.small-screen #menubar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 10;
    padding-top: 90px;
    background: var(--primary-color);
    color: var(--primary-inverse-color);
    animation: animation1 0.2s both;
}

/* メニュー表示時のクラス */
.small-screen #menubar.display-block {
    display: block;
      /* その他のスタイル... */
  height: 100%;
  padding-top: 90px;
  padding-bottom: 60px; /* 👈 固定ボタンの高さに合わせて調整 */
  z-index: 101;
}
.small-screen #menubar li {
    border: 1px solid #fff;
    margin: 1rem;
    border-radius: 5px;
    text-align: center;
}
.small-screen #menubar li a {
    color: inherit;
    padding: 1rem 3rem;
}
.small-screen #menubar li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ドロップダウンの開閉制御 */
.small-screen #menubar li.dropdown > ul {
    display: none;
}
.small-screen #menubar li.dropdown.open > ul {
    display: block;
}
.small-screen #menubar li.service-category > ul {
    display: none;
}
.small-screen #menubar li.service-category.open > ul {
    display: block;
}


/*小さな端末用の開閉ブロック
---------------------------------------------------------------------------

/* 小さな端末用設定 (mobile) */
.small-screen #menubar #logo {
    display: none;
}

.small-screen #menubar {
  height: auto;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* メニュー表示時 */
.small-screen #menubar.display-block {
  position: fixed;
  overflow: auto;
  z-index: 10;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  padding-top: 90px;
  background: var(--primary-color);
  animation: animation1 0.2s both;
  color: var(--primary-inverse-color);
}

/* ▼ ドロップダウン全体の親に相対位置を指定 */
.small-screen #menubar .dropdown {
  position: static;
}

/* ▼ サブメニュー：初期状態は非表示＆親の下に絶対配置 */
.small-screen #menubar .dropdown-content,
.small-screen #menubar .service-category,
.small-screen #menubar .sub-category {
  display: none;
  position: static;
  color: var(--primary-inverse-color);
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: var(--primary-color);
}

/* ▼ クリックで開かれたときに表示 */
.small-screen #menubar .dropdown.open > .dropdown-content {
  display: block;
}

.small-screen #menubar .service-category.open {
  display: block;
}

.small-screen #menubar .sub-category.open {
  display: block;
}

/* ▼ サブメニュー内リスト：縦並びに */
.small-screen #menubar .dropdown-content ul,
.small-screen #menubar .service-category ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: block;
}

/* ▼ サブメニューの各項目 */
.small-screen #menubar .dropdown-content li,
.small-screen #menubar .dropdown-content a,
.small-screen #menubar .service-category li {
  display: block;
  position: static;
  padding: 0.8rem 1rem;
  color: var(--primary-inverse-color);
  text-decoration: none;
  white-space: nowrap;
}

.small-screen #menubar .dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ▼ メニュー1個あたりの設定 */
.small-screen #menubar li {
  border: 1px solid #fff;
  margin: 1rem;
  border-radius: 5px;
  text-align: center;
  position: static;
}


/* ▼ 矢印アイコン */
.small-screen a.ddmenu::before {
  font-family: "Font Awesome 5 Free";
  content: "\f078";
  font-weight: bold;
  font-size: 0.7rem;
  padding-right: 0.5rem;
}

/* ▼ ホバー時の色変化 */
.small-screen #menubar li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ▼ .open が付いたときに表示 */
.small-screen .dropdown-content.open,
.small-screen .service-category.open > .sub-category {
  display: block;
}




/*========================================================================
    ３本バー（ハンバーガー）アイコン設定
==========================================================================*/

/* ３本バーを囲むブロック */
#menubar_hdr {
    animation: opa1 0.3s 0.5s both;
    position: fixed;
    z-index: 1001;
    cursor: pointer;
    top: 2vw;
    right: 2vw;
    width: 50px;
    height: 50px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s;
    background: transparent;
}
#menubar_hdr div {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#menubar_hdr div span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #916b01;
    border-radius: 2px;
    transition: all 0.5s ease-in-out;
    position: absolute;
}
#menubar_hdr div span:nth-child(1) { top: 0; }
#menubar_hdr div span:nth-child(2) { top: 50%; transform: translateY(-50%); }
#menubar_hdr div span:nth-child(3) { bottom: 0; }
#menubar_hdr.ham div span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
#menubar_hdr.ham div span:nth-child(2) { opacity: 0; }
#menubar_hdr.ham div span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }




/*mainブロック
---------------------------------------------------------------------------*/

/*main
    padding-left: 5px;
    padding-right: 5px; */

/*h2見出し*/
main h2 {
	display: flex;
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	justify-content: space-between;
	white-space: nowrap;
	align-items: center;
	margin: 0 0 2rem;		/*h2の外側にとるスペース。上、左右、下への順番。*/
	font-size: 1.8rem;		/*文字サイズ*/
	color: var(--primary-inverse-color);
	position: relative;		/*ulineを配置する為に必要な指定*/
	font-weight: bold;	/*デフォルトの太字を標準に*/
	border-bottom: 3px solid rgba(145, 107, 1, 0.4);/*薄い色の線の幅、線種、色*/
	letter-spacing: 0.1em;	/*文字間隔を少しだけ広くする*/
	padding: 0 20px;  /* 左右に20pxのパディングを追加 */
	margin-top: 100px; /* 上のスペースを20pxに設定（必要に応じて調整） */
}


/*右側の装飾文字の設定*/
main h2 .small {
	display: block;
	font-size: 0.6em;	/*文字サイズを親要素の60%に*/
	opacity: 0.5;		/*透明度。色が50%出た状態。*/
}

/*h2のテキストをセンタリングする場合*/
main h2.c {
	display: block;
	border: none;		/*下線を非表示に*/
	text-align: center;	/*テキストをセンタリング*/
	font-size: 2rem;	/*文字サイズを２倍に*/
}



/*h3見出し*/
main h3 {
    font-size: 1.5rem;  /* 文字サイズ */
    letter-spacing: 0.1em;  /* 文字間隔を少し広くする */
    font-weight: normal;  /* デフォルトの太字を標準に */
    position: relative;
    padding-left: 15px;  /* 文字と縦棒の間の余白 */
}

main h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 10px;  /* 縦棒の幅 */
    background: linear-gradient(180deg, #3498DB, #5DADE2, #AED6F1);  /* グラデーション */
}

/*h3見出し*/
main .h3-2 {
    font-size: 1.5rem;  /* 文字サイズ */
    letter-spacing: 0.1em;  /* 文字間隔を少し広くする */
    font-weight: normal;  /* デフォルトの太字を標準に */
    position: relative;
    padding-left: 15px;  /* 文字と縦棒の間の余白 */
}

main .h3-2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 10px;  /* 縦棒の幅 */
    background: linear-gradient(180deg, #B6DCF6, #FFFFFF);/* グラデーション */
}



/* スマホ画面用のスタイル */
@media screen and (max-width: 800px) {
    /* h2 見出し */
    main h2 {
        font-size: 1.4rem; /* フォントサイズを小さくする */
        margin-top: 50px; /* 上のスペースを調整 */
    }

    main h2 .small {
        font-size: 0.5em; /* 小さい文字のサイズを調整 */
    }

    /* h3 見出し */
    main h3 {
        font-size: 1.2rem; /* フォントサイズを小さくする */
    }

    /* h3-2 見出し */
    main .h3-2 {
        font-size: 1.2rem; /* フォントサイズを小さくする */
    }
}





/* h4見出し */
main h4 {
    padding: 0 40px;  /* 左右に20pxのパディングを追加 */
    font-size: 28px;         /* 基本文字サイズ */
    letter-spacing: 0.1em;     /* 文字間隔を少しだけ広くする */
    font-weight: bold;         /* 太字にする */
    color: var(--primary-inverse-color);            /* 文字色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 影を追加 */
}

main h4 .red-text {
  color: #d32f2f; /* 落ち着いた赤 */
  font-weight: bold;
}



/* アルファベット用のスタイル */
main h4 .alphabet {
    font-family: 'Playfair Display', serif; /* Playfair Display フォント */
    font-size: 1.2rem;                      /* アルファベット用にサイズを調整 */
}

/* 数字用のスタイル */
main h4 .number {
    font-family: 'Playfair Display', serif; /* ゴシック系フォント */
    font-size: 2.0rem;                /* 数字のサイズ調整 */
}

/* 日本語用のスタイル */
main h4 .japanese {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 28px;                    /* 日本語のサイズ調整 */
}

/* アルファベット用のスタイル */
main h4 .alphabet {
    font-family: 'Playfair Display', serif; /* Playfair Display フォント */
    font-size: 1.3rem;                      /* アルファベット用にサイズを調整 */
}

/* 数字用のスタイル */
main h4 .number {
    font-family: 'Playfair Display', serif; /* ゴシック系フォント */
    font-size: 2.0rem;                /* 数字のサイズ調整 */
}

/* 日本語用のスタイル */
main h4 .japanese {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 1.8rem;                    /* 日本語のサイズ調整 */
}


/* 中央揃えのスタイル */
main h4 .reserv_center {
text-align: center;  /* 中央揃え */
font-family: 'Monotype Corsiva', serif; /* 明朝体 */
font-size: 1.8rem;                    /* 日本語のサイズ調整 */
/* 画面の中央に配置 */
    display: block;  /* ブロック要素にして中央寄せ */
    margin: 0 auto;  /* 左右のマージンを自動で設定 */
}

.reserv_center2 {
  display: inline-block;
  padding: 8px 16px; /* 余白を少なく */
  background-color: #FFB900; /* 背景色を設定 */
  color: #fff; /* 文字色を白に設定 */
  border: 1px solid #fff; /* 境界線を追加 */
  border-radius: 8px; /* 角を丸くする */
  text-decoration: none; /* もしリンクの場合、下線を消す */
  font-weight: bold; /* 文字を太くする */
  font-size: 18px; /* 文字のサイズを調整 */
  text-align: center; /* テキストを中央揃えにする */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影を追加して立体感を出す */
  transition: all 0.3s ease; /* ホバー時のアニメーションを滑らかに */
  display: block;  /* ブロック要素にして中央寄せ */
  white-space: nowrap;
}

.reserv_center2:hover {
  transform: translateY(-2px); /* 少し上に浮かせる */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* 影を強くする */
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.4);
  filter: brightness(1.2);
}




/* 画面が小さくなったときの調整 */
@media screen and (max-width: 800px) {
    /* h4見出し */
    main h4 {
        font-size: 1.3rem;  /* 基本の文字サイズを小さくする */
    }

    /* アルファベット用のスタイル */
    main h4 .alphabet {
        font-size: 1rem;    /* アルファベットのサイズを小さくする */
    }

    /* 数字用のスタイル */
    main h4 .number {
        font-size: 1.6rem;  /* 数字のサイズを少し小さくする */
    }

    /* 日本語用のスタイル */
    main h4 .japanese {
        font-size: 1.3rem;  /* 日本語のサイズを少し小さくする */
    }
    /* 中央揃えのスタイル */
    main h4 .reserv_center {
    	font-size: 1.3rem;  /* 日本語のサイズを少し小さくする */
    }
   }


/* h5見出し */
main h5 {
    font-size: 1.5rem;  /* 文字サイズ */
    letter-spacing: 0.1em;  /* 文字間隔を少し広くする */
    font-weight: normal;  /* デフォルトの太字を標準に */
    position: relative;
    padding-left: 15px;  /* 文字と縦棒の間の余白 */
}


main h6 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;  /* rem/px のほうが反映されやすい */
    }



/* 予約のボタン 
---------------------------------------------------------------------------*/

/* リストのスタイル */
.mainimg-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 1000;
  background: #333;
  white-space: nowrap; /* 文字を折り返さない */
  flex-wrap: nowrap; /* ボタンを折り返さないように変更 */
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.3);
    /* ボタンの余白に加えて、セーフエリア分の余白を確保 */
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
}

/* 各ボタンの共通スタイル */
.mainimg-btn li {
  border-radius: 0;
  padding: 8px 16px;
  border: 1px solid #fff;
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  text-align: center;
  flex-grow: 1;
  margin: 0 -1px 0 0;
}


/* 個別のボタンの色 */
.mainimg-btn .btn-color1 {
  background:#06c755;
}

.mainimg-btn .btn-color2 {
  background: #7aadd6;
}

.mainimg-btn .btn-color3 {
  background: #FFB900;
}

/* ボタン内のリンク */
.mainimg-btn li a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(16px, 3vw, 18px);
  display: flex;
  align-items: center;
  font-weight: bold;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  justify-content: center;
  text-shadow: none;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* アイコンの調整 */
.mainimg-btn li i {
  font-size: 16px;
  margin-right: 6px;
}

/* 各ボタンの共通ホバースタイル */
.mainimg-btn li:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.4);
  filter: brightness(1.2);
}

/* クリック時のエフェクト */
.mainimg-btn li:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/*list-half（左右にわかれたボックス）
---------------------------------------------------------------------------*/
/*画像ブロック*/
.list-half .image {
    width: 60vw;      /* 幅を60%に固定 */
    height: 300px;    /* 高さを固定（必要に応じて調整） */
    object-fit: cover; /* 縦横比を保ちながら画像が枠に収まるようにリサイズ */
    margin: 0 auto;   /* 画像を中央に配置 */
    padding: 5vw 0;   /* 上下、左右への余白 */
}

	/*画面幅800px以上の追加指定*/
	@media screen and (min-width:800px) {
	
	/*ボックス全体*/
	.list-half {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 5vw;	/*左右の間に空けるマージン的な要素*/
		position: relative;
	}

	/*テキストブロック*/
	.list-half .text {
		flex: 1;
	}

	/*画像ブロック*/
	.list-half .image {
		padding: 0;		/*余白をリセット*/
		width: 40vw;	/*幅。40%。*/
	}

	/*左右を入れ替える場合用*/
	.list-half.reverse {
		flex-direction: row-reverse;
	}

	}/*追加指定ここまで*/


/*画像の影のスタイル*/
.list-half .shadow1 {
	box-shadow: -4vw 4vw 0 rgba(0,0,0,0.05);
}

/*reverseの場合の影*/
.list-half.reverse .shadow1 {
	box-shadow: 4vw 4vw 0 rgba(0,0,0,0.05);
}


/*list-grid1
---------------------------------------------------------------------------*/
.list-grid1 figure img {
    width: 100%;    /* 幅を親要素に合わせて広げる */
    height: 350px;  /* 高さを固定 */
    object-fit: cover; /* 縦横比を保ちながらリサイズし、画像が枠に収まるように調整 */
}


.list-grid1 {
padding: 0 20px;  /* 左右に20pxのパディングを追加 */
}

.list-grid1 .text {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 18px;
   }

/* 画面幅800px以下の場合 */
@media screen and (max-width: 800px) {
    .list-grid1 .text {
        font-size: 16px;  /* 小さくする */
    }

    .list-grid1 .list p {
        font-size: 0.85rem;  /* p要素の文字も少し小さくする */
    }
}


.list-grid1 .list * {margin: 0;padding: 0;}

/*ボックス１個あたり*/
.list-grid1 .list {
    display: grid;
	margin-bottom: 1rem;	/*下に空けるスペース*/
}

/*ボックス内のp要素*/
.list-grid1 .list p {
	font-size: 0.95rem;	/*文字サイズを85%に*/
	line-height: 1.5;	/*行間を狭くする*/
}

/*ボックス１個あたり*/
.list-grid1 .list {
	padding: 1rem;			/*ボックス内の余白。１文字分。*/
	background: #fff;		/*背景色*/
    grid-template-rows: auto 1fr auto;	/*１つ目（この場合はfigure要素のサイズ）と「詳しくみる」ボタンの高さは自動に、２つ目（この場合はtextブロック））を残った幅で使う*/
	box-shadow: 5px 5px 20px rgba(0,0,0,0.1);	/*ボックスの影。右へ、下へ、ぼかし幅、0,0,0は黒の事で0.1は色が10%出た状態。*/
}

/*ボックス内のfigure画像*/
.list-grid1 .list figure {
	margin: -1rem;			/*画像を枠いっぱいに表示させる為に上の「.list-grid1 .list」のpadding分をネガティブマーインで指定*/
	margin-bottom: 0.5rem;	/*画像の下に空けるスペース*/
}

	/*画面幅800px以上の追加指定*/
	@media screen and (min-width:800px) {

	/*listブロック全体を囲むブロック*/
	.list-grid1 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);	/*3列にする指定。4列にしたければrepeat(4, 1fr)とする。*/
		gap: 1rem;	/*ブロックの間に空けるマージン的な指定*/
	}

	/*ボックス１個あたり*/
	.list-grid1 .list {
		margin-bottom: 0;	/*下に空けるスペースをなくす*/
	}

	}/*追加指定ここまで*/

/*list-grid2
_____________________________________________________________________*/

.list-grid2 {
    display: flex;  /* 親要素でflexboxを使用 */
    flex-wrap: wrap;  /* 横に入りきらない場合に折り返す */
    justify-content: space-between;  /* 要素間にスペースを確保 */
    align-items: center;  /* 垂直方向に中央揃え */
    margin: 20px auto;  /* 上下のマージンを設定し、左右を自動で調整 */
    max-width: 1200px;  /* 最大幅を指定 */
    padding: 0 20px;  /* 左右に20pxのパディングを追加 */
    margin-bottom: 100px;
}

/* テキスト部分 */
.list-grid2 .text {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    flex: 1;  /* テキスト部分が残りのスペースを占める */
    margin-right: -30px;  /* 画像と少し重なるようにする */
    padding: 20px;  /* 内側の余白 */
    background: linear-gradient( #f9f5e3, #f7f2da);  /* 透明度40%のグラデーション */
    border-radius: 10px;  /* 角を丸くする */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);  /* 影をつける */
    font-size: 1.2em;  /* サイズ */
    position: relative;  /* 画像と重なるための調整 */
    z-index: 2;  /* 画像より前に表示 */
}



/* 画像部分 */
.list-grid2 .image {
    flex: 1;  /* 画像部分が残りのスペースを占める */
    max-width: 500px;  /* 画像の最大幅を設定 */
    height: auto;  /* 高さを自動調整 */
    position: relative;  /* 画像をテキストと重ねる */
}

.list-grid2 .image img {
    max-width: 100%;  /* 画像が親要素の幅を超えないように調整 */
    height: auto;  /* 画像の高さは自動調整 */
}





/* スマホの画面の時 (画面幅 800px 以下の場合) */
@media screen and (max-width: 800px) {
    .list-grid2 {
        flex-direction: column;  /* 縦並びに変更 */
        align-items: center;     /* センター揃え */
    }

    .list-grid2 .text, .list-grid2 .image {
        width: 100%;  /* 幅を100%にして縦並びにする */
    }

    .list-grid2 .image {
        order: -1;  /* 画像を上に持ってくる */
    }
    
    .list-grid2 .text {
        margin-right: 0;  /* 余白をリセット */
        margin-bottom: 20px;  /* 画像との間に余白を設定 */
        font-size: 1.0em;  /* 画面が小さくなった時に文字サイズを小さくする */
       }
}


/* list-grid3（テキストのみの横並び2ブロック）
_____________________________________________________________________*/

.list-grid3 {
    margin: 20px auto 10px auto;  /* 上下のマージンを設定し、左右を自動で調整 */
    display: flex; /* 横並びにするためのフレックスボックス */
    padding: 0 60px;  /* 左右に20pxのパディングを追加 */
    justify-content: space-between; /* 両端に均等にスペースを空ける */
    flex-wrap: wrap;
}





.list-grid3 > .text {
  width: calc(50% - 10px); /* ← これが必須です！ */
  box-sizing: border-box;
}

.list-grid3 p {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 18px;
    margin: 0; /* 余分なマージンをなくす */
}

.list-grid3 .text {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    font-size: 18px;
}

.list-grid3 .text h3 {
    position: relative;
    padding-left: 15px; /* 文字と縦棒の間の余白 */
    font-size: 20px;
}

.list-grid3 .text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 10px; /* 縦棒の幅 */
    background: linear-gradient(180deg, #5BC8AC, #3AA88F); /* グラデーション */
}



@media screen and (max-width: 800px) {
    .list-grid3 {
        flex-direction: column;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .list-grid3 > .text {
        width: 100%; /* スマホでは幅を100%にする */
    }

    .list-grid3 .text,
    .list-grid3 p {
        font-size: 14px;
        text-align: left;
        white-space: nowrap;       /* 折り返さない */
        overflow: hidden;          /* はみ出す部分を非表示に */
        text-overflow: ellipsis;   /* はみ出したら「…」で表示 */
    }
}


/*list-grid4_院長紹介など(写真とテキスト横並び2ブロック)
____________________________________________________________________*/

.list-grid4 {
    display: flex;  /* 親要素でflexboxを使用 */
    flex-wrap: wrap;  /* 横に入りきらない場合に折り返す */
    justify-content: space-between;  /* 要素間にスペースを確保 */
    align-items: center;  /* 垂直方向に中央揃え */
    margin: 20px auto;  /* 上下のマージンを設定し、左右を自動で調整 */
    max-width: 1000px;  /* 最大幅を指定 */
    padding: 0 10px;  /* 左右に20pxのパディングを追加 */

}

/* テキスト部分 */
.list-grid4 .text {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    flex: 1;  /* テキスト部分が残りのスペースを占める */
    margin-right: 10px;  /* 画像と重ならない */
    margin-left: 10px; 
    padding: 20px;  /* 内側の余白 */
    background: linear-gradient( #f9f5e3, #f7f2da);    /* 透明度40%のグラデーション */
    border-radius: 10px;  /* 角を丸くする */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);  /* 影をつける */
    font-size: 16px;  /* サイズ */
}



/* 画像部分 */
.list-grid4 .image {
    flex: 1;  /* 画像部分が残りのスペースを占める */
    max-width: 250px;  /* 画像の最大幅を設定 */
    height: auto;  /* 高さを自動調整 */
    position: relative;  /* 画像をテキストと重ねる */
}

.list-grid4 .image img {
    max-width: 100%;  /* 画像が親要素の幅を超えないように調整 */
    height: auto;  /* 画像の高さは自動調整 */
}

/* 画面が小さくなったら縦並びに変更 */
@media screen and (max-width: 800px) {
    .list-grid4 {
        flex-direction: column;  /* 文字と画像を縦並びに */
        align-items: center;  /* 中央揃え */
        text-align: left;  /* テキストを左揃え */
    }

    .list-grid4 .text {
    	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
        margin-right: 0;  /* 余白をリセット */
        margin-bottom: 20px;  /* 画像との間に余白を設定 */
        font-size: 16px;  /* 画面が小さくなった時に文字サイズを小さくする */
    }

    .list-grid4 .image {
        max-width: 40%;  /* 画面幅に合わせて画像サイズを調整 */
        order: -1;  /* 画像を上に持ってくる */
        
    }
    
}


/*list-grid5_治療方法紹介(写真とテキスト横並び2ブロック)
____________________________________________________________________*/

.list-grid5 {
    display: flex;  /* 親要素でflexboxを使用 */
    flex-wrap: wrap;  /* 横に入りきらない場合に折り返す */
    justify-content: space-between;  /* 要素間にスペースを確保 */
    align-items: center;  /* 垂直方向に中央揃え */
    margin: 20px auto;  /* 上下のマージンを設定し、左右を自動で調整 */
    max-width: 1000px;  /* 最大幅を指定 */
    padding: 0 10px;  /* 左右に20pxのパディングを追加 */

}

/* テキスト部分 */
.list-grid5 .text {
    font-family: 'Times New Roman', serif; /* 明朝体 */
    flex: 1;  /* テキスト部分が残りのスペースを占める */
    margin-right: 10px;  /* 画像と重ならない */
    margin-left: 10px; 
    padding: 20px;  /* 内側の余白 */
    font-size: 18px;  /* サイズ */
}



/* 画像部分 */
.list-grid5 .image {
    flex: 1;  /* 画像部分が残りのスペースを占める */
    width: 300px;
    height: auto;  /* 高さを自動調整 */
    position: relative;  /* 画像をテキストと重ねない */
}

/* 画像のスタイル */
.list-grid5 .image img {
    max-width: 100%;  /* 画像が親要素の幅を超えないように調整 */
    height: auto;  /* 画像の高さは自動調整 */
    width: 400px;
    border-radius: 20px;  /* 四隅を丸くする（数値を調整可） */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);  /* 影をつける */
}

/* 画面が小さくなったら縦並びに変更 */
@media screen and (max-width: 800px) {
    .list-grid5 {
        flex-direction: column;  /* 文字と画像を縦並びに */
        align-items: center;  /* 中央揃え */
        text-align: left;  /* テキストを左揃え */
    }

    .list-grid5 .text {
    	font-family: 'Times New Roman', serif; /* 明朝体 */
        margin-right: 0;  /* 余白をリセット */
        margin-bottom: 20px;  /* 画像との間に余白を設定 */
        font-size: 16px;  /* 画面が小さくなった時に文字サイズを小さくする */
    }

    .list-grid5 .image {
        max-width: 70%;  /* 画面幅に合わせて画像サイズを調整 */
    }
}





/*ボタン（btn）
---------------------------------------------------------------------------*/
.btn a {
	display: block;text-decoration: none;
	font-size: 1rem;
	text-align: center;		/*テキストをセンタリング*/
	background: var(--primary-color) !important;	/*背景色。css冒頭で指定しているprimary-colorを読み込みます*/
	color: var(--primary-inverse-color) !important;	/*文字色。css冒頭で指定しているprimary-inverse-colorを読み込みます*/
	padding: 0.5rem !important;		/*ボタン内の余白*/
	margin-top: 1rem !important;	/*ボタンの外（上）に空けるスペース*/
}


/*bg1背景色がついたブロック
---------------------------------------------------------------------------*/
.bg1 {
	position: relative;
	background: #fcf8ea;	/*背景色*/
	padding-top: 5vw;		/*ボックス内の上に空ける余白。お好みで調整して下さい。*/
	padding-bottom: 5vw;	/*ボックス内の下に空ける余白。お好みで調整して下さい。*/
	/*margin-top: 10vw;		ボックス外の上に空ける余白。お好みで調整して下さい。*/
	/*margin-bottom: 10vw;	ボックス外の下に空ける余白。お好みで調整して下さい。*/
	
	/*以下は変更不要*/
	margin-left: calc(-1 * var(--global-space));
	margin-right: calc(-1 * var(--global-space));
	padding-left: var(--global-space);
	padding-right: var(--global-space);
}
.bg1 a {
	color: inherit;
}


/*お知らせブロック
---------------------------------------------------------------------------*/
.news-list-container {
  border: 1px solid #ccc;  /* 枠線の設定 */
  height: 300px;           /* 高さを固定 */
  overflow-y: scroll;      /* 縦方向のスクロールを有効にする */
  padding: 10px;           /* 枠線と内容の間に余白を追加 */
  margin: 20px auto;       /* ページの上下左右に余白を設定 */
}



/*お知らせブロック*/
.new {
	background: white;	/*背景色。0,0,0は黒のことで0.02は色が2%出た状態。*/
	overflow: hidden;
	margin-bottom: 4rem;	/*ブロックの下に空けるスペース。4文字分。*/
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	}

/*奇数行目を背景色を少し濃くする。全体同じ色がよければここの数行は削除。*/
.new dt:nth-of-type(odd),
.new dd:nth-of-type(odd) {
	background: rgba(0,0,0,0.04);
}

/*日付(dt)設定*/
.new dt {
	padding: 1rem 1rem 0;	/*dt内の余白。上、左右、下への順番。*/
}

/*記事(dd)設定*/
.new dd {
	padding: 1rem;	/*dd内の余白*/
}

/*ブロック内のspan。日付の横のアイコン的な部分の共通設定*/
.new dt span {
	display: inline-block;
	text-align: center;
	line-height: 1.8;		/*行間（アイコンの高さ）*/
	border-radius: 3px;		/*角を丸くする指定*/
	padding: 0 0.5rem;		/*上下、左右へのブロック内の余白*/
	width: 8rem;			/*幅。8文字分。*/
	transform: scale(0.8);	/*80%のサイズに縮小*/
	background: #fff;		/*背景色*/
	color:#777;				/*文字色*/
	border: 1px solid #999;	/*枠線の幅、線種、色*/
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
}

/*icon-bg1*/
.new .icon-bg1 {
	background: var(--primary-color);	/*背景色。css冒頭で指定しているprimary-colorを読み込みます*/
	color: var(--primary-inverse-color);	/*文字色。css冒頭で指定しているprimary-inverse-colorを読み込みます*/
	border-color: transparent;			/*枠線を出したくないので透明にする*/
}

	/*画面幅800px以上の追加指定*/
	@media screen and (min-width:800px) {

	/*ブロック全体*/
	.new {
		display: grid;	/*gridを使う指定*/
		grid-template-columns: auto 1fr;	/*横並びの指定。日付とアイコン部分の幅は自動で、内容が入るブロックは残り幅一杯とる。*/
	}

	/*日付(dt)設定*/
	.new dt {
		padding: 1rem 0 1rem 2rem;	/*dt内の余白。上、右、下、左への順番。*/
	}

	/*記事(dd)設定*/
	.new dd {
		padding: 1rem 2rem 1rem 0;	/*dd内の余白。上、右、下、左への順番。*/
	}

	}/*追加指定ここまで*/


/*2・3カラム（main-contents、sub-contents設定）
---------------------------------------------------------------------------*/
/*main-contentsブロック*/
.main-contents {
	margin-bottom: 2vw;	/*ボックスの下に空けるスペース*/
	
}

	/*画面幅901px以上の追加指定*/
	@media screen and (min-width:901px) {

	/*カラムで使う為の指定*/
	main.column {
		display: flex;					/*横並びにする*/
		justify-content: space-between;	/*並びかたの種類の指定*/
		gap: 3vw;						/*main-contentsとsub-contentsの間のマージン的な隙間*/
	}
	
	/*main-contentsブロック*/
	.main-contents {
		margin-bottom: 0;
		order: 2;		/*並び順。数字の小さい順番に表示されます。*/
		flex: 1;
	}
	
	/*sub-contentsブロック共通*/
	.sub-contents {
		width: 210px;	/*幅。お好みで変更して下さい。*/
	}
	
	/*1つ目のsub-contents*/
	.sub-contents:nth-child(2) {
		order: 1;	/*並び順。数字の小さい順番に表示されます。*/
	}
	
	/*2つ目のsub-contents（※３カラムで使いたい場合用）*/
	.sub-contents:nth-child(3) {
		order: 3;	/*並び順。数字の小さい順番に表示されます。３番目という意味なので一番右側に表示されます。*/
	}
	
	}/*追加指定ここまで*/


/*サブコンテンツ内のh3要素(見出し)*/
.sub-contents h3 {
	margin: 0;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}
.sub-contents h3::first-letter {
	border-left: 3px solid var(--primary-color);	/*左側のアクセント用ラインの幅、線種、色*/
	padding-left: 10px;
}



/*box1
---------------------------------------------------------------------------*/
.box1 {
	padding: 1rem;			/*ボックス内の余白*/
	margin-bottom: 1rem;	/*ボックスの下に空けるスペース*/
	background: rgba(0,0,0,0.05);	/*背景色*/
	border: solid 1px #ccc;	/*線の線種、幅、色*/
	box-shadow: 0px 0px 1px 1px #fff inset;	/*ボックスの影。右へ、下へ、ぼかし幅、距離。#fffは白のことでinsetは内側へ向けての影の指定。*/
}

/*box1内のsubmenuの下マージンをなくす*/
.box1 .submenu {
	margin-bottom: 0;
}


/*詳細ページのサムネイル切り替えブロック
---------------------------------------------------------------------------*/
/*大きな画像が表示されるブロック*/
.thumbnail-view-parts {
	max-width: 1000px;		/*最大幅*/
	margin: 0 auto 1rem;	/*ブロック要素を中央に配置。下に1文字分のマージンをとる。*/
	text-align: center;		/*画像が小さい場合でもセンタリングされるように*/
}

/*サムネイル全体を囲むブロック*/
.thumbnail-parts {
	display: flex;				/*flexを使う指定*/
	justify-content: center;	/*並びかたの種類の指定。これはセンタリングする指定。*/
	margin-bottom: 2rem;		/*下に空けるスペース。２文字分。*/
}

/*サムネイル画像*/
.thumbnail-parts img {
	width: 100px;		/*サムネイルの幅*/
	margin: 2px;		/*サムネイル間のスペース*/
	cursor: pointer;	/*リンクタグではないが、クリックできる事をわかりやすくする為にリンクと同じポインターにしておきます。*/
	transition: 0.3s;	/*マウスオンまでにかける時間。3秒。*/
}
.thumbnail-parts img:hover {
	opacity: 0.8;	/*マウスオン時に80%だけ色を出す。つまり薄くなります。*/
}


/*テーブル（ta1）
---------------------------------------------------------------------------*/
/*テーブル１行目に入った見出し部分（※caption）*/
.ta1 caption {
	font-weight: bold;		/*太字に*/
	padding: 0.5rem 1rem;	/*ボックス内の余白*/
	background: #999;		/*背景色*/
	color: #fff;			/*文字色*/
	margin-bottom: 1rem;	/*下に空けるスペース*/
	border-radius: 5px;		/*角を丸くする指定*/
}

/*ta1テーブルブロック設定*/
.ta1 {
	table-layout: fixed;
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	border-top: 1px solid #999;	/*テーブルの一番上の線。幅、線種、色*/
	width: 100%;				/*幅*/
	margin-bottom: 1rem;			/*テーブルの下に空けるスペース*/
}

/*tr（１行分）タグ設定*/
.ta1 tr {
	border-bottom: 1px solid #999;	/*テーブルの下線。幅、線種、色*/
}

/*th（左側）、td（右側）の共通設定*/
.ta1 th, .ta1 td {
	padding: 1rem;		/*ボックス内の余白*/
	word-break: break-all;	/*英語などのテキストを改行で自動的に折り返す設定。これがないと、テーブルを突き抜けて表示される場合があります。*/
}

/*th（左側）のみの設定*/
.ta1 th {
	width: 30%;			/*幅*/
	text-align: left;	/*左よせにする*/
	background: #eee;	/*背景色*/
}

	/*画面幅800px以上の追加指定*/
@media screen and (max-width: 800px) {
	.ta1 caption {
		font-size: 1rem; /* 見出しの文字サイズを小さく */
	}

	.ta1 th,
	.ta1 td {
		font-size: 0.9rem; /* テーブル内の文字サイズを調整 */
		padding: 0.5rem; /* スマホで余白を少し狭める */
	}
}

/*テーブル診察時間（ta2）サブブロックの受付テーブルに使用。
---------------------------------------------------------------------------*/
/*テーブル１行目に入った見出し部分（※caption）*/
.ta2 caption {
	text-align: center;
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	padding: 50px;			/*ボックス内の余白*/
	
}

/* 1列目のセルに十分な幅を設定し、中央揃え */
.ta2 td:first-child, .ta3 th:first-child {
    vertical-align: middle;  /* 縦方向中央揃え */
    white-space: nowrap;     /* 文字が折り返さないように */
    padding-right: 20px;     /* 右の余白を確保 */
    width: 150px;            /* 1列目の幅を指定（必要に応じて調整） */
   background: transparent;			/*文字色*/
}


/* 2列目とその後ろの列に余白を確保 */
.ta2 td {
    padding-left: 10px;  /* 2列目との間隔を確保 */
}
    

/*ta3設定*/
.ta2 {
	table-layout: fixed;
	width: 100%;
	margin-bottom: 2rem;	/*テーブルの下に空けるスペース*/
	text-align: center;		/*センタリング*/
	background: transparent;		/*背景色*/
	color: #261212;		/*文字色*/
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    border-collapse: collapse; /* セルの境界を重ねて表示 */
}
.ta2 td, .ta2 th {
    border-top: 1px solid #261212; /* 横線を追加 */
    border-bottom: 1px solid #261212; /* 横線を追加 */
    border-left: none; /* 縦線を削除 */
    border-right: none; /* 縦線を削除 */
    word-break: break-all;
    padding: 10px;  /* セル内の余白を設定 */
}

/*曜日と午前午後*/
.ta2 th {
	background: transparent;		/*背景色透明*/
	color: #261212
	/*#color: #916b01;*/
	
}


.ta2-note {
  text-align: right;
  font-size: 1.0em;
  color: #261212;
  font-family: 'Monotype Corsiva', serif;
  line-height: 1.6;
  margin-top: 0;  /* ← 上の余白をゼロにする */
}



@media screen and (max-width: 800px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;                /* 横スクロールを可能に */
        display: block; 
    }

    .ta2 {
        min-width: 100%;                /* テーブルが常に画面幅以上に広がる */
        table-layout: auto;
        white-space: nowrap;            /* テキストを折り返さない */
        border-collapse: collapse;
    }

    .ta2 caption {
        font-size: 1.2em;
        padding: 10px;
    }

    .ta2 th, .ta2 td {
        font-size: 0.9em;
        padding: 6px;
        white-space: nowrap;            /* テキスト折り返し防止 */
    }

    .ta2 td:first-child, .ta2 th:first-child {
        width: auto;
        max-width: 120px;               /* 必要なら制限（なくてもOK） */
    }
}




/*テーブル診察時間（ta3）サブブロックの受付テーブルに使用。
---------------------------------------------------------------------------*/
/*テーブル１行目に入った見出し部分（※caption）*/
.ta3 caption {
	text-align: center;
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	padding: 50px;			/*ボックス内の余白*/
	
}

/* 1列目のセルに十分な幅を設定し、中央揃え */
.ta3 td:first-child, .ta3 th:first-child {
    vertical-align: middle;  /* 縦方向中央揃え */
    white-space: nowrap;     /* 文字が折り返さないように */
    padding-right: 20px;     /* 右の余白を確保 */
    width: 150px;            /* 1列目の幅を指定（必要に応じて調整） */
   background: transparent;			/*文字色*/
}


/* 2列目とその後ろの列に余白を確保 */
.ta3 td {
    padding-left: 10px;  /* 2列目との間隔を確保 */
}
    

/*ta3設定*/
.ta3 {
	table-layout: fixed;
	width: 100%;
	margin-bottom: 2rem;	/*テーブルの下に空けるスペース*/
	text-align: center;		/*センタリング*/
	background: transparent;		/*背景色*/
	color: #5f6366;		/*文字色*/
	font-family: 'Monotype Corsiva', serif; /* 明朝体 */
    border-collapse: collapse; /* セルの境界を重ねて表示 */
}
.ta3 td, .ta3 th {
    border-top: 1px solid #5f6366; /* 横線を追加 */
    border-bottom: 1px solid #5f6366; /* 横線を追加 */
    border-left: none; /* 縦線を削除 */
    border-right: none; /* 縦線を削除 */
    word-break: break-all;
    padding: 10px;  /* セル内の余白を設定 */
}

/*曜日と午前午後*/
.ta3 th {
	background: transparent;		/*背景色透明*/
	color: #5f6366
	/*#color: #916b01;*/
	
}


.ta3-note {
  text-align: right;
  font-size: 1.0em;
  color: #5f6366;
  font-family: 'Monotype Corsiva', serif;
  line-height: 1.6;
  margin-top: 0;  /* ← 上の余白をゼロにする */
}



/*テーブルを小さな端末で横スクロールさせる為の準備
---------------------------------------------------------------------------*/
/*テーブルを囲むブロック*/
.ta-box {
	overflow-x: auto;
	margin-bottom: 1rem;
}

/*ブロック内にあるta2のみ最小幅を設定*/
.ta-box .ta2 {
	min-width: 600px;
}

.ta-box + p,
.ta1 + p,
.ta2 + p {
	margin-top: -2rem;
}



/*フッター共通
---------------------------------------------------------------------------*/
#footer-contents, #footermenu {
	padding: 2rem var(--global-space);	/*上下、左右へのボックス内の余白。左右はcss冒頭で指定しているglobal-spaceを読み込みます*/
}




/*フッターのコンテンツ（住所やマップが入っているブロック）
---------------------------------------------------------------------------*/
/*ブロック全体*/
#footer-contents {
    font-family: 'Monotype Corsiva', serif; /* 明朝体 */
	background: #f0f5f1;	/*背景色*/
	color:#5f6366 ;			/*文字色*/
}
#footer-contents a {
	color: inherit;
}

/*左側のブロック*/
#footer-contents .left {
	margin-bottom: 50px;	/*下に空けるスペース*/
}


	/*画面幅800px以上の追加指定*/
	@media screen and (min-width:800px) {
	
	#footer-contents {
		display: flex;	/*flexボックスを使う指定*/
		gap: 2rem;		/*左右のボックスの間のマージン的な設定*/
	}
	
	/*左側のブロック*/
	#footer-contents .left {
		margin-bottom: 0;	/*下のマージン（外側への余白）をリセット*/
		width: 50%;			/*幅。leftとrightで合計100になれば、お好みで変更してもらって構いません。*/
	}
	
	/*右側のブロック*/
	#footer-contents .right {
		width: 50%;			/*幅。leftとrightで合計100になれば、お好みで変更してもらって構いません。*/
	}

	}/*追加指定ここまで*/

#footer-contents .left h3 {
    font-size: 1.2rem;		/*文字サイズ*/
	font-weight: bold;	/*デフォルトの太字を標準に*/
}

#footer-contents .right h3 {
    font-size: 1.2rem;		/*文字サイズ*/
	font-weight: bold;	/*デフォルトの太字を標準に*/
}


/*スマホの表示
---------------------------------------------------------------------------*/

@media screen and (max-width: 768px) {
#footer-contents {text-align: center;  /* 中央揃え */

}

  #footer-contents .left h3 {
    font-size: 2.0em;  /* 好きなサイズに調整（通常より大きく） */

  }
}



/*フッター設定
---------------------------------------------------------------------------*/
/* フッター設定 */
small {
  font-size: 100%;
}


footer {
  background: #f0f5f1;
  color:#5f6366;
  text-align: center;
  padding: 1rem;
  font-size: 0.7rem;
}


/* フッター内のリンク */
footer a {
  color: inherit;
  text-decoration: none;
}





/*footer-contents内のマップ。レスポンシブにする為のものなので、基本は編集不要です。
---------------------------------------------------------------------------*/
.iframe-box {
	width: 100%;
	height: 0;
	padding-top: 56.25%;	/*マップの高さを増やしたい場合は、ここの数値を上げてみて下さい。*/
	position: relative;
	overflow: hidden;
}
.iframe-box iframe {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
}





/*PAGE TOPに戻るボタン（↑）設定
---------------------------------------------------------------------------*/

.pagetop-show {display: block;}

/*ボタンの設定*/
.pagetop a {
	display: block;text-decoration: none;text-align: center;z-index: 99;
	position: fixed;	/*スクロールに追従しない(固定で表示)為の設定*/
	right: 20px;		/*右からの配置場所指定*/
	bottom: 20px;		/*下からの配置場所指定*/
	color: #fff;		/*文字色*/
	font-size: 1.5rem;	/*文字サイズ*/
	background: rgba(0,0,0,0.2);	/*背景色。0,0,0は黒の事で0.2は色が20%出た状態。*/
	width: 60px;		/*幅*/
	line-height: 60px;	/*高さ*/
	border-radius: 50%;	/*円形にする*/
}


/*その他
---------------------------------------------------------------------------*/
ul {
    list-style-type: none; /* 箇条書きの丸を削除 */
    padding: 0; /* デフォルトのパディングを削除（不要な余白を防ぐ） */
    margin: 0; /* デフォルトのマージンを削除（調整しやすくする） */
}
.clearfix::after {content: "";display: block;clear: both;}
.color-check, .color-check a {color: #ff0000 !important;}
.l {text-align: left !important;}
.c {text-align: center !important;}
.r {text-align: right !important;}
.ws {width: 95%;display: block;}
.wl {width: 95%;display: block;}
.mb0 {margin-bottom: 0px !important;}
.mb30 {margin-bottom: 30px !important;}
.look {display: inline-block;padding: 0px 10px;background: #eee;color: #333;border: 1px solid #ccc; border-radius: 3px;margin: 5px 0; word-break: break-all;}
.small {font-size: 0.75em;}
.large {font-size: 2em; letter-spacing: 0.1em;}
.pc {display: none;}7yh
.dn {display: none !important;}
.block {display: block !important;}

	/*画面幅900px以上の追加指定*/
	@media screen and (min-width:800px) {

	.ws {width: 48%;display: inline;}
	.sh {display: none;}
	.pc {display: block;}

	}/*追加指定ここまで*/


/*リンクに瞬時に飛ぶ
---------------------------------------------------------------------------*/
html {
  scroll-behavior: auto;  /* ← これで一瞬で飛ぶ */
}