/**
 * style.css — お問い合わせメールフォームスタイル
 *
 * Copyright 2023-2026 Gugendo LLC. c.murakami all rights reserved.
 */
/* for table */
#form2 {
	display: block;
	margin: auto;
	text-align: center;
}
p.f_btn input {
	width: 110px;
	height: 32px;
	margin: 1em;
}

#form-tbl {

}
#form {
	display: table;
	width: 100%;
	border-collapse: collapse;
}
#form th, #form td {
	border: 1px solid #666;
	padding: 8px;
}
#form th {
	white-space: nowrap;
}

/* ダーク / 既定（確認・エラー画面は body クラスなしのためここでテーマ対応） */
html[data-theme="dark"] #form th,
html:not([data-theme]) #form th {
	background: rgba(0, 0, 0, 0.25);
	color: #f09030;
	border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] #form td,
html:not([data-theme]) #form td {
	background: rgba(255, 255, 255, 0.03);
	color: var(--color-body-text);
	border-color: rgba(255, 255, 255, 0.1);
}

/* ライト */
html[data-theme="light"] #form th {
	background: var(--theme-surface-label);
	color: #df7003;
	border-color: rgba(0, 0, 0, 0.14);
}
html[data-theme="light"] #form td {
	background: rgba(255, 255, 255, 0.58);
	color: var(--color-body-text);
	border-color: rgba(0, 0, 0, 0.14);
}
p.btn input {
	width: 110px;
	height: 32px;
}

/* for message */
p.msg {
	color: #dd0000;
	margin: 2em;
}
span.msg {
	color: #dd0000;
}

/* for back-button */
form.back {
	margin-top: 2em;
}

/* スマホ用 */
@media only screen and (max-width: 640px) {
	#body { margin-left: 0; }
	
	/* 投稿フォーム */
	#form-tbl { margin: 0 auto; text-align: center; }
	#form { width: 96%; margin: 10px auto; }
    #form th, #form td {
    	text-align: left;
		width: 100%;
        display: block;
        padding: 6px 3px;
        border-top: none;
    }
    #form tr:first-child th	{ border-top: 1px solid rgba(255, 255, 255, 0.1); }
    html[data-theme="light"] #form tr:first-child th { border-top: 1px solid rgba(0, 0, 0, 0.14); }
    p.btn input { width: 10em; }
    
	/* 小見出し（確認・完了画面のサブタイトル。page-hero の h2.flag は対象外） */
	#body > h2:not(.flag) {
		margin: 1em 3px;
		width: 90%;
	}
	
	/* サンクス */
	p.msg { margin: 1em auto; }
}
