@charset "utf-8";
/* CSS Document */
/* ==========================================
   リセットと基本スタイル (スマホベース)
========================================== */
/* 全体を囲むスマホ用ラッパー (最大640px) */
.sp-wrapper {
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	background-color: #ffffff;
	position: relative;
	overflow-x: hidden;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ==========================================
   ヘッダーエリア
========================================== */

#header_sp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 640px; /* sp-wrapperに合わせる */
    z-index: 1000;
    background-color: #ffffff; /* スクロール時の背景透過防止 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* スクロール時に境界をわかりやすく */
    /* 中央配置（sp-wrapperと同じ挙動にするため） */
    left: 50%;
    transform: translateX(-50%);
}

/* ヘッダーが固定された分、メインコンテンツを下げる */
main {
	 padding-top: 100px; 
}



.header-top {
	background: #804F1B;
	padding: 8px 4%;
	text-align: center;
}

.header-title {
	color: #ffffff;
	font-size: 11px;
	line-height: 1.4;
}

/* ユーティリティナビはスマホでは非表示（メニュー内に集約推奨） */
.header-utility-nav {
	display: none;
}

.header-middle {
	background: #FFFFFF;
	padding: 15px 4%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

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

.header-logo-area img {
	width: 100%;
	height: auto;
	display: block;
}

.header-phone-area {
	width: 35%;
}

.header-phone-area img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================
   ハンバーガーメニュー
========================================== */
.hamburger-btn {
	position: fixed;
	top: 15px;
	right: 15px;
	width: 44px;
	height: 44px;
	background-color: #AD0003;
	border-radius: 4px;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hamburger-btn span {
	width: 24px;
	height: 2px;
	background-color: #fff;
	transition: all 0.3s;
}

/* メニュー開閉時のバツ印アニメーション */
.hamburger-btn.active span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
	opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

.sp-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 85%;
	max-width: 320px;
	height: 100vh;
	background-color: #ffffff;
	z-index: 1500;
	transition: right 0.3s ease;
	overflow-y: auto;
	padding: 80px 20px 40px;
	box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.sp-nav.active {
	right: 0;
}

.sp-nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0,0,0,0.5);
	z-index: 1400;
	display: none;
}

.sp-nav-overlay.active {
	display: block;
}

.sp-nav-list {
	list-style: none;
}

.sp-nav-item {
	border-bottom: 1px solid #eee;
}

.sp-nav-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 5px;
	text-decoration: none;
	color: #333;
	font-weight: bold;
	font-size: 16px;
}

.sp-nav-link.has-sub::after {
	content: "＋";
	font-size: 18px;
	color: #AD0003;
}
.sp-nav-item.open .sp-nav-link.has-sub::after {
	content: "−";
}

.sp-nav-sub {
	display: none;
	background: #f9f9f9;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.sp-nav-item.open .sp-nav-sub {
	display: block;
}

.sp-sub-link {
	display: flex;
	align-items: center;
	padding: 10px;
	text-decoration: none;
	color: #444;
	font-size: 14px;
	border-bottom: 1px dashed #ddd;
}
.sp-sub-link:last-child {
	border-bottom: none;
}

/* ==========================================
   1stビュー (スライダー)
========================================== */
.hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #ffffff;
	padding: 0 0 10px; /* 下部の余白を小さく調整 */
}

.slider-viewport {
	position: relative;
	width: 100%;
	/* height: 440px; スマホ用に高さを調整 */
	display: flex;
	align-items: center;
}

.slider-track {
	display: flex;
	will-change: transform;
	/* スワイプ操作をしやすくするため user-select を無効化 */
	user-select: none; 
	-webkit-user-select: none;
}

.slide {
	position: relative;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	/* width と margin はJSで動的に付与します */
}

.slide img {
	width: 100%;
	height: 440px;
	object-fit: cover;
	display: block;
	pointer-events: none; /* スワイプ中の画像ドラッグ防止 */
}

.slide::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	transition: background-color 0.4s ease;
	pointer-events: none;
}

.slide.active::after {
	background-color: rgba(0, 0, 0, 0);
}

.slide-content {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	color: #fff;
	z-index: 2;
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.5s ease;
}

.slide.active .slide-content {
	opacity: 1;
	transform: translateY(0);
}

.slide-content h2 {
	font-size: 18px;
	margin-bottom: 4px;
	text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.slide-content p {
	font-size: 12px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* 前後ボタン（スマホでは少し小さく） */
.slider-nav {
	position: absolute;
	top: 50%;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	padding: 0 10px;
	pointer-events: none;
	z-index: 10;
	box-sizing: border-box;
}

.nav-btn {
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	pointer-events: auto;
	font-size: 16px;
	color: #333;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}

.dot {
	width: 8px;
	height: 8px;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.dot.active {
	background-color: #804F1B;
	width: 20px;
	border-radius: 4px;
}
