/* Tokyo Property LP — scoped under .tplp so it does not leak into the rest of the site. */
.tplp {
	--tplp-primary: #0f2a44;
	--tplp-accent: #b8893b;
	--tplp-text: #1b1f24;
	--tplp-muted: #5b6470;
	--tplp-background: #ffffff;
	--tplp-surface: #f4f1ec;
	--tplp-error: #b42318;
	--tplp-success: #1f6f43;
	--tplp-radius: 10px;
	--tplp-gutter: 16px;
	--tplp-font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Meiryo, sans-serif;
	color: var(--tplp-text);
	background: var(--tplp-background);
	font-family: var(--tplp-font);
	font-size: 16px;
	line-height: 1.75;
	-webkit-text-size-adjust: 100%;
	overflow-wrap: break-word;
}
/* Japanese / Chinese copy: wrap only at the <wbr> phrase points from Phrase::html(),
   falling back to any position only if a single phrase is wider than the line. */
.tplp h1, .tplp h2, .tplp h3, .tplp-hero__lead, .tplp-lead, .tplp-points li, .tplp-step p, .tplp-btn, .tplp-notice p, .tplp-consent .tplp-help {
	word-break: keep-all;
	overflow-wrap: anywhere;
	line-break: strict;
}
.tplp h1, .tplp h2, .tplp h3 { text-wrap: balance; }
.tplp-hero__lead, .tplp-lead, .tplp-step p { text-wrap: pretty; }
body.tplp-body { margin: 0; background: var(--tplp-background); }
.tplp *, .tplp *::before, .tplp *::after { box-sizing: border-box; }
/* Resets use :where() (low specificity) so component margins below always win. */
.tplp :where(h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend) { margin: 0; padding: 0; }
.tplp :where(fieldset) { border: 0; min-width: 0; }
.tplp :where(ul, ol) { list-style: none; }
.tplp img { max-width: 100%; height: auto; display: block; }
.tplp a { color: var(--tplp-primary); }
.tplp [hidden] { display: none !important; }

.tplp :focus-visible {
	outline: 3px solid var(--tplp-accent);
	outline-offset: 2px;
}

.tplp-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 1000;
	padding: 8px 16px;
	background: var(--tplp-primary);
	color: #fff !important;
	border-radius: var(--tplp-radius);
}
.tplp-skip:focus { top: 8px; }

.tplp-container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 var(--tplp-gutter);
}
.tplp-container--narrow { max-width: 720px; }

/* Header + language switcher */
.tplp-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid rgba(15, 42, 68, 0.12);
}
.admin-bar .tplp-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .tplp-header { top: 32px; } }
.tplp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 8px var(--tplp-gutter);
	min-height: 56px;
}
.tplp-brand { min-width: 0; }
.tplp-brand__logo { max-height: 36px; width: auto; }
.tplp-brand__name { font-weight: 700; color: var(--tplp-primary); font-size: 15px; line-height: 1.3; }
.tplp-lang ul { display: flex; flex-wrap: nowrap; gap: 0; }
.tplp-lang li + li::before { content: "｜"; color: var(--tplp-muted); padding: 0 2px; }
.tplp-lang li { display: flex; align-items: center; }
.tplp-lang a, .tplp-lang__off {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
}
.tplp-lang a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.tplp-lang__off { color: var(--tplp-muted); }

/* Hero */
.tplp-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 420px;
	padding: 72px 0 48px;
	color: #fff;
	background: linear-gradient(140deg, var(--tplp-primary) 0%, #1d4a72 60%, #33608a 100%);
	overflow: hidden;
}
.tplp-hero.has-image { min-height: min(88vh, 720px); }
.tplp-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.tplp-hero.has-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 20, 34, 0.25) 0%, rgba(8, 20, 34, 0.78) 100%);
}
.tplp-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 var(--tplp-gutter);
}
.tplp-eyebrow { font-size: 12px; letter-spacing: 0.18em; font-weight: 700; color: #e8d3ad; margin-bottom: 12px; }
.tplp-hero__title { font-size: clamp(28px, 7vw, 52px); line-height: 1.3; font-weight: 700; max-width: 18em; }
.tplp-hero__lead { margin-top: 16px; font-size: clamp(15px, 2.2vw, 18px); max-width: 36em; }
.tplp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tplp-cta .tplp-btn { flex: 1 1 200px; max-width: 320px; }

/* Buttons */
.tplp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 24px;
	border-radius: 999px;
	border: 2px solid transparent;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.tplp-btn--primary { background: var(--tplp-accent); color: #fff !important; }
.tplp-btn--primary:hover { background: #9c7230; }
.tplp-btn--secondary { background: #fff; color: var(--tplp-primary) !important; border-color: #fff; }
.tplp-btn--secondary:hover { background: transparent; color: #fff !important; }
.tplp-btn--wide { width: 100%; }
.tplp-btn[disabled] { opacity: 0.7; cursor: progress; }

/* Sections */
.tplp-section { padding: 64px 0; }
.tplp-section h2 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.35; color: var(--tplp-primary); margin-bottom: 16px; }
.tplp-lead { color: var(--tplp-muted); margin-bottom: 20px; }
.tplp-service--sell { background: var(--tplp-surface); }
.tplp-service__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
	.tplp-service__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
	.tplp-service--sell .tplp-service__media { order: -1; }
}
.tplp-service__img { width: 100%; border-radius: var(--tplp-radius); aspect-ratio: 4 / 3; object-fit: cover; }
.tplp-points { margin-bottom: 32px; }
.tplp-points li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(15, 42, 68, 0.1); }
.tplp-points li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 20px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tplp-accent);
}

/* Steps */
.tplp-steps__list { display: grid; gap: 16px; counter-reset: tplp-step; }
@media (min-width: 720px) { .tplp-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tplp-steps__list { grid-template-columns: repeat(4, 1fr); } }
.tplp-step {
	counter-increment: tplp-step;
	padding: 24px;
	border: 1px solid rgba(15, 42, 68, 0.14);
	border-radius: var(--tplp-radius);
	background: #fff;
}
.tplp-step::before {
	content: counter(tplp-step, decimal-leading-zero);
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: var(--tplp-accent);
	line-height: 1;
	margin-bottom: 12px;
}
.tplp-step__title { font-size: 18px; color: var(--tplp-primary); margin-bottom: 6px; }
.tplp-step p { color: var(--tplp-muted); font-size: 15px; }

/* Inquiry form */
.tplp-inquiry { background: var(--tplp-surface); }
.tplp-form { display: grid; gap: 20px; margin-top: 8px; }
.tplp-field { display: grid; gap: 6px; }
/* <fieldset> + <legend> must not be grid/flex containers: Safari then shrinks the legend to
   a few characters wide. Use normal block flow and space children with margins instead. */
fieldset.tplp-field, .tplp-group { display: block; min-width: 0; }
.tplp legend { display: block; width: 100%; max-width: 100%; float: none; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
fieldset.tplp-field > * + *, .tplp-group > .tplp-field + .tplp-field { margin-top: 6px; }
.tplp-group > .tplp-field + .tplp-field { margin-top: 20px; }
.tplp-group > legend + .tplp-field { margin-top: 8px; }
.tplp-label { font-weight: 700; font-size: 15px; }
.tplp-mark {
	white-space: nowrap;
	display: inline-block;
	margin-left: 6px;
	padding: 0 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	background: #e3e6ea;
	color: var(--tplp-muted);
	vertical-align: 1px;
}
.tplp-mark--req { background: var(--tplp-primary); color: #fff; }
.tplp-help { font-size: 14px; color: var(--tplp-muted); }
.tplp input[type="text"], .tplp input[type="email"], .tplp select, .tplp textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #8a939e;
	border-radius: 8px;
	background: #fff;
	color: var(--tplp-text);
	font: inherit;
	font-size: 16px; /* prevents iOS zoom */
}
.tplp textarea { min-height: 140px; resize: vertical; }
.tplp .has-error input, .tplp .has-error select, .tplp .has-error textarea { border-color: var(--tplp-error); border-width: 2px; }
.tplp-error { color: var(--tplp-error); font-size: 14px; font-weight: 700; }
.tplp-types__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tplp-radio, .tplp-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tplp-radio {
	min-height: 52px;
	padding: 10px 14px;
	border: 1px solid #8a939e;
	border-radius: 8px;
	background: #fff;
	font-weight: 700;
}
.tplp-radio:has(input:checked) { border: 2px solid var(--tplp-primary); background: #eef3f8; }
.tplp-radio input, .tplp-check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--tplp-primary); }
.tplp-check { min-height: 44px; }
.tplp-group { padding: 20px; border: 1px solid rgba(15, 42, 68, 0.14) !important; border-radius: var(--tplp-radius); background: #fff; }
.tplp .tplp-group__title { font-weight: 700; color: var(--tplp-primary); padding: 0 6px !important; width: auto; }
.tplp-consent { display: grid; gap: 8px; }
.tplp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tplp-notice { padding: 16px 20px; border-radius: var(--tplp-radius); margin: 16px 0; }
.tplp-notice:focus { outline: 3px solid var(--tplp-accent); }
.tplp-notice--error { border: 2px solid var(--tplp-error); background: #fff5f4; color: var(--tplp-error); }
.tplp-notice--error a { color: var(--tplp-error); }
.tplp-notice--error ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.tplp-notice--success { border: 2px solid var(--tplp-success); background: #f1faf4; color: var(--tplp-success); }
.tplp-notice--success h3 { font-size: 20px; margin-bottom: 4px; }

/* Footer */
.tplp-footer { padding: 40px 0; background: var(--tplp-primary); color: #dfe6ee; font-size: 14px; }
.tplp-footer a { color: #fff; }
.tplp-footer__name { font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 12px; }
.tplp-footer__info { display: grid; gap: 4px; margin-bottom: 16px; }
.tplp-footer__info div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.tplp-footer__info dt { font-weight: 700; min-width: 6em; }
.tplp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tplp-footer__links a { display: inline-flex; min-height: 44px; align-items: center; }

/* Placeholder frames for content not provided yet (staging only) */
.tplp-ph {
	display: inline-block;
	padding: 0 8px;
	border: 1px dashed currentColor;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.8;
}
.tplp-ph-img {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed rgba(15, 42, 68, 0.35);
	border-radius: var(--tplp-radius);
	background: repeating-linear-gradient(45deg, rgba(15, 42, 68, 0.04) 0 12px, rgba(15, 42, 68, 0.08) 12px 24px);
	color: var(--tplp-muted);
	font-size: 14px;
	text-align: center;
	padding: 16px;
}
.tplp-ph-img--section { width: 100%; aspect-ratio: 4 / 3; }
.tplp-ph-img--hero {
	position: absolute;
	inset: 12px;
	border-color: rgba(255, 255, 255, 0.45);
	background: none;
	color: rgba(255, 255, 255, 0.75);
	align-items: flex-start;
	justify-content: flex-end;
}
.tplp-hero.has-ph { min-height: min(88vh, 720px); }

@media (prefers-reduced-motion: reduce) {
	.tplp * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 380px) {
	.tplp-lang a, .tplp-lang__off { font-size: 13px; padding: 0 4px; }
	.tplp-brand__name { font-size: 13px; }
}
