/*
Theme Name: Nakamura
Description: 個室和食・名駅 なかむら オフィシャルサイト用オリジナルテーマ
Version: 1.0
Author: Yuki
*/

/* ============================================
   WordPress化にともなう追加スタイル
   （既存CSSは functions.php で読み込み）
   ============================================ */

/* 新着情報：旧Nicky!(iframe)をWP投稿ループに置き換えたぶんの調整 */
.newsbox .news-item {
	width: 92%;
	margin: 0 auto 18px;
	text-align: left;
	font-size: 14px;
	line-height: 1.7;
}
.newsbox .news-head {
	background-color: #633C2C;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: bold;
	padding: 5px 10px;
	margin: 0 0 8px;
}
.newsbox .news-head .news-date {
	color: #FFFFFF;
}
.newsbox .news-head .news-title {
	color: #FFE100;
	margin-left: 1em;
}
.newsbox .news-body {
	padding: 0 5px;
}
.newsbox .news-body p {
	margin: 0 0 0.5em;
}
.newsbox .news-body img {
	max-width: 100%;
	height: auto;
}
.newsbox .news-empty {
	text-align: center;
	padding: 20px 0;
}

/* FV：電話番号と予約フォームボタンの間の余白 */
.head_deta_in_timebox .head_deta_in_yoyaku {
	margin-top: 18px;
}

/* 予約フォーム：確認事項まわりの余白調整
   （タイトル「確認事項」の下、各「了承しました」チェックの下をあける） */
#form_body .ateent_box_check {
	margin-bottom: 22px;
}

/* 予約フォーム：確認事項内のリンク（プライバシーポリシー等）に下線 */
#form_body .ateent_box a {
	text-decoration: underline;
}

/* ============================================
   固定ページ（読みもの）用：page.php
   プライバシーポリシー等の文章ページを
   左寄せ・行間広めで読みやすく
   ============================================ */
.page-document {
	max-width: 720px;
	margin: 0 auto;
	text-align: left;
	font-size: 14px;
	line-height: 1.9;
	color: #333;
}
.page-document h1 {
	display: none; /* 本文内にH1がある場合はテンプレート側タイトルと重複するため非表示 */
}
.page-document h2 {
	font-size: 17px;
	color: #633C2C;
	border-bottom: 1px solid #633C2C;
	padding-bottom: 6px;
	margin: 40px 0 15px;
	font-weight: bold;
}
.page-document h3 {
	font-size: 15px;
	color: #633C2C;
	margin: 30px 0 10px;
	font-weight: bold;
}
.page-document p {
	margin: 0 0 1em;
}
.page-document ul,
.page-document ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}
.page-document li {
	margin-bottom: 0.3em;
}
.page-document a {
	color: #633C2C;
	text-decoration: underline;
}

/* ============================================
   背景テクスチャの継ぎ目対策
   PCはbackground-attachment:fixedで背景を固定し、
   スクロールしてもタイルの継ぎ目(1280pxごと)が見えないようにする。
   ※iOS Safariはfixedのサポートが壊れているため、
   　スマホには適用しない（元の挙動のまま）
   ============================================ */
@media screen and (min-width: 768px) {
	.back_peper {
		background-attachment: fixed;
		background-position: center top;
	}
}

/* CF7化にともなう入力欄の装飾統一
   （旧form.cssは input[type='text'] のみ装飾のため、tel/emailに同じ指定を追加） */
#form_body input[type='tel'],
#form_body input[type='email'] {
	width: 60%;
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #ccc;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin-bottom: 5px;
	margin-top: 5px;
	height: 25px;
}

/* CF7のバリデーションエラー表示の調整 */
#form_body .wpcf7-not-valid-tip {
	font-size: 12px;
	color: #d70000;
}

/* 日付入力欄（来店日）の装飾 */
#form_body input[type='date'] {
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #ccc;
	margin-bottom: 5px;
	margin-top: 5px;
	height: 35px;
	background-color: #fff;
	font-size: 16px; /* iOSでのズーム防止 */
}

/* ============================================
   送信前 確認モーダル
   ============================================ */
body.cf7-confirm-open {
	overflow: hidden;
}
.cf7-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cf7-confirm-overlay[hidden] {
	display: none;
}
.cf7-confirm-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 480px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 25px 20px;
	box-sizing: border-box;
}
.cf7-confirm-title {
	font-size: 18px;
	font-weight: bold;
	color: #633C2C;
	text-align: center;
	margin: 0 0 10px;
}
.cf7-confirm-lead {
	font-size: 14px;
	text-align: center;
	margin: 0 0 15px;
}
.cf7-confirm-list {
	margin: 0 0 20px;
	border-top: 1px solid #ddd;
}
.cf7-confirm-list dt {
	font-weight: bold;
	font-size: 13px;
	color: #633C2C;
	padding: 8px 5px 0;
}
.cf7-confirm-list dd {
	margin: 0;
	padding: 2px 5px 8px;
	font-size: 14px;
	border-bottom: 1px solid #ddd;
	word-break: break-all;
}
.cf7-confirm-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
}
.cf7-confirm-btns button {
	padding: 10px 25px;
	border-radius: 5px;
	border: none;
	font-size: 15px;
	cursor: pointer;
}
.cf7-confirm-back {
	background: #ccc;
	color: #333;
}
.cf7-confirm-send {
	background: #633C2C;
	color: #fff;
	font-weight: bold;
}
