/*============================= 下層ヘッダー =============================*/
body #header {
    width: 100%;
    height: auto;
    z-index: 5;
    position: sticky;
    margin: 0 0;
    border-bottom: none;
    box-sizing: border-box;
    top: 0px;
    background: linear-gradient(90deg, rgb(22 119 140 / 88%) 0%, rgb(63 166 166 / 55%) 100%) !important;
    backdrop-filter: blur(7px);
}

.l-header{
    width: 100%;
}

/* ヘッダーの中身 */
#l-header .inner {
    display: flex;
    margin: 0 0;
    padding: 20px 30px;
    /* background-color: #333; */
    justify-content: space-between;
    width: auto;
    align-items: flex-end;
}

/* インナー共通（サイト全体で使っている場合はそのままでOK） */
.inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}


.header-logo-box {
    width: 20%;
}

.header-logo {
    overflow: hidden;
    width: 80%;
    display: block;
}

.header-logo img{
width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#header h1 {
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    white-space: nowrap;
}

.modal-container {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    width: 100%;
    top: 0;
    right: 0;
    height: 46vw;
}

/* 表示状態のときだけ出す */
.modal-container.is-active {
  display: flex;
}

/* 白い中身のボックス */
.modal-body {
    position: relative;
    background: #fff;
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 閉じるボタン（×） */
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content img {
    width: 100%;
}

.head-right_contact {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 50%;
    justify-content: flex-end;
    margin: 0 0 0 auto;
}

.head-right_contact p {
    margin: 0 0;
    height: auto;
}

/* ヘッダーの電話ボタン */
.head-right_tel a {
    display: block;
    padding: 4px 15px;
    transition: all 0.2s ease-in;
    border-radius: 40px;
    background: #bf9782;
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
box-shadow: 0 0 4px 1px #00667c5e;
}

/* ヘッダーのLINEボタン */
.head-right_line {
    width: 35%;
    height: auto;
}

.head-right_line a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 15px;
    border-radius: 999px;
    background: #bf9782;
    color: #fff;
    text-decoration: none;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
box-shadow: 0 0 4px 1px #00667c5e;
}

.fa-line {
    overflow: hidden;
    width: 13%;
}

.head-right_line a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.line-txt{
	color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
}

/* LINEのウィンドウ */
/* モーダルの背景 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* 背景を暗くする */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* モーダル内のコンテンツ */
.modal-content {
    text-align: center;
    border-radius: 8px;
    position: relative;
    width: 70%;
}

#closeModalBtn {
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}




/* メニューデザイン */

.global-nav{
	margin-top:20px;
}

.global-nav nav{
	
}

.global-nav li {
    list-style-type: none;
}

.global-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}
/* 
.global-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0 0;
    margin: 0 0;
} */
.global-nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.global-nav li a:hover {
	color:#fff !important; 
  opacity: 0.9;
}

.global-nav_txt {
    display: block;
font-size: 18px;
    color: #fff;
		white-space: nowrap;
}

.global-nav_txt span {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #24ffd5;
    text-shadow: none;
}

/* aタグ自体に relative を付ける */
.global-nav li a.global-nav_txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;      /* ←ここが大事！ */
  padding-bottom: 4px;     /* 下線用の余白 */
  text-decoration: none;
  color: #fff;
}

/* 下線 */
.global-nav li a.global-nav_txt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #8ccabc;
  transition: width 0.2s ease-in;
}

/* ホバー＆アクティブで文字色変更 */
/* .global-nav li a.global-nav_txt:hover span{
  color: #8ccabc;
} */

/* ホバー＆アクティブで下線を伸ばす */
.global-nav li a.global-nav_txt:hover::after,
.global-nav li a.global-nav_txt.active::after {
  width: 100%;
}

/* ドロップダウン */

.global-nav > ul > li {
  position: relative;
}

.global-nav > ul > li.has-sub {
  position: relative;
  padding-bottom: 8px;   /* ← この分だけ見た目のスキマを作る */
}


/* ドロップダウン本体 */
.global-nav_dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #e4f4ee;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 0 0;
  list-style: none;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in;
  z-index: 1000;
  display: block; 
}

.global-nav_dropdown li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
}

/* ホバーで表示 */
.global-nav > ul > li.has-sub:hover .global-nav_dropdown {
  opacity: 1;
  visibility: visible;
}

/* 各行 */
.global-nav_dropdown li {
  position: relative;
}

/* リンクの見た目 */
.global-nav_dropdown_link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  color: #16778c;
  text-decoration: none;
  white-space: nowrap;
}

/* 行の仕切り線（最後だけ消す） */
.global-nav_dropdown li + li .global-nav_dropdown_link {
  border-top: 1px solid #f0e8da;
}

/* 左の三角マーカー */
.global-nav_dropdown_link::before {
  content: "▶";
  font-size: 10px;
  margin-right: 8px;
  color: #16778c;
}

/* ホバー時（少し背景を変える） */
.global-nav_dropdown_link:hover {
  background: #16778c;
}

/* 一番上の要素（ホバー時に上だけ角丸） */
.global-nav_dropdown li:first-child .global-nav_dropdown_link:hover {
  border-radius: 12px 12px 0 0;
}

/* 一番下の要素（ホバー時に下だけ角丸） */
.global-nav_dropdown li:last-child .global-nav_dropdown_link:hover {
  border-radius: 0 0 12px 12px;
}

.global-nav_dropdown_link:hover::before {
  color: #fff;
}

.mobile-menu{
	display:none;
}

/* ------------ タブレットサイズ ------------ */
@media only screen and (max-width: 1300px) {
.l-header{
	width: 100%;
}

#l-header .inner {
    min-width: initial;
    padding: 15px 0;
    width: 95%;
    margin: 0 auto;
    align-items: center;
}

#l-header .inner #logo img {
    width: auto;
    height: 45px;
}

.head-right_contact, .global-nav{
    display: none;
}

.header-logo-box {
    width: 50%;
}

#header h1 {
    font-size: 12px;
    font-weight: 200;
}

.head-right {
    position: absolute;
/*     TOP: 0px; */
    right: 0px;
    width: 30%;
}
	
/* メニューのスタイル */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: #bf9782;
    padding: 10px;
    border-radius: 3px;
    gap: 6px;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 20px;
}

.hamburger-menu div {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50px;
}
	
.mobile-menu.active {
    display: block;
    position: absolute;
    padding: 0 20px 14px;
    background: #ffffff;
    box-shadow: 0 0 7px 2px rgb(0 0 0 / 20%);
    width: 100%;
    right: 0;
    border-radius: 5px;
        overflow-y: auto;
}

/* メニュー項目のスタイル */
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
    padding: 15px 20px;
    border-bottom: 1px solid #bebebe;
}

	.mobile-nav li a:link{
		        color: #131b1c;
	}

.mobile-nav a {
    text-decoration: none;
    color: #131b1c;
    display: block;
}
	
.mobile-nav a span {
    display: block;
    font-size: 12px;
    color: #3fa6a6;
    position: relative;
}

/* ドロップダウンメニューのスタイル */
.mobile-nav_dropdown {
  display: none;
  list-style: none;
 
}

.mobile-nav_dropdown.show {
    display: block;
    padding: 0 0;
    margin-top: 15px;
}
	
.mobile-nav_dropdown li {
    padding: 10px 0;
    border-bottom: none;
    background: #bf9782;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #fff;
}

.mobile-nav_dropdown li a {
    color: #fff !important;
    text-align: center;
    text-shadow: 0 0px 3px #722801;
    font-weight: 900;
}


/* ドロップダウンメニューが開いているときのアコーディオンのアイコンの変化 */
.accordion-toggle[aria-expanded="true"] {
  color: #fff; /* 開いたときの色変更 */
}

.accordion-toggle[aria-expanded="true"]::after {
    content: "▲";
    right: 40px;
    position: absolute;
        color: #16778c;
}

.accordion-toggle[aria-expanded="false"]::after {
    content: "▼";
    right: 40px;
    position: absolute;
        color: #bf9782;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active div:nth-child(1) {
  transform: rotate(45deg);
  position: relative;
  top: 8px;
}

.hamburger-menu.active div:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active div:nth-child(3) {
  transform: rotate(-45deg);
  position: relative;
  top: -8px;
}

	
}

/* ------------ スマホサイズ ------------ */
@media only screen and (max-width: 480px){
body.home #l-header .inner {
    padding: 10px 10px 20px !important;
}

.header-logo-box {
    width: 100%;
}

.head-right {
    width: 50%;
}

.mobile-nav li a {
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav a span {
    font-weight: 500;
}

.row_foot01>.col_r .tbl_time {
    max-width: 100% !important;
}


	.mobile-menu.active{
    width: 70vw;
    right: 8px;
    overflow-y: auto;
    height: 116vw;
    margin-top: 10px;
	}

}


/*============================= TOPページヘッダー =============================*/
body.home #l-header .inner {
    padding: 10px 30px 20px;
}

/* TOPページだけヘッダー背景を透明にする */
body.home #header {
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

body.home #header {
    background: linear-gradient(90deg, rgb(22 119 140 / 88%) 0%, rgb(63 166 166 / 55%) 100%) !important;
    backdrop-filter: blur(7px);
    margin: 0 0;
    height: auto;
}

body.home .global-nav li a.global-nav_txt {
    text-shadow: 0 0px 5px #00000082;
}


body.home .global-nav_txt{
	color:#fff;
    text-shadow: 0 0px 5px #00000082;
}