/* ************************************************ 
 * ------------------------------------------------
 *	お問合せ画面 CSS - もうまんたいスタイル
 * ------------------------------------------------
 * ************************************************ */

/* ------------------------------------- 
 *	リセット & 基本設定
 * ------------------------------------- */
* {
	box-sizing: border-box;
}

/* ------------------------------------- 
 *	ページ全体のスタイル
 * ------------------------------------- */
body {
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
	color: #333333;
	background: #f8f9fa;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

/* ヘッダーエリア（既存の青いボーダーを活用） */
body::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #005a9f 0%, #0077cc 100%);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

/* ------------------------------------- 
 *	リンクスタイル
 * ------------------------------------- */
a {
	color: #005a9f;
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: #0077cc;
	text-decoration: none;
}

/* ------------------------------------- 
 *	フォーム要素の美化
 * ------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fff;
	font-size: 14px;
	transition: all 0.3s ease;
	appearance: none;
	-webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: #005a9f;
	box-shadow: 0 0 0 3px rgba(0, 90, 159, 0.1);
}

/* セレクトボックスの矢印 */
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 40px;
}

/* テキストエリア */
textarea {
	resize: vertical;
	min-height: 120px;
}

/* チェックボックスとラジオボタン */
input[type="checkbox"],
input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: middle;
	cursor: pointer;
}

/* ------------------------------------- 
 *	ボタンスタイル
 * ------------------------------------- */
input[type="submit"],
input[type="button"],
button {
	background: linear-gradient(135deg, #005a9f 0%, #0077cc 100%);
	color: white;
	border: none;
	border-radius: 4px;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: inline-block;
	text-align: center;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg, #0077cc 0%, #0088dd 100%);
}

input[type="submit"]:active,
input[type="button"]:active,
button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ------------------------------------- 
 *	テーブルスタイル
 * ------------------------------------- */
.table1 {
	background-color: transparent;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table1 td,
.table1 th {
	padding: 16px 20px;
	border-bottom: 1px solid #e9ecef;
}

/* タイトルセル */
.CELL_1_C,
.CELL_1_L,
.CELL_1_R {
	background-color: #f8f9fa;
	color: #333333;
	font-weight: 600;
	white-space: nowrap;
	min-width: 120px;
}

.CELL_1_C {
	text-align: center;
}

.CELL_1_L {
	text-align: left;
	padding-left: 20px;
}

.CELL_1_R {
	text-align: right;
	padding-right: 20px;
}

/* 入力セル */
.CELL_2 {
	background-color: #ffffff;
	color: #333333;
	position: relative;
}

/* 最後の行のボーダーを削除 */
.table1 tr:last-child td,
.table1 tr:last-child th {
	border-bottom: none;
}

/* ------------------------------------- 
 *	注意書きスタイル
 * ------------------------------------- */
.note {
	font-size: 13px;
	color: #dc3545;
	margin-top: 8px;
	display: block;
}

.note2 {
	font-size: 13px;
	color: #6c757d;
	margin-top: 8px;
	display: block;
}

#note3 {
	font-size: 13px;
	color: #dc3545;
	margin-top: 8px;
}

/* ------------------------------------- 
 *	タイトルエリア
 * ------------------------------------- */
.title_area {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	padding: 40px 20px;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

.title_area::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: #005a9f;
	border-radius: 2px;
}

.shop_title {
	font-size: 28px;
	color: #333333;
	font-weight: 700;
	margin-bottom: 8px;
	letter-spacing: 0.05em;
}

.menu_title {
	font-size: 18px;
	color: #333333;
	font-weight: 600;
	margin-bottom: 24px;
}

/* ------------------------------------- 
 *	メッセージ表示
 * ------------------------------------- */
.info {
	border: none;
	border-left: 4px solid #17a2b8;
	padding: 16px 20px;
	font-size: 14px;
	margin: 20px auto;
	width: 90%;
	max-width: 800px;
	color: #0c5460;
	background-color: #d1ecf1;
	text-align: left;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.errorbox {
	background-color: #f8d7da;
	border: none;
	border-left: 4px solid #dc3545;
	padding: 16px 20px;
	margin: 20px auto;
	text-align: left;
	color: #721c24;
	font-size: 14px;
	width: 90%;
	max-width: 800px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------- 
 *	標準枠
 * ------------------------------------- */
.sub {
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 16px;
	background-color: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------- 
 *	価格表示
 * ------------------------------------- */
.prod_total {
	color: #333333;
	font-weight: 700;
	font-size: 18px;
}

.sub_charge {
	color: #6c757d;
	font-weight: 600;
	font-size: 16px;
}

.all_total {
	color: #005a9f;
	font-weight: 700;
	font-size: 22px;
}

.point_discon {
	color: #dc3545;
	font-weight: 600;
	font-size: 16px;
}

/* ------------------------------------- 
 *	レスポンシブ対応
 * ------------------------------------- */
@media screen and (max-width: 768px) {
	/* モバイル向けの調整 */
	body {
		font-size: 16px;
	}
	
	.shop_title {
		font-size: 24px;
	}
	
	.menu_title {
		font-size: 16px;
	}
	
	/* テーブルのレスポンシブ化 */
	.table1 {
		display: block;
		box-shadow: none;
	}
	
	.table1 tbody,
	.table1 tr,
	.table1 td,
	.table1 th {
		display: block;
		width: 100%;
	}
	
	.table1 tr {
		margin-bottom: 16px;
		background: #ffffff;
		border-radius: 8px;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
		overflow: hidden;
	}
	
	.CELL_1_C,
	.CELL_1_L,
	.CELL_1_R {
		text-align: left !important;
		padding: 12px 16px !important;
		border-bottom: 1px solid #e9ecef;
		min-width: auto;
	}
	
	.CELL_2 {
		padding: 12px 16px !important;
	}
	
	/* フォーム要素の調整 */
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	select,
	textarea {
		font-size: 16px; /* iOSのズーム防止 */
	}
	
	/* ボタンの調整 */
	input[type="submit"],
	input[type="button"],
	button {
		width: 100%;
		padding: 16px 32px;
	}
	
	/* メッセージボックスの調整 */
	.info,
	.errorbox {
		width: calc(100% - 32px);
		margin: 16px;
	}
}

@media screen and (max-width: 480px) {
	/* スマートフォン向けの追加調整 */
	.title_area {
		padding: 24px 16px;
		margin-bottom: 24px;
	}
	
	.shop_title {
		font-size: 20px;
	}
	
	.menu_title {
		font-size: 14px;
	}
}

/* ------------------------------------- 
 *	アクセシビリティ向上
 * ------------------------------------- */
/* フォーカス時の視認性向上 */
*:focus-visible {
	outline: 2px solid #005a9f;
	outline-offset: 2px;
}

/* 必須項目のマーク */
.required::after {
	content: " *";
	color: #dc3545;
	font-weight: bold;
}

/* ------------------------------------- 
 *	アニメーション
 * ------------------------------------- */
/* ページ読み込み時のフェードイン */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.title_area,
.table1,
.sub {
	animation: fadeIn 0.6s ease-out;
}

/* ------------------------------------- 
 *	印刷用スタイル
 * ------------------------------------- */
@media print {
	body::before {
		display: none;
	}
	
	.title_area {
		background: none;
		padding: 20px 0;
	}
	
	input[type="submit"],
	input[type="button"],
	button {
		display: none;
	}
	
	.table1 {
		box-shadow: none;
		border: 1px solid #ddd;
	}
}