@charset "UTF-8";

/* =========================================
   1. 基本リセット & スマホ・共通設定
      (〜767px 想定)
   ========================================= */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: sans-serif;
	background-color: #D5EEF8;
	color: #333;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 背景設定 */
.pc-fixed-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -2;
	background-color: #D5EEF8;
	background-image: url('');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* サイド要素はスマホでは非表示 */
.pc-side-item {
	display: none;
}

/* PC・タブレット版ではセクション内のオーバーレイボタンは非表示 */
.overlay-item {
	display: block;
}

/* スマホ版固定ボタン（画面下部10%の位置に固定） */
.sp-fixed-btn {
	display: block;
	position: fixed;
	bottom: 2vh;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
	padding: 0 10px;
	box-sizing: border-box;
	pointer-events: none;
}

.sp-fixed-btn .sp-btn-link {
	display: block;
	width: 100%;
	max-width: 100%;
	pointer-events: auto;
}

.sp-fixed-btn img {
	width: 100%;
	height: auto;
	display: block;
}

/* サイド要素内のテキスト（共通スタイル） */
.side-text {
	/* 背景が暗い想定で白文字 */
	text-align: center;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}

/* コンテンツはスマホでは幅100% */
.content-wrapper {
	width: 100%;
	background-color: #D5EEF8;
	position: relative;
	z-index: 10;
}

.img-section {
	width: 100%;
	line-height: 0;
	font-size: 0;
	margin-top: -1px;
}

.img-section:first-child {
	margin-top: 0px;
}


/* =========================================
   2. タブレット版の挙動 (修正箇所)
      (幅 768px 〜 1024px)
   ========================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {

	/* スマホ版固定ボタンを表示（スマホと同じレイアウト） */
	.sp-fixed-btn {
		display: block !important;
	}

	/* セクション内のオーバーレイボタンを表示（スマホと同じ） */
	.overlay-item {
		display: block !important;
	}

	/* --- メインコンテンツ（100%幅にしてスマホと同じレイアウト） --- */
	.content-wrapper {
		width: 100%;
		margin-left: 0;
		min-height: auto;
	}

	/* --- 左サイド：非表示 --- */
	.pc-side-item.side-left {
		display: none;
	}

	/* --- 右サイド：非表示（スマホと同じレイアウトにするため） --- */
	.pc-side-item.side-right {
		display: none;
	}

}


/* =========================================
   3. PC版の挙動 (★ここを修正しました★)
      (幅 1025px 以上)
   ========================================= */
@media screen and (min-width: 1025px) {

	/* スマホ版固定ボタンを非表示 */
	.sp-fixed-btn {
		display: none !important;
	}

	/* セクション内のオーバーレイボタンを非表示（PC版は両サイドにボタンがある） */
	.overlay-item {
		display: none !important;
	}

	/* 中央コンテンツ（450px固定） */
	.content-wrapper {
		width: 450px;
		margin: 0 auto;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
	}

	/* サイド要素の共通設定（複数要素・縦並び対応） */
	.pc-side-item {
		/* Flexboxを有効化 */
		display: flex;
		/* ★重要：並ぶ方向を「縦（カラム）」にする */
		flex-direction: column;
		/* 子要素を水平方向の中央に揃える */
		align-items: center;
		/* 子要素間の縦の隙間を指定 */
		gap: 15px;

		position: fixed;
		top: 50%;
		z-index: 5;

		width: 20vw;
		max-width: calc(50vw - 200px - 20px);
		min-width: 150px;

		background-color: transparent;
		height: auto;
		padding: 0;
	}

	/* 左側配置設定 */
	.side-left {
		left: calc(25vw - 100px);
		transform: translate(-50%, -50%);
	}

	/* 右側配置設定 */
	.side-right {
		right: calc(25vw - 100px);
		left: auto;
		transform: translate(50%, -50%);
	}

	/* PCサイドバー内の画像は、親の幅を超えないようにする */
	.pc-side-item img {
		max-width: 100%;
		height: auto;
	}

	/* PCサイドバー内のリンクタグの調整 */
	.side-link-btn {
		display: block;
		/* または flex */
		/* 必要に応じてホバーエフェクトなどを追加 */
		transition: opacity 0.3s;
	}

	.side-link-btn:hover {
		opacity: 0.7;
	}

}

/* =========================================
   重ね合わせ（レイヤー）の基本ルール
   ========================================= */

/* 1. セクション（親）：座標の基準点 */
.img-section {
	position: relative;
	/* 子要素の基準(0,0)になる */
	width: 100%;
	/* 念のため overflow: hidden; を入れておくと、
       はみ出した要素でレイアウトが崩れるのを防げます（任意） */
	overflow: hidden;
}

/* 2. メイン画像（最下層）：優先順位 1 */
.base-image {
	width: 100%;
	height: auto;
	display: block;

	/* ★重要設定 */
	position: relative;
	/* z-indexを効かせるためにrelativeにします */
	z-index: 1;
	/* 一番低い数値を設定 */
}

/* 3. 上に乗せる要素（上層）：優先順位 10以上 */
/* 将来的に追加するボタンや装飾はすべてこのクラスを使います */
.overlay-item {
	display: block;

	/* ★重要設定 */
	position: absolute;
	/* 親セクションを基準に浮遊させる */
	z-index: 10;
	/* 画像(1)より確実に大きい数値にする */

	/* 位置やサイズの初期値（個別に上書きしてください） */
	top: 0;
	left: 0;
}

/* overlay-itemの中の画像設定 */
.overlay-item img {
	width: 100%;
	height: auto;
	display: block;
}


/* =========================================
   個別の位置調整（サンプル）→一設定は％で行うようにする
   ========================================= */

/* ボタンサイズ設定 */
.bt {
	width: 90%;
}

/* セクション1に追加した要素の位置指定 */
.item-01-content {
	top: 78.5%;
	left: 5%;
}

/* =========================================
   フッター設定
   ========================================= */
.footer {
	width: 100%;
	background-color: #f5f5f5;
	padding: 10px 15px 22%;
	/* 上部を小さく、下部を大きく（固定ボタン用） */
	text-align: center;
	position: relative;
	z-index: 100;
}

.footer-nav {
	margin-bottom: 6px;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	/* 横並びに変更 */
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.footer-links li {
	margin: 0;
}

.footer-links a {
	color: #333;
	text-decoration: none;
	font-size: 11px;
	transition: color 0.3s ease;
	display: inline-block;
	padding: 2px 5px;
}

.footer-links a:hover {
	color: #666;
	text-decoration: underline;
}

.footer-copyright {
	font-size: 10px;
	color: #666;
	margin: 0;
	padding-top: 6px;
}

/* タブレット版フッター（768px〜1024px） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.footer {
		width: 100%;
		margin-left: 0;
		padding: 10px 15px 22%;
		/* スマホと同じく固定ボタン用の下部余白を確保 */
	}

	.footer-links {
		flex-direction: row;
		justify-content: center;
		gap: 15px;
	}

	.footer-links a {
		font-size: 12px;
	}
}

/* PC版フッター（1025px以上） */
@media screen and (min-width: 1025px) {
	.footer {
		width: 450px;
		margin: 0 auto;
		box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
		padding: 12px 15px;
		/* PCも固定ボタンがないので下部余白不要 */
	}

	.footer-links {
		flex-direction: row;
		justify-content: center;
		gap: 15px;
	}

	.footer-links a {
		font-size: 12px;
	}

	.footer-copyright {
		font-size: 11px;
	}
}