@charset "utf-8";
/* テキストWeb用スタイルシート ライト/ダーク共通の最終上書き
   textwebr.css から分割 (2026-08)。light/dark より後に読み込むこと。
   Copyright 2000(C) by 高知システム開発 */

/*---*/

/* ボタン・1行テキストボックスを本文(p)の表示範囲内に収める (ライト/ダーク共通の最終上書き)
   ・右マージンは p や水平線と同じ 20px (スマホは10px)
   ・max-width で「本文幅 − 左右マージン」を上限にし、枠線・パディング込みで計算する */
input:not([type="radio"]):not([type="checkbox"]) {
	box-sizing: border-box;
	margin-right: 20px;
	max-width: calc(100% - 80px); /* 左60px + 右20px */
}
/* スマホ(720px以下): ボタンは行頭(pと同じ左位置)から開始する */
@media only screen and (max-width: 720px) {
	input.button:not([type="radio"]) {
		margin-left: 0px;
		margin-right: 10px;
		max-width: calc(100% - 10px);
	}
}
/* スマホ(480px以下): すべての入力欄が左マージン0になるため上限も合わせる */
@media only screen and (max-width: 480px) {
	input:not([type="radio"]):not([type="checkbox"]) {
		margin-right: 10px;
		max-width: calc(100% - 10px);
	}
}

/* 複数行テキストボックスも1行テキストボックスと同じ幅・右マージンに合わせる */
textarea {
	box-sizing: border-box;
	margin-right: 20px;
	width: calc(100% - 80px); /* 左60px + 右20px を差し引いた本文幅 */
	max-width: calc(100% - 80px);
}
@media only screen and (max-width: 480px) {
	textarea {
		margin-right: 10px;
		width: calc(100% - 10px);
		max-width: calc(100% - 10px);
	}
}

/* ライトテーマのフォーカスは border ではなく outline で示し、Tab移動時のレイアウトのガタつきを防ぐ */



/* 見出しはBoldカットのフォントを使用しているため、ブラウザの合成ボールド(faux bold)を無効化する
   (黒背景で文字が太って見える現象の抑制。ライト/ダーク共通) */
h1, h2, h3, h4, h5, h6 { font-weight: normal; }
