*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff; --bg-alt: #eef1f6; --text: #111111; --text-sub: #555555;
  --white: #ffffff; --primary: #0f3d6e; --primary-dark: #0a1e3a; --accent: #d4582a;
  --sans: "Noto Sans JP", sans-serif; --serif: "Noto Serif JP", serif; --en: "Inter", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); height: 96px; }
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 0 0 4%; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { height: 60px; width: auto; object-fit: contain; }
.logo-text .logo-name { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.logo-text .logo-sub { font-size: 10px; color: var(--text-sub); letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; transition: color 0.3s; position: relative; padding-bottom: 6px; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width 0.3s, left 0.3s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; left: 0; }
.header-right { display: flex; align-items: stretch; }
.header-btn { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 96px; width: 140px; font-size: 16px; font-weight: 500; color: var(--white); letter-spacing: 0.08em; transition: opacity 0.3s; }
.header-btn:hover { opacity: 0.85; }
.header-btn-tel { background: transparent; color: var(--text); width: auto; padding: 0 28px; }
.header-btn-tel .tel-num { font-family: var(--en); font-size: 20px; font-weight: 700; }
.header-btn-tel .tel-time { font-size: 10px; color: var(--text-sub); }
.header-btn-contact { background: var(--primary); width: 160px; text-align: center; }
.header-btn-contact .btn-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.header-btn-contact .btn-jp { font-size: 11px; margin-top: 2px; }

.page-hero { margin-top: 96px; padding: 80px 0 60px; background-color: var(--primary-dark); background-image: linear-gradient(135deg, rgba(10,30,58,0.82), rgba(15,61,110,0.78)), url('../img/office-wide.jpg'); background-size: cover; background-position: center; color: var(--white); position: relative; overflow: hidden; }
.page-hero-inner { width: 90%; max-width: 1430px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en { font-family: var(--en); font-size: 80px; font-weight: 900; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -12px; }
.page-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: 0.06em; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }

/* ===== STATION MAP ===== */
.station-map-section { padding: 80px 0 0; background: var(--bg-alt); }
.station-map-inner { width: 90%; max-width: 900px; margin: 0 auto; }
.station-map-head { text-align: center; margin-bottom: 32px; }
.station-map-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.station-map-head h2 { font-size: 28px; font-weight: 900; }
.station-map-sub { font-size: 14px; color: var(--text-sub); margin-top: 8px; }
.station-map-wrap { background: var(--white); border-radius: 8px; padding: 32px 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); overflow-x: auto; }
.station-svg { width: 100%; height: auto; min-width: 500px; }
.station-svg .station { cursor: pointer; }
.station-svg .station circle { transition: all 0.2s; }
.station-svg .station:hover circle { fill: #e3f0ff; transform-origin: center; r: 11; }
.station-svg .station.active circle { fill: var(--accent); stroke: var(--white); }
.station-svg .station-main circle { filter: drop-shadow(0 0 6px rgba(15,61,110,0.3)); }
.station-map-selected {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  background: var(--primary); color: var(--white); padding: 14px 24px;
  font-size: 14px; font-weight: 600; margin-bottom: 24px; border-radius: 6px;
}
.station-map-selected button {
  background: rgba(255,255,255,0.2); border: none; color: var(--white);
  padding: 4px 14px; font-size: 12px; cursor: pointer; border-radius: 4px;
  font-family: var(--sans); transition: background 0.2s;
}
.station-map-selected button:hover { background: rgba(255,255,255,0.3); }

/* Mobile Area+Station fallback */
.station-mobile { display: none; }
.sm-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.sm-area-card { background: var(--primary); color: var(--white); padding: 20px 16px; border-radius: 8px; text-align: center; }
.sm-area-dir { font-family: var(--en); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.5; margin-bottom: 4px; }
.sm-area-jp { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.sm-area-name { font-size: 13px; font-weight: 600; }
.sm-area-sub { font-size: 11px; opacity: 0.5; margin-top: 2px; }
.sm-line { margin-bottom: 20px; }
.sm-line-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid; }
.sm-line-head.jr { border-color: #00B2E3; }
.sm-line-head.sr { border-color: #E8380D; }
.sm-line-name { font-size: 14px; font-weight: 700; }
.sm-line-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sm-line-dot.jr { background: #00B2E3; }
.sm-line-dot.sr { background: #E8380D; }
.sm-stations { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-station-btn { display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: 600; background: var(--white); border: 2px solid #d0d5e0; border-radius: 6px; cursor: pointer; transition: all 0.2s; color: var(--text); }
.sm-station-btn:active, .sm-station-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }
.sm-station-btn.main { border-color: var(--primary); font-weight: 900; position: relative; }
.sm-station-btn.main::after { content: '本社'; position: absolute; top: -8px; right: -4px; background: var(--accent); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 3px; }

/* ===== PROPERTY LIST ===== */
.property-section { padding: 80px 0 100px; }
.property-inner { width: 90%; max-width: 1430px; margin: 0 auto; }

/* Category Filter */
.property-filter { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; justify-content: center; }
.filter-btn { display: inline-block; padding: 10px 28px; font-size: 14px; font-weight: 600; border: 2px solid #d0d5e0; background: var(--white); color: var(--text); cursor: pointer; transition: all 0.3s; letter-spacing: 0.04em; }
.filter-btn:hover, .filter-btn.active { border-color: var(--primary); background-color: var(--primary); color: var(--white); }

/* Property Grid — WP archive ready */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Property Card — maps to WP post */
.property-card { background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

/* post_thumbnail */
.property-thumb { position: relative; height: 220px; overflow: hidden; }
.property-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.property-card:hover .property-thumb img { transform: scale(1.05); }

/* wp category badge */
.property-cat { position: absolute; top: 12px; left: 12px; display: inline-block; padding: 4px 14px; font-size: 11px; font-weight: 700; color: var(--white); letter-spacing: 0.04em; }
.property-cat.cat-land { background-color: #2e7d32; }
.property-cat.cat-house { background-color: var(--primary); }
.property-cat.cat-mansion { background-color: #6a1b9a; }
.property-cat.cat-commercial { background-color: #e65100; }

/* status badge */
.property-status { position: absolute; top: 12px; right: 12px; display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.property-status.new { background-color: var(--accent); color: var(--white); }
.property-status.negotiating { background-color: #ffa000; color: var(--white); }
.property-status.sold { background-color: #757575; color: var(--white); }

/* post content area */
.property-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.property-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.property-area { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.property-area svg { width: 14px; height: 14px; stroke: var(--text-sub); fill: none; stroke-width: 2; flex-shrink: 0; }

/* price — custom field */
.property-price { font-family: var(--en); font-size: 24px; font-weight: 900; color: var(--accent); margin-bottom: 12px; }
.property-price span { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text-sub); }

/* spec row — custom fields */
.property-spec { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-sub); margin-top: auto; padding-top: 12px; border-top: 1px solid #eee; }
.property-spec dt { font-weight: 600; color: var(--text); }
.property-spec dd { margin: 0; }
.spec-item { display: flex; gap: 4px; }

/* Detail link */
.property-link { display: block; text-align: center; padding: 14px; background-color: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: 0.04em; transition: background-color 0.3s; }
.property-link:hover { background-color: #dde3ed; }

/* Count */
.property-count { text-align: center; font-size: 14px; color: var(--text-sub); margin-bottom: 32px; }
.property-count strong { color: var(--text); font-weight: 700; }

/* CTA */
.cta { padding: 120px 0; text-align: center; color: #ffffff; background-color: #0a1e3a; background-image: linear-gradient(135deg, rgba(10,30,58,0.92), rgba(15,61,110,0.88)), url('../img/cta-bg.jpg'); background-size: cover; background-position: center; }
.cta-inner { width: 90%; max-width: 1000px; margin: 0 auto; }
.cta-label { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cta h2 { font-size: 36px; font-weight: 900; margin-bottom: 16px; letter-spacing: 0.06em; line-height: 1.5; }
.cta-sub { font-size: 16px; opacity: 0.6; margin-bottom: 48px; }
.cta-actions { display: flex; gap: 32px; justify-content: center; }
.cta-action-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); padding: 40px 48px; flex: 1; max-width: 420px; border: 1px solid rgba(255,255,255,0.1); transition: background 0.3s; }
.cta-action-card:hover { background: rgba(255,255,255,0.12); }
.cta-action-icon { margin-bottom: 16px; }
.cta-action-icon svg { width: 36px; height: 36px; }
.cta-action-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; opacity: 0.7; }
.cta-tel { font-family: var(--en); font-size: 36px; font-weight: 900; letter-spacing: 0.04em; line-height: 1.3; }
.cta-time { font-size: 13px; opacity: 0.4; margin-top: 8px; }
.cta-btn { display: inline-block; margin-top: 8px; background: var(--accent); color: var(--white); font-size: 16px; font-weight: 700; padding: 20px 48px; letter-spacing: 0.06em; transition: opacity 0.3s; }
.cta-btn:hover { opacity: 0.85; }
.cta-btn-sub { font-size: 12px; margin-top: 8px; opacity: 0.5; }

.footer { background-color: #0a1e3a; background-image: linear-gradient(to top, #0f3d6e, #0a1e3a); color: rgba(255,255,255,0.85); padding: 80px 0 40px; }
.footer-inner { width: 90%; max-width: 1430px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-logo .f-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-logo .f-tel { font-family: var(--en); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-logo p { font-size: 13px; line-height: 2; }
.footer-logo .f-meta { font-size: 11px; margin-top: 16px; line-height: 1.8; opacity: 0.8; }
.footer-nav h4 { font-size: 14px; color: var(--white); font-weight: 700; margin-bottom: 20px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 90%; max-width: 1430px; margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding-top: 24px; color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.15); }
.footer-copy-links { display: flex; gap: 16px; }
.footer-copy-links a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-copy-links a:hover { color: var(--white); }

.side-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; }
.side-tab a { display: flex; align-items: center; gap: 8px; writing-mode: vertical-rl; text-orientation: mixed; background: var(--primary-dark); color: var(--white); padding: 16px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; transition: background 0.3s; border-radius: 6px 0 0 6px; box-shadow: -2px 0 12px rgba(0,0,0,0.15); }
.side-tab a:hover { background: var(--accent); }
.side-tab-img { writing-mode: horizontal-tb; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.5); }
.side-tab-img img { width: 100%; height: 100%; object-fit: cover; }

.scroll-progress { position: fixed; top: 96px; left: 0; right: 0; height: 3px; z-index: 99; background: rgba(0,0,0,0.05); }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }

/* ===== HAMBURGER + MOBILE NAV ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; padding: 0; z-index: 101; margin-right: 20px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all .3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 100;
  flex-direction: column; align-items: center; gap: 0;
  padding-top: 96px; overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #333; font-size: 32px; cursor: pointer; line-height: 1; padding: 8px; z-index: 101; transition: color 0.2s; }
.mobile-nav-close:hover { color: var(--accent); }
.mobile-nav-logo { padding: 24px 0 16px; width: 100%; display: flex; justify-content: center; margin-bottom: 16px; }
.mobile-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; width: 90%; max-width: 400px; background: #ffffff; border-radius: 12px; overflow: hidden; }
.mobile-nav-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 8px; background: #ffffff; color: #111; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; transition: background 0.2s; }
.mobile-nav-grid a:hover { background: #eef1f6; }
.mobile-nav-grid a svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.mobile-nav-grid a.mn-wide { grid-column: span 2; flex-direction: row; gap: 12px; padding: 18px; font-size: 13px; }
.mobile-nav-tel { margin-top: 28px; text-align: center; }
.mobile-nav-tel a { font-family: var(--en); font-size: 26px; font-weight: 900; color: #0f3d6e; display: block; margin-bottom: 6px; letter-spacing: 0.02em; }
.mobile-nav-tel .tel-hours { font-size: 11px; color: var(--text-sub); }
.mobile-nav-cta { margin-top: 20px; margin-bottom: 32px; }
.mobile-nav-cta a { display: inline-block; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 700; padding: 14px 44px; letter-spacing: 0.06em; border-radius: 4px; transition: opacity 0.3s; }
.mobile-nav-cta a:hover { opacity: 0.85; }
@media (max-width: 1024px) {
  .nav { display: none; } .hamburger { display: block; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-progress { top: 64px; }
}
@media (max-width: 767px) {
  .header { height: 64px; } .mobile-nav { padding-top: 64px; } .header-btn { height: 64px; width: 100px; } .header-btn-tel { display: none; } .header-btn-contact { display: none; }
  .page-hero { margin-top: 64px; padding: 60px 0 50px; } .page-hero-en { font-size: 48px; } .page-hero h1 { font-size: 26px; }
  .property-section { padding: 60px 0; }
  .property-grid { grid-template-columns: 1fr; }
  .property-filter { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: 13px; }
  .cta h2 { font-size: 28px; }
  .cta-tel { font-size: 32px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-action-card { max-width: 100%; width: 100%; padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .side-tab { display: none; }
  .scroll-progress { top: 64px; }
  .station-map-wrap { display: none; }
  .station-mobile { display: block; background: var(--white); border-radius: 8px; padding: 24px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
  .station-map-section { padding: 60px 0 0; }
}