/* 基本色変数 --mc10--mc90等末尾10単位で透明度(濃さ)を調整　--title1はページタイトル背景画像に色を混ぜる*/
/* メイン画像(トリム無し)を使用の場合はタブレット以下の画像を用意し「表示」選択で切り替える
<budoux-ja>タグ：文節自動改行(単語の途中で改行されない)
・汎用クラス解説
budoux：<budoux-ja>タグで囲む 
txmc,txsc等：文字色を↑基本色に変更(半強制)
img1-1など：画像比率を強制。img3-2等
COVER：img~の画像比率に合わせてトリミング
img30などimg20~60：it01 ti01で画像サイズを強制。
AIS AIC AIE :順に上揃え、中央揃え、下揃え、無しはAISに類似
その他余白
mt20:20px   mt1e:一文字分   mt1p:1% */
:root{
  --title1:var(--un);
  --linkC:var(--mc); 
  --iconC: var(--mc);
  
  --mc: #336098; /* メインの濃青。見出し帯・ボタン・院内紹介とアクセスの下地 */
  --sc: #bbdefb; /* 水色。MV下の水彩背景・設備紹介の丸 */
  --ac: #336098; /*  */
  --bc: #f3f9fe; /* 薄青の背景。診療案内・ヘッダー電話枠・医院案内の丸 */
  --tx: #232323; /* 本文・見出し */
  --gr: #cad9eb; /* 区切り線・地図とインスタグラムの仮置き */
  --bk: #000; /*  */
  --wh: #fff; /* 白 */
 

}
.h_logo {
    max-width: 100%;
}
:is(#header .h_logo) img {
  @media (max-width: 1620px) {
    width: calc(var(--logoW) * 0.75);
  }
  @media (max-width: 1200px) {
    width: calc(var(--logoW) * 0.66);
  }
}
.title1 .mark {
        background-color: var(--mc);
        color: #fff;
        border-radius: var(--rad);
        padding: 0.25em 0.5em;
        @media (max-width: 834px){
        }
}
/*ページタイトル背景画像 　blend-mode>淡色lighten濃色multiply */

.title1{
  background-blend-mode: multiply;

  /* background-image: url(/images/home/title1.png); */
  /* background-size: auto 70%; */
  /* background-position: 90%; */
  /* background-image: url(/images/home/title1.jpg); */
}
/* 下層card~の画像比率 */
/* :where(html:not(.home) [class*=card]) img{ */
  /* aspect-ratio: 3/2; */
  /* background-color: var(--bc); */
/* } */
/*○○px以下でmv画像の中央位置を調整*/
/* @media (max-width: 834px){
    #contents :is(.mv_slide,.mv_img) :is(img,video){
        object-position: 0%;
    }
}  */

/* ===== ポップアップ（ここからコピー） ===== */
.hd-popup {
position: fixed;
top: 0; right: 0; bottom: 0; left: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
background: rgba(0, 0, 0, .6);
opacity: 0;
visibility: hidden;
transition: opacity .3s ease, visibility .3s ease;
}
.hd-popup.is-open {
opacity: 1;
visibility: visible;
}
.hd-popup__box {
position: relative;
width: 100%;
max-width: 780px;
max-height: 90vh;
overflow-y: auto;
background: #fff;
border-radius: 8px;
box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
transform: translateY(16px);
transition: transform .3s ease;
}
.hd-popup.is-open .hd-popup__box {
transform: translateY(0);
}
.hd-popup__box img {
display: block;
max-width: 100%;
height: auto;
}
.hd-popup__body {
padding: 32px 28px;
text-align: center;
}
.hd-popup__body h1,
.hd-popup__body h2,
.hd-popup__body h3,
.hd-popup__body h4 {
font-weight: 700; /* タイトルを太く */
}
.hd-popup__body p {
font-size: 1.1em; /* 本文サイズ*/
}
/* 右上の×ボタン */
.hd-popup__close {
position: absolute;
top: 8px;
right: 8px;
width: 40px;
height: 40px;
border: 0;
border-radius: 50%;
background: #336098;
color: #fff;
font-size: 24px;
line-height: 40px;
text-align: center;
cursor: pointer;
padding: 0;
}
.hd-popup__close:hover { background: #000; }
.hd-popup__close:focus-visible { outline: 3px solid #4d90fe; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
.hd-popup, .hd-popup__box { transition: none; }
}