/* Tip-Off Box フォーム（テーマ非依存の最小スタイル。色は CSS 変数でテーマ側から上書き可） */
.tipoff-form,
.tipoff-thanks {
	--tipoff-blue: var(--takapi-blue, #0057bd);
	--tipoff-blue-dark: var(--takapi-blue-dark, #00469a);
	--tipoff-red: var(--takapi-red, #d52b22);
	--tipoff-ink: var(--tk-ink, #14181f);
	--tipoff-ink-2: var(--tk-ink-2, #3d4652);
	--tipoff-muted: var(--tk-muted, #8a93a1);
	--tipoff-line: #d6dde6;
	--tipoff-soft: #fbfcfe;
	box-sizing: border-box;
	color: var(--tipoff-ink);
	font-size: 15px;
	line-height: 1.8;
	scroll-margin-top: 90px;
}
.tipoff-form *,
.tipoff-thanks * { box-sizing: border-box; }

/* ハニーポット：人には見えない・操作できない */
.tipoff-hp {
	height: 0; left: -9999px; opacity: 0; overflow: hidden; position: absolute; width: 0;
}

.tipoff-required-note {
	background: #f3f6fa; border-radius: 8px; color: var(--tipoff-ink-2); font-size: 13.5px;
	margin: 0 0 22px; padding: 10px 14px;
}

.tipoff-field { margin: 0 0 22px; }
.tipoff-label {
	color: var(--tipoff-ink); display: block; font-size: 14.5px; font-weight: 800; margin: 0 0 6px;
}
.tipoff-req,
.tipoff-opt {
	border-radius: 4px; display: inline-block; font-size: 11px; font-weight: 700; line-height: 1;
	margin-left: 6px; padding: 4px 6px; vertical-align: 2px;
}
.tipoff-req { background: var(--tipoff-red); color: #fff; }
.tipoff-opt { background: #e8ecf1; color: #5a6472; }

.tipoff-help {
	color: var(--tipoff-ink-2); font-size: 13px; line-height: 1.7; margin: 0 0 8px;
}
.tipoff-help a { color: var(--tipoff-blue); font-weight: 700; }

.tipoff-form input[type="text"],
.tipoff-form input[type="email"],
.tipoff-form select,
.tipoff-form textarea {
	appearance: none; -webkit-appearance: none;
	background: var(--tipoff-soft); border: 1px solid var(--tipoff-line); border-radius: 8px;
	color: var(--tipoff-ink); font-family: inherit; font-size: 16px; /* iOSのズーム防止 */
	line-height: 1.5; margin: 0; padding: 12px 14px; width: 100%;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tipoff-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233d4652' stroke-width='2'/%3E%3C/svg%3E");
	background-position: right 14px center; background-repeat: no-repeat; padding-right: 38px;
}
.tipoff-form textarea { min-height: 180px; resize: vertical; }
.tipoff-form input:focus,
.tipoff-form select:focus,
.tipoff-form textarea:focus {
	background: #fff; border-color: var(--tipoff-blue); box-shadow: 0 0 0 3px rgba(0, 87, 189, .12); outline: none;
}

/* ファイル選択 */
.tipoff-file { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tipoff-file input[type="file"] {
	height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px;
}
.tipoff-file-btn {
	background: #fff; border: 2px solid var(--tipoff-blue); border-radius: 999px; color: var(--tipoff-blue);
	cursor: pointer; display: inline-block; font-size: 14px; font-weight: 800; line-height: 1;
	padding: 11px 20px; transition: background .15s ease, color .15s ease;
}
.tipoff-file-btn:hover,
.tipoff-file input[type="file"]:focus + .tipoff-file-btn {
	background: var(--tipoff-blue); color: #fff;
}
.tipoff-file input[type="file"]:focus + .tipoff-file-btn { box-shadow: 0 0 0 3px rgba(0, 87, 189, .2); }
.tipoff-file-hint { color: var(--tipoff-muted); font-size: 13px; }
.tipoff-file-list { list-style: none; margin: 10px 0 0; padding: 0; }
.tipoff-file-list:empty { display: none; }
.tipoff-file-list li {
	align-items: center; background: #f3f6fa; border-radius: 6px; display: flex; font-size: 13px;
	gap: 8px; justify-content: space-between; margin: 0 0 6px; padding: 7px 12px;
}
.tipoff-file-list li.is-over { background: #fdecea; color: #a1231c; }
.tipoff-file-list li span:last-child { color: var(--tipoff-muted); flex: 0 0 auto; }
.tipoff-file-list li.is-over span:last-child { color: inherit; font-weight: 700; }

/* チェック・ラジオ */
.tipoff-check,
.tipoff-radio {
	align-items: flex-start; cursor: pointer; display: flex; font-size: 14px; gap: 10px; line-height: 1.6;
}
.tipoff-check input,
.tipoff-radio input {
	accent-color: var(--tipoff-blue); flex: 0 0 auto; height: 18px; margin: 3px 0 0; width: 18px;
}
.tipoff-check small { color: var(--tipoff-muted); font-size: 12px; }
.tipoff-check--rights { background: #fffaf0; border: 1px solid #f3e2b8; border-radius: 8px; margin-top: 12px; padding: 12px 14px; }
.tipoff-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tipoff-radio span { padding-top: 1px; }

/* 連絡先ブロック */
.tipoff-fieldset {
	border: 1px solid #e8ecf1; border-radius: 12px; margin: 0 0 22px; min-width: 0; padding: 18px 18px 14px;
}
.tipoff-fieldset legend { font-size: 15px; font-weight: 800; padding: 0 8px; }
.tipoff-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.tipoff-grid .tipoff-field { margin-bottom: 16px; }
@media (max-width: 600px) { .tipoff-grid { grid-template-columns: 1fr; } }

/* 同意 */
.tipoff-consent {
	background: #f3f6fa; border-radius: 10px; margin: 0 0 22px; padding: 16px 18px;
}
.tipoff-consent .tipoff-check { font-weight: 700; }
.tipoff-consent .tipoff-check a { color: var(--tipoff-blue); text-decoration: underline; }
.tipoff-consent .tipoff-help { margin: 10px 0 0; }

/* ボタン */
.tipoff-btn {
	align-items: center; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; font-family: inherit;
	font-size: 16px; font-weight: 800; justify-content: center; line-height: 1; padding: 16px 40px;
	text-decoration: none; transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.tipoff-btn--primary { background: var(--tipoff-blue); color: #fff; width: 100%; }
.tipoff-btn--primary:hover { background: var(--tipoff-blue-dark); color: #fff; transform: translateY(-1px); }
.tipoff-btn--primary[disabled] { cursor: progress; opacity: .6; transform: none; }
.tipoff-btn--ghost { background: #fff; border: 2px solid var(--tipoff-ink); color: var(--tipoff-ink); padding: 12px 28px; }
.tipoff-btn--ghost:hover { background: var(--tipoff-ink); color: #fff; }
.tipoff-submit-note { color: var(--tipoff-muted); font-size: 12.5px; margin: 10px 0 0; text-align: center; }

/* エラー */
.tipoff-errors {
	background: #fdecea; border: 1px solid #f5c2be; border-radius: 10px; color: #a1231c; margin: 0 0 22px; padding: 14px 18px;
}
.tipoff-errors-title { font-weight: 800; margin: 0 0 6px; }
.tipoff-errors ul { margin: 0; padding-left: 1.3em; }
.tipoff-errors li { margin: 0 0 4px; }
.tipoff-errors-note { font-size: 12.5px; margin: 8px 0 0; }

/* 送信完了 */
.tipoff-thanks { padding: 12px 0 8px; text-align: center; }
.tipoff-thanks-icon {
	align-items: center; background: #e6f4ea; border-radius: 50%; color: #1e7e34; display: inline-flex; font-size: 30px;
	font-weight: 900; height: 64px; justify-content: center; line-height: 1; margin: 0 0 14px; width: 64px;
}
.tipoff-thanks-title { font-size: 22px; font-weight: 900; line-height: 1.5; margin: 0 0 10px; }
.tipoff-thanks-title::before { display: none; }
.tipoff-thanks-id { color: var(--tipoff-ink-2); font-size: 14px; margin: 0 0 16px; }
.tipoff-thanks-id strong { color: var(--tipoff-ink); font-size: 18px; }
.tipoff-thanks-body { color: var(--tipoff-ink-2); font-size: 15px; margin: 0 auto 18px; max-width: 560px; text-align: left; }
.tipoff-thanks-body p { margin: 0 0 12px; }
.tipoff-thanks-line { font-size: 14px; margin: 0 0 22px; }
.tipoff-thanks-line a { color: #06c755; font-weight: 800; }
.tipoff-thanks-actions { margin: 0; }
