/*
 * 仲介会社様向けのページ（/bukken/〇〇/gyosha/・/bukken/gyosha/、inc/gyosha.php）。2026-10-24 見本 docs/記録/業者用試作_1
 */

.msreal-gyosha-page .msreal-final-cta,
.msreal-gyosha-page .msreal-mobile-cta {
	display: none !important; /* 査定の案内は業者様には出さない */
}

.msreal-gy {
	--gy-line: #e3dccd;
	max-width: 920px;
	margin: 0 auto;
	padding: 0 16px 64px;
}

.msreal-gy-i {
	width: 1.2em;
	height: 1.2em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ===== 合言葉 ===== */
.msreal-gy-gate {
	background: var(--wp--preset--color--kinari);
	padding: 56px 16px 64px;
}

.msreal-gy-gate__box {
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e3dccd;
	border-radius: 10px;
	padding: 32px 28px;
}

.msreal-gy-gate__box h1 {
	margin: 0 0 8px;
	color: var(--wp--preset--color--ai);
	font-family: var(--wp--preset--font-family--maru);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.5;
}

.msreal-gy-gate__box p {
	margin: 0 0 18px;
	font-size: 0.9rem;
}

.msreal-gy-gate__box label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 700;
}

.msreal-gy-gate__row {
	display: flex;
	gap: 8px;
}

.msreal-gy-gate__row input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 1px solid #bdb3a0;
	border-radius: 6px;
	padding: 0 12px;
	font-size: 16px;
}

.msreal-gy-gate__row button {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--ai);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.msreal-gy-gate__box .msreal-gy-gate__note {
	margin: 16px 0 0;
	border-top: 1px dashed #e3dccd;
	padding-top: 14px;
	color: #666;
	font-size: 0.82rem;
}

.msreal-gy-gate__note a {
	color: var(--wp--preset--color--ai);
	font-weight: 700;
}

.msreal-gy-error {
	border-left: 4px solid #b3452f;
	background: #fbeeea;
	color: #8a2e1d;
	padding: 8px 12px;
	font-size: 0.9rem;
	border-radius: 0 4px 4px 0;
}

.msreal-gy-error p {
	margin: 0;
}

/* ===== 物件の見出し ===== */
.msreal-gy-top {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 20px 0 28px;
	border-bottom: 1px solid var(--gy-line);
}

.msreal-gy-top > div {
	min-width: 0;
}

.msreal-gy-top__img img,
.msreal-gy-top__img > * {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

.msreal-gy-tag {
	margin: 0 0 4px;
	color: #8a6a35;
	font-size: 0.8rem;
	font-weight: 700;
}

.msreal-gy-title {
	margin: 0 0 6px;
	color: var(--wp--preset--color--ai);
	font-family: var(--wp--preset--font-family--maru);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.5;
}

.msreal-gy-title.is-page {
	margin: 20px 0 8px;
}

.msreal-gy .msreal-badges {
	margin: 0 0 6px;
}

.msreal-gy-meta {
	margin: 0;
	color: #555;
	font-size: 0.88rem;
}

.msreal-gy-price {
	margin: 2px 0 0;
	color: var(--wp--preset--color--ai);
	font-size: 1.35rem;
	font-weight: 700;
}

.msreal-gy-price small {
	margin-left: 8px;
	color: #666;
	font-size: 0.8rem;
	font-weight: 400;
}

.msreal-gy-pub {
	margin: 6px 0 0;
	font-size: 0.82rem;
}

.msreal-gy-pub a {
	color: var(--wp--preset--color--ai);
}

.msreal-gy-list {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

a.msreal-gy-top.is-link {
	border: 1px solid var(--gy-line);
	border-radius: 10px;
	padding: 14px;
	color: inherit;
	text-decoration: none;
}

a.msreal-gy-top.is-link:hover {
	border-color: var(--wp--preset--color--shinchu);
}

.msreal-gy-list .msreal-gy-title {
	font-size: 1.15rem;
}

/* ===== 段 ===== */
.msreal-gy-sec {
	padding: 32px 0;
	border-bottom: 1px solid var(--gy-line);
}

.msreal-gy-sec.is-last {
	border-bottom: 0;
}

.msreal-gy-h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--wp--preset--color--ai);
	font-family: var(--wp--preset--font-family--maru);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
}

.msreal-gy-h2 .msreal-gy-i {
	color: var(--wp--preset--color--shinchu);
}

.msreal-gy-lead {
	margin: -6px 0 16px;
	color: #555;
	font-size: 0.9rem;
}

/* 物件資料 */
.msreal-gy-files {
	display: grid;
	gap: 10px;
}

.msreal-gy-file {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--gy-line);
	border-radius: 8px;
	padding: 12px 14px;
	background: #fff;
}

.msreal-gy-file__ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 48px;
	border-radius: 4px;
	background: #f6efe3;
	color: #a33;
	font-size: 11px;
	font-weight: 700;
}

.msreal-gy-file__name {
	flex: 1;
	min-width: 0;
}

.msreal-gy-file__name b {
	display: block;
	font-size: 0.95rem;
}

.msreal-gy-file__name small {
	color: #777;
	font-size: 0.78rem;
}

.msreal-gy-file a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px;
	background: var(--wp--preset--color--ai);
	color: #fff;
	padding: 9px 16px;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

/* お取引の条件 */
.msreal-gy-terms {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	margin: 0;
	border-top: 1px solid var(--gy-line);
}

.msreal-gy-terms dt,
.msreal-gy-terms dd {
	margin: 0;
	border-bottom: 1px solid var(--gy-line);
	padding: 12px 4px;
	font-size: 0.92rem;
}

.msreal-gy-terms dt {
	color: var(--wp--preset--color--ai);
	font-weight: 700;
}

.msreal-gy-terms dd a {
	color: var(--wp--preset--color--ai);
	font-weight: 700;
}

.msreal-gy-ok {
	display: inline-block;
	margin-right: 6px;
	border-radius: 3px;
	padding: 0 8px;
	font-weight: 700;
}

.msreal-gy-ok.is-ok {
	background: #e8f3ea;
	color: #1f6b3a;
}

.msreal-gy-ok.is-ng {
	background: #fbeeea;
	color: #8a2e1d;
}

.msreal-gy-ok.is-ask {
	background: #f6efe3;
	color: #6b5226;
}

/* ===== 内見のご予約 ===== */
.msreal-gy-step {
	margin: 0;
	border: 0;
	padding: 0;
	min-width: 0;
}

.msreal-gy-step legend {
	margin: 18px 0 8px;
	padding: 0;
	color: var(--wp--preset--color--ai);
	font-size: 0.9rem;
	font-weight: 700;
}

.msreal-gy-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.msreal-gy-day {
	position: relative;
	border: 1px solid #cfc3ab;
	border-radius: 6px;
	background: #fff;
	padding: 6px 0;
	text-align: center;
	font-size: 0.82rem;
	line-height: 1.3;
}

label.msreal-gy-day,
label.msreal-gy-t {
	cursor: pointer;
}

.msreal-gy-day b {
	display: block;
	font-size: 1.05rem;
}

.msreal-gy-day small {
	display: block;
	font-size: 0.7rem;
}

.msreal-gy-day.is-sat {
	color: #2b5ca8;
}

.msreal-gy-day.is-off {
	border-color: #e6e1d6;
	background: #f1efea;
	color: #aaa;
}

.msreal-gy input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.msreal-gy-day:has(input:checked) {
	border-color: var(--wp--preset--color--ai);
	background: var(--wp--preset--color--ai);
	color: #fff;
}

.msreal-gy-day:has(input:focus-visible),
.msreal-gy-t:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--shinchu);
	outline-offset: 2px;
}

.msreal-gy-times {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 10px;
}

.msreal-gy-times__day {
	grid-column: 1 / -1;
	margin: 4px 0 0;
	font-size: 0.85rem;
	font-weight: 700;
}

.msreal-gy.is-js .msreal-gy-times {
	display: none;
}

.msreal-gy.is-js .msreal-gy-times.is-show {
	display: grid;
}

.msreal-gy.is-js .msreal-gy-times__day {
	display: none;
}

.msreal-gy-hint {
	display: none;
	margin: 0;
	color: #777;
	font-size: 0.85rem;
}

.msreal-gy.is-js .msreal-gy-hint.is-show {
	display: block;
}

.msreal-gy-t {
	position: relative;
	border: 1px solid #cfc3ab;
	border-radius: 6px;
	background: #fff;
	padding: 9px 0;
	color: var(--wp--preset--color--ai);
	text-align: center;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

.msreal-gy-t small {
	display: block;
	font-size: 0.68rem;
	font-weight: 400;
}

.msreal-gy-t.is-full,
.msreal-gy-t.is-past {
	border-color: #e6e1d6;
	background: #f1efea;
	color: #aaa;
	font-weight: 400;
}

.msreal-gy-t:has(input:checked) {
	border-color: var(--wp--preset--color--shinchu);
	background: var(--wp--preset--color--shinchu);
	color: #fff;
}

.msreal-gy-note {
	margin: 6px 0 0;
	color: #777;
	font-size: 0.8rem;
}

.msreal-gy-picked {
	margin: 12px 0 0;
	border-radius: 6px;
	background: var(--wp--preset--color--kinari);
	padding: 10px 14px;
	font-size: 0.92rem;
}

.msreal-gy-picked b {
	color: var(--wp--preset--color--ai);
}

.msreal-gy-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.msreal-gy-f {
	min-width: 0;
}

.msreal-gy-f.is-wide {
	grid-column: 1 / -1;
}

.msreal-gy-f label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 700;
}

.msreal-gy-f em {
	margin-left: 6px;
	border-radius: 3px;
	background: #b3452f;
	padding: 0 5px;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	vertical-align: 1px;
}

.msreal-gy-f input,
.msreal-gy-f select,
.msreal-gy-f textarea {
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	border: 1px solid #bdb3a0;
	border-radius: 6px;
	background: #fff;
	padding: 0 12px;
	font-family: inherit;
	font-size: 16px;
}

.msreal-gy-f textarea {
	height: auto;
	min-height: 84px;
	padding: 10px 12px;
}

.msreal-gy .msreal-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.msreal-gy-ts {
	margin-top: 16px;
}

.msreal-gy-send {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 420px;
	min-height: 56px;
	margin: 22px auto 0;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(#c4a068, #b8935a);
	box-shadow: 0 4px 0 #8a6a35;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.msreal-gy-after {
	margin: 12px 0 0;
	color: #666;
	font-size: 0.82rem;
	text-align: center;
}

/* 予約が決まったあと */
.msreal-gy-done {
	border: 2px solid var(--wp--preset--color--shinchu);
	border-radius: 10px;
	background: #fffdf8;
	padding: 20px 22px;
}

.msreal-gy-done p {
	margin: 0 0 10px;
}

.msreal-gy-done__head {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--ai);
	font-size: 1.1rem;
	font-weight: 700;
}

.msreal-gy-done__head .msreal-gy-i {
	color: #1f6b3a;
}

.msreal-gy-done .msreal-gy-done__when {
	color: var(--wp--preset--color--ai);
	font-size: 1.25rem;
	font-weight: 700;
}

.msreal-gy-done h3 {
	margin: 18px 0 4px;
	color: var(--wp--preset--color--ai);
	font-size: 0.95rem;
}

.msreal-gy-done .msreal-gy-after {
	text-align: left;
}

@media (max-width: 600px) {
	.msreal-gy-gate {
		padding: 32px 16px 40px;
	}

	.msreal-gy-gate__box {
		padding: 24px 18px;
	}

	.msreal-gy-top {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 14px;
		align-items: start;
	}

	.msreal-gy-title {
		font-size: 1.12rem;
	}

	.msreal-gy-price {
		font-size: 1.15rem;
	}

	.msreal-gy-price small {
		display: block;
		margin: 0;
	}

	.msreal-gy-file {
		flex-wrap: wrap;
	}

	.msreal-gy-file a {
		justify-content: center;
		width: 100%;
	}

	.msreal-gy-terms {
		grid-template-columns: minmax(0, 1fr);
	}

	.msreal-gy-terms dt {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.msreal-gy-terms dd {
		padding-top: 2px;
	}

	.msreal-gy-days {
		gap: 4px;
	}

	.msreal-gy-day {
		font-size: 0.72rem;
	}

	.msreal-gy-day b {
		font-size: 0.95rem;
	}

	.msreal-gy-times {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.msreal-gy-fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 日曜（2026-10-24 から水・日も予約を受ける） */
.msreal-gy-day.is-sun {
	color: #b3452f;
}

.msreal-gy-done .msreal-gy-done__call {
	border-radius: 6px;
	background: var(--wp--preset--color--kinari);
	padding: 8px 12px;
	font-weight: 700;
}
