:root {
    --color-white: #fff;
    --color-ink: #15181c;
    --color-muted: #68717c;
    --color-line: #e5e7eb;
    --color-soft: #f6f7f8;
    --color-navy: #0b1f33;
    --color-gold: #b99655;
    --color-gold-dark: #8e7138;
    --container: 1160px;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(11, 31, 51, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-white);
    color: var(--color-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--color-gold-dark);
}

button,
input,
select,
textarea {
    font: inherit;
    max-width: 100%;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--color-white);
    color: var(--color-ink);
    clip: auto;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.section {
    padding: 84px 0;
}

.section--soft {
    background: var(--color-soft);
}

.section--dark {
    background: var(--color-navy);
    color: var(--color-white);
}

.section--overlap {
    padding-top: 0;
    margin-top: -72px;
    position: relative;
    z-index: 2;
}

.section-label {
    margin: 0 0 10px;
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2,
.page-hero h1,
.hero h1 {
    margin: 0;
    line-height: 1.25;
}

.section-heading h2 {
    font-size: 32px;
}

.section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    color: var(--color-navy);
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.button--primary {
    background: var(--color-gold);
    color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus {
    background: var(--color-gold-dark);
    color: var(--color-white);
}

.button--ghost {
    background: var(--color-white);
    border-color: var(--color-line);
    color: var(--color-ink);
}

.button--light {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .36);
    color: var(--color-white);
}

.button--wide {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    width: min(100% - 32px, 1240px);
    min-height: 78px;
    margin-inline: auto;
}

.site-branding {
    flex: 0 0 auto;
}

.site-branding img {
    max-height: 52px;
    width: auto;
}

.site-branding__name,
.site-footer__name {
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 800;
}

.global-nav {
    flex: 1 1 auto;
}

.global-nav ul,
.site-footer__nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.global-nav a {
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 700;
}

.site-header__actions {
    display: flex;
    gap: 10px;
}

.site-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.site-header__toggle span:not(.screen-reader-text) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-ink);
}

.hero {
    min-height: 690px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(11, 31, 51, .9), rgba(11, 31, 51, .48)), #21364a;
    background-position: center;
    background-size: cover;
    color: var(--color-white);
}

.hero__inner {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
    padding-bottom: 76px;
}

.hero h1 {
    max-width: 760px;
    font-size: 48px;
}

.hero p:not(.section-label) {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.property-search {
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.property-search__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.property-search__header h2 {
    margin: 0;
    font-size: 24px;
}

.property-search__reset {
    color: var(--color-muted);
    font-size: 14px;
    text-decoration: underline;
}

.property-search__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.property-search label {
    min-width: 0;
}

.property-search label span,
.property-search legend {
    display: block;
    margin-bottom: 6px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
}

.property-search input,
.property-search select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-ink);
}

.property-search__features {
    padding: 18px 0 0;
    margin: 18px 0 0;
    border: 0;
    border-top: 1px solid var(--color-line);
}

.property-search__features > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.property-search__features label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--color-soft);
    border-radius: var(--radius);
    min-height: 46px;
    width: 100%;
}

.property-search__features label span {
    margin: 0;
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.property-search__features input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.property-search__submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.service-grid,
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.property-card,
.detail-panel {
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.service-card {
    padding: 26px;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.service-card p {
    margin: 0 0 18px;
    color: var(--color-muted);
}

.service-card a {
    color: var(--color-gold-dark);
    font-weight: 700;
}

.property-card {
    overflow: hidden;
}

.property-card__image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: #dfe3e8;
    color: var(--color-muted);
    overflow: hidden;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.property-card:hover .property-card__image img {
    transform: scale(1.04);
}

.property-card__image span:not(.property-card__badge) {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.property-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.property-card__body {
    padding: 20px;
}

.property-card__price {
    margin: 0 0 8px;
    color: var(--color-gold-dark);
    font-size: 18px;
    font-weight: 800;
}

.property-card h3 {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.45;
}

.property-card__meta {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.property-card__meta div,
.detail-list div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
}

.property-card__meta dt,
.detail-list dt {
    color: var(--color-ink);
    font-weight: 700;
}

.property-card__meta dd,
.detail-list dd {
    margin: 0;
}

.property-card__tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.property-card__tags li,
.tag-list li {
    padding: 5px 9px;
    background: var(--color-soft);
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.property-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.feature-band {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 42px;
    align-items: center;
}

.feature-band h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.4;
}

.strength-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.strength-list li {
    padding: 16px 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
}

.post-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-line);
}

.post-list__item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
}

.post-list__item time {
    color: var(--color-muted);
}

.post-list__item h3 {
    margin: 0;
    font-size: 17px;
}

.page-hero,
.property-detail__hero {
    padding: 84px 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.page-hero h1,
.property-detail__hero h1 {
    font-size: 42px;
}

.page-hero p:not(.section-label) {
    max-width: 680px;
    color: rgba(255, 255, 255, .78);
}

.result-count {
    color: var(--color-muted);
    font-weight: 700;
}

.empty-state {
    padding: 44px;
    text-align: center;
    background: var(--color-soft);
    border-radius: var(--radius);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
}

.pagination .page-numbers {
    min-width: 42px;
    padding: 9px 12px;
    text-align: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.pagination .current {
    background: var(--color-navy);
    color: var(--color-white);
}

.property-detail__hero-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.property-detail__price {
    margin: 16px 0 0;
    color: var(--color-gold);
    font-size: 26px;
    font-weight: 800;
}

.property-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.property-gallery {
    display: grid;
    gap: 14px;
}

.property-gallery__main,
.property-gallery__empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
}

.property-gallery__main {
    object-fit: cover;
}

.property-gallery__empty {
    display: grid;
    place-items: center;
    background: var(--color-soft);
    color: var(--color-muted);
}

.property-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.property-gallery__thumbs button {
    padding: 0;
    background: none;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.property-gallery__thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.content-body,
.floor-plan,
.map-frame {
    margin-top: 34px;
}

.content-body h2,
.floor-plan h2,
.detail-panel h2,
.tag-sections h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.floor-plan img {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.detail-panel {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
}

.detail-list div {
    grid-template-columns: 110px 1fr;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-line);
}

.tag-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.map-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.contact-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.contact-choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-choice {
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 18px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.contact-choice:hover,
.contact-choice:focus,
.contact-choice.is-active {
    color: var(--color-ink);
    border-color: var(--color-gold);
    box-shadow: 0 14px 32px rgba(11, 31, 51, .1);
    transform: translateY(-1px);
}

.contact-choice span {
    font-weight: 800;
    line-height: 1.45;
}

.contact-choice small {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.contact-form-panel {
    padding: 28px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form-panel__header {
    margin-bottom: 22px;
}

.contact-form-panel__header h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.contact-form-panel__header p {
    margin: 0;
    color: var(--color-muted);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form-grid label,
.contact-form-panel__message,
.contact-form-panel__privacy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.contact-form-grid span,
.contact-form-panel__message span {
    font-size: 13px;
    font-weight: 800;
}

.contact-form-grid input,
.contact-form-grid select,
.contact-form-panel__message textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-ink);
}

.contact-form-section {
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid var(--color-line);
}

.contact-form-section h3 {
    margin: 0 0 16px;
    font-size: 20px;
}

.contact-form-panel__message {
    margin-top: 16px;
}

.contact-form-panel__message textarea {
    resize: vertical;
}

.contact-form-panel__privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.contact-form-panel__privacy input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.contact-form-panel__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.contact-notice {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--color-soft);
    border-left: 3px solid var(--color-gold);
    border-radius: var(--radius);
    color: var(--color-muted);
    font-size: 14px;
}

.contact-notice p {
    margin: 0;
}

.contact-side .detail-panel {
    position: sticky;
    top: 104px;
}

.site-footer {
    background: #0a1420;
    color: rgba(255, 255, 255, .82);
}

.site-footer__cta,
.site-footer__inner,
.site-footer__bottom {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.site-footer__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 56px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.site-footer__cta h2 {
    margin: 0;
    color: var(--color-white);
    font-size: 30px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding: 42px 0;
}

.site-footer__name {
    color: var(--color-white);
    margin: 0 0 8px;
}

.site-footer__brand p:last-child {
    max-width: 480px;
    margin: 0;
}

.site-footer__nav a {
    color: rgba(255, 255, 255, .82);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 26px;
    color: rgba(255, 255, 255, .62);
    border-top: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 1024px) {
    .site-header__actions {
        display: none;
    }

    .property-search__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-search__features > div {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-grid,
    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-detail__layout,
    .feature-band,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .container,
    .hero__inner,
    .site-footer__cta,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 56px 0;
    }

    .section--overlap {
        margin-top: -42px;
    }

    .section-heading--split,
    .property-detail__hero-inner,
    .property-search__header,
    .site-footer__cta,
    .site-footer__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading h2,
    .feature-band h2,
    .site-footer__cta h2 {
        font-size: 26px;
    }

    .site-header__inner {
        min-height: 66px;
        gap: 12px;
    }

    .site-branding {
        min-width: 0;
    }

    .site-branding__name {
        display: block;
        max-width: calc(100vw - 92px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 18px;
    }

    .site-header__toggle {
        display: block;
    }

    .global-nav {
        position: fixed;
        inset: 66px 0 auto 0;
        display: none;
        padding: 20px;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow);
    }

    .global-nav.is-open {
        display: block;
    }

    .global-nav ul,
    .site-footer__nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p:not(.section-label) {
        font-size: 16px;
    }

    .property-search {
        padding: 18px;
    }

    .property-search__grid,
    .contact-choice-grid,
    .contact-form-grid,
    .service-grid,
    .property-grid,
    .tag-sections,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .property-search__features > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-search__features label {
        padding: 8px;
        font-size: 12px;
    }

    .contact-form-panel {
        padding: 20px;
    }

    .contact-form-panel__actions .button {
        width: 100%;
    }

    .property-search__submit .button,
    .property-card__actions,
    .property-card__actions .button {
        width: 100%;
    }

    .property-card__actions {
        grid-template-columns: 1fr;
    }

    .post-list__item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .page-hero,
    .property-detail__hero {
        padding: 58px 0;
    }

    .page-hero h1,
    .property-detail__hero h1 {
        font-size: 32px;
    }

    .property-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-list div,
    .property-card__meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

@media (max-width: 360px) {
    .container,
    .hero__inner,
    .site-footer__cta,
    .site-footer__inner,
    .site-footer__bottom {
        width: min(100% - 24px, var(--container));
    }

    .hero h1 {
        font-size: 29px;
    }

    .property-search {
        padding: 14px;
    }

    .property-search__features > div {
        grid-template-columns: 1fr;
    }

    .property-search__features label {
        min-height: 42px;
    }

    .property-card__body,
    .detail-panel,
    .service-card,
    .contact-form-panel,
    .contact-choice {
        padding: 16px;
    }
}
