@charset "UTF-8";
/* フォーム専用CSS。wwwの common/css/layout.css とは独立 */

/* ─ カスタムプロパティ ───────────────────────────────────────── */
:root {
	--ink: #2b2b2b;
	--text: #555;
	--accent: #b13f38;
	--cta: #bf5217;
	--focus: #3e558a;
	--gold: #dfab3b;
	--line: #c9ced3;
	--line-hover: #9aa3ab;
	--err-bg: #fdf3f2;
	--soft: #faf7f4;
}


/* common
-------------------------------------- */
html {
	scroll-behavior: smooth;
}

body {
	font-family: Verdana, Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
	color: var(--text);
}
img {
	max-width: 100%;
	height: auto;
}

/* 装飾 */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
}

h1 {
	font-feature-settings: "palt";
	text-wrap: balance;
}

/* モバイル限定: h1 下余白（account-delete/ のみ付与するクラス） */
@media (max-width: 767px) {
	.mb-xs-lead { margin-bottom: .875rem !important; }
}

a {
	color: var(--accent);
}
a:hover {
	color: var(--accent);
}

strong {
	font-weight: 700;
}


/* ボタン
-------------------------------------- */
.btn-fashy {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	width: 100%;
	min-height: 3.25rem;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: #fff;
	background: var(--cta);
	border-color: var(--cta);
	border-radius: 0;
	cursor: pointer;
	transition: filter .15s, transform .05s;
}
.btn-fashy:hover {
	color: #fff;
	background: var(--cta);
	border-color: var(--cta);
	filter: brightness(.93);
}
.btn-fashy:active {
	transform: translateY(1px);
}
.btn-fashy:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}
.btn-fashy[disabled],
.btn-fashy:disabled {
	background: var(--cta);
	border-color: var(--cta);
	cursor: progress;
	filter: none;
	opacity: .85;
	pointer-events: none;
}

/* .sending クラス付与時のスピナー（JS側で追加） */
.btn-fashy.sending::before {
	content: "";
	width: 1em;
	height: 1em;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: form-spin .7s linear infinite;
}
@keyframes form-spin {
	to { transform: rotate(360deg); }
}

/* Bootstrap の .btn:disabled グレーを打ち消す */
.btn.disabled,
.btn:disabled {
	pointer-events: none;
}


/* ヘッダー
---------------------------------- */
header {
	border-bottom: 1px solid #dfab3b;
}
header .container {
	min-height: 80px;
	display: grid;
	justify-items: flex-start;
}
@media only screen and (max-width: 1000px) {
	header .container {
		max-width: 100%;
		margin: 0;
	}
}
header .site-title-wrap {
	min-height: 80px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	grid-area: 1/-1;
}
header .site-title {
	margin: 0;
	font-size: clamp(1.2rem, 1.045rem + 0.77vw, 1.625rem);
	font-weight: 400;
	display: flex;
	align-items: center;
}
header .site-title a {
	text-decoration: none;
	color: #555;
}


.sub-nav {
	grid-area: 1/-1;
	list-style: none;
	margin: 0 50px 0 auto;
	padding: 0;
	display: flex;
	align-items: center;
}
@media only screen and (max-width: 1000px) {
	.sub-nav {
		display: none;
	}
}
.sub-nav a {
	padding: 0.5rem;
	text-decoration: none;
	color: inherit;
}
.sub-nav svg {
	width: 1.5rem;
	height: 1.5rem;
}
@media only screen and (min-width: 1001px) {
	.sub-nav a:hover svg {
		stroke: #b13f38;
	}
}



@media only screen and (min-width: 1001px) {
	.main-menu {
		position: relative;
		width: 100%;
		max-width: 800px;
		list-style: none;
		margin: 0 auto 1rem;
		padding: 0;
		display: flex;
		justify-content: center;
	}
	.main-menu > * {
		width: 50%; /* 2項目 */
		display: flex;
		justify-content: center;
	}
	.main-menu a {
		position: relative;
		color: inherit;
	}
	.main-menu a:hover {
		color:#b13f38;
	}
	.main-menu a::after {
		content: '';
		position: absolute;
		bottom: -4px;
		left: 10%;
		width: 80%;
		height: 2px;
		background:#b13f38;
		transition: all .3s;
		transform: scale(0, 1);
		transform-origin: center top;
	}
	.main-menu a:hover::after {
		transform: scale(1, 1);
	}
}
@media only screen and (max-width: 1000px) {
	.main-menu {
		display: none;
	}
}


/* ナビゲーション
---------------------------------- */
/* ハンバーガー */
.openbtn {
	position: absolute;
	top: 16px;
	right: 1rem;
	border-left: 1px solid #b13f38;
	cursor: pointer;
	width: 50px;
	height:50px;
	z-index: 9999;
}
.openbtn span {
	display: inline-block;
	transition: all .4s;
	position: absolute;
}
.openbtn span:nth-of-type(1),
.openbtn span:nth-of-type(3) {
	height: 2px;
	width: 62%;
	left: 10px;
	background: #555;
	opacity: 0;
}
.openbtn span:nth-of-type(1) {
	top:13px;
}
.openbtn span:nth-of-type(2) {
	top:19px;
	left:4px;
	font-size:1rem;
	text-transform: uppercase;
	color: #555;
}
.openbtn span:nth-of-type(2) {
	top: 13px;
}
.openbtn span:nth-of-type(3) {
	top: 36px;
}
.openbtn.active span:nth-of-type(1) {
	top: 18px;
	left: 18px;
	transform: translateY(6px) rotate(-45deg);
	width: 30%;
	opacity: 1;
}
.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}
.openbtn.active span:nth-of-type(3){
	top: 30px;
	left: 18px;
	transform: translateY(-6px) rotate(45deg);
	width: 30%;
	opacity: 1;
}

/* グローバルナビゲーション */
#g-nav {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	width: 100%;
	height: 100vh;
	background: rgba(255, 255, 255, 1);
	opacity: 0;
	z-index: -1;
	transition: all 0.3s;
}
#g-nav.panelactive {
	opacity: 1;
	z-index: 999;
}
#g-nav .inner {
	position: relative;
	margin: auto;
	display: flex;
	flex-direction: column;
}
@media only screen and (max-width: 480px) {
	#g-nav .inner {
		margin: 60px auto 0;
	}
}
#g-nav a {
	color: inherit;
}
#g-nav a:hover {
	text-decoration: none;
	color: inherit;
}
#g-nav .global-nav {
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
}
#g-nav .global-nav > li {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
}
#g-nav .global-nav > li a {
	position: relative;
	padding: 8px;
	font-size: 1rem;
}
@media only screen and (max-width: 374px) {
	#g-nav .global-nav > li a {
		padding: 4px;
		font-size: 0.9375rem;
	}
}
#g-nav .global-nav > .separator {
	position: relative;
	margin-top: 0.5rem;
	flex-direction: column;
	align-items: center;
}
#g-nav .global-nav > .separator::before {
	display: block;
	content: "";
	width: 40px;
	height: 1px;
	margin-bottom: 0.5rem;
	background: #ec7830;
}
#g-nav .global-nav > .guide a {
	display: flex;
	align-items: center;
}
#g-nav .global-nav > .guide a svg {
	flex-shrink: 0;
	width: 1.5em;
	height: 1.5em;
}
#g-nav .global-nav > .guide a span {
	padding-left: 4px;
	flex-grow: 1;
}
@media only screen and (min-width: 1001px) {
	#g-nav .global-nav > li a:hover {
		color:#b13f38;
	}
	#g-nav .global-nav > li a::after {
		content: '';
		position: absolute;
		bottom: 4px;
		left: 10%;
		width: 80%;
		height: 2px;
		background:#b13f38;
		transition: all .3s;
		transform: scale(0, 1);
		transform-origin: center top;
	}
	#g-nav .global-nav > li a:hover::after {
		transform: scale(1, 1);
	}
}


.icon-s {
	display: flex;
}
.icon-s svg {
	width: 1.5em;
	height: 1.5em;
	flex-shrink: 0;
	margin-right: 0.2rem;
}
.form-group .icon-s svg {
	width: 1.25em;
	height: 1.25em;
}
.icon-s svg path {
	fill: currentColor;
}
.icon-s.icon-red svg path {
	fill: #b13f38;
}
.icon-s span {
	flex-grow: 1;
}


/* お問い合わせフォーム
------------------------------ */

/* フォームグループの間隔 (Bootstrap 1rem → 1.5rem) */
.form-group {
	margin-bottom: 1.5rem;
}

/* ラベル行と入力欄の間隔 (Bootstrap .5rem → .625rem) */
.form-group label {
	display: block;
	margin-bottom: .625rem;
}

/* ボタン直上の注意書きとボタンの間 (Bootstrap .mb-3 = 1rem → 1.5rem) */
#mailForm p.fs-sm {
	margin-bottom: 1.5rem !important;
}

/* 誤字修正: cpolor → color */
.form-group label small {
	margin-left: 0.5rem;
	color: var(--accent);
}

/* 入力欄 */
.form-control {
	font-size: 1rem;
	color: #212529;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-control:hover {
	border-color: var(--line-hover);
}
.form-control:focus-visible {
	outline: none;
	border-color: var(--focus);
	box-shadow: 0 0 0 3px rgba(62, 85, 138, .2);
}

/* エラー状態 */
.form-control[aria-invalid="true"] {
	border-color: var(--accent);
	background: var(--err-bg);
}
.form-control[aria-invalid="true"]:focus-visible {
	box-shadow: 0 0 0 3px rgba(177, 63, 56, .2);
}
.form-group:has([aria-invalid="true"]) label {
	color: var(--accent);
}

/* エラーメッセージ（フィールド個別） */
.error-message {
	/* アイコン SVG（--ico-err）は ::before で参照 */
	--ico-err: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm-.75 3.5h1.5V9h-1.5zM8 12.75a.9.9 0 1 1 0-1.8.9.9 0 0 1 0 1.8z'/%3E%3C/svg%3E");
	color: var(--accent);
	font-size: .8125rem;
	line-height: 1.6;
	margin: .375rem 0 0;
}
.error-message:empty {
	display: none;
}

/* エラーメッセージ：アイコン付きフレックス表示（#error-send を含む全て） */
.error-message {
	display: flex;
	gap: .375rem;
	align-items: flex-start;
}
.error-message:not(:empty)::before {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-top: .2em;
	background: currentColor;
	-webkit-mask: var(--ico-err) center/contain no-repeat;
	mask: var(--ico-err) center/contain no-repeat;
}
.error-message:not(:empty) {
	animation: form-err-in .18s ease-out;
}
@keyframes form-err-in {
	from { opacity: 0; transform: translateY(-3px); }
	to   { opacity: 1; transform: none; }
}

/* #error-send が空のときは非表示（ID セレクタの優先度問題を明示で解決） */
#error-send:empty {
	display: none;
}

/* 送信エラーはフィールドエラーと区別して枠付きまとめ表示 */
#error-send:not(:empty) {
	padding: .75rem 1rem;
	background: var(--err-bg);
	border: 1px solid #efc9c6;
	margin: 0 0 .75rem;
}

/* ヒントテキスト（メールドメイン候補・補足説明） */
.hint {
	font-size: .8125rem;
	color: #777;
	margin: .5rem 0 0;
	line-height: 1.6;
}

/* ヒント内の「この候補に直す」ボタン */
.hint-fix-btn {
	font: inherit;
	font-size: .8125rem;
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: .2em;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}


/* 追加クラス（HTMLは次の段階で適用）
------------------------------ */

/* 必須／任意バッジ（テキスト表示、背景なし） */
.pill {
	font-size: .75em;
	font-weight: 400;
	line-height: inherit;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
	letter-spacing: .04em;
	margin-left: .5em;
	vertical-align: baseline;
}
.pill--req {
	color: var(--accent);
}
.pill--opt {
	color: #666; /* #666 on white ≈ 5:1、WCAG AA 達成 */
}

/* 返信目安チップ */
.form-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem .75rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: .8125rem;
}
.form-meta li {
	background: var(--soft);
	padding: .25rem .75rem;
	border: 1px solid #efe7de;
}
.form-meta a {
	color: var(--accent);
	text-underline-offset: .2em;
}

/* 保証の注意囲み */
.form-note {
	border-left: 3px solid var(--accent);
	background: var(--soft);
	padding: .75rem 1rem;
	font-size: .8125rem;
	line-height: 1.7;
	margin: 0 0 2rem;
}
.form-note strong {
	display: block;
	color: var(--ink);
	font-weight: 700;
	margin-bottom: .125rem;
}

/* バリデーションまとめ（role=alert） */
.form-summary {
	margin: 0 0 1rem;
	padding: .75rem 1rem;
	background: var(--err-bg);
	border: 1px solid #efc9c6;
	color: var(--accent);
	font-size: .875rem;
	line-height: 1.6;
}
.form-summary:empty {
	display: none;
}

/* 同意チェックボックス（退会ページ） */
.confirm-wrap {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
}
#confirm {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: .15em;
	accent-color: var(--accent);
	cursor: pointer;
}
#confirm:focus {
	outline: none;
}
#confirm:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
#confirm[aria-invalid="true"] {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
#confirm[aria-invalid="true"]:focus-visible {
	outline-color: var(--accent);
}
.confirm-label {
	cursor: pointer;
	line-height: 1.5;
}

/* 文字数カウンタ */
.char-count {
	text-align: right;
	font-size: .75rem;
	color: #888;
	margin: .25rem 0 0;
	font-variant-numeric: tabular-nums;
}
.char-count.is-warn {
	color: #a55b00;
}

/* 完了メッセージ */
.form-done {
	margin: 1rem 0 0;
	padding: .75rem 1rem;
	background: #f1f7ee;
	border: 1px solid #cfe3c6;
	color: #3b5d2b;
	font-size: .875rem;
}
.form-done:empty {
	display: none;
}


/* 完了ページ：長文省略注記 */
.receipt-note {
	font-size: .8125rem;
	color: var(--text);
	margin: .5rem 0 0;
}


/* フッター
----------------------------- */
footer {
	background: #555;
	color: #fff;
	line-height: 1.2;
}
footer a {
	color: #fff;
}
footer a:hover {
	color: inherit;
	text-decoration: underline;
}
footer .container {
	display: flex;
	flex-wrap: wrap;
}
footer .footer-title {
	width: 25%;
}
@media screen and (max-width: 1000px) {
	footer .footer-title {
		width: 40%;
	}
}
@media screen and (max-width: 767px) {
	footer .footer-title {
		width: 100%;
	}
}
footer .footer-title > h3 {
	font-size: 1.125rem;
}
@media screen and (max-width: 767px) {
	footer .footer-title > h3 {
		font-size: 1rem;
	}
}

footer .footer-menu {
	width: 75%;
	margin: 0 -0.5rem;
	display: flex;
	flex-wrap: wrap;
}
@media screen and (max-width: 1000px) {
	footer .footer-menu {
		width: 60%;
	}
}
@media screen and (max-width: 767px) {
	footer .footer-menu {
		width: 100%;
	}
}
footer .footer-menu > * {
	width: 25%;
	padding: 0 0.5rem;
}
@media screen and (max-width: 1000px) {
	footer .footer-menu > * {
		width: 50%;
	}
}
footer .footer-menu > * h4 {
	position: relative;
	font-size: 1rem;
	padding-bottom: 0.5rem;
	margin-bottom: 0.7rem;
}
footer .footer-menu > * h4::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 1px;
	background: #fff;
}
@media screen and (max-width: 767px) {
	footer .footer-menu > * h4 {
		font-size: 0.875rem;
	}
}
footer .footer-menu > * li {
	font-size: 0.8125rem;
}
footer .footer-menu > * li + li {
	margin-top: 0.5rem;
}


/* アニメーション
------------------------------------------ */
.fadeIn {
	animation-name: fadeInAnime;
	animation-duration: 5s;
	animation-timing-function: ease;
	animation-direction: normal;
	animation-fill-mode: forwards;
	opacity: 0;
}
@keyframes fadeInAnime {
	0%   { opacity: 0; }
	100% { opacity: 1; }
}


/* honeypot (bot対策) */
.hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}


/* モーション低減
------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
