/* =========================================================
 * style.css
 * 共通リセット、基本レイアウト、ヘッダー、フッター、パンくずリスト
 * 適用テンプレート: @Layout.latte (全ページ)
 * ========================================================= */

/* ---------------------------------------------------------
 * 1. リセット/共通基本スタイル
 * --------------------------------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	color: #333;
	line-height: 1.6;
	background-color: #f8f8f8;
	width: 100%;
	overflow-x: hidden;
}

body.no-scroll {
	overflow: hidden;
}

a {
	text-decoration: none;
	color: #4a4a4a;
	transition: opacity 0.3s;
}

a:hover {
	opacity: 0.7;
}

ul {
	list-style: none;
}

.inner-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

section {
	padding: 60px 0;
}

h2 {
	font-size: 28px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 40px;
	color: #2a2a2a;
}

/* ---------------------------------------------------------
 * 2. ヘッダーとナビゲーション (#header, #global-nav)
 * --------------------------------------------------------- */
#header {
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
}

.site-logo a {
	display: flex;
	align-items: center; /* 垂直中央揃え */
	gap: 0px;			 /* ロゴとテキストの間隔 */
	font-size: 24px;
	font-weight: 700;
	color: #333;
}

.logo-img_0 {
	/* 高さを1em（現在のフォントサイズ）に合わせる */
	height: 1.2em;
	width: auto;   /* アスペクト比を維持 */
	vertical-align: middle;
}

.logo-img {
	height: 48px;
	width: 48px;
}

.company-img {
	/* 高さ2em */
	height: 2.0em;
	width: auto;   /* アスペクト比を維持 */
	vertical-align: middle;
}

/* PCナビゲーション */
#global-nav {
	margin-left: auto; /* ロゴとの間に空間を作る */
}

#global-nav ul {
	display: flex;
}

#global-nav ul li a {
	display: block;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: 500;
}

.header-contact {
	margin-left: 20px;
	z-index: 10;
}

.tel-link {
	display: inline-block;
	padding: 8px 15px;
	background-color: #ff5722;
	color: #fff;
	border: 2px solid #ff5722;
	border-radius: 5px;
	font-size: 18px;
	font-weight: bold;
	white-space: nowrap;
	transition: background-color 0.3s, opacity 0.3s;
}

.tel-link:hover {
	background-color: #e64a19;
	opacity: 0.9;
}

.nav-toggle {
	display: none; /* PCでは非表示 */
}

.contact-link a {
	color: #fff;
	background-color: #2196f3;
	border-radius: 4px;
	padding: 10px 20px;
	margin-left: 10px;
}

.contact-link a:hover {
	background-color: #1976d2;
	opacity: 1;
}

/* ---------------------------------------------------------
 * 3. パンくずリスト (#breadcrumb)
 * --------------------------------------------------------- */
#breadcrumb {
	background-color: #f5f5f5;
	padding: 10px 0;
	font-size: 13px;
	border-bottom: 1px solid #eee;
}

#breadcrumb ul {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
}

#breadcrumb li {
	display: flex;
	align-items: center;
}

#breadcrumb li a {
	color: #555;
	padding: 0 5px;
}

#breadcrumb li:not(:last-child)::after {
	content: "›";
	padding-left: 5px;
	color: #aaa;
}

#breadcrumb li:last-child span {
	color: #000;
	font-weight: bold;
	padding-left: 5px;
}

/* ---------------------------------------------------------
 * 4. フッター (#footer)
 * --------------------------------------------------------- */
#footer {
	background-color: #333;
	color: #fff;
	padding: 30px 20px;
	font-size: 14px;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}

.footer-nav {
	margin-bottom: 10px;
}

.footer-nav ul {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.footer-nav a {
	color: #ccc;
	padding: 5px 10px;
	transition: color 0.3s;
}

.footer-nav a:hover {
	color: #fff;
}

.footer-address {
	font-style: normal;
	margin-bottom: 20px;
	color: #ccc;
	line-height: 1.6;
}

.footer-address p {
	margin: 5px 0;
}

.footer-address a {
	color: #fff;
	font-weight: bold;
	border-bottom: 1px solid #fff;
	transition: opacity 0.3s;
}

.copyright {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #555;
	color: #888;
}

/* ---------------------------------------------------------
 * 5. レスポンシブ対応 (共通)
 * --------------------------------------------------------- */
@media (max-width: 1040px) {
	section {
		padding: 40px 0;
	}
	h2 {
		font-size: 24px;
		margin-bottom: 30px;
	}

	/* ヘッダー配置の最適化 */
	#header {
		height: 60px;
	}
	.header-inner {
		padding: 0px 5px; 		/*	上下｜左右==>0 15px;	*/
		height: 100%;
		display: flex;
		justify-content: flex-start; /* 左詰めに変更 */
		align-items: center;
	}

	.site-logo {
		order: 1; /* 左端 */
		margin-right: auto; /* これでロゴ以外の要素を右端に押し出す */
	}
	.site-logo a {
		font-size: 18px;
	}

	.logo-img {
		height: 40px;
		width: 40px;
	}

	/* 電話ボタンを右側に寄せる */
	.header-contact {
		order: 2;
		margin-left: 0px;		/* 余計なマージンをリセット		*/
		margin-right: 8px;		/* ナビボタンとの隙間を微調整	*/
	}

	.tel-link {
		font-size: 15px;
		padding: 5px 10px;
	}

	.tel-link_2 {
		width: 40px;
		height: 40px;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%; /* 丸いアイコンボタンにする */
		font-size: 20px;
	}

	/* ハンバーガーメニューを右端に配置 */
	.nav-toggle {
		display: block;
		order: 3; /* 一番右 */
		width: 40px;
		height: 40px;
		position: relative;
		z-index: 200;
		background: none;
		border: none;
		cursor: pointer;
	}



	.icon-bar {
		display: block;
		width: 25px;
		height: 2px;
		background-color: #333;
		margin: 6px auto;
		transition: 0.3s;
	}
	.nav-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
	.nav-toggle.active .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.nav-toggle.active .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	/* モバイルナビゲーション（オーバーレイ） */
	#global-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: rgba(255, 255, 255, 0.98);
		z-index: 150;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0.3s;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-left: 0;
	}
	#global-nav.active {
		opacity: 1;
		visibility: visible;
	}
	#global-nav ul {
		flex-direction: column;
		text-align: center;
	}
	#global-nav ul li a {
		padding: 15px 20px;
		font-size: 18px;
	}
	.contact-link {
		width: 100%;
		text-align: center;
		margin-top: 10px;
	}
	.contact-link a {
		display: block;
		width: 200px;
		margin: 15px auto;
		padding: 12px;
	}

	/* フッター */
	.footer-nav ul {
		flex-direction: column;
		gap: 5px;
	}
}

@media (max-width: 340px) {
	/* 電話番号のテキストを非表示にする */
	.tel-link .tel-number {
		display: none;
	}
	/* アイコンのみになるため、ボタンを正方形または丸く整える */
	.tel-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;  /* 押しやすいサイズ */
		height: 44px; /* 押しやすいサイズ */
		padding: 0;
		font-size: 22px; /* アイコンを少し大きく */
		border-radius: 5px;
	}

	/* 余白の調整（必要に応じて） */
	.header-contact {
		margin-right: 5px;
	}
}
