@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%;
	line-height: 1.6;
	color: #222222;
	background-color: #FFFFFF;
	margin: 0;
	padding: 0;
	text-align: left;
}

#wrapper {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* リンク色設定 */
a:link {
	color: #084482;
	text-decoration: underline;
}
a:visited {
	color: #005A6F;
	text-decoration: underline;
}
a:hover,
a:active {
	color: #003344;
	text-decoration: none;
}

/* フォーカスリング */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid #005A6F;
	outline-offset: 2px;
}

/* スクリーンリーダー非表示クラス */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.img1 {
	border: 1px solid #C7C7C7;
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   2. ヘッダー上部ユーティリティ（バナー ＆ 検索フォーム）
   ========================================================================== */

.top-utility {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	margin: 13px 0 14px 0;
	box-sizing: border-box;
}

.banner-group {
	display: flex;
	align-items: center;
	gap: 15px;
}

.banner-group a {
	display: inline-block;
	position: relative;
	vertical-align: middle;
	text-decoration: none;
}

.banner-group a img {
	width: auto;
	height: auto;
	display: block;
}

.search-form {
	display: flex;
	align-items: center;
	margin: 0;
}

.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. グローバルナビゲーション（バナー直下）
   ========================================================================== */

.main-nav-wrapper {
	width: 100%;
	background-color: #EFF6F6;
	margin-bottom: 0;
	box-sizing: border-box;
}

ul.menu_nav {
	margin: 0;
	padding: 0 0 0 15px;
	background-color: #EFF6F6;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	border-bottom: none;
}

ul.menu_nav > li {
	position: relative;
	width: 160px;
	list-style-type: none;
}

ul.menu_nav a {
	background-color: #EFF6F6;
	color: #636363;
	line-height: 50px;
	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 ul {
	margin: 0;
	padding: 0;
	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: 100;
	list-style-type: none;
	box-sizing: border-box;
}

ul.menu_nav ul li {
	width: 100%;
}

ul.menu_nav ul li a {
	line-height: 45px;
	text-align: left;
	padding-left: 12px;
	background-color: #FFFFFF;
	border-bottom: 1px solid #EEEEEE;
	white-space: nowrap;
}

ul.menu_nav li:hover > ul,
ul.menu_nav li:focus-within > ul {
	display: block;

}

/* ==========================================================================
   4. メインヘッダー
   ========================================================================== */

header {
	position: relative;
	height: 270px;
	margin: 0 0 20px 0;
	background-color: #FFFFFF;
	background-image: url(../image/ima_header20190208.png);
	background-repeat: no-repeat;
	background-position: 150% center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-left: 90px;
	box-sizing: border-box;
}

.header-main-img {
	display: none;
}

header h1 {
	margin: 0;
	font-size: 170%;
	font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
	color: #1FABC6;
	font-weight: bold !important;
	line-height: 1.3;
	text-align: center;
}

header h1 .title-ja,
header h1 .title-en {
	display: block;
	white-space: nowrap;
	text-align: center;
	font-size: 100%;
	color: #1FABC6;
	font-weight: bold !important;
}

/* ==========================================================================
   5. 3カラムレイアウト
   ========================================================================== */

.layout-container {
	width: 1000px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	box-sizing: border-box;
}

#left_sidebar {
	width: 180px;
	box-sizing: border-box;
}

#refa {
	width: 540px;
	box-sizing: border-box;
	text-align: left;
}

#right_sidebar {
	width: 180px;
	box-sizing: border-box;
	font-size: 0.9rem;
}

.bartitle {
	width: 100%;
	padding: 6px 0;
	background-color: #BBCDB9;
	color: #262626;
	text-align: center;
	font-size: 100%;
	font-weight: bold;
	margin: 0 0 10px 0;
	box-sizing: border-box;
}

.sidebar_ul {
	margin: 0 0 15px 0;
	padding: 0;
	text-align: center;
	list-style-type: none;
}

.sidebar_ul li {
	padding: 6px 0;
	font-size: 0.9rem;
}

/* ==========================================================================
   6. パンくずリスト
   ========================================================================== */

.breadcrumb-nav {
	margin: 30px 0 20px 0;
	clear: both;
}

.pan {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
	justify-content: flex-end;
	font-size: 0.85rem;
	box-sizing: border-box;
}

.pan li + li::before {
	content: ">";
	margin: 0 0.5em;
	color: #666666;
}

/* ==========================================================================
   7. フッター ＆ TOPへ戻るボタン
   ========================================================================== */

footer.footer1 {
	position: relative;
	width: 100%;
	height: auto;
	margin: 40px 0 20px 0;
	padding: 25px 15px;
	background-color: #EFF6F6;
	color: #555555;
	text-align: center;
	font-size: 0.85rem;
	border-radius: 4px;
	clear: both;
	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: transform 0.2s ease, background-color 0.2s ease;
	z-index: 10;
}

.pagetop-btn::before {
	content: "TOP";
	position: absolute;
	top: 28px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 9px;
	font-weight: bold;
	color: #FFFFFF;
}

.pagetop-btn::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 10px;
	height: 10px;
	border-top: 2px solid #FFFFFF;
	border-right: 2px solid #FFFFFF;
}

.pagetop-btn:hover,
.pagetop-btn:focus {
	background-color: #7f5689;
	transform: translateY(-3px);
}

/* ==========================================================================
   8. メディアクエリ（レスポンシブ対応：画像位置微調整＆バナー切れる防止版）
   ========================================================================== */

@media (max-width: 768px) {
	#wrapper {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 10px !important;
		box-sizing: border-box !important;
		display: flex !important;
		flex-direction: column !important;
	}

	/* 上部バナー＆検索エリア：スマホ向けレイアウト調整 */
	.top-utility {
		order: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		align-items: center !important;
		justify-content: 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;
		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 nav[aria-label="メインナビゲーション"],
	.main-nav-wrapper {
		order: 2 !important;
		width: calc(100% + 20px) !important;
		margin-left: -10px !important;
		margin-right: -10px !important;
		margin-bottom: 15px !important;
		position: relative !important;
		z-index: 1000 !important;
	}

	ul.menu_nav {
		padding: 0 !important;
		justify-content: center !important;
		width: 100% !important;
	}

	ul.menu_nav > li {
		width: 33.33% !important;
	}

	/* スマホ時：header構造（上：h1、下：画像） */
	header {
		order: 3 !important;
		position: relative !important;
		width: 100% !important;
		height: auto !important;
		min-height: auto !important;
		background-image: none !important;
		background-color: #FFFFFF !important;
		padding: 4px 0 8px 0 !important;
		align-items: center !important;
		display: flex !important;
		flex-direction: column !important;
		margin-bottom: 15px !important;
	}

	header h1 {
		order: 1 !important;
		position: relative !important;
		top: auto !important;
		left: auto !important;
		font-size: 140% !important;
		font-weight: bold !important;
		margin: 0 0 4px 0 !important;
		text-align: center !important;
		color: #1FABC6 !important;
		transform: translateY(0.5px) !important;  /* ← 0.5px下へ移動させます */
	}

	header img.header-main-img {
		order: 2 !important;
		display: block !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		margin: 20px 0 0 0 !important;      /* 基本の上下マージン */
		position: static !important;
		left: auto !important;
		
		/* 横はバッチリ決まった -8.9px、縦は上にわずか 0.25px だけ持ち上げる設定 */
		transform: translate(-9.9px, 2.0px) !important;
	}

	ul.menu_nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		width: 230px;
		max-width: 90vw;
		box-shadow: 0 4px 10px rgba(0,0,0,0.2);
		z-index: 1000;
	}

	ul.menu_nav ul li a {
		white-space: nowrap !important;
		font-size: 0.85rem;
		padding: 0 10px;
		line-height: 45px;
	}

	/* レイアウトコンテナ（orderで表示順序を指定） */
	.layout-container {
		order: 4 !important;
		width: 100% !important;
		max-width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
	}

	/* 1. 中央メインエリア（お問い合わせ） */
	#refa {
		order: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		padding: 0 !important;
		text-align: left !important;
		box-sizing: border-box !important;
	}

	/* 2. 左サイドバー */
	#left_sidebar {
		order: 2 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
	}

	/* 3. 右サイドバー */
	#right_sidebar {
		order: 3 !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 25px 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
	}

	.breadcrumb-nav {
		order: 5 !important;
	}

	footer.footer1 {
		order: 6 !important;
	}
}