@charset "utf-8";
/*
  フォーム・メッセージ・ボタンの補完CSS
  style.css / parts.css には手を入れず、このファイルだけで補います。
  (layouts/app.blade.php が style.css の後に読み込みます)
---------------------------------------------------------------------------*/

/* ---------- 入力欄 ---------- */
.main input[type="text"],
.main input[type="email"],
.main input[type="password"],
.main input[type="tel"],
.main input[type="url"],
.main input[type="search"],
.main select,
.main textarea {
	width: 100%;
	max-width: 32rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid #c9c1bb;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font: inherit;
	line-height: 1.6;
}
.main input[type="number"],
.main input[type="month"],
.main input[type="date"] {
	width: 9rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid #c9c1bb;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font: inherit;
	line-height: 1.6;
}
.main textarea {
	max-width: 100%;
	min-height: 6rem;
	resize: vertical;
}
.main input[type="file"] {
	max-width: 100%;
	font: inherit;
}
.main input[type="checkbox"],
.main input[type="radio"] {
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.4em;
	vertical-align: middle;
	accent-color: var(--primary-color);
}
.main label {cursor: pointer;}

.main input:focus,
.main select:focus,
.main textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.25);
}

/* テーブル内の補足文 */
.ta1-parts td p {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	color: #777;
	line-height: 1.7;
}

/* ---------- 必須バッジ・ラベル ---------- */
.req {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0 0.5em;
	border-radius: 3px;
	background: var(--accent-color);
	color: #fff;
	font-size: 0.75rem;
	font-weight: normal;
	line-height: 1.7;
	vertical-align: middle;
}
.label {
	display: inline-block;
	margin-left: 0.5em;
	padding: 0 0.6em;
	border-radius: 3px;
	background: #888;
	color: #fff;
	font-size: 0.8rem;
	font-weight: normal;
	line-height: 1.7;
	vertical-align: middle;
}

/* ---------- メッセージ ---------- */
.error {
	margin: 0.3rem 0 0;
	color: #c0392b;
	font-size: 0.9rem;
	font-weight: bold;
	line-height: 1.7;
}
.ta1-parts td .error {color: #c0392b; font-size: 0.9rem;}	/* 補足文(.ta1-parts td p)より優先 */

.success,
.status {
	margin: 0 0 1.5rem;
	padding: 0.6rem 1rem;
	border: 1px solid #9ccfa4;
	border-radius: 6px;
	background: #eaf6ec;
	color: #256d36;
	line-height: 1.8;
}
/* 画面上部に単独で出るエラー(注文できません 等)は枠付きに */
.main > section > p.error {
	margin: 0 0 1.5rem;
	padding: 0.6rem 1rem;
	border: 1px solid #e3a49b;
	border-radius: 6px;
	background: #fdecea;
	font-size: 1rem;
}

/* ---------- ボタン(btn5-parts) を <button> でも a と同じ見た目に ---------- */
.main .btn5-parts {margin: 1rem 0 1.5rem;}
.btn5-parts button {
	border: 0;
	cursor: pointer;
	font: inherit;
	line-height: inherit;
}
.btn5-parts button span {
	position: relative;
	z-index: 1;
}
.btn5-parts button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--bg-inverse-color);
	filter: brightness(1.5);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.btn5-parts button:hover::before {transform: scaleX(1);}

.btn5-parts.primary button {
	background: var(--primary-color);
	color: var(--primary-inverse-color);
}
.btn5-parts.primary button::before {background: var(--primary-color);}
.btn5-parts.accent button {
	background: var(--accent-color);
	color: var(--accent-inverse-color);
}
.btn5-parts.accent button::before {background: var(--accent-color);}

.btn5-parts button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.btn5-parts button:disabled::before {display: none;}

/* 「保存する」「キャンセル」など、ボタンを横に並べる */
.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	align-items: center;
}
.btn-row .btn5-parts {margin: 1rem 0 1.5rem;}

/* ---------- 表の中・一行フォームの小さいボタン ---------- */
.main td button,
.main form > button {
	padding: 0.15rem 0.9rem;
	border: 1px solid var(--primary-color);
	border-radius: 100px;
	background: #fff;
	color: var(--primary-color);
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.7;
	cursor: pointer;
}
.main td button:hover,
.main form > button:hover {
	background: var(--primary-color);
	color: #fff;
}
.main td button:disabled,
.main form > button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---------- レイアウト:サイドメニューなしの画面は1カラムで中央に ---------- */
#contents .contents-layout.no-side {
	grid-template-areas: "main";
	grid-template-columns: minmax(0, 1fr);
}
#contents .contents-layout.no-side .main {
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
}

/* ---------- サイドメニュー ---------- */
.sidemenu-parts {list-style: none;}
.sidemenu-parts hr {
	margin: 0.4rem 0;
	border: 0;
	border-top: 1px solid var(--bg-border-color);
}
.sidemenu-parts form {margin: 0;}
.sidemenu-parts li button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
