:root {
  color-scheme: light;
  --ink: #141b1f;
  --sumi: #0f171a;
  --muted: #636d70;
  --paper: #f5f1e8;
  --panel: #ffffff;
  --line: #d9d0bf;
  --gold: #ad8540;
  --gold-dark: #84612e;
  --vermilion: #9f3428;
  --indigo: #263f4f;
  --shadow: 0 24px 60px rgba(22, 29, 33, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 27, 31, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 27, 31, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.6;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(245, 241, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(22, 29, 33, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  color: currentColor;
  font-weight: 700;
  font-family: "Noto Sans JP", serif;
}

.brand-name,
.brand-line {
  display: block;
}

.brand-name {
  font-weight: 700;
  line-height: 1.1;
}

.brand-line {
  color: currentColor;
  font-size: 12px;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 14px;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid currentColor;
}

.language-switch button {
  min-width: 62px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 13px;
}

.language-switch button.active {
  background: var(--sumi);
  color: #fff;
}

.site-header:not(.scrolled):not(.menu-open) .language-switch button.active {
  background: #fff;
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 144px clamp(20px, 6vw, 80px) 72px;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(15, 23, 26, 0.68), rgba(15, 23, 26, 0.18)),
    url("assets/images/hero-tokyo.jpg") center/cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 26, 0.74), rgba(15, 23, 26, 0.08) 45%, rgba(15, 23, 26, 0.36));
  background-size: 96px 96px, 96px 96px, auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e2c27f;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero-copy {
  border-left: 3px solid var(--vermilion);
  padding-left: 18px;
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--vermilion);
  color: #fff;
}

.button.primary:hover {
  background: #7f2a22;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.64);
  color: #fff;
}

.trust-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin-top: 70px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.trust-panel div {
  padding: 24px;
  background: rgba(23, 33, 38, 0.5);
  backdrop-filter: blur(14px);
}

.trust-panel strong,
.trust-panel span {
  display: block;
}

.trust-panel strong {
  font-size: 30px;
  line-height: 1.1;
}

.trust-panel span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
  position: relative;
  padding-left: 22px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 78px;
  background: linear-gradient(var(--vermilion), var(--gold));
}

.section-heading.wide {
  max-width: 860px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

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

.feature-card,
.service-card,
.property-card,
.process-steps div,
.contact-form {
  background: var(--panel);
  border: 1px solid rgba(221, 213, 201, 0.9);
  box-shadow: 0 12px 34px rgba(22, 29, 33, 0.06);
}

.feature-card {
  min-height: 250px;
  padding: 26px;
}

.feature-number {
  display: block;
  margin-bottom: 38px;
  color: var(--vermilion);
  font-weight: 700;
}

.feature-card p,
.service-card p,
.property-card p,
.process-steps p,
.about-content p,
.contact-info p,
.form-note {
  color: var(--muted);
}

.about-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(38, 63, 79, 0.06), transparent 38%),
    #fff;
}

.about-image {
  min-height: 560px;
  background: url("assets/images/about-tokyo-street.jpg") center/cover;
  box-shadow: var(--shadow);
}

.about-content {
  max-width: 680px;
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.credential-list span {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: #3f484c;
  background: #fbfaf7;
  font-size: 14px;
}

.services {
  background:
    linear-gradient(90deg, rgba(159, 52, 40, 0.06), transparent 32%),
    #ece6da;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.service-image {
  min-height: 168px;
  background-position: center;
  background-size: cover;
}

.service-invest {
  background-image: url("assets/images/service-investment.jpg");
}

.service-rent {
  background-image: url("assets/images/service-rent.jpg");
}

.service-license {
  background-image: url("assets/images/service-license.jpg");
}

.service-stay {
  background-image: url("assets/images/service-stay.jpg");
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.filter-bar button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 16px;
}

.filter-bar button.active {
  background: var(--sumi);
  color: #fff;
  border-color: var(--sumi);
}

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

.compliance-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(162, 67, 49, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.compliance-note strong {
  color: var(--vermilion);
}

.compliance-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.property-card {
  overflow: hidden;
}

.property-card[hidden] {
  display: none;
}

.property-image {
  aspect-ratio: 4 / 3;
  background-position: center;
  background-size: cover;
}

.property-body {
  padding: 22px;
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.property-meta li {
  background: #f3efe6;
  color: #596166;
  font-size: 12px;
  padding: 5px 8px;
}

.property-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.property-stats strong,
.property-stats span {
  display: block;
}

.property-stats span {
  color: var(--muted);
  font-size: 12px;
}

.property-stats strong {
  color: var(--indigo);
}

.process {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--sumi);
  background-size: 56px 56px;
  color: #fff;
}

.process h2 {
  color: #fff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-steps div {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  padding: 26px;
}

.process-steps span {
  display: block;
  color: #e2c27f;
  font-weight: 700;
  margin-bottom: 30px;
}

.process-steps p {
  color: rgba(255, 255, 255, 0.72);
}

.contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.contact-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.contact-info dt {
  color: var(--muted);
  font-size: 12px;
}

.contact-info dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.map-frame {
  overflow: hidden;
  height: 260px;
  border: 1px solid var(--line);
}

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

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
}

.contact-form label,
.contact-form label.full {
  display: grid;
  gap: 8px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form span {
  color: #3f484c;
  font-weight: 700;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 6vw, 80px);
  background: #101719;
  color: #fff;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: #e2c27f;
  font-weight: 700;
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(247, 244, 238, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 36px rgba(22, 29, 33, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .language-switch {
    width: max-content;
    margin-top: 16px;
  }

  .feature-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 360px;
  }

  .service-list,
  .property-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand-line {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding: 120px 18px 40px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .trust-panel,
  .feature-grid,
  .process-steps,
  .compliance-note,
  .contact-info dl,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .trust-panel div {
    padding: 18px;
  }

  .section {
    padding: 64px 18px;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .contact-form .full {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
