@charset "utf-8";

/* ==========================================================================
   1. 基本設定・リセット
   ========================================================================== */

html {
	scroll-behavior: smooth;
	box-sizing: border-box;
}

*, *::before, *::after {
	box-sizing: inherit;
}

body {
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	-webkit-text-size-adjust: 100%;
	font-size: 83%;
	text-align: left;
	padding: 0;
	margin: 0;
	color: #222222;
	background-color: #FFFFFF;
}

#wrapper {
	width: 1000px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* リンク色設定 */
a:link {
	color: #084482;
	text-decoration: underline;
}
a:visited {
	color: #005A6F;
}
a:hover,
a:active {
	text-decoration: underline;
	color: #003344;
}

/* フォーカスリング */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid #005A6F;
	outline-offset: 2px;
}

/* ==========================================================================
   2. ヘッダー上部ユーティリティ（バナー ＆ 検索フォーム）
   ========================================================================== */

.top-utility {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	margin: 13px 0 7px 0;
	box-sizing: border-box;
}

.banner-group {
	display: flex;
	align-items: center;
	gap: 0px;
	transform: scale(1.005);
	transform-origin: left center;
}

.banner-group a {
	display: inline-block;
	text-decoration: none;
	margin-right: 15px;
}

.banner-group a:last-child {
	margin-right: 0;
}

.search-form {
	margin-top: -6px;
	display: flex;
	align-items: center;
}

.search-form input[type="search"] {
	height: 30px;
	box-sizing: border-box;
	font-size: 0.9rem;
	border: 1px solid #CCCCCC;
	padding: 2px 6px;
}

.search-form button {
	height: 30px;
	box-sizing: border-box;
	background-color: #005A6F;
	color: #FFFFFF;
	border: 1px solid #005A6F;
	padding: 0 10px;
	cursor: pointer;
}

.search-form button:hover {
	background-color: #003344;
}

/* ==========================================================================
   3. メインヘッダー ＆ スライダー（PC時）
   ========================================================================== */

header {
	position: relative;
	top: 0;
	left: 0;
	width: 1000px;
	height: 270px;
	overflow: visible !important; /* ← PC画面でプルダウンが下で切れないように変更 */
	box-sizing: border-box;
}

.hero-slider {
	position: absolute;
	top: 0;
	left: 0;
	width: 1000px;
	height: 214px;
	overflow: hidden;
	z-index: 1;
	margin-top: 65px;
}

@media (min-width: 769px) {
	.hero-slider {
		position: absolute;
		top: 0;
		left: 0;
		width: 1000px;
		height: 214px;
		overflow: hidden;
		z-index: 1;
		margin-top: 65px;
	}
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity 1.5s ease, visibility 1.5s ease;
}

.slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#slider-toggle {
	position: absolute;
	bottom: 11px;
	right: 5px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: 1px solid #fff;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 12px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}

#slider-toggle:focus {
	outline: 2px solid #006a80;
	background: #000;
}

h1 {
	position: absolute;
	font-size: 170%;
	font-family: "ＭＳ ゴシック", "MS Gothic", monospace, sans-serif;
	top: 80px;
	left: 90px;
	z-index: 10;
	color: #1FABC6;
	text-align: center;
	margin: 50px 0 0 0;
	line-height: 1.3;
}

h1 br + *,
h1 .title-en {
	display: block;
	margin-top: 2px;
}

header.static-header {
	position: relative;
	top: 0;
	left: 0;
	width: 1000px;
	height: 270px;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #FFFFFF;
	background-image: url(../image/ima_header20190208.png);
	background-repeat: no-repeat;
	background-position: 150% center;
}

.header-main-img {
	display: none;
}

header.static-header h1 {
	position: absolute;
	font-size: 170%;
	font-family: "ＭＳ ゴシック", "MS Gothic", monospace, sans-serif;
	top: 80px;
	left: 90px;
	z-index: 10;
	color: #1FABC6;
	text-align: center;
	margin: 50px 0 0 0;
	line-height: 1.3;
}


/* ==========================================================================
   4. グローバルナビゲーション（PC時横並び）
   ========================================================================== */

.menu_nav {
	position: relative;
	z-index: 10;
}

ul.menu_nav {
	margin: 0px;
	padding: 0px 0px 0px 15px;
	background-color: #EFF6F6;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
}

ul.menu_nav > li {
	width: 160px;
	list-style-type: none;
	position: relative;
}

ul.menu_nav a {
	background-color: #EFF6F6;/* 通常時の背景色 */
	color: #636363;/* 通常時の文字色 */
	line-height: 55px;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	display: block;
	box-sizing: border-box;
}

ul.menu_nav a:hover,
ul.menu_nav a:focus {
	color: #0C4694;/* ホバー時の文字色（青系） */
	background-color: #EFF6F6;/* ←★ここが背景色が変わる原因です #E2ECEC*/
}

ul.menu_nav li:hover > ul,
ul.menu_nav li:focus-within > ul {
	display: block;
}

ul.menu_nav ul {
	margin: 0px;
	padding: 0px;
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 210px;/* ←★ここがプルダウンの横幅です */
	background-color: #FFFFFF;
	border: 1px solid #DDDDDD;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	z-index: 99999 !important; /* ← プルダウンが確実に最前面に出るよう強化 */
	list-style-type: none;
}

ul.menu_nav ul li {
	width: 100% !important; /* 親（210px）の幅いっぱいに広げる */
}

ul.menu_nav ul li a {
	line-height: 50px;
	text-align: left;
	padding-left: 10px;
	background-color: #FFFFFF;
	border-bottom: 1px solid #EEEEEE;
	white-space: nowrap;
}

ul.menu_nav ul li a:hover {
	color: #0C4694;
}

/* ==========================================================================
   5. 3カラムレイアウトコンテナ（PC時）
   ========================================================================== */

.home-layout-container {
	width: 1000px;
	margin: 0 auto;
	margin-top: -7px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	box-sizing: border-box;
}

#left_sidebar {
	width: 180px;
	margin-top: 0;
	padding: 0;
	box-sizing: border-box;
	order: 1;
}

#main-wrap {
	width: 600px;
	margin-top: 0;
	padding: 0;
	box-sizing: border-box;
	order: 2;
}

#right_sidebar {
	width: 180px;
	margin-top: 0;
	padding: 0;
	box-sizing: border-box;
	order: 3;
}

.bartitle {
	width: 180px;
	padding: 6px 0px;
	background-color: #BBCDB9;
	color: #262626;
	text-align: center;
	box-sizing: border-box;
}

.sidebar_ul {
	margin-bottom: 0px;
	padding: 0px 2.4px 15px 2.4px;
	text-align: center;
	list-style-type: none;
}

.sidebar_ul li {
	padding-top: 6px;
	padding-bottom: 6px;
}

#left_sidebar p,
#right_sidebar p {
	line-height: 19px;
	margin-bottom: 6px;
}

/* ==========================================================================
   6. フッター・その他共通
   ========================================================================== */

footer.footer1 {
	position: relative;
	clear: both;
	width: 100%;
	margin: 20px 0;
	padding: 15px 0;
	text-align: center;
	background-color: #EFF6F6;
	color: #636363;
	box-sizing: border-box;
}

footer.footer1 p {
	margin: 0;
	line-height: 1.6;
}

.pagetop-btn {
	position: absolute;
	right: 20px;
	top: -25px;
	width: 48px;
	height: 48px;
	background-color: #1FABC6;
	border-radius: 50%;
	display: block;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	z-index: 10;
}

.pagetop-btn::before {
	content: "TOP";
	position: absolute;
	top: 28px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 10px;
	font-weight: bold;
	color: #fff;
}

.pagetop-btn::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 10px;
	height: 10px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
}

.pagetop-btn:hover {
	background-color: #7f5689;
	transform: translateY(-3px);
}

.img1 {
	border: 1px solid #C7C7C7;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   7. メディアクエリ（レスポンシブ対応）
   ========================================================================== */

@media (max-width: 768px) {
	#wrapper {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 10px !important;
		box-sizing: border-box !important;
		display: flex;
		flex-direction: column;
	}

	/* 上部バナー＆検索エリア：スマホ向けレイアウト調整 */
	.top-utility {
		order: 1 !important;
		flex-direction: column !important;
		gap: 10px !important;
		align-items: center !important;
		width: 100% !important;
		padding: 0 !important;
	}

	.banner-group {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 6px !important;
		transform: none !important; /* PC用の拡大指定をリセット */
		margin: 0 auto !important;
	}

	.banner-group a {
		display: flex !important;
		align-items: center !important;
		margin-right: 0 !important;
		flex-shrink: 1 !important;
		min-width: 0 !important;
	}

	.banner-group a img {
		height: auto !important;
		display: block !important;
	}

	/* 画面幅（Pixel 9 Pro等）に収まるようバナー画像を自動可変サイズ化 */
	.banner-group a:nth-child(1) img {
		width: 125px !important;
		max-width: 32vw !important;
	}

	.banner-group a:nth-child(2) img {
		width: 122px !important;
		max-width: 31vw !important;
	}

	.banner-group a:nth-child(3) img {
		width: 36px !important;
		max-width: 9vw !important;
	}

	.search-form {
		margin-top: 0 !important;
		justify-content: center !important;
		width: 100% !important;
	}

	header {
		order: 4 !important;
		width: 100% !important;
		height: auto !important;
		min-height: auto;
		overflow: visible !important;
		padding: 0;
		margin-bottom: 20px;
		display: contents !important;
	}

	header nav[aria-label="メインナビゲーション"] {
		order: 2 !important;
		width: calc(100% + 20px) !important;
		margin-left: -10px !important;
		margin-right: -10px !important;
		margin-top: 10px !important;
		margin-bottom: 15px !important;
		position: relative !important;
		z-index: 1000 !important;
	}

	ul.menu_nav {
		padding: 0;
		justify-content: center;
		width: 100% !important;
	}

	ul.menu_nav > li {
		width: 33.33% !important;
	}

	header h1 {
		order: 3 !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		margin: 15px 0 !important;
		font-size: 140% !important;
		font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif !important;
		font-weight: bold !important;
		color: #1FABC6 !important;
		text-align: center !important;
	}

	.hero-slider {
		order: 4 !important;
		position: relative !important;
		width: 100% !important;
		height: 180px !important;
		margin-top: 10px !important;
		box-sizing: border-box;
	}

	.slide img {
		width: 130% !important;
		max-width: none !important;
		object-fit: cover !important;
		object-position: 190% center !important;
	}

	ul.menu_nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		width: 220px;
		background-color: #FFFFFF;
		border: 1px solid #DDDDDD;
		box-shadow: 0 4px 10px rgba(0,0,0,0.2);
		z-index: 99999 !important; /* ← レスポンシブ時もプルダウンを最前面へ */
	}

	.home-layout-container {
		order: 5 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 0 !important;
		display: flex !important;
		flex-direction: column !important;
	}

	#main-wrap {
		order: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		box-sizing: border-box !important;
	}

	#left_sidebar {
		order: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		box-sizing: border-box !important;
	}

	#left_sidebar .bartitle {
		width: 100% !important;
	}

	#right_sidebar {
		order: 3 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		box-sizing: border-box !important;
	}

	#right_sidebar .bartitle {
		width: 100% !important;
	}
	
	footer.footer1 {
		order: 6 !important;
	}
}

@media (max-width: 480px) {
	ul.menu_nav > li {
		width: 33.33%;
	}
	.hero-slider {
		height: 150px !important;
	}
}

/* ==========================================================================
   iPad miniなどのタブレット帯（600px〜768px）専用：PC版ヘッダー構造の復元と画像調整
   ========================================================================== */
@media (min-width: 600px) and (max-width: 768px) {
	header {
		order: 3 !important;
		position: relative !important;
		width: 1000px !important;
		max-width: 100% !important;
		height: 370px !important;
		overflow: visible !important;
		display: block !important;
		margin: 10px auto 25px auto !important;
	}

	.hero-slider {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 1000px !important;
		max-width: 100% !important;
		height: 214px !important;
		margin-top: 165px !important;
		order: unset !important;
	}

	.slide img {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: contain !important;
		object-position: center center !important;
		background-color: #FFFFFF;
	}

	header h1 {
		position: absolute !important;
		top: 170px !important;
		left: 10px !important;
		transform: none !important;
		margin: 50px 0 0 0 !important;
		font-size: 170% !important;
		text-align: center !important;
		order: unset !important;
	}

	header nav[aria-label="メインナビゲーション"] {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ==========================================================================
   iPhone SEなどの小画面スマホ専用：スライダー画像の左右切れ防止
   ========================================================================== */
@media (max-width: 414px) {
	.slide img {
		width: 100% !important;
		max-width: 100% !important;
		object-fit: cover !important;
		object-position: 100% center !important;
	}
}

/* ==========================================================================
   iPhone 14〜16などの標準スマホサイズ専用：スライダー画像の右切れ防止（少し左に寄せる）
   ========================================================================== */
@media (min-width: 390px) and (max-width: 540px) {
	.slide img {
		width: 100% !important;
		max-width: 100% !important;
		object-fit: cover !important;
		object-position: 110% center !important;
	}
}