@charset "UTF-8";

/* =====================================================
--------------------------------------------------------
モーダル設定（共通）
--------------------------------------------------------
===================================================== */

.modal-dialog {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 4;
	width: 100%;
	max-width: 1024px;
	height: 100%;
	max-height: 100vh;
	translate: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0 0 48px;
	background: #fff;
}

.modal-dialog:has(.search-button-area) {
	padding: 0;
}

.modal-dialog:has(.fixed-menu) {
	left: 0;
	translate: unset;
	padding-bottom: 64px;
	min-height: 100lvh;
}

@supports (-webkit-touch-callout: none) {
	.modal-dialog {
		max-height: 100dvh;
	}
}

.modal-dialog header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 32px 16px 16px;
	border-bottom: 1px solid #bbb;
	background: #fff;
}

.modal-dialog header a {
	display: flex;
	align-items: center;
	color: var(--color-link-text);
	font-size: 16px;
}

.modal-dialog header a::before {
	rotate: 180deg;
	margin: 0 8px 0 -8px;
	color: var(--color-black);
	font-family: 'icomoon';
	font-size: 32px;
	content: '\e90d';
}

.modal-dialog header button::before {
	content: '\e92d';
	font-family: 'icomoon';
	font-size: 32px;
}

.modal-dialog_body {
	padding: 0 16px;
}

@media screen and (min-width: 1024px) {
	.modal-dialog {
		top: 100px;
		left: 50%;
		translate: -50% 0;
		padding: 0 0 48px;
		width: 1024px;
		height: fit-content;
		max-height: calc(100vh - 200px);
	}
	.modal-dialog header a {
		font-size: 18px;
	}
}









/* =====================================================
--------------------------------------------------------
共通設定
--------------------------------------------------------
===================================================== */

.modal-dialog label {
	width: 100%;
	display: flex;
	align-items: flex-start;
}

.modal-dialog a {
	color: var(--color-link-text);
	transition: opacity 0.5s;
}

@media (any-hover:hover) {
	.modal-dialog a:hover {
		opacity: 0.5;
	}
}

.modal-dialog [type="checkbox"] {
	margin: 0 8px 0 0;
}










/* =====================================================
--------------------------------------------------------
見出し（共通）
--------------------------------------------------------
===================================================== */

.modal-dialog *:is(h2, h3, h4) {
	font-weight: bold;
}

.modal-dialog li:not(.disabled) *:is(h2,h3, h4) {
	cursor: pointer;
}

.modal-dialog h2 {
	margin: 24px 0;
	font-size: 20px;
}

.medium-heading {
	margin: 24px 0 16px;
	font-size: 16px;
}



/*[C162] [C163] SPのみ */
div:has(.list-for-mobile) h3 {
	font-size: 16px;
}

div:has(.list-for-mobile) h4 {
	margin: 16px 0 8px;
	font-weight: bold;
}

div:has(.list-for-mobile) h4:not(:first-of-type) {
	margin: -8px 0 8px;
}

@media (any-hover:hover) {
	.list-for-mobile label span {
		transition: opacity 0.5s;
	}
	.list-for-mobile label span:hover {
		opacity: 0.5;
	}
}

@media screen and (min-width: 1024px) {
	.modal-dialog h2 {
		margin: 32px 0;
		font-size: 24px;
	}
	.medium-heading {
		margin: 32px 0 16px;
		font-size: 18px;
	}
}










/* =====================================================
--------------------------------------------------------
見出し + 件数 1行表示 [C161-2] [C161-5]
--------------------------------------------------------
===================================================== */

.heading-number {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 24px 0 20px;
}

.heading-number h3 {
	font-size: 16px;
}

.heading-number span {
	margin: 4px 0 0;
	color: var(--color-grey-dark);
}

@media screen and (min-width: 1024px) {
	.heading-number h3 {
		margin: 0;
		font-size: 18px;
	}
	.heading-number span {
		font-weight: normal;
	}
}










/* =====================================================
--------------------------------------------------------
基本リスト
--------------------------------------------------------
===================================================== */

.checkbox-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.checkbox-list li {
	width: 100%;
}

.checkbox-list .select-all label span {
	margin: 0;
	font-weight: bold;
	color: var(--color-link-text);
	transition: opacity 0.5s;
}

.checkbox-list label > [type="checkbox"] {
	translate: 0 -0.25em;
}

.checkbox-list label > :is(h3, h4) {
	font-weight: normal;
}

.checkbox-list label > span {
	margin: 0 0 0 auto;
	color: var(--color-grey-dark);
}

.checkbox-list label a {
	display: block;
	width: 100%;
	padding: 0;
	font-size: inherit;
	color: var(--color-link-text);
	transition: opacity 0.5s;
}

.checkbox-list li .applicable-items {
	width: calc(100% - 32px);
}

@media (any-hover:hover) {
	.checkbox-list .select-all label:hover span {
		opacity: 0.5;
	}
}

@media screen and (min-width: 1024px) {
	.checkbox-list {
		gap: 24px;
	}
	
	.checkbox-list li {
		width: calc((100% - 24px * 2) / 3);
	}

	.checkbox-list .select-all {
		width: 100%;
	}
}










/* =====================================================
--------------------------------------------------------
一覧付き [C161-3]
--------------------------------------------------------
===================================================== */

.checkbox-list:has(.applicable-items) {
	gap: 24px;
	align-items: flex-start;
}

/* label:has(+ .applicable-items) {
	flex-wrap: wrap;
} */

label + .applicable-items {
	width: 100%;
	display: flex;
	gap: 2px 0;
	flex-wrap: wrap;
	margin: 0 0 0 32px;
}

label + .applicable-items li {
	width: fit-content;
	line-height: 1.2;
	font-size: 12px;
}

label + .applicable-items li:not(:last-of-type):after {
	content: "、";
	display: inline-block;
	margin: 0 -0.25em 0 0;
}

@media screen and (min-width: 1024px) {
	label + .applicable-items {
		display: block;
		width: 100%;
		line-height: 1;
	}
	label + .applicable-items li {
		display: inline;
		font-size: 14px;
		color: var(--color-black);
	}
	.disabled label + .applicable-items li {
		font-size: 12px;
	}
}










/* =====================================================
--------------------------------------------------------
検索方法を選ぶ（アイコン付き） [C161-1]
--------------------------------------------------------
===================================================== */

.choose-search-method {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.choose-search-method a {
	width: calc((100% - 16px) / 2);
	max-width: 230px;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	gap: 0 4px;
	padding: 12px 8px 12px 40px;
}

.choose-search-method a::before,
.choose-search-method a::after {
	left: 8px;
	font-size: 32px;
	z-index: 1;
}

@media screen and (min-width:375px) {
	.choose-search-method a span {
		width: 100%;
		font-size: 18px;
	}
}

@media screen and (min-width: 1024px) {
	.choose-search-method {
		gap: 0 24px;
	}
	.choose-search-method a::before,
	.choose-search-method a::after {
		font-size: 40px;
	}
	.method li a {
		padding-left: 48px;
		font-size: 18px;
	}
	.method li a span {
		font-size: 20px;
	}
}










/* =====================================================
--------------------------------------------------------
見出し縦並び（.column） [C161-1][C162]
--------------------------------------------------------
===================================================== */

.free-word-search {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0 16px;
	margin: 0 0 24px;
}

main:has(.list-for-mobile) .free-word-search {
	margin-bottom: 16px;
}

.free-word-search h3 {
	width: 100%;
	font-size: 18px;
	margin: 0 0 16px;
}

.free-word-search input {
	width: calc(100% - 90px - 16px);
	padding: 16px;
	line-height: 1;
	font-size: 16px;
}

.free-word-search button {
	display: grid;
	place-content: center;
	width: 90px;
	padding: 12px 0;
	border-radius: 4px;
	background: var(--color-housecom-green);
	line-height: 1;
	color: var(--color-black);
	font-size: 18px;
	font-weight: bold;
}

.free-word-search.white-button button {
	border: 1px solid var(--color-grey-origin);
	background: #fff;
	color: var(--color-link-text);
}

@media screen and (min-width: 1024px) {
	.free-word-search {
		justify-content: flex-start;
		align-items: flex-start;
		gap: 0 32px;
		margin: 32px 0;
	}
	
	.free-word-search.column {
		gap: 32px;
	}

	.free-word-search.column h3 {
		margin: 0;
		font-size: 20px;
	}

	.free-word-search input {
		width: 300px;
		padding: 12px 16px;
	}
	
	.free-word-search.column input {
		width: 450px;
	}

	.free-word-search button {
		align-self: stretch;
	}
	
	.free-word-search.column button {
		width: 90px;
	}
}










/* =====================================================
--------------------------------------------------------
路線を選ぶ [C161-1]
--------------------------------------------------------
===================================================== */

.choose-line-type h3 {
	width: 100%;
	font-size: 18px;
	font-weight: bold;
}

.choose-line-type h3 span {
	display: block;
	font-size: 14px;
	color: var(--color-grey-dark);
}

.line-pref {
	margin-top: 16px;
}

.line-pref select {
	padding: 4px 40px 4px 8px ;
}

.line-pref::before {
	rotate: 0deg;
	width: 14px;
	height: 12px;
	clip-path: polygon(0 0, 100% 0%, 50% 100%);
	background: var(--color-black);
	content: '';
}

.line-pref.show::before {
	rotate: 180deg;
}

.line-tab {
	display: flex;
}

.line-tab > li {
	width: calc(100% / 3);
	border-bottom: 4px solid var(--color-grey-pale);
	padding: 0 0 8px;
	margin: 16px 0;
	cursor: pointer;
	text-align: center;
	color: var(--color-link-text);
}

.line-tab > li.active {
	border-color: var(--color-housecom-blue);
	color: var(--color-black);
	font-weight: bold;
}

.line_list {
	display: none;
}

.line_list.active {
	display: flex;
	flex-direction: column;
	gap: 24px 8px;
}

.line_list.active div {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 8px;
}

.line_list.active dt {
	color: var(--color-grey-dark);
	font-weight: bold;
	width: 1em;
}

.line_list.active dd {
	width: calc(100% - 1em - 8px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 0;
}

.line_list.active label {
	width: 100%;
	display: flex;
	line-height: 1.2;
}

.line_list.active label > *:not(input) {
	margin: 0.175em 0 0;
}

.line_list.active label h4 {
	font-weight: normal;
}

.line_list.active label span {
	margin: 0 0 0 auto;
	color: var(--color-grey-dark);
}


@media (any-hover) {
	.line-tab > li:not(.active):hover {
		opacity: 0.5;
	}
}

@media screen and (min-width: 1024px) {
	.choose-line-type h3 {
		margin: 24px 0;
		font-size: 20px;
	}
	.choose-line-type h3 span {
		display: inline-block;
		margin: 0 0 0 16px;
		font-size: 16px;
	}
	.line-pref {
		margin-top: 0;
		margin-bottom: 32px;
	}
	.line-tab > li {
		transition: all 0.5s;
		padding: 0 0 16px;
		margin: 0 0 32px;
	}
	.line_list.active,
	.line_list.active div {
		gap: 24px;
	}
	.line_list.active dt {
		margin: 0;
		font-size: 18px;
	}
	.line_list.active dd {
		width: calc(100% - 1em - 32px);
		gap: 24px;
	}
	.line_list.active label {
		align-items: flex-start;
		width: calc((100% - 48px) / 3);
	}
	.line_list.active label span {
		margin: .2em 0 0 auto;
	}
}



/* 該当0件（路線） */
.line_list.active > .not-applicable-line {
	position: relative;
	display: block;
	margin: 0 auto;
	padding: 12px 12px 12px 44px;
	width: 100%;
	max-width: 400px;
	border-radius: 4px;
	border: 3px solid var(--color-link-cv);
	color: var(--color-link-cv);
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}

.line_list.active > .not-applicable-line::before {
	position: absolute;
	top: 50%;
	left: 16px;
	translate: 0 -50%;
	color: var(--color-link-cv);
	font-family: 'icomoon';
	font-weight: normal;
	content: '\e93e';
}










/* =====================================================
--------------------------------------------------------
検索ボタン [C161-1]
--------------------------------------------------------
===================================================== */

.search-button-area {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	gap: 32px;
	position: -webkit-sticky;
	position: sticky;
	left: 0;
	bottom: 0;
	translate: -16px 0;
	margin-top: 32px;
	padding: 24px 16px;
	width: calc(100% + 32px);
	border-top: 2px solid var(--color-grey-light);
	background: #fff;
	z-index: 1;
}

.search-button-area > * {
	padding: 12px 16px;
	width: 100%;
    max-width: 342px;
	border-radius: 4px;
	border-width: 2px;
	font-size: 18px;
	font-weight: bold;
}

.search-button-area > *[disabled] {
	opacity: 0.5;
}

@media (any-hover:hover) {
	.search-button-area > .c--link-main[disabled]:hover {
		background: var(--color-housecom-green);
	}
}

@media screen and (min-width: 1024px) {
	.search-button-area > * {
		font-size: 20px;
	}
}










/* =====================================================
--------------------------------------------------------
ulネスト型リスト（SP: 2カラム / PC: 6カラム） [C161-4]
--------------------------------------------------------
===================================================== */

.choose-pref h3 {
	margin: 24px 0 20px;
	font-size: 18px;
}

.nest-list {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.nest-list > li {
	width: 100%;
}

.nest-list > li p {
	font-size: 16px;
	font-weight: bold;
}

.nest-list ul {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 16px 0 0;
	color: var(--color-black);
}

.nest-list ul li {
	width: calc((100% - 24px) / 2);
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	color: var(--color-grey-dark);
}

.nest-list ul li h4 {
	margin: 0;
	font-weight: normal;
}

.nest-list ul li h4 a {
	font-size: 16px;
}

.nest-list ul li > span {
	margin: 0 0 0 auto;
	color: var(--color-grey-dark);
}

@media screen and (min-width: 1024px) {
	.choose-pref h3 {
		margin: 32px 0 24px;
		font-size: 20px;
	}
	.nest-list {
		gap: 20px 24px;
	}
	.nest-list > li {
		display: flex;
		align-items: flex-start;
		gap: 0 32px;
	}
	.nest-list > li p {
		width: 114px;
		text-align: right;
	}
	.nest-list ul {
		gap: 16px 24px;
		margin: 0;
	}
	.nest-list ul li {
		width: calc((100% - 24px * 4) / 5);
	}
	.nest-list ul li h4 {
		flex-shrink: 0;
		font-size: 16px;
	}
}










/* =====================================================
--------------------------------------------------------
フッター固定（SPのみ） [C162] [C163]
--------------------------------------------------------
===================================================== */

.fixed-menu {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: 1024px;
	height: 64px;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	padding: 8px 16px;
	border-top: 1px solid var(--color-grey-origin);
	background: #fff;
	font-weight: bold;
}

.fixed-menu p {
	width: fit-content;
	text-align: right;
	font-size: 16px;
}

.fixed-menu p span {
	margin: 0 4px 0 0;
	font-size: 22px;
}

.fixed-menu button {
	padding: 16px 20px;
	line-height: 1;
	background: var(--color-housecom-green);
	font-size: 18px;
}

.fixed-menu button[disabled] {
	opacity: 0.5;
}

@media (any-hover:hover) {
	.fixed-menu button[disabled]:hover {
		background: var(--color-housecom-green);
	}
}










/* =====================================================
--------------------------------------------------------
SPのみのリスト（1列 / 2列） [C162] [C163]
--------------------------------------------------------
===================================================== */

.list-for-mobile {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 24px;
}

.list-for-mobile.column01 li {
	width: 100%;
}

.list-for-mobile.column02 li {
	width: calc((100% - 16px) / 2);
}

.list-for-mobile label {
	width: 100%;
	display: flex;
	align-items: center;
	color: var(--color-link-text);
	line-height: 1.25;
	font-size: 14px;
}










/* =====================================================
--------------------------------------------------------
この条件を保存する [C162] [C163]
--------------------------------------------------------
===================================================== */

.save-button {
	display: flex;
	padding: 16px 20px 16px 44px;
	margin: 32px auto 48px;
	line-height: 1;
}

.save-button::before {
	content: '\e929';
	font-family: 'icomoon';
	left: 20px;
	color: var(--color-black);
	font-size: 16px;
}

.save-button[disabled] {
	filter: grayscale(100%) invert(10%);
	pointer-events: none;
}

.save-button[disabled]::before,
.save-button[disabled]::after {
	color: var(--color-grey-dark);
}