/* -------------------グローバルメニュー ------------------- */

/* 画面サイズが1279px以下の時はPC用メニューは非表示 */
@media screen and (max-width: 1279px) {
  .pc-menu {
    display: none;
  }
}
/* 画面サイズが1280px以上の時はスマホ用メニューは非表示 */
@media screen and (min-width: 1280px) {
  .hamburger {
    display: none;
  }
}

.pc-menu{
    background-color: #f93;
  }

.main-menu {
  background-color: ; /* 既存のまま */
  position: relative;
  width: 100%;
  z-index: 999; /* ⭕ 1から999に引き上げて最前面に */
}

.main-menu.js_fixed{
position: fixed;
top: 0;
}

.gnav-wrapper {
  display: flex;
	justify-content: space-evenly;
	align-items: center;
	margin:0;
	padding:0;
	background-color: #f93;
}
.global_menu {
  display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 10px;
		margin:0;
	position: relative;
	list-style-type:none;
	width: 100%;
	max-width: 900px;
	box-sizing: border-box;
	
}


.global_menu :hover {
transition: background-color .3s;	
}

.global_menu li:hover {
	background-color: #f60;

}
.global_menu li a {
  color: #fff;
  display: block;
  padding: 10px;
}
.header-nav-child {
  background-color: #fb0;
  height: 0;
  top: 100%; /* ⭕ 追加：親メニューの真下から出現させる */
  left: 0;
  overflow: hidden; /* ここはアニメーション用にhiddenのままでOK */
  position: absolute;
  text-align: center;
  transition: height .3s;
  width: 100%;
}

.header-nav-child .sub-menu {
  padding: 30px;
	  width: 100%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	box-sizing: border-box;
}

.header-nav-child .sub-menu li{
		list-style-type:none;
}

.header-nav-child .sub-menu li:hover a{
background-color: #fb0;
	color: #555;
}
/* メニューをhoverした時のスタイル */
.global_menu li:hover .header-nav-child {
height: 116px; /* メガメニューの高さ */
}


.condi-ico a::before,
.psych-ico a::before,
.psy-ico a::before,
.kanpou-ico a::before,
.tum-ico a::before,
.hosdoc-ico a::before,
.first-ico a::before,
.re-ex-ico a::before,
.first-ico a::before,
.re-ex-ico a::before,
.time-ico a::before,
.hosinfo-ico a::before,
.kanpou1-ico a::before,
.kanpou2-ico a::before

{
    content: "";
    display: inline-block;
    width: 50px;  /* アイコンの横幅 */
    height: 50px; /* アイコンの縦幅 */
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

.condi-ico a::before
{
    background-image: url("images/top.png");
}
.psych-ico a::before
{
    background-image: url("images/psycmed.png");
}

.psy-ico a::before
{
    background-image: url("images/psych.png");
}
.kanpou-ico a::before
{
    background-image: url("images/kanpou.png");
}
.hosdoc-ico a::before {
    background-image: url("images/doctor1.png");
}
.first-ico a::before,
.re-ex-ico a::before {
    background-image: url("images/himawari.png");
}

.time-ico a::before {
    background-image: url("images/jikan.png");
}

.hosinfo-ico a::before {
    background-image: url("images/hosinfo.png");
}
.kanpou1-ico a::before {
    height: 50px; /* アイコンの縦幅 */
    background-image: url("images/kanpou002.png");
}
.kanpou2-ico a::before {
    background-image: url("images/kanpou003.png");
}

/*=========================================
#hamburger
=========================================*/
.hamburger {
    position: fixed;
    top: 150px;
    right: 20px;
    z-index: 150;
    width: 30px;
    height: 30px;
	cursor: pointer;
}

.hamburger.is-active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-135deg);
}

.hamburger span {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 2px;
    background-color: #333333;
    transition: transform .3s;
}

.hamburger.is-active span {
    background-color: #ffffff;
}

.hamburger span:nth-child(1) {
    top: 30%;
}

.hamburger span:nth-child(2) {
    top: 60%;
}

.hamburger span:nth-child(3) {
    top: 90%;
}

/*=========================================
#drawer
=========================================*/
.drawer {
		text-orientation: mixed !important;
	text-combine-upright: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%; 
    background-color: #f93;
    transition: opacity .3s, visibility .3s;
    overflow-y: auto; 
	-webkit-overflow-scrolling: touch; 
	 z-index: 140 !important; 
}

.drawer.is-active {
    visibility: visible;
    opacity: 1;
}

.drawer-inner {
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100%; 
    padding: 60px 20px 100px; /* iPhoneメニューと重ならないよう下余白を確保 */
    box-sizing: border-box; 
}

.hm {
    color: #fff;
    list-style-type: none;
    font-size: 20px;
    line-height: 2.0; 
    margin: 0;       
    padding: 0;      
    width: 100%;     
    text-align: left; 
}

.hm li .sub-menu li {
    color: #fff;
    list-style-type: none;
    font-size: 16px; 
}

/* ===================================================
   ドロワーが開いているとき、後ろのページ（body）を強制固定
=================================================== */
body.is-drawer-open {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    position: fixed !important; /* iPhoneのスクロールを物理的に完全フリーズ */
}
/* ===============================================
# 共通
=============================================== */
a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    font-style: italic;
    vertical-align: middle;

    shape-margin: .75rem;
}

