@charset "Shift_JIS";
/* =========================================================
PC閲覧時にスマートフォン表示を再現するためのスタイル
========================================================= */
/*
 * 概要:
 * PC等の768px以上の画面幅でアクセスした場合でも、スマートフォンと
 * 同様のレイアウト（幅464px）で表示するためのCSSです。
 *
 * 使用方法:
 * bodyタグに `is_sp_only` クラスを追加してください。
 * #wrapper の要素でコンテンツを囲みます。
 *
 * 動作:
 * `body.is_sp_only` を起点として、#wrapper の幅を固定し、
 * ページ全体をブラウザの中央に配置します。
 * また、CSS変数 `--contents_width` を定義し、
 * 各ページ固有のCSSでもレイアウト幅として利用できるようにします。
 */

/* CSS変数
----------------------------------------------------*/
:root {
	--contents_width: 100vw;
	--header-height: 0px; /* JSによる動的な高さ取得のフォールバック値 */
	scroll-padding-top: var(--header-height);
}
@media screen and (min-width: 768px) {
	:root {
		--contents_width: 464px;
	}
}

/* 初期化
----------------------------------------------------*/
html,body {
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%;
}

/* ヘッダー
----------------------------------------------------*/
#header {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	margin: 0;
	height: 64px;
	background-color: #ffffff;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	z-index: 50;
	box-sizing: border-box;
}

#header * {
	font-family: "YakuHanJP_Noto", "Roboto", "Noto Sans JP", sans-serif;
}

#header ul,
#header li,
#header a {
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
}

#header a {
	text-decoration: none;
}

*::before,
*::after {
	box-sizing: border-box;
}

#header .h_container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#header .h_menu_btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #4b5563;
	transition: color 0.2s;
}

#header .h_menu_btn:hover {
	opacity: 0.7;
}

#header .h_menu_btn svg {
	width: 32px;
	height: 32px;
	display: block;
}

#header .h_menu {
	position: absolute;
	top: 64px;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	z-index: 40;
	border-top: 1px solid #f3f4f6;
	transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
}

#header .h_menu.open {
	max-height: 500px;
	opacity: 1;
}

#header .h_menu_link {
	display: block;
	padding: 16px;
	text-align: center;
	color: #374151;
	font-weight: 500;
	border-bottom: 1px solid #f3f4f6;
	transition: background-color 0.2s;
}

#header .h_menu_link:hover {
	background-color: #f9fafb;
}

#header .h_menu_link:last-child {
	border-bottom: none;
}

/* 固定ヘッダーと被らないように余白を調整 */
body.is_sp_only {
	padding-top: var(--header-height);
}

/* SP表示のPC化(共通部分)
----------------------------------------------- */
@media screen and (min-width: 768px) {
	body.is_sp_only{
		background-color: #f7f7f7;
	}
	body.is_sp_only #wrapper{
		width: 464px;
		margin: 0 auto;
		background-color: #fff;
	}
	body.is_sp_only #header {
		width: var(--contents_width);
	}
}
