/*!
 * transit-search.css ─ 交通費 最安検索ページ
 */

/* ============ ページ全体 ============ */
.transit-search {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 80px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
	color: var(--ink, #2a2a2a);
}

/* パンくず */
.ts-crumb {
	font-size: 12px;
	color: var(--ink2, #777);
	margin-bottom: 16px;
}
.ts-crumb a { color: var(--ink2, #777); text-decoration: none; }
.ts-crumb a:hover { text-decoration: underline; }
.ts-crumb__sep { margin: 0 6px; color: var(--ink3, #aaa); }

/* ============ ヘッダー ============ */
.ts-head {
	text-align: center;
	margin-bottom: 28px;
	padding: 24px 16px;
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	border-radius: 16px;
	border: 1.5px solid #93c5fd;
}
.ts-head__title {
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #075985;
	letter-spacing: .02em;
}
.ts-head__lead {
	margin: 0;
	font-size: 13px;
	color: #0c4a6e;
	line-height: 1.7;
}

/* ============ 入力フォーム ============ */
.ts-form {
	background: #fff;
	border: 1.5px solid #e8e0d0;
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ts-field { display: flex; flex-direction: column; gap: 6px; }
.ts-field__label {
	font-size: 13px;
	font-weight: 700;
	color: #444;
}
.ts-opt {
	font-size: 10px;
	font-weight: 600;
	background: #f0f0f0;
	color: #888;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 4px;
}
.ts-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #d8d0c0;
	border-radius: 8px;
	font-size: 16px;       /* iOS のズーム防止 */
	background: #fff;
	color: #2a2a2a;
	box-sizing: border-box;
	transition: border-color .15s;
}
.ts-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.ts-input::placeholder { color: #b8b0a4; }
.ts-field__hint {
	font-size: 11px;
	color: #888;
	margin: 0;
}
.ts-arrow {
	text-align: center;
	font-size: 24px;
	color: #888;
	line-height: 1;
	margin: -4px 0;
}

/* 横並びレイアウト（日付 + 時刻） */
.ts-row {
	display: flex;
	gap: 12px;
}
.ts-field--half { flex: 1; min-width: 0; }
@media (max-width: 480px) {
	.ts-row { flex-direction: column; gap: 14px; }
}

/* ラジオボタン（並び順） */
.ts-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ts-radio {
	flex: 1;
	min-width: 110px;
	cursor: pointer;
	position: relative;
}
.ts-radio input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ts-radio span {
	display: block;
	padding: 10px 14px;
	background: #f5f5f5;
	border: 1.5px solid #e0e0e0;
	border-radius: 999px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #666;
	transition: all .15s;
}
.ts-radio:hover span { background: #e8e8e8; }
.ts-radio input:checked + span {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
	box-shadow: 0 2px 8px rgba(59,130,246,.3);
}

/* 並び順案内のインフォボックス */
.ts-info {
	margin-top: 4px;
	padding: 12px 14px;
	background: #eff6ff;
	border: 1.5px dashed #93c5fd;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.7;
	color: #1e3a8a;
}
.ts-info b { color: #1d4ed8; font-weight: 800; }

/* 交通手段チェックボックス：3カラム grid で必ず1行に */
.ts-checks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}
.ts-check {
	cursor: pointer;
	position: relative;
	min-width: 0;
}
.ts-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.ts-check span {
	display: block;
	padding: 10px 6px;
	background: #f5f5f5;
	border: 1.5px solid #e0e0e0;
	border-radius: 10px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #888;
	transition: all .15s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ts-check:hover span { background: #e8e8e8; }
.ts-check input:checked + span {
	background: #d1fae5;
	border-color: #16a34a;
	color: #065f46;
}

/* ============ イチオシ（Yahoo!路線情報） ============ */
.ts-hero {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 2px solid #f59e0b;
	border-radius: 16px;
	padding: 24px 20px;
	margin-bottom: 28px;
	text-align: center;
	box-shadow: 0 6px 18px rgba(245, 158, 11, .15);
}
.ts-hero__chip {
	display: inline-block;
	background: #f59e0b;
	color: #fff;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	margin-bottom: 10px;
}
.ts-hero__title {
	font-size: 19px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #78350f;
}
.ts-hero__desc {
	font-size: 13px;
	color: #78350f;
	margin: 0 0 16px;
	line-height: 1.7;
}
.ts-hero__desc b {
	color: #d97706;
	font-weight: 800;
}
.ts-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ea580c;
	color: #fff !important;
	padding: 14px 28px;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(234,88,12,.4);
	transition: all .15s;
}
.ts-hero__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(234,88,12,.5);
}

/* ============ カテゴリ別 ============ */
.ts-cats {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
}
.ts-cat {
	background: #fff;
	border: 1.5px solid #e8e0d0;
	border-radius: 14px;
	padding: 20px;
	transition: all .15s;
}
.ts-cat:hover { border-color: #3b82f6; }
.ts-cat__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
}
.ts-cat__icon {
	font-size: 28px;
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f9ff;
	border-radius: 12px;
}
.ts-cat__title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 4px;
	color: #2a2a2a;
}
.ts-cat__desc {
	margin: 0;
	font-size: 12px;
	color: #666;
	line-height: 1.6;
}
/* ボタン群：必ず 1 行に並べる（grid auto-flow: column で等幅自動配置） */
.ts-cat__btns {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 6px;
}
.ts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: #f3f4f6;
	color: #1f2937 !important;
	padding: 10px 8px;
	border: 1.5px solid #e5e7eb;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	transition: all .15s;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ts-btn:hover {
	background: #3b82f6;
	color: #fff !important;
	border-color: #3b82f6;
	transform: translateY(-1px);
}
.ts-btn--auto {
	background: #d1fae5;
	border-color: #16a34a;
	color: #065f46 !important;
}
.ts-btn--auto small {
	display: inline-block;
	margin-left: 4px;
	font-size: 9px;
	background: #16a34a;
	color: #fff;
	padding: 2px 6px;
	border-radius: 999px;
	font-weight: 800;
	vertical-align: middle;
}
.ts-btn--auto:hover {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff !important;
}
.ts-btn--auto:hover small { background: #fff; color: #16a34a; }
.ts-cat__note {
	margin: 10px 0 0;
	font-size: 11px;
	color: #888;
	line-height: 1.6;
}

/* ヒーロー：サブテキスト */
.ts-hero__sub {
	margin: 12px 0 0;
	font-size: 11px;
	color: #92400e;
	line-height: 1.6;
}
.ts-hero__sub b { color: #d97706; }

/* バス専門カテゴリは緑系で差別化 */
.ts-cat--bus { border-color: #86efac; background: #f0fdf4; }
.ts-cat--bus .ts-cat__icon { background: #dcfce7; }
.ts-cat--bus:hover { border-color: #16a34a; }

/* ============ 予約方法ガイド ============ */
.ts-booking {
	background: #fff;
	border: 1.5px solid #e8e0d0;
	border-radius: 14px;
	padding: 22px 20px;
	margin-bottom: 24px;
}
.ts-booking__title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 800;
	color: #2a2a2a;
}
.ts-booking__grid {
	display: grid;
	gap: 14px;
}
.ts-booking__item {
	padding: 14px 16px;
	background: #f9fafb;
	border-radius: 10px;
	border-left: 4px solid #3b82f6;
}
.ts-booking__item h3 {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 800;
	color: #1f2937;
}
.ts-booking__item p {
	margin: 0;
	font-size: 12px;
	color: #4b5563;
	line-height: 1.7;
}
.ts-booking__item p b {
	color: #1e40af;
	font-weight: 700;
}
@media (min-width: 768px) {
	.ts-booking__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ============ 節約 Tips ============ */
.ts-tips {
	background: #fff8e8;
	border: 1.5px solid #f0d784;
	border-radius: 14px;
	padding: 22px 20px;
	margin-bottom: 24px;
}
.ts-tips__title {
	font-size: 17px;
	font-weight: 800;
	margin: 0 0 14px;
	color: #78350f;
}
.ts-tips__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ts-tips__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: #5a4500;
	line-height: 1.6;
}
.ts-tips__icon {
	font-size: 20px;
	flex-shrink: 0;
	width: 32px;
	text-align: center;
}
.ts-tips__list b { color: #92400e; font-weight: 800; }

/* ============ フッター ============ */
.ts-foot {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px dashed #d8d0c0;
	text-align: center;
}
.ts-foot__note {
	font-size: 11px;
	color: #999;
	margin: 0;
	line-height: 1.6;
}

/* ============ PC（901px以上）：横幅拡張 + 一部 2 列 ============ */
@media (min-width: 901px) {
	.transit-search { max-width: 960px; padding: 36px 24px 100px; }
	.ts-head { padding: 36px 24px; }
	.ts-head__title { font-size: 32px; }
	.ts-hero { padding: 32px 28px; }
	.ts-hero__title { font-size: 22px; }
	.ts-hero__btn { padding: 16px 36px; font-size: 16px; }
	.ts-cat { padding: 24px; }
	.ts-cat__title { font-size: 19px; }
}

/* ============ スマホ最適化（〜480px） ============ */
@media (max-width: 480px) {
	.transit-search { padding: 16px 12px 60px; }
	.ts-head { padding: 20px 12px; }
	.ts-head__title { font-size: 22px; }
	.ts-form, .ts-cat, .ts-tips, .ts-hero { padding: 16px; }
	.ts-cat__icon { width: 44px; height: 44px; font-size: 24px; }
	.ts-cat__title { font-size: 16px; }
	.ts-btn { padding: 9px 4px; font-size: 10.5px; gap: 2px; }
	.ts-cat__btns { gap: 4px; }
}
