/*
Theme Name: MY THEME
*/

/* ヘッダー */
.logo img {width: 100px;
	height: auto;
	padding-left:20px;}

.header-left {display: flex;
	align-items: flex-start;
	margin-left: 0}

.header {display: flex;
	justify-content: space-between;}

.syamei {padding-left: 20px;}
.syamei h2 {margin-top: 10px}
.syamei p {margin-bottom: 0}

/* ヘッダーナビ */

.wp-nav {
  position: relative;
	padding-top: 30px;}

.nav-item {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}
.nav-item a {padding: 10px;}
.nav-item a:hover{background-color: #99CCFF;
	border-radius: 10px;
	color: #FFFFFF;}

.details-bubble-gairai {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
	border-radius: 10px;
	width:600px;
	margin-top: 15px;
	margin-left: 25px;
  display: none; /* 初期状態では非表示 */
  z-index: 10; /* 他の要素より上に表示 */
}

.nav-item:hover .details-bubble-gairai {
  display: block; /* ホバー時に表示 */
}

.details-bubble-gairai a {
  display: block;
  padding: 5px 0;
	text-decoration:none
}

.details-bubble-nyuin {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f0f0f0;
	width:600px;
	margin-top: 15px;
	margin-left: 25px;
  border: 1px solid #ccc;
	border-radius: 10px;
  display: none; /* 初期状態では非表示 */
  z-index: 10; /* 他の要素より上に表示 */
}

.nav-item:hover .details-bubble-nyuin {
  display: block; /* ホバー時に表示 */
}

.details-bubble-nyuin a {
  display: block;
  padding: 5px 0;
}

.gairai {display: flex;
	flex-wrap: wrap;}
.gairai1 {width: 45%;}
.gairai a {padding-left: 20px;
	padding-bottom: 10px;
	color:black;}
.gairai1,
.nyuin1 {margin-bottom:20px;
	margin-left: 10px;}
.gairai a:hover{background-color: #99CCFF;
	color: #FFFFFF;}
.nyuin a:hover{background-color: #99CCFF;
	color: #FFFFFF;}
.details-bubble-gairai h2 {padding-left: 40px;}

.nyuin {display: flex;
	flex-wrap: wrap;}
.nyuin1 {width: 45%;}
.nyuin a {padding-left: 20px;
	padding-bottom: 10px;
	text-decoration: none;
	color:black;}

.icon-label {padding-right:20px;}

.nav-item:hover .details-bubble-gairai,
.nav-item .details-bubble-gairai:hover {
  display: block;
}

.nav-item:hover .details-bubble-nyuin,
.nav-item .details-bubble-nyuin:hover {
  display: block;
}

/* 全体ホバー保持 */
.nav-item:hover .details-bubble-gairai,
.nav-item:hover .details-bubble-nyuin,
.nav-item .details-bubble-gairai:hover,
.nav-item .details-bubble-nyuin:hover {
  display: block;
}

.details-bubble-nyuin h2 {padding-left: 40px;}

.nav-item a {text-decoration: none;}

.wp-nav {margin-right: 50px;}


.details-bubble-gairai,
.details-bubble-nyuin {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-item.hovered .details-bubble-gairai,
.nav-item.hovered .details-bubble-nyuin {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



.header-nav ul {list-style-type: none;}
.header-nav {display: flex;
	padding-top: 30px;
	margin-right: 100px;}
.header-nav li {display: inline;
	padding-right: 30px;}
.header-nav a {color: black;}
.header-nav a:hover {color: #99CCFF}
.header a {text-decoration: none;}

.kensaku nav {display: flex;}
.phone {border-left: solid 1px #C0C0C0;}

.kensaku nav {display: flex;  /* 横並びを解除 */
	flex-direction: row;  /* 横並び */
}

.kensaku #search-form {display: block;  /* ブロック表示 */
	margin-top: 20px;  /* 上に余白を追加 */
	width: 100%;  /* 幅をフルにする */
	padding-left: 100px;}

.kensaku .phone {
  border-left: solid 1px #C0C0C0;}

.phone {width : 130px;
	text-align: center;}

/* rightナビ色を2種類変える */
.phone .icon {
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.phone .contact {
  color: #000;
  transition: color 0.3s;
}

.phone:hover .icon {
  background-color: #99CCFF; /* お好みの色に調整 */
}

.phone:hover .contact,{
  color: #99CCFF; /* お好みの色に調整 */
}





/* indextop画像 */
.image-container {
position: relative;
width: 100%;
height: 600px;
overflow: hidden; /* はみ出しを隠す */
}

.image-item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto; /* 高さは自動調整 */
min-height: 100%; /* 縦方向に足りなくならないように */
object-fit: cover;
opacity: 0;
transform: translateY(0);
transition: opacity 3.0s ease-in-out, transform 25.0s ease-in-out;
}

.image-item.active {
opacity: 1;
transform: translateY(-200px); /* 見た目に少しだけ動く */
}




/* お知らせ一覧 */
.category-news-block {background-color: #FFD5EC;
	border: 1px solid #FFD5EC;
	border-radius: 8px;
	transition: all 0.3s ease;
	overflow: hidden;
	max-width: 1300px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 50px;
	color: #000000;
	margin-bottom: 50px;
	text-decoration: none;
	padding: 10px;}

.osirase-news ul {list-style-type: none;
	padding-left: 10px;}
.date {padding-right: 20px;
	font-weight: bold;}
.title {padding-left: 20px;
	font-weight: bold;}
.fa fa-angle-right {color: #FF0461}
.osirase-news ul:hover {color:black;
	background-color: #FFABCE}
.osirase-news h2 {color: #FF0461;}
.osirase-news a {text-decoration: none;
	color: #FF0461;
	font-size: 16px;}

.custom-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: none;
	padding-right:20px;
}

.custom-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.text-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 8px;
	color:#FF367F;
}

.separator-line {
  flex-grow: 1;
  height: 1px;
  margin: 0 8px;
  width: 1.5cm; /* または width: 57px; */
  height: 1px;
  background-color: #FF367F;
  margin: 0 8px;
  flex-grow: 0; /* 横幅を固定にするため */
}

.fa fa-angle-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;}

/* osirase hover*/
.custom-item:hover .date {color: black;}
.custom-item:hover .separator-line {background-color: black;}
.custom-item:hover .title {color: black;}
.custom-item:hover .fa-angle-right {color: black !important;}



/* ハンバーガーメニュー　*/
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #3584bb;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #ffffff;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

#menu-btn-check {
    display: none;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    background-color: #3584bb;
	text-align:center;
}
.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 20px;
    box-sizing: border-box;
    color:#ffffff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: #3584bb;
    transition: all 0.5s;/*アニメーション設定*/
}

#menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
}

/* index 外来 */
article {
  background-color: yellow;
}
.index-top img {max-width: 350px;}

.fa fa-stethoscope {max-width: 150px}

.gairai-index {
  display: flex;
  flex-direction: column;
  align-items: center; /* 横中央揃え */
  gap: 1rem; /* 要素間の余白 */
	background-color:#EEEEEE;
	border-radius: 10px;
}
.gairai-index img {
  border-top-left-radius: 1rem;   /* 左上 */
  border-top-right-radius: 1rem;  /* 右上 */
}

.index-top {display: flex;
	justify-content: space-around;}


/*gairai index hover*/
.gairai-index {
  position: relative;
  width: 350px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background-color: #EEEEEE; /* ← 背景色を維持 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

/* 背景画像 */
.gairai-index img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  object-fit: cover;
  z-index: 1;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.gairai-index:hover::before {
  width: 300%;
  height: 300%;
}

/* アイコンの白丸強調 */
.gairai-index i {
  display: inline-block;
  position: relative;
  z-index: 3;
  padding: 20px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.5s ease;
  overflow: hidden; /* 波紋がはみ出ないように */
}

/* 波紋エフェクト用の疑似要素 */
.gairai-index i {
  display: inline-block;
  position: relative;
  z-index: 3;
  padding: 20px;
  border-radius: 50%;
  background: transparent;
  color: #000;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* 中央から広がる背景 */
.gairai-index i {
  display: inline-block;
  position: relative;
  z-index: 1; /* z-indexを1にして、擬似要素より上に表示 */
  padding: 20px;
  border-radius: 50%;
  background: transparent;
  color: #000;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* 背景波紋エフェクト */
.gairai-index i {
  display: inline-block;
  position: relative;
  z-index: 3;
  padding: 20px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.5s ease;
}


/* h1 */
.gairai-index h1 {
  position: relative;
  z-index: 3;
  margin-top: 15px;
  color: #333;
	text-align:center;
}

/* 波紋エフェクト */
.gairai-index::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* 波紋が画像の上・アイコンの下 */
  transition: width 0.8s ease, height 0.8s ease;
  pointer-events: none;
}

.index-bottom {display: flex;
	justify-content: space-around;}
.gairaibottom {display: flex;
	background-color: #EEEEEE;
	border-radius: 10px;
	width: 400px;}



.gairai-index {
  position: relative;
  overflow: hidden;
}

.gairai-index img {
  transition: transform 0.5s ease;
}

.gairai-index:hover img {
  transform: scale(1.1); /* 画像を少し拡大 */
}


.gairai-index:hover::before {
  width: 200%;
  height: 200%;
}

/* ホバー時にh1の文字色を白く */
.gairai-index:hover h1 {
  color: white;
}

/* ホバー時にアイコンの背景を白に */
.gairai-index:hover i {
  background: white;
  color: black; /* 必要であれば色反転 */
}

/* 波紋と画像拡大を同時に発動（ディレイ排除） */
.gairai-index:hover::before {
  width: 200%;
  height: 200%;
  transition-delay: 0s;
}
/* 通常時のh1設定 */
.gairai-index h1 {
  position: relative;
  z-index: 3;
  margin-top: 15px;
  color: #333;
  text-align: center;
  transition: color 0.5s ease; /* ← 追加 */
}

/* ホバー時に色を白く、かつ0.3秒遅らせる */
.gairai-index:hover h1 {
  color: white;
  transition-delay: 0.2s; /* ← 遅延を設定 */
}
.gairai-index a {
  text-decoration: none;
}

/* 医療関係者の欄 */
.gairai-index i {
  display: inline-block;
  position: relative;
  z-index: 3;
  padding: 20px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.5s ease;
}

.gairai-index:hover i {
  background: white;
  color: #007acc;
	transition-delay: 0.2s; /* hover時に0.2秒遅らせて効果を出す */
}
