/* 東京セントラル見積: SWELLのお問い合わせ表(table.inquiry)に近い落ち着いた見た目 */
.tc-estimate { --tce-border: #dddddd; --tce-th: #f7f7f7; --tce-text: #333333; --tce-sub: #666666; --tce-accent: #1f3a5f; --tce-req: #d9534f; color: var(--tce-text); line-height: 1.8; }
.tc-estimate *, .tc-estimate *::before, .tc-estimate *::after { box-sizing: border-box; }
.tc-estimate__intro { margin: 0 0 1.5em; }
.tc-estimate__section { margin: 0 0 2em; }
.tc-estimate__heading { font-size: 1.05em; font-weight: 700; margin: 0 0 .6em; padding: 0 0 .3em; border-bottom: 2px solid var(--tce-accent); }
.tc-estimate table.tc-estimate__table { width: 100%; border-collapse: collapse; margin: 0; border: 1px solid var(--tce-border); background: #fff; }
.tc-estimate table.tc-estimate__table th,
.tc-estimate table.tc-estimate__table td { border: 1px solid var(--tce-border); padding: .9em 1em; vertical-align: middle; text-align: left; font-size: .95em; }
.tc-estimate table.tc-estimate__table th { width: 38%; background: var(--tce-th); font-weight: 600; }
.tc-estimate table.tc-estimate__table th .req { display: inline-block; margin-right: .6em; padding: 0 .5em; font-size: .75em; line-height: 1.8; color: #fff; background: var(--tce-req); border-radius: 2px; vertical-align: middle; }
.tc-estimate select,
.tc-estimate input[type="number"],
.tc-estimate input[type="email"] { max-width: 100%; padding: .5em .6em; font-size: 1em; border: 1px solid #cccccc; border-radius: 3px; background: #fff; color: var(--tce-text); }
.tc-estimate select { width: 100%; }
.tc-estimate__sub { margin-top: .6em; }
.tc-estimate__num { width: 6em; }
.tc-estimate__num--wide { width: 9em; }
.tc-estimate__help { display: block; margin-top: .4em; color: var(--tce-sub); font-size: .85em; line-height: 1.6; font-weight: normal; }
.tc-estimate__yesno label { margin-right: 1.5em; white-space: nowrap; cursor: pointer; }
.tc-estimate__plans { display: grid; gap: .6em; }
.tc-estimate__plan { display: grid; grid-template-columns: auto 1fr; column-gap: .6em; padding: .7em .8em; border: 1px solid var(--tce-border); border-radius: 3px; cursor: pointer; }
.tc-estimate__plan input { grid-row: 1 / span 2; margin-top: .45em; }
.tc-estimate__plan-name { font-weight: 700; }
.tc-estimate__plan-desc { color: var(--tce-sub); font-size: .85em; line-height: 1.6; }
.tc-estimate__submit, .tc-estimate__actions { text-align: center; margin: 1.5em 0; }
.tc-estimate__btn { display: inline-block; min-width: 14em; margin: .4em; padding: .8em 1.6em; font-size: 1em; line-height: 1.5; text-align: center; text-decoration: none; color: var(--tce-accent); background: #fff; border: 1px solid var(--tce-accent); border-radius: 3px; cursor: pointer; }
.tc-estimate__btn:hover { opacity: .85; }
.tc-estimate__btn:disabled { opacity: .5; cursor: default; }
.tc-estimate__btn--primary { color: #fff !important; background: var(--tce-accent); }
.tc-estimate__btn--link { min-width: 0; border: none; text-decoration: underline; color: var(--tce-sub); }
.tc-estimate__error { margin: 1em 0; padding: .8em 1em; color: #a94442; background: #f2dede; border: 1px solid #ebccd1; border-radius: 3px; }
.tc-estimate__consult { margin: 1.5em 0; padding: 1.2em; text-align: center; background: var(--tce-th); border: 1px solid var(--tce-border); }
.tc-estimate__result { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--tce-border); }
.tc-estimate__result-head { margin-bottom: 1.5em; }
.tc-estimate__result-title { font-size: 1.3em; margin: 0 0 .5em; text-align: center; letter-spacing: .1em; }
.tc-estimate__meta { display: grid; grid-template-columns: auto 1fr; gap: .2em 1em; margin: 0; font-size: .95em; }
.tc-estimate__meta dt { color: var(--tce-sub); }
.tc-estimate__meta dd { margin: 0; font-weight: 600; }
.tc-estimate__office { margin: .5em 0 0; text-align: right; font-size: .9em; }
.tc-estimate table.tc-estimate__table--money th { width: 62%; font-weight: normal; }
.tc-estimate__amount { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-estimate__amount--consult { white-space: normal; color: var(--tce-sub); }
.tc-estimate__sum th { font-weight: 600 !important; }
.tc-estimate__special th, .tc-estimate__special td { color: #b03a2e; font-weight: 700 !important; }
.tc-estimate__until { display: block; font-weight: normal; font-size: .85em; }
.tc-estimate__grand th, .tc-estimate__grand td { font-size: 1.1em !important; font-weight: 700 !important; background: #f3f6fa; }
.tc-estimate__list { color: var(--tce-sub); font-weight: normal; font-size: .85em; }
.tc-estimate__stamp { font-size: .85em; line-height: 1.7; white-space: pre-line; } /* 在留期間ごとの手数料を1行ずつ */
.tc-estimate__notes ul { margin: 0; padding-left: 1.3em; font-size: .9em; }
.tc-estimate__notes li { margin-bottom: .3em; }
.tc-estimate__small { font-size: .85em; color: var(--tce-sub); }
.tc-estimate__mail { max-width: 36em; margin: 1.2em auto; text-align: left; }
.tc-estimate__mail > label { display: block; font-size: .9em; margin-bottom: .3em; }
.tc-estimate__mail-row { display: flex; gap: .5em; flex-wrap: wrap; }
.tc-estimate__mail-input { flex: 1 1 14em; }
.tc-estimate__mail-row .tc-estimate__btn { margin: 0; min-width: 0; }
.tc-estimate__mail-msg { margin: .4em 0 0; font-size: .9em; }

@media (max-width: 599px) {
	.tc-estimate table.tc-estimate__table:not(.tc-estimate__table--money) th,
	.tc-estimate table.tc-estimate__table:not(.tc-estimate__table--money) td { display: block; width: 100%; border-top: none; }
	.tc-estimate table.tc-estimate__table:not(.tc-estimate__table--money) tr:first-child th { border-top: 1px solid var(--tce-border); }
	.tc-estimate table.tc-estimate__table th, .tc-estimate table.tc-estimate__table td { padding: .7em .8em; }
	.tc-estimate table.tc-estimate__table--money th { width: auto; }
	.tc-estimate__btn { display: block; width: 100%; margin: .5em 0; min-width: 0; }
}

/* 印刷・PDF: 結果だけを出す */
@media print {
	body * { visibility: hidden; }
	.tc-estimate__result, .tc-estimate__result * { visibility: visible; }
	.tc-estimate__result { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; border: none; }
	.tc-estimate__actions, .tc-estimate__btn { display: none !important; }
	.tc-estimate table.tc-estimate__table th, .tc-estimate table.tc-estimate__table td { padding: .4em .6em; font-size: 10pt; }
	.tc-estimate__section { page-break-inside: avoid; margin-bottom: 1em; }
	.tc-estimate__grand th, .tc-estimate__grand td, .tc-estimate table.tc-estimate__table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
