/* サービス内容変更のお知らせ（2026-11 追加）
 * バーは画面上部に固定。高さは notice-bar.php の JS が --notice-h に入れる。
 * 既存の固定要素（PC のナビ・スマホの MENU）をバーの高さぶん下げる。 */
:root { --notice-h: 0px; }

body { padding-top: var(--notice-h); }

.notice-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 12; /* PC のナビ(10)・MENU(11)より上、リクエストのポップアップ(15)より下 */
	background: #333333;
	color: #ffffff;
	box-sizing: border-box;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.notice-bar-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 12px;
	padding: 10px 16px;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}
.notice-bar-link:hover .notice-bar-more { opacity: .85; }
.notice-bar-more {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	background: #FBF27C;
	color: #333333;
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
}
@media screen and (max-width: 979px) {
	.notice-bar-link { font-size: 12px; padding: 8px 12px; }
	.notice-bar-more { font-size: 12px; }
}

/* 既存の固定要素をバーの下へ */
.sticky.top-nav { top: var(--notice-h) !important; }
.btn-mobile-menu { top: calc(10px + var(--notice-h)); }
.mobile-menu.active { top: var(--notice-h); }

/* 全文のポップアップ */
.notice-modal[hidden] { display: none; }
.notice-modal { position: fixed; inset: 0; z-index: 30; }
.notice-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.notice-modal-dialog {
	position: relative;
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 720px;
	max-height: calc(100% - 64px);
	margin: 32px auto;
	padding: 32px 28px 28px;
	overflow-y: auto;
	background: #ffffff;
	color: #333333;
	border-radius: 8px;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.8;
	text-align: left;
}
.notice-modal-dialog h2 { font-size: 18px; line-height: 1.5; margin: 0 0 16px; padding-right: 24px; }
.notice-modal-dialog h3 { font-size: 16px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid #CCCCCC; }
.notice-modal-dialog p { margin: 0 0 12px; }
.notice-modal-dialog strong { font-weight: bold; }
.notice-modal-dialog a { color: #2E79D0; word-break: break-all; }
.notice-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #333333;
	cursor: pointer;
}
body.notice-modal-open { overflow: hidden; }
@media screen and (max-width: 979px) {
	.notice-modal-dialog { padding: 28px 18px 20px; font-size: 14px; margin: 16px auto; max-height: calc(100% - 32px); }
	.notice-modal-dialog h2 { font-size: 16px; }
}

/* 受付休止のメッセージ（入部フォームの場所・リクエストのポップアップ） */
.service-closed {
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 24px;
	background: #ffffff;
	border-radius: 8px;
	color: #333333;
	text-align: center;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.service-closed-title { display: block; font-size: 20px; font-weight: bold; line-height: 1.6; margin-bottom: 12px; }
.service-closed-text { display: block; font-size: 14px; line-height: 1.8; }
.service-closed-text a { color: #2E79D0; }
/* フォームの代わりにメッセージだけになるので、フォーム用の高さを詰める（下端のカエルの絵のぶんは残す） */
.home-section-7:has(.service-closed) { min-height: 560px; }
.home-section-7 .service-closed { margin-top: 40px; margin-bottom: 40px; }
@media screen and (max-width: 979px) {
	.service-closed { padding: 28px 16px; }
	.service-closed-title { font-size: 17px; }
	/* 左上の MENU ボタンと重ならないよう下げる */
	.home-section-7 .service-closed { width: calc(100% - 32px); margin-top: 110px; }
	.home-section-7:has(.service-closed) { min-height: 520px; }
}
