@charset "UTF-8";

/* ========================================================================
   Phase 4-C 検索セクション search.css
   - TOPページ専用（.is-top で隔離）
   - 場所: sec01 と sec03（機械買取カテゴリー）の間
   - プレフィックス: search__
   ======================================================================== */


/* ------------------------------------------------------------------------
   1. 外枠（.search-sec）
   ------------------------------------------------------------------------ */
.is-top .search-sec {
	padding: 80px 0 120px;
	background: #f7f7f7;
}

.is-top .search-sec .sec-in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}


/* ------------------------------------------------------------------------
   2. 見出し（h2 + span SEARCH）
   ------------------------------------------------------------------------ */
.is-top .search-sec .sec-ttl {
	margin-bottom: 30px;
}


/* ------------------------------------------------------------------------
   3. wrapper（フォーム本体の入れ物）
   ※ 中身は Phase 4-C-2 以降で実装
   ------------------------------------------------------------------------ */
.is-top .search__wrapper {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
}


/* ------------------------------------------------------------------------
   4. sec03（機械買取カテゴリー）との余白調整
   ※ index.css の `.is-top .sec03 { margin-top: -80px }` を上書き
   ------------------------------------------------------------------------ */
.is-top .sec03 {
	margin-top: 60px;
}


/* ------------------------------------------------------------------------
   5. sec-maker（買取強化メーカー）
   ------------------------------------------------------------------------ */
.is-top .sec-maker {
	background: #f7f7f7;
	padding-top: 120px;
	padding-bottom: 60px;
}

/* グループ全体の縦間隔 */
.is-top .maker__groups {
	margin-top: 20px;
}

.is-top .maker__group {
	margin-bottom: 40px;
}

.is-top .maker__group:last-child {
	margin-bottom: 0;
}

/* グループ見出し（あ行、か行 ... A-Z） */
.is-top .maker__group-title {
	font-size: 26px;
	font-weight: bold;
	color: #be001f;
	letter-spacing: 0.06em;
	line-height: 1.4;
	margin-bottom: 15px;
	padding: 8px 0 8px 16px;
	border-left: 5px solid #be001f;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* リンクリスト */
.is-top .maker__list {
	font-size: 18px;
	line-height: 2;
	color: #333;
	margin: 0;
	padding: 0 8px;
}

.is-top .maker__link {
	display: inline;
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.is-top .maker__link:hover {
	color: #be001f;
	text-decoration: underline;
}


/* ------------------------------------------------------------------------
   6. sec05（選ばれる理由）の上余白
   ------------------------------------------------------------------------ */
.is-top .sec05 {
	padding-top: 120px;
}


/* ------------------------------------------------------------------------
   7. レスポンシブ（SP: 〜767px）
   ------------------------------------------------------------------------ */
@media only screen and (max-width: 767px) {
	.is-top .search-sec {
		padding: 50px 0 60px;
	}
	.is-top .search-sec .sec-in {
		padding: 0 15px;
	}
	.is-top .search-sec .sec-ttl {
		margin-bottom: 20px;
	}
	.is-top .search__wrapper {
		padding: 25px 15px;
		min-height: 80px;
		border-radius: 6px;
	}
	.is-top .sec03 {
		margin-top: 30px;
	}
	.is-top .sec-maker {
		padding-top: 60px;
		padding-bottom: 30px;
	}
	.is-top .maker__group {
		margin-bottom: 25px;
	}
	.is-top .maker__group-title {
		font-size: 16px;
		padding: 6px 0 6px 12px;
		border-left-width: 4px;
		margin-bottom: 10px;
	}
	.is-top .maker__list {
		font-size: 13px;
		line-height: 1.9;
		padding: 0 4px;
	}
	.is-top .sec05 {
		padding-top: 60px;
	}
}

/* ------------------------------------------------------------------------
   8. sec01（パシオリユース紹介）→ search-sec 間の白余白を削除
   ※ common.css の `.sec-in-bg { margin-bottom: 80px }` を上書き
   ------------------------------------------------------------------------ */
.is-top .sec01 .sec-in-bg {
	margin-bottom: 0;
}

/* ========================================================================
   検索フォーム本体（Phase 4-C-2 暫定 / トンマナ: 赤 #be001f 系）
   ※ 動作仕様確定後の調整余地あり
   ======================================================================== */

/* ------ form ------ */
.is-top .search__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

/* ------ field 全体 ------ */
.is-top .search__field {
	width: 100%;
}

/* ------ ラベル（視覚非表示・アクセシビリティ用） ------ */
.is-top .search__label {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
	white-space: nowrap;
}

/* ------ テキスト入力 ------ */
.is-top .search__input {
	width: 100%;
	padding: 16px 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.is-top .search__input::placeholder {
	color: #999;
}

.is-top .search__input:focus {
	outline: none;
	border-color: #be001f;
	box-shadow: 0 0 0 3px rgba(190, 0, 31, 0.12);
}

/* ------ セレクト（カスタム矢印） ------ */
.is-top .search__select-wrap {
	position: relative;
	width: 100%;
}

.is-top .search__select-wrap::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid #be001f;
	border-bottom: 2px solid #be001f;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
	transition: border-color 0.2s;
}

.is-top .search__select {
	width: 100%;
	padding: 16px 50px 16px 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	box-sizing: border-box;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.is-top .search__select:focus {
	outline: none;
	border-color: #be001f;
	box-shadow: 0 0 0 3px rgba(190, 0, 31, 0.12);
}

/* ------ 送信ボタン ------ */
.is-top .search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 42px auto 0;
	padding: 16px 60px;
	min-width: 260px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: #be001f;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
	transition: background 0.2s, transform 0.05s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.is-top .search__submit:hover {
	background: #a30019;
}

.is-top .search__submit:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.is-top .search__icon {
	flex-shrink: 0;
	display: block;
}

.is-top .search__submit-label {
	display: inline-block;
}


/* ------ SP ------ */
@media only screen and (max-width: 767px) {
	.is-top .search__form {
		gap: 12px;
	}
	.is-top .search__input,
	.is-top .search__select {
		padding: 13px 18px;
		font-size: 16px;
		border-radius: 6px;
	}
	.is-top .search__select {
		padding-right: 42px;
	}
	.is-top .search__select-wrap::after {
		right: 18px;
		width: 8px;
		height: 8px;
	}
	.is-top .search__submit {
		margin-top: 21px;
		padding: 13px 30px;
		min-width: 200px;
		font-size: 15px;
		border-radius: 6px;
	}
}

/* ========================================================================
   検索フォーム select-trigger（モーダル発火ボタン）
   ※ ネイティブ <select> 廃止、<button>でモーダル発火
   ======================================================================== */
.is-top .search__select-trigger {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 50px 16px 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
}
.is-top .search__select-trigger:hover,
.is-top .search__select-trigger:focus {
	outline: none;
	border-color: #be001f;
	box-shadow: 0 0 0 3px rgba(190, 0, 31, 0.12);
}
.is-top .search__select-trigger-text {
	flex: 1;
	color: #999;
}
.is-top .search__select-trigger.is-selected .search__select-trigger-text {
	color: #333;
	font-weight: 500;
}
.is-top .search__select-trigger-arrow {
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid #be001f;
	border-bottom: 2px solid #be001f;
	transform: translateY(-70%) rotate(45deg);
}
@media (max-width: 767px) {
	.is-top .search__select-trigger {
		padding: 13px 42px 13px 18px;
		font-size: 14px;
		border-radius: 6px;
	}
	.is-top .search__select-trigger-arrow {
		right: 18px;
		width: 8px;
		height: 8px;
	}
}


/* ========================================================================
   モーダル共通
   ======================================================================== */
.search-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.search-modal.is-open {
	display: flex;
}
.search-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}
.search-modal__inner {
	position: relative;
	width: 100%;
	max-width: 1300px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 40px 36px 36px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.search-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	width: 36px;
	height: 36px;
	font-size: 28px;
	line-height: 1;
	color: #333;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 2;
}
.search-modal__close:hover {
	color: #be001f;
}
.search-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #be001f;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
}
.search-modal__hint {
	font-size: 15px;
	font-weight: 600;
	color: #be001f;
	margin: 18px 0 16px;
}
.search-modal__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 18px;
}
.search-modal__item {
	display: block;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: #2057a8;
	text-align: left;
	background: transparent;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	font-family: inherit;
}
.search-modal__item:hover {
	background: rgba(190, 0, 31, 0.06);
	color: #be001f;
}


/* ========================================================================
   カテゴリーモーダル ステップインジケーター
   ======================================================================== */
.search-modal__steps {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e0e0e0;
}
.search-modal__step {
	flex: 1;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	color: #999;
	background: #f0f0f0;
	border-radius: 4px;
	position: relative;
}
.search-modal__step--active {
	color: #fff;
	background: #be001f;
}
.search-modal__step-value {
	display: block;
	font-size: 12px;
	font-weight: 400;
	margin-top: 2px;
	opacity: 0.85;
}
.search-modal__step-arrow {
	color: #be001f;
	font-size: 14px;
}
.search-modal__step-pane[hidden] { display: none; }
.search-modal__back {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 6px 14px;
	font-size: 13px;
	color: #333;
	background: #f5f5f5;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	cursor: pointer;
	font-family: inherit;
}
.search-modal__back:hover {
	background: #ebebeb;
	border-color: #be001f;
	color: #be001f;
}


/* ========================================================================
   メーカーモーダル
   ======================================================================== */
.search-modal__featured {
	border: 1px solid #be001f;
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 10px;
}
.search-modal__featured-title {
	font-size: 14px;
	font-weight: 700;
	color: #be001f;
	margin: 0 0 10px;
}
.search-modal__featured-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px 14px;
}
.search-modal__maker-groups { margin-top: 10px; }
.search-modal__maker-group { margin-bottom: 22px; }
.search-modal__maker-group-title {
	font-size: 16px;
	font-weight: 700;
	color: #be001f;
	margin: 0 0 10px;
	padding: 4px 0 4px 12px;
	border-left: 4px solid #be001f;
}


/* ========================================================================
   SP モーダル
   ======================================================================== */
@media (max-width: 767px) {
	.search-modal { padding: 10px; }
	.search-modal__inner {
		padding: 30px 16px 24px;
		max-height: 92vh;
		border-radius: 8px;
	}
	.search-modal__close { top: 8px; right: 10px; font-size: 24px; width: 30px; height: 30px; }
	.search-modal__steps { flex-direction: column; gap: 6px; }
	.search-modal__step { width: 100%; padding: 8px 12px; font-size: 13px; }
	.search-modal__step-arrow { display: none; }
	.search-modal__grid { grid-template-columns: 1fr; gap: 4px; }
	.search-modal__item { padding: 12px 10px; font-size: 14px; border-bottom: 1px dashed #eee; }
	.search-modal__item:last-child { border-bottom: none; }
	.search-modal__featured-list { grid-template-columns: 1fr; gap: 0; }
	.search-modal__featured { padding: 12px 14px; }
	.search-modal__maker-group-title { font-size: 15px; }
}


/* ========================================================================
   検索結果ページ
   ======================================================================== */
.is-search-result .search-result {
	padding: 60px 0 80px;
}
.is-search-result .search-result__wrapper {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}
.is-search-result .search-result__h1 {
	font-size: 28px;
	font-weight: 700;
	color: #be001f;
	margin: 0 0 20px;
}
.is-search-result .search-result__conditions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.is-search-result .search-result__chip {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	background: #f7ebee;
	color: #be001f;
	border-radius: 20px;
}
.is-search-result .search-result__count {
	font-size: 14px;
	color: #666;
	margin: 0 0 24px;
}
.is-search-result .search-result__error {
	padding: 16px 20px;
	background: #fff0f3;
	border: 1px solid #be001f;
	color: #be001f;
	border-radius: 6px;
}
.is-search-result .search-result__empty {
	color: #888;
}
.is-search-result .search-result__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.is-search-result .search-result__item {
	border-bottom: 1px solid #eee;
}
.is-search-result .search-result__link {
	display: flex;
	gap: 20px;
	padding: 18px 4px;
	color: #333;
	text-decoration: none;
	transition: background 0.15s;
}
.is-search-result .search-result__link:hover {
	background: #faf5f6;
}
.is-search-result .search-result__thumb {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
}
.is-search-result .search-result__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.is-search-result .search-result__body { flex: 1; min-width: 0; }
.is-search-result .search-result__type-label {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	color: #fff;
	background: #be001f;
	border-radius: 3px;
	margin-bottom: 6px;
	letter-spacing: 0.04em;
}
.is-search-result .search-result__title {
	font-size: 17px;
	font-weight: 600;
	color: #333;
	margin: 0 0 6px;
	line-height: 1.5;
}
.is-search-result .search-result__meta {
	font-size: 13px;
	color: #777;
	margin: 0;
	line-height: 1.6;
}
.is-search-result .search-result__pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
}
.is-search-result .search-result__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.is-search-result .search-result__page:hover {
	border-color: #be001f;
	color: #be001f;
}
.is-search-result .search-result__page--current {
	background: #be001f;
	color: #fff;
	border-color: #be001f;
}

@media (max-width: 767px) {
	.is-search-result .search-result { padding: 30px 0 50px; }
	.is-search-result .search-result__h1 { font-size: 20px; }
	.is-search-result .search-result__link { gap: 12px; padding: 12px 4px; }
	.is-search-result .search-result__thumb { width: 80px; height: 80px; }
	.is-search-result .search-result__title { font-size: 14px; }
	.is-search-result .search-result__meta { font-size: 12px; }
}


/* body スクロール固定（モーダル開いてる間） */
body.is-modal-open { overflow: hidden; }

/* モーダル クリアボタン */
.search-modal__hint-row,
.search-modal__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.search-modal__clear {
	display: inline-block;
	padding: 6px 16px;
	font-size: 13px;
	color: #666;
	background: #f5f5f5;
	border: 1px solid #d0d0d0;
	border-radius: 20px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-modal__clear:hover {
	background: #fff0f3;
	border-color: #be001f;
	color: #be001f;
}
@media (max-width: 767px) {
	.search-modal__clear {
		padding: 5px 12px;
		font-size: 12px;
	}
}

/* 検索結果 デフォルトサムネ（サイトロゴ） */
.is-search-result .search-result__thumb--default {
	background-color: #f7ebee;
	background-image: url('/img/logo-red.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 72% auto;
	border: 1px solid #f3dde2;
}
