/* ============================================
   Real estate investment site
   ============================================ */

:root {
  --primary: #173b57;
  --primary-dark: #0f283d;
  --primary-soft: #eaf1f5;
  --accent: #d99a24;
  --accent-hover: #bf8318;
  --teal: #16776b;
  --red: #b64032;
  --ink: #20262d;
  --muted: #64717d;
  --line: #d9e1e7;
  --soft: #f4f7f8;
  --white: #fff;
  --shadow: 0 8px 22px rgba(17, 39, 57, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #1f1f1f;
  background: #fff;
}

h1,
h2,
h3 {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111;
  line-height: 1.45;
}

a { color: var(--primary); }
a:hover { color: var(--teal); }

.admin-body,
.admin-login-body {
  --bs-body-font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body h5,
.admin-body h6,
.admin-login-body h1,
.admin-login-body h2,
.admin-login-body h3,
.admin-login-body h4,
.admin-login-body h5,
.admin-login-body h6 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

.admin-body .btn,
.admin-login-body .btn,
.admin-body .fw-bold,
.admin-login-body .fw-bold {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

.admin-body .form-control,
.admin-body .form-select,
.admin-body table,
.admin-login-body input {
  font-family: inherit;
  font-weight: 500;
}

.admin-body .text-muted,
.admin-body .form-text,
.admin-body small,
.admin-login-body .text-muted,
.admin-login-body .form-text,
.admin-login-body small {
  font-weight: 400;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-warning { background: var(--accent); border-color: var(--accent); color: #1f2428; }
.btn-warning:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #111; }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1f2428;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #111;
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Header */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}
.top-bar .top-link {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.82rem;
}
.top-bar .top-link:hover { color: var(--accent); }

.main-header {
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  z-index: 1030;
}
.main-header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.main-header .site-logo-picture {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.main-header .site-logo-mark {
  display: block;
  width: 32px;
  height: auto;
}
.main-header .site-name {
  display: inline-block;
  padding-left: 12px;
  border-left: 1px solid rgba(217, 154, 36, 0.72);
  color: #fff;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}
.main-header .nav-link {
  color: rgba(255,255,255,0.86) !important;
  font-size: 0.9rem;
  padding: 1.1rem 0.72rem !important;
  border-bottom: 3px solid transparent;
}
.main-header .nav-link:hover,
.main-header .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--accent);
}
.main-header .dropdown-menu {
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.main-header .dropdown-item { font-size: 0.88rem; }
.navbar-toggler { border-radius: 6px; }
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 650px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15,40,61,0.95) 0%, rgba(15,40,61,0.82) 45%, rgba(15,40,61,0.36) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero-inner {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero-copy { max-width: 660px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(217,154,36,0.7);
  background: rgba(217,154,36,0.16);
  color: #ffd689;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
}
.hero-title {
  margin: 18px 0 16px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: clamp(2.3rem, 3.1vw, 2.8rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.hero-title span {
  white-space: nowrap;
}
.hero-subtitle {
  max-width: 560px;
  color: rgba(255,255,255,0.82);
  font-size: 1.04rem;
  line-height: 1.9;
}
.hero-fee-promo {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 5px 18px;
  align-items: center;
  max-width: 560px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(217,154,36,0.7);
  border-radius: 8px;
  background: rgba(217,154,36,0.18);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.hero-fee-promo:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(217,154,36,0.24);
}
.hero-fee-promo .promo-label {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #151515;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-fee-promo strong {
  display: block;
  justify-self: stretch;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.hero-fee-promo .promo-note {
  display: block;
  justify-self: stretch;
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}
.hero-metrics div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  min-height: 80px;
  padding: 14px 12px;
  text-align: center;
}
.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.2;
}
.hero-metrics span {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* Search */
.search-box {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(23,59,87,0.08);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-search { align-self: center; }
.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.search-heading span,
.search-box h3 {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
}
.search-heading strong {
  color: var(--primary);
}
.listing-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 148px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(232,160,32,0.62);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #0b2f49 0%, #123f5e 52%, #08263e 100%);
  box-shadow:
    0 12px 26px rgba(8,38,62,0.2),
    inset 0 1px 0 rgba(255,255,255,0.16);
  line-height: 1;
  white-space: nowrap;
}
.listing-count-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.listing-count-badge .count-label {
  color: rgba(245,205,126,0.96);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
  padding-right: 10px;
  border-right: 1px solid rgba(245,205,126,0.42);
}
.listing-count-badge .count-number {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: 0;
  position: relative;
  text-shadow: 0 1px 0 rgba(0,0,0,0.18);
}
.listing-count-badge .count-unit {
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  position: relative;
}
.search-box .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 6px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(22,119,107,0.12);
}
.type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.type-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.type-btn input,
.property-type-card input,
.pref-check input,
.city-check input,
.city-all-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.type-btn:hover,
.type-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.multi-select-dropdown {
  position: relative;
}
.multi-select-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.multi-select-toggle span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-select-dropdown.has-value .multi-select-toggle {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.multi-select-menu {
  max-height: 230px;
  overflow-y: auto;
  margin-top: 6px !important;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(17,39,57,0.16);
}
.multi-select-option {
  margin: 0;
  padding: 7px 8px 7px 32px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 400;
}
.multi-select-option:hover {
  background: #f4f7f9;
}
.multi-select-option .form-check-input {
  margin-left: -22px;
}
.multi-select-option:has(.form-check-input:checked) {
  font-weight: 600;
}
.area-selector {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfd;
}
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pref-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pref-check,
.city-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.city-all-check {
  border-color: #cbd7df;
  background: #fff;
  color: var(--ink);
}
.pref-check.active,
.city-check.active {
  border-color: var(--teal);
  background: rgba(22,119,107,0.1);
  color: var(--teal);
}
.city-all-check.active {
  border-color: var(--teal);
  background: rgba(22,119,107,0.1);
  color: var(--teal);
}
.city-panels {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.city-panel[hidden] { display: none; }
.city-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.city-panel-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.city-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.city-check-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.area-selection-summary {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}
.city-modal {
  color: var(--ink);
}
.city-modal .modal-dialog {
  max-width: 560px;
}
.city-modal .modal-content {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(17,39,57,0.28);
}
.city-modal .modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 16px;
}
.city-modal .modal-kicker {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.city-modal .modal-title {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
}
.city-modal .modal-body {
  padding: 20px 22px 22px;
}
.city-modal-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}
.city-panels-modal {
  display: block;
  margin: 0;
}
.city-panels-modal .city-panel {
  border-top: 0;
  padding-top: 0;
}
.city-panels-modal .city-panel-title {
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.city-modal .city-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.city-modal .city-check {
  min-height: 40px;
  font-size: 0.86rem;
}
.city-modal .modal-footer {
  border-top: 1px solid var(--line);
  gap: 8px;
  padding: 16px 22px 20px;
}
.city-modal .btn {
  border-radius: 6px;
  font-weight: 600;
}

/* Sections */
.bg-soft { background: var(--soft); }
.quick-search-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.quick-search-head,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.quick-search-head h2,
.section-title {
  color: var(--primary);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}
.section-title::after { display: none; }
.section-kicker {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}
.property-type-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.property-type-card {
  display: flex;
  position: relative;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #dfe7ed;
  border-radius: 8px;
  padding: 18px 12px 16px;
  background:
    linear-gradient(180deg, rgba(234,241,245,0.62) 0%, rgba(255,255,255,0) 54%),
    #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.property-type-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.type-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.96rem;
}
.type-card-name {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}
.type-card-count {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: #f7f9fb;
  color: var(--muted);
  padding: 3px 10px;
  font-size: 0.78rem;
  line-height: 1.2;
}
.property-type-card:hover,
.property-type-card.active {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(17,39,57,0.12);
  transform: translateY(-2px);
}
.property-type-card.active {
  background:
    linear-gradient(180deg, rgba(234,241,245,0.8) 0%, rgba(255,255,255,0) 56%),
    #fff;
}
.property-type-card:hover::before,
.property-type-card.active::before {
  opacity: 1;
}
.property-type-card:hover .type-card-icon,
.property-type-card.active .type-card-icon {
  background: var(--primary);
  color: #fff;
}
.property-type-card:hover .type-card-count,
.property-type-card.active .type-card-count {
  background: rgba(217,154,36,0.14);
  color: var(--primary);
}
.quick-type-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* Property cards */
.property-card {
  position: relative;
  height: 100%;
  border: 1px solid rgba(23,59,87,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(17,39,57,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.property-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}
.property-card .card-img-wrap {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: var(--primary-soft);
}
.property-card .card-img-wrap img,
.blog-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.property-card:hover .card-img-wrap img { transform: scale(1.04); }
.badge-new,
.badge-featured,
.badge-member {
  position: absolute;
  top: 10px;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-new { left: 10px; background: var(--accent); color: #171717; }
.badge-featured { right: 10px; background: var(--primary); color: #fff; }
.badge-member { left: 10px; background: var(--teal); color: #fff; }
.property-card .card-body { padding: 15px; }
.property-type-tag {
  display: inline-flex;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.property-card .card-title {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-price {
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3px;
}
.property-yield {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 700;
}
.property-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.fav-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.94);
  color: #b7c0c7;
}
.fav-btn.active,
.fav-btn:hover { color: #dc3545; }

/* CTA and service sections */
.member-cta {
  background: var(--primary-dark);
  color: #fff;
  padding: 46px 0;
}
.member-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 26px;
  align-items: center;
}
.member-cta h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}
.member-cta p {
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.member-benefits {
  display: grid;
  gap: 8px;
}
.member-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
  font-size: 0.9rem;
}
.member-benefits i { color: var(--accent); }

.services-section { padding: 54px 0; background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.service-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.service-item i {
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.service-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
.service-item p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  margin: 0;
}

.company-band {
  background: var(--soft);
  padding: 56px 0;
}
.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.company-list {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px 18px;
  margin: 22px 0 0;
}
.company-list dt {
  color: var(--muted);
  font-weight: 600;
}
.company-list dd { margin: 0; }
.contact-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}
.contact-panel h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
}
.contact-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}
.contact-tel {
  display: block;
  text-align: center;
  color: var(--primary);
  font-size: 1.28rem;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none;
}

/* Company page */
.company-page {
  background: #eef4f7;
}
.company-profile-section,
.company-outline-section {
  padding: 56px 0;
}
.company-profile-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 34px;
  box-shadow: 0 16px 40px rgba(17,39,57,0.1);
}
.company-profile-copy h2,
.company-outline-head h2 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 1.65rem;
}
.company-profile-copy p:last-child,
.company-outline-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}
.company-profile-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  justify-self: start;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.company-profile-mark img {
  display: block;
  width: 128px;
  height: auto;
}
.company-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.company-value-card {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(17,39,57,0.08);
}
.company-value-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.company-value-card i {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.company-value-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.05rem;
}
.company-value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}
.company-outline-section {
  padding-top: 0;
}
.company-outline-head {
  margin-bottom: 18px;
}
.company-outline-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17,39,57,0.1);
}
.company-outline-list {
  margin: 0;
}
.company-outline-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.company-outline-list div:last-child {
  border-bottom: 0;
}
.company-outline-list dt,
.company-outline-list dd {
  margin: 0;
  padding: 15px 18px;
}
.company-outline-list dt {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.company-outline-list dd {
  color: var(--ink);
  font-size: 0.92rem;
}
.company-outline-list a {
  font-weight: 700;
  text-decoration: none;
}
.company-contact-cta {
  background: var(--primary-dark);
  color: #fff;
  padding: 46px 0;
}
.company-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.company-contact-inner h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.5rem;
}
.company-contact-inner p {
  margin: 0;
  color: rgba(255,255,255,0.72);
}
.company-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  min-width: 330px;
}
.company-contact-tel {
  grid-column: 1 / -1;
  color: #fff;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
}
.company-contact-tel:hover {
  color: var(--accent);
}

/* Blog */
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card-link:hover,
.blog-card-link:focus {
  color: inherit;
  text-decoration: none;
}
.blog-card-link:focus-visible {
  outline: 3px solid rgba(192, 148, 58, 0.34);
  outline-offset: 4px;
  border-radius: 8px;
}
.blog-card {
  border: 1px solid rgba(23,59,87,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(17,39,57,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-card-link:hover .blog-card,
.blog-card-link:focus-visible .blog-card {
  border-color: rgba(192, 148, 58, 0.28);
  box-shadow: 0 10px 24px rgba(17,39,57,0.13);
  transform: translateY(-2px);
}
.blog-card-link:hover .card-img-wrap img,
.blog-card-link:focus-visible .card-img-wrap img {
  transform: scale(1.04);
}
.blog-card .card-img-wrap {
  height: 178px;
  overflow: hidden;
  background: var(--primary-soft);
}
.blog-card .category-tag,
.category-tag {
  display: inline-flex;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}
.blog-card .card-title {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .card-text {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Staff */
.staff-page {
  padding: 46px 0 64px;
  background: #fff;
}
.staff-lead {
  max-width: 940px;
  margin-bottom: 28px;
}
.staff-lead h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.78rem);
  overflow-wrap: anywhere;
  line-break: anywhere;
}
.staff-lead h2 span,
.staff-lead p span {
  display: inline;
}
.staff-lead p:last-child {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-break: anywhere;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.staff-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fafb 100%);
  box-shadow: 0 8px 18px rgba(17, 39, 57, 0.07);
}
.staff-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.staff-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.staff-position {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.staff-card h2 {
  margin: 0;
  font-size: 1.08rem;
}
.staff-lead-text {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.75;
}
.staff-profile-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.staff-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}
.staff-articles {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.staff-articles h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.9rem;
}
.staff-articles a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(217, 225, 231, 0.7);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
}
.staff-articles a:hover {
  color: var(--teal);
}
.blog-author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.blog-author-box .staff-avatar {
  width: 62px;
  height: 62px;
}
.blog-author-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.blog-author-box h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.blog-author-box p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.blog-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.blog-author-link:hover {
  color: var(--teal);
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.staff-list-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 39, 57, 0.08);
}
.staff-photo {
  width: 240px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #eef3f7;
  box-shadow: 0 10px 24px rgba(17, 39, 57, 0.14);
}
.staff-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.staff-info {
  min-width: 0;
}
.staff-name-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.staff-kana {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.staff-name-block h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.35;
}
.staff-office {
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.staff-comment {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.95;
  overflow-wrap: anywhere;
  line-break: anywhere;
}
.staff-text-chunk {
  display: inline;
}
.staff-more-detail {
  margin-top: 4px;
}
.staff-more-detail summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.staff-more-detail summary::-webkit-details-marker {
  display: none;
}
.staff-more-detail[open] summary {
  background: var(--teal);
}
.staff-detail-list {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}
.staff-detail-list div {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(217, 225, 231, 0.78);
}
.staff-detail-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.staff-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  line-break: anywhere;
}
.staff-message {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #fff8e8;
  color: var(--ink);
  font-weight: 700;
}
.blog-author-photo {
  width: 72px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #eef3f7;
}
.blog-author-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.article-main-image {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

/* Page and listing */
.page-header {
  background:
    linear-gradient(90deg, rgba(26,82,112,0.82) 0%, rgba(42,147,132,0.6) 58%, rgba(217,154,36,0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    url("/assets/images/listing-apartment-header.webp") center 48%/cover;
  color: #fff;
  padding: 54px 0;
}
.page-header h1,
.page-header .breadcrumb {
  text-shadow: 0 2px 12px rgba(8,28,43,0.28);
}
.page-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
}
.breadcrumb-item a { color: rgba(255,255,255,0.76); }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.55); }
.listing-filter {
  margin-top: -84px;
  padding: 20px;
}
.filter-result-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 16px;
  border: 1px solid #d7e1e8;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(234,241,245,0.72);
  color: var(--primary);
  padding: 7px 14px 7px 12px;
  box-shadow: 0 8px 18px rgba(17,39,57,0.08);
}
.filter-result-badge i {
  color: var(--accent);
  font-size: 0.9rem;
}
.filter-result-badge span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.filter-result-badge strong {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.listing-type-filter {
  display: grid;
  gap: 8px;
}
.listing-type-filter .form-label {
  margin-bottom: 2px;
}
.listing-type-filter .form-check {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  border: 1px solid #d7e1e8;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 8px 10px 8px 38px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.listing-type-filter .form-check:hover {
  border-color: #9fb1bd;
  background: #fff;
}
.listing-type-filter .form-check:has(.form-check-input:checked) {
  border-color: var(--primary);
  background: rgba(23,59,87,0.07);
}
.listing-type-filter .form-check-input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0;
  margin-left: -26px;
  border: 2px solid #7f929f;
  background-color: #fff;
  cursor: pointer;
}
.listing-type-filter .form-check-input:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}
.listing-type-filter .form-check-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.18rem rgba(22,119,107,0.14);
}
.listing-type-filter .form-check-label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  margin-left: 5px;
  cursor: pointer;
}
.listing-type-filter .form-check:has(.form-check-input:checked) .form-check-label {
  font-weight: 600;
}
.listing-area-filter .pref-check {
  font-weight: 400;
}
.listing-area-filter .pref-check.active {
  font-weight: 600;
}
.listing-toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 4px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Detail */
.property-detail-images {
  border-radius: 8px;
  overflow: hidden;
}
.property-detail-images .main-img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.detail-highlight {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.detail-highlight div {
  padding: 16px;
  border-right: 1px solid var(--line);
}
.detail-highlight div:last-child { border-right: 0; }
.detail-highlight span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.detail-highlight strong {
  color: var(--primary);
  font-size: 1.02rem;
}
.price-large {
  color: var(--red);
  font-size: 2rem;
  font-weight: 700;
}
.yield-large {
  color: var(--teal) !important;
  font-size: 1.35rem;
  font-weight: 700;
}
.property-info-table th {
  width: 22%;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.84rem;
  vertical-align: middle;
}
.property-info-table td {
  font-size: 0.9rem;
  vertical-align: middle;
}
.detail-side-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.detail-side-note h5 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}
.detail-side-note p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.property-detail-page {
  background: #f7f8f9;
  padding: 28px 0 64px;
}
.admin-property-preview,
.admin-property-preview h1,
.admin-property-preview h2,
.admin-property-preview h3,
.admin-property-preview h4,
.admin-property-preview h5,
.admin-property-preview h6 {
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}
.property-detail-page + .main-footer {
  margin-top: 0 !important;
}
.property-detail-container {
  max-width: 1180px;
}
.detail-breadcrumb {
  margin-bottom: 24px;
}
.property-detail-page .breadcrumb {
  margin-bottom: 0;
}
.property-detail-page .breadcrumb-item a {
  color: var(--muted);
  text-decoration: none;
}
.property-detail-page .breadcrumb-item a:hover {
  color: var(--primary);
}
.property-detail-page .breadcrumb-item.active,
.property-detail-page .breadcrumb-item + .breadcrumb-item::before {
  color: #8a949d;
}
.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 36px;
  align-items: start;
}
.detail-gallery,
.detail-summary-panel,
.detail-inquiry-grid > * {
  min-width: 0;
}
.detail-gallery-main {
  background: #e7ecef;
  border-radius: 0;
  overflow: hidden;
}
.detail-gallery-main img {
  display: block;
  width: 100%;
  height: 458px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.detail-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.detail-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}
.detail-thumb.is-active {
  border-color: var(--primary);
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.detail-summary-panel h1 {
  margin: 10px 0 16px;
  font-size: 1.65rem;
  font-weight: 700;
}
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-summary-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.detail-summary-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 56.6px;
  border-bottom: 1px solid var(--line);
}
.detail-summary-row dt,
.detail-summary-row dd {
  margin: 0;
  min-width: 0;
  line-height: 1.65;
}
.detail-summary-row dt {
  display: flex;
  align-items: center;
  background: #e8edf1;
  padding: 14px 18px;
  color: #111;
  font-size: 0.9rem;
  font-weight: 700;
}
.detail-summary-row dd {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 14px 20px;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.detail-summary-row dd.is-price {
  color: #c20d0d;
  font-size: 1.22rem;
  font-weight: 700;
}
.detail-summary-row dd.is-title {
  color: #111;
  font-size: 1.04rem;
  font-weight: 700;
}
.detail-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.detail-action-row .btn,
.detail-favorite {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.detail-favorite {
  width: 100%;
  margin-top: 10px;
}
.detail-section {
  margin-top: 44px;
}
.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-section-title {
  margin: 0 0 14px;
  color: #111;
  font-size: 1.32rem;
  font-weight: 700;
}
.detail-point-box {
  background: #fff;
  border: 1px solid #eef1f3;
  padding: 20px 22px;
  color: #111;
  line-height: 1.85;
}
.detail-basic-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.detail-basic-table-mobile {
  display: none;
}
.detail-basic-table th,
.detail-basic-table td {
  border: 1px solid var(--line);
  padding: 14px 18px;
  vertical-align: middle;
  line-height: 1.7;
}
.detail-basic-table th {
  width: 15%;
  background: #e8edf1;
  color: #111;
  font-size: 0.9rem;
  font-weight: 700;
}
.detail-basic-table td {
  width: 35%;
  background: #fff;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.detail-remarks-table {
  margin-top: 18px;
}
.detail-remarks-table th {
  width: 15%;
}
.detail-remarks-table td {
  width: 85%;
}
.detail-inquiry-section {
  scroll-margin-top: 92px;
  border: 1px solid rgba(23,59,87,0.14);
  background: linear-gradient(135deg, #173b57 0%, #102d45 100%);
  color: #fff;
  padding: 34px;
}
.detail-inquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 32px;
  align-items: stretch;
}
.detail-contact-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 4px 4px 4px 0;
}
.detail-kicker {
  margin: 0 0 8px;
  color: #f0c55a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.detail-inquiry-lead {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}
.detail-inquiry-section .detail-section-title {
  color: #fff;
  margin-bottom: 12px;
}
.detail-phone {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 460px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  padding: 18px;
}
.detail-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0c55a;
  color: #102d45;
}
.detail-phone span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 600;
}
.detail-phone strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.detail-phone small {
  display: block;
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
}
.detail-contact-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 460px;
  margin-top: 18px;
}
.detail-contact-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
}
.detail-contact-points i {
  color: #f0c55a;
  width: 18px;
}
.detail-form {
  margin: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.detail-form-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 14px;
}
.detail-form-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.detail-form-head strong {
  display: block;
  color: #111;
  font-size: 1.05rem;
  line-height: 1.5;
}
.detail-form .form-control {
  min-height: 48px;
}
.detail-form textarea.form-control {
  min-height: 138px;
}

/* Membership registration */
.membership-page {
  background: #edf3f8;
  padding: 40px 0 58px;
  overflow-x: hidden;
}
.membership-page + .main-footer {
  margin-top: 0 !important;
}
.membership-heading {
  max-width: 880px;
  margin: 0 auto 28px;
}
.membership-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.membership-kicker span {
  width: 34px;
  height: 1px;
  background: var(--accent);
}
.membership-heading h1 {
  margin: 0;
  color: #061f37;
  font-size: 1.9rem;
  line-height: 1.35;
}
.membership-mobile-line {
  display: inline;
}
.membership-benefit-hero,
.membership-benefits,
.membership-after-register,
.membership-form-heading {
  max-width: 880px;
  margin: 0 auto;
}
.membership-benefit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #173b57 0%, #0f283d 100%);
  color: #fff;
  padding: 26px;
  box-shadow: 0 22px 50px rgba(17,39,57,0.16);
  overflow: hidden;
}
.membership-benefit-kicker {
  margin: 0 0 10px;
  color: #f0c55a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.membership-benefit-hero h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.45;
}
.membership-benefit-hero p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  line-height: 1.85;
}
.membership-discount-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(240,197,90,0.42);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  padding: 18px;
}
.membership-discount-card > span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f0c55a;
  color: #102d45;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.membership-discount-card strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.35;
}
.membership-discount-card p {
  margin-top: 10px;
  font-size: 0.82rem;
}
.membership-benefits {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(17,39,57,0.1);
  margin-bottom: 24px;
}
.membership-benefits-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.membership-benefits-head .membership-kicker {
  margin: 0;
}
.membership-benefits-head h2 {
  margin: 0;
  color: #061f37;
  font-size: 1.35rem;
  line-height: 1.45;
}
.membership-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.membership-benefit-card,
.membership-after-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.membership-benefit-card {
  position: relative;
  padding: 20px;
  box-shadow: none;
}
.membership-benefit-card.is-primary {
  border-color: rgba(217,154,36,0.42);
  background: linear-gradient(180deg, #fffaf0 0%, #fff 72%);
}
.membership-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.membership-benefit-card.is-primary .membership-benefit-icon {
  background: rgba(217,154,36,0.16);
  color: #9c6b13;
}
.membership-benefit-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--accent);
  color: #152435;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.membership-benefit-card h3,
.membership-after-grid h3,
.membership-form-heading h2,
.membership-section-head h2 {
  margin: 0;
  color: #061f37;
}
.membership-benefit-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.membership-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}
.membership-after-register {
  margin-bottom: 26px;
}
.membership-section-head {
  margin-bottom: 14px;
}
.membership-section-head h2,
.membership-form-heading h2 {
  font-size: 1.35rem;
}
.membership-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.membership-after-grid div {
  padding: 18px;
}
.membership-after-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}
.membership-after-grid h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}
.membership-after-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}
.membership-form-heading {
  margin-bottom: 16px;
}
.membership-form-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.membership-card {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 22px;
  background: #fff;
  padding: 26px 30px 28px;
  box-shadow: 0 26px 60px rgba(17,39,57,0.12);
}
.membership-alert {
  border-radius: 14px;
  margin-bottom: 26px;
}
.membership-form {
  display: grid;
  gap: 18px;
}
.membership-grid,
.membership-name-grid,
.membership-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.membership-field-full {
  grid-column: 1 / -1;
}
.membership-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #061f37;
  font-size: 0.86rem;
  font-weight: 700;
}
.membership-label span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b64032;
  padding: 1px 7px;
  font-size: 0.68rem;
  font-weight: 700;
}
.membership-label em {
  color: var(--primary);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 500;
}
.membership-field input[type="text"],
.membership-field input[type="email"],
.membership-field input[type="tel"],
.membership-field input[type="password"],
.membership-field select,
.membership-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #0e2438;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.membership-field input,
.membership-field select {
  min-height: 46px;
  padding: 0 14px;
}
.membership-field textarea {
  min-height: 98px;
  padding: 12px 14px;
  resize: vertical;
}
.membership-field input:focus,
.membership-field select:focus,
.membership-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23,59,87,0.08);
  outline: 0;
}
.membership-field input::placeholder,
.membership-field textarea::placeholder {
  color: #7d8a97;
}
.membership-name-grid small {
  display: block;
  margin-top: 5px;
  color: #64717d;
  font-size: 0.74rem;
}
.membership-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 7px 14px;
  color: #061f37;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.membership-check:hover {
  border-color: var(--primary);
  background: #f4f8fb;
}
.membership-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}
.membership-privacy-note {
  border: 1px solid #ead7aa;
  border-radius: 10px;
  background: #fffaf0;
  color: #26394b;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.7;
}
.membership-privacy-note a {
  font-weight: 700;
  text-decoration: underline;
}
.membership-consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #061f37;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.membership-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.membership-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8d462 0%, #efbf36 100%);
  color: #061f37;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(217,154,36,0.18);
}
.membership-submit:hover {
  background: linear-gradient(180deg, #f6ca4d 0%, #e6ad22 100%);
}
.membership-footnote,
.membership-login-link {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}
.membership-login-link {
  margin-top: 18px;
}
.membership-login-link a {
  font-weight: 700;
  text-decoration: underline;
}

/* Forms */
.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 3px 12px rgba(17,39,57,0.08);
}
.form-section h2 {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.form-label .required,
.required { color: #dc3545; font-size: 0.76rem; margin-left: 4px; }

/* Appraisal */
.page-header .page-lead {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
  text-shadow: 0 2px 12px rgba(8,28,43,0.28);
}
.appraisal-page {
  background: #eef4f7;
  padding: 42px 0 72px;
}
.appraisal-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.appraisal-feature-strip div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(17,39,57,0.08);
}
.appraisal-feature-strip i {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(217,154,36,0.14);
  color: var(--accent);
}
.appraisal-feature-strip strong {
  color: var(--primary);
  font-size: 0.98rem;
  line-height: 1.35;
}
.appraisal-feature-strip span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.appraisal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}
.appraisal-form-card,
.appraisal-phone-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17,39,57,0.1);
}
.appraisal-form-card {
  padding: 30px;
}
.appraisal-form-heading {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.appraisal-form-heading h2 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.45rem;
}
.appraisal-form-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.appraisal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.appraisal-field-full {
  grid-column: 1 / -1;
}
.appraisal-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
}
.appraisal-label span,
.appraisal-label em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}
.appraisal-label span {
  background: #fff0f0;
  color: var(--red);
}
.appraisal-label em {
  background: var(--primary-soft);
  color: var(--muted);
}
.appraisal-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.appraisal-field small,
.appraisal-two-col small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}
.appraisal-form .form-control,
.appraisal-form .form-select {
  min-height: 48px;
  border-color: #d7e1e8;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  background-color: #fbfcfd;
}
.appraisal-form textarea.form-control {
  min-height: 128px;
  resize: vertical;
}
.appraisal-form .form-control:focus,
.appraisal-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.18rem rgba(217,154,36,0.16);
  background-color: #fff;
}
.appraisal-privacy {
  border: 1px solid rgba(217,154,36,0.26);
  border-radius: 8px;
  background: #fffaf0;
  color: #4f5b64;
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.75;
}
.appraisal-privacy a {
  font-weight: 700;
  text-decoration: underline;
}
.appraisal-consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.appraisal-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.appraisal-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4c94a 0%, #dda12e 100%);
  color: #142333;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(217,154,36,0.2);
}
.appraisal-submit span {
  margin-top: 3px;
  color: rgba(20,35,51,0.72);
  font-size: 0.78rem;
  font-weight: 600;
}
.appraisal-submit:hover {
  background: linear-gradient(180deg, #f7d35f 0%, #d49323 100%);
}
.appraisal-phone-card {
  padding: 22px;
}
.appraisal-phone-card {
  background: var(--primary);
  color: #fff;
}
.appraisal-phone-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.appraisal-phone-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}
.appraisal-phone-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.25;
}
.appraisal-phone-strip > div:first-child strong {
  font-size: 1.12rem;
}
.appraisal-phone-info {
  min-width: 260px;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 24px;
  text-align: left;
}
.appraisal-phone-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}
.appraisal-phone-info p {
  margin-top: 6px;
}
.contact-phone-banner {
  margin-bottom: 20px;
}
.appraisal-success {
  padding: 36px 16px;
  text-align: center;
}
.appraisal-success i {
  color: var(--teal);
  font-size: 3.4rem;
  margin-bottom: 16px;
}
.appraisal-success h2 {
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.appraisal-success p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* Footer */
.main-footer { background: #16202a; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 0.86rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom { background: #101820; }

/* Admin */
.admin-login-body {
  --bs-body-font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px 24px;
  background: #eef3f6;
  color: var(--ink);
  letter-spacing: 0;
  font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}
.admin-login-shell {
  width: min(920px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  overflow: hidden;
  border: 1px solid rgba(23, 59, 87, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 40, 61, 0.18);
}
.admin-login-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 36px;
  padding: 42px;
  background: var(--primary-dark);
  color: #fff;
}
.admin-login-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.32;
  pointer-events: none;
}
.admin-login-brand,
.admin-login-side-copy {
  position: relative;
  z-index: 1;
}
.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-login-brand img {
  display: block;
  width: 38px;
  height: auto;
}
.admin-login-brand span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 700;
}
.admin-login-brand strong {
  display: block;
  color: #fff;
  font-size: 1.06rem;
}
.admin-login-side-copy h1 {
  max-width: 380px;
  margin: 0;
  color: #fff;
  font-size: 1.72rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: center;
}
.admin-login-side-copy {
  margin: auto 0;
  align-self: center;
}
.admin-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
}
.admin-login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.admin-login-card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.08rem;
}
.admin-login-card-head p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}
.admin-login-card-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.45rem;
  letter-spacing: 0;
}
.admin-login-alert {
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.admin-login-form {
  display: grid;
  gap: 18px;
}
.admin-login-form label {
  display: grid;
  gap: 8px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
}
.admin-login-input {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #cbd8e1;
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.admin-login-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.18rem rgba(23, 59, 87, 0.12);
}
.admin-login-input i {
  color: #7b8a96;
  text-align: center;
}
.admin-login-input input {
  width: 100%;
  min-height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.admin-login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 4px;
}
.admin-login-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-login-back:hover {
  color: var(--primary);
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  min-height: 100vh;
  background: var(--primary-dark);
  z-index: 100;
}
.admin-sidebar .brand {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.72);
  padding: 10px 20px;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-left-color: var(--accent);
}
.admin-sidebar .nav-link i {
  width: 20px;
  margin-right: 8px;
}
.admin-content {
  min-height: 100vh;
  margin-left: 244px;
  background: #f2f5f7;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.admin-main { padding: 28px; }
.stat-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(17,39,57,0.06);
}
.stat-card .stat-number {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17,39,57,0.06);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.admin-card-header h5 {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
}
.admin-property-edit-panel {
  max-width: 860px;
  margin-right: auto;
  margin-left: 0;
}
.admin-property-form-stack {
  display: grid;
  gap: 18px;
  counter-reset: admin-form-section;
}
.admin-form-card {
  padding: 22px 24px;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17,39,57,0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.admin-form-card:focus-within {
  border-color: rgba(22, 119, 107, 0.34);
  box-shadow: 0 8px 24px rgba(17,39,57,0.07);
}
.admin-form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f5;
}
.admin-form-card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}
.admin-form-card-head h3::before {
  counter-increment: admin-form-section;
  content: counter(admin-form-section, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  background: #eef5f5;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
}
.admin-form-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.admin-form-card-head-split {
  align-items: center;
}
.admin-form-card-pdf {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-color: rgba(197, 138, 24, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.92), rgba(246, 251, 250, 0.96)),
    #fff;
  box-shadow: 0 8px 24px rgba(17,39,57,0.06);
}
.admin-form-card-pdf::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.admin-form-card-pdf:focus-within {
  border-color: rgba(197, 138, 24, 0.48);
  box-shadow: 0 10px 28px rgba(17,39,57,0.09);
}
.admin-form-card-images {
  border-color: #d7e6e8;
}
.admin-form-card-private-seller {
  border-color: rgba(23, 59, 87, 0.18);
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
}
.admin-private-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(23, 59, 87, 0.22);
  border-radius: 999px;
  background: #eef3f7;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}
.admin-private-seller-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(22, 119, 107, 0.24);
  border-radius: 7px;
  background: rgba(22, 119, 107, 0.07);
  color: #126155;
  font-size: 0.9rem;
}
.admin-private-seller-date {
  display: grid;
  gap: 8px;
}
.admin-private-seller-date-actions {
  display: flex;
  gap: 8px;
}
.admin-form-card-document {
  border-color: #d7e6e8;
}
.admin-col-md-4-5 {
  flex: 0 0 auto;
  width: 37.5%;
  min-width: 0;
}
.admin-overview-pdf-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: flex-start;
}
.admin-overview-pdf-copy {
  grid-column: span 2;
  display: grid;
  gap: 10px;
}
.admin-file-drop-overview {
  grid-column: span 2;
}
.admin-current-file-list {
  display: grid;
  gap: 10px;
}
.admin-storage-status {
  padding: 9px 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.86rem;
}
.admin-storage-status.is-success {
  border-color: rgba(22, 119, 107, 0.24);
  background: rgba(22, 119, 107, 0.08);
  color: #126155;
}
.admin-storage-status.is-error {
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(185, 28, 28, 0.07);
  color: #9f1239;
}
.admin-current-file-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
}
.admin-current-file-toolbar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.admin-current-file-toolbar-actions .btn {
  width: 100%;
  white-space: nowrap;
}
.admin-storage-status[hidden],
.admin-current-file-toolbar[hidden],
.admin-current-file-toolbar-actions [hidden],
.admin-pdf-empty[hidden] {
  display: none !important;
}
.admin-unsaved-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(17, 39, 57, 0.2);
}
.admin-unsaved-modal .modal-title {
  color: var(--primary);
  font-weight: 700;
}
.admin-current-file {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #fbfcfd;
}
.admin-current-file-list.is-collapsed .admin-current-file.is-storage-extra {
  display: none;
}
.admin-current-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(22, 119, 107, 0.08);
  color: var(--teal);
}
.admin-current-file-body {
  min-width: 0;
}
.admin-current-file-body strong,
.admin-current-file-body span {
  display: block;
}
.admin-current-file-body strong {
  color: var(--primary);
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-all;
}
.admin-current-file-body span {
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-current-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
}
.admin-current-file-remove {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.admin-current-pdf {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #d8e1e7;
  border-radius: 8px;
  background: #fbfcfd;
}
.admin-current-pdf-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}
.admin-current-pdf strong,
.admin-current-pdf span {
  display: block;
}
.admin-current-pdf strong {
  color: var(--primary);
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-all;
}
.admin-current-pdf span,
.admin-pdf-empty {
  color: var(--muted);
  font-size: 0.82rem;
}
.admin-current-pdf-remove {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.admin-publish-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
.admin-publish-main {
  display: grid;
  gap: 14px;
}
.admin-status-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.admin-internal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  background: #f8fafb;
}
.admin-internal-meta .form-label {
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-size: 0.82rem;
}
.admin-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -4px 18px rgba(17,39,57,0.08);
  backdrop-filter: blur(4px);
}
.admin-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(197, 138, 24, 0.28);
  border-radius: 8px;
  background: rgba(197, 138, 24, 0.08);
  color: #8a5a0a;
  font-size: 0.86rem;
  font-weight: 700;
}
.admin-save-state[hidden] {
  display: none !important;
}
.admin-thumb {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-property-tags {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.admin-property-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 22px;
  padding: 0.25em 0.55em;
  font-size: 0.72rem;
  line-height: 1;
}
.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-property-image-preview,
.image-preview-grid img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.admin-form-section-title {
  margin-top: 18px;
  padding: 11px 14px;
  border-left: 4px solid var(--teal);
  background: #f3f7f8;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}
.admin-form-section-title:first-child {
  margin-top: 0;
}
.admin-property-form-stack .row.g-3 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.1rem;
}
.admin-property-form-stack .form-label {
  margin-bottom: 0.42rem;
  color: #071f33;
  font-size: 0.93rem;
  line-height: 1.25;
}
.admin-property-form-stack .form-control,
.admin-property-form-stack .form-select,
.admin-property-form-stack .input-group-text {
  min-height: 40px;
}
.admin-property-form-stack .form-control:focus,
.admin-property-form-stack .form-select:focus {
  border-color: rgba(22, 119, 107, 0.6);
  box-shadow: 0 0 0 0.18rem rgba(22, 119, 107, 0.1);
}
.admin-property-form-stack .form-text {
  margin-top: 0.45rem;
  color: #5c6f7d;
  font-size: 0.8rem;
  line-height: 1.65;
}
.admin-unit-input .form-control {
  text-align: right;
}
.admin-unit-input .input-group-text {
  min-width: 44px;
  justify-content: center;
  border-color: #d5dee6;
  background: #f4f7f9;
  color: var(--primary);
  font-weight: 700;
}
.admin-auto-calc-field {
  display: grid;
  align-content: start;
}
.admin-auto-calc-spacer {
  height: calc(1.5em + 0.5rem);
}
.admin-auto-calc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.admin-auto-calc-toggle .form-check-input {
  width: 1.05em;
  height: 1.05em;
  margin: 0;
}
.admin-road-status-field {
  max-width: 640px;
}
.admin-road-list {
  display: grid;
  gap: 10px;
}
.admin-road-row {
  display: grid;
  grid-template-columns: 38px 96px 38px 190px 74px 74px;
  column-gap: 8px;
  row-gap: 10px;
  align-items: center;
}
.admin-road-label,
.admin-road-width-label {
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-road-width-label {
  text-align: right;
}
.admin-road-width-input {
  width: 100%;
}
.admin-road-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd7df;
  border-radius: 6px;
  background: #fff;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s, background-color 0.16s, box-shadow 0.16s;
}
.admin-road-check .form-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.admin-road-check .form-check-label {
  pointer-events: none;
}
.admin-road-check:hover {
  border-color: var(--teal);
  background: rgba(22, 119, 107, 0.07);
}
.admin-road-check:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.18rem rgba(22, 119, 107, 0.12);
}
.admin-road-check:has(.form-check-input:checked) {
  border-color: var(--teal);
  background: rgba(22, 119, 107, 0.14);
  color: var(--primary);
}
.admin-pdf-import {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.admin-pdf-import-copy {
  grid-column: 1 / -1;
}
.admin-pdf-import-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}
.admin-pdf-import-title-main {
  color: var(--primary);
  font-weight: 800;
}
.admin-pdf-import-title-desc {
  color: var(--muted);
  font-size: 0.86rem;
}
.admin-option-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid rgba(197, 138, 24, 0.34);
  border-radius: 999px;
  background: rgba(197, 138, 24, 0.12);
  color: #8a5a0a;
  font-size: 0.76rem;
  font-weight: 800;
}
.admin-pdf-ai-counter {
  grid-column: auto;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(210, 221, 226, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}
.admin-pdf-ai-counter-head,
.admin-pdf-ai-counter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.admin-pdf-ai-counter-head span,
.admin-pdf-ai-counter-foot {
  color: var(--muted);
  font-size: 0.78rem;
}
.admin-pdf-ai-counter-foot span {
  white-space: nowrap;
}
.admin-pdf-ai-counter-head strong {
  color: var(--primary);
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", "Hiragino Sans", sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.admin-pdf-ai-counter-bar {
  height: 7px;
  margin: 9px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}
.admin-pdf-ai-counter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #2a8a7d);
}
.admin-pdf-ai-counter.is-warning .admin-pdf-ai-counter-bar span {
  background: linear-gradient(90deg, #c58a18, #d9a02f);
}
.admin-pdf-ai-counter.is-limit {
  border-color: rgba(185, 28, 28, 0.28);
  background: rgba(185, 28, 28, 0.04);
}
.admin-pdf-ai-counter.is-limit .admin-pdf-ai-counter-bar span {
  background: #b91c1c;
}
.admin-pdf-ai-counter.is-limit .admin-pdf-ai-counter-head strong {
  color: #b91c1c;
}
.admin-pdf-import .admin-file-drop-pdf {
  grid-column: auto;
  width: 100%;
  border-color: rgba(174, 189, 204, 0.9);
  background: rgba(255, 255, 255, 0.78);
}
.admin-radio-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 6px 0;
}
.admin-radio-group .form-check {
  margin-bottom: 0;
}
.admin-repeatable-field {
  display: grid;
  gap: 8px;
}
.admin-repeatable-list {
  display: grid;
  gap: 8px;
}
.admin-repeatable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}
.admin-repeatable-row.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.admin-quick-fill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.admin-quick-fill span {
  color: var(--muted);
  font-size: 0.78rem;
}
.admin-quick-fill .btn {
  --bs-btn-padding-y: 0.18rem;
  --bs-btn-padding-x: 0.52rem;
  --bs-btn-font-size: 0.78rem;
  border-color: #cdd8df;
  color: var(--primary);
  background: #fff;
}
.admin-quick-fill .btn.is-active {
  border-color: var(--teal);
  background: rgba(22, 119, 107, 0.12);
  color: var(--primary);
  font-weight: 700;
}
.admin-quick-fill .btn:hover,
.admin-quick-fill .btn:focus {
  border-color: var(--teal);
  background: rgba(22, 119, 107, 0.08);
  color: var(--primary);
}
.admin-repeatable-remove {
  width: 42px;
  min-height: 38px;
  padding-right: 0;
  padding-left: 0;
}
.admin-repeatable-add {
  justify-self: start;
}
.admin-current-image-block {
  display: inline-grid;
  gap: 2px;
}
.admin-file-drop + .admin-current-image-block,
.admin-file-drop + .admin-property-image-preview,
.admin-file-drop + .image-preview-grid {
  margin-top: 18px;
}
.admin-image-upload-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: flex-start;
  gap: 16px;
}
.admin-image-upload-field {
  display: grid;
  gap: 8px;
}
.admin-image-upload-main {
  grid-column: span 1;
  max-width: 100%;
}
.admin-image-upload-gallery {
  grid-column: span 2;
  max-width: 100%;
}
.admin-image-upload-field .admin-file-drop {
  width: 100%;
  height: 128px;
  min-height: 128px;
}
.admin-sortable-image-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6edf3;
}
.admin-sortable-image-heading {
  margin-bottom: 12px;
}
.admin-sortable-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}
.admin-sortable-image-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 150px;
  padding: 8px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: border-color 0.18s, box-shadow 0.18s, opacity 0.18s, transform 0.18s;
}
.admin-is-sorting-images {
  user-select: none;
}
.admin-sortable-image-card:active {
  cursor: grabbing;
}
.admin-sortable-image-card.is-main {
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(17,39,57,0.08);
}
.admin-sortable-image-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
}
.admin-sortable-image-card.is-marked-remove {
  opacity: 0.52;
}
.admin-sortable-image-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor: grab;
}
.admin-sortable-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.admin-sortable-image-meta {
  display: grid;
  gap: 3px;
  line-height: 1.2;
}
.admin-sortable-image-rank {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}
.admin-sortable-image-card.is-main .admin-sortable-image-rank {
  color: var(--teal);
}
.admin-sortable-image-drag {
  color: var(--muted);
  font-size: 0.76rem;
}
.admin-sortable-image-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
}
.admin-sortable-image-remove input {
  margin: 0;
}
.admin-image-choice {
  display: grid;
  gap: 5px;
  width: 140px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
}
.admin-image-choice span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-image-choice input {
  margin: 0;
}
.admin-file-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 128px;
  padding: 20px;
  border: 1.5px dashed #aebdcc;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--primary);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.admin-file-drop:hover,
.admin-file-drop.is-dragover,
.admin-file-drop.is-uploading {
  border-color: var(--teal);
  background: rgba(22,119,107,0.07);
  box-shadow: 0 4px 14px rgba(17,39,57,0.08);
}
.admin-file-drop.is-uploading {
  opacity: 0.72;
  pointer-events: none;
}
.admin-file-drop.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}
.admin-file-drop-pdf {
  min-height: 112px;
}
.admin-file-drop-main {
  width: 100%;
}
.admin-file-drop-gallery {
  margin-right: 0;
}
.admin-file-drop-main .admin-file-drop-icon {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}
.admin-file-drop-main strong,
.admin-file-drop-main small {
  line-height: 1.2;
}
.admin-file-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eaf2f5;
  color: var(--teal);
  font-size: 1.1rem;
}
.admin-file-drop strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.admin-file-drop small {
  color: var(--muted);
  font-size: 0.78rem;
}
.admin-file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section,
  .hero-inner { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .hero-title { font-size: 2.35rem; }
  .property-type-strip,
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .membership-card { padding: 28px 24px; }
  .admin-form-card { padding: 18px 16px; }
  .admin-form-card-head { margin-bottom: 14px; }
  .admin-form-actions {
    position: static;
    padding: 14px;
  }
  .admin-form-actions .btn {
    flex: 1 1 100%;
  }
  .admin-pdf-import {
    grid-template-columns: 1fr;
  }
  .admin-pdf-import-copy,
  .admin-pdf-ai-counter,
  .admin-pdf-import .admin-file-drop-pdf {
    grid-column: 1 / -1;
  }
  .admin-image-upload-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .admin-image-upload-main,
  .admin-image-upload-gallery { grid-column: 1 / -1; }
  .admin-file-drop-main { width: 100%; }
  .admin-sortable-image-card { width: calc(50% - 7px); }
  .admin-repeatable-row { grid-template-columns: minmax(0, 1fr) 38px; }
  .admin-repeatable-remove { width: 38px; }
  .member-cta-inner,
  .company-inner { grid-template-columns: 1fr; }
  .property-detail-layout,
  .detail-inquiry-grid {
    grid-template-columns: 1fr;
  }
  .company-profile-hero,
  .company-contact-inner {
    grid-template-columns: 1fr;
  }
  .company-value-grid {
    grid-template-columns: 1fr;
  }
  .company-contact-actions {
    width: 100%;
    min-width: 0;
  }
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-list-item {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
    padding: 26px;
  }
  .staff-photo {
    width: 190px;
  }
  .listing-filter {
    margin-top: 0;
  }
  .appraisal-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery-main img { height: 420px; }
  .detail-highlight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-highlight div:nth-child(2) { border-right: 0; }
  .detail-highlight div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.02em;
  }
  h1,
  .h1,
  .page-header h1 { font-size: 24px; }
  h2,
  .h2 { font-size: 20px; }
  h3,
  .h3 { font-size: 18px; }
  .main-header .site-brand {
    gap: 9px;
    margin-right: 8px;
    max-width: calc(100vw - 98px);
  }
  .main-header .site-logo-mark {
    width: 29px;
  }
  .main-header .site-name {
    padding-left: 9px;
    font-size: 0.94rem;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .main-header .nav-link { padding: 0.7rem 0 !important; }
  .header-actions {
    align-items: stretch;
    flex-direction: column;
    margin: 10px 0 14px;
  }
  .hero-title { font-size: 24px; line-height: 1.45; }
  .hero-subtitle { font-size: 0.96rem; line-height: 1.75; }
  .staff-page {
    padding: 32px 0 46px;
    overflow-x: hidden;
  }
  .staff-page .container {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .staff-card {
    padding: 20px;
  }
  .staff-lead {
    max-width: calc(100vw - 24px);
    margin-bottom: 22px;
  }
  .staff-lead h2 span,
  .staff-lead p span {
    display: block;
  }
  .staff-text-chunk {
    display: block;
  }
  .staff-list-item {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 22px 18px;
    min-width: 0;
    overflow: hidden;
  }
  .staff-info,
  .staff-comment {
    max-width: 100%;
    min-width: 0;
  }
  .staff-photo {
    width: 168px;
    justify-self: center;
  }
  .staff-name-block {
    justify-content: center;
    text-align: center;
  }
  .staff-kana {
    text-align: center;
  }
  .staff-comment {
    font-size: 0.9rem;
    line-height: 1.85;
  }
  .staff-lead h2,
  .staff-lead p,
  .staff-comment,
  .staff-detail-list dd {
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }
  .staff-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .staff-more-detail summary {
    width: 100%;
  }
  .blog-author-box {
    grid-template-columns: 1fr;
  }
  .blog-author-photo {
    width: 70px;
  }
  .hero-search,
  .search-box {
    width: 100%;
    max-width: 100%;
  }
  .type-grid,
  .pref-grid,
  .pref-grid.compact,
  .city-check-grid,
  .city-check-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .type-btn,
  .pref-check,
  .city-check {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .type-btn span,
  .pref-check span,
  .city-check span {
    overflow-wrap: anywhere;
  }
  .city-modal .modal-dialog {
    margin: 0.75rem;
  }
  .city-modal .modal-header,
  .city-modal .modal-body,
  .city-modal .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .city-modal .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .city-modal .modal-footer .btn {
    width: 100%;
  }
  .hero-fee-promo {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .hero-fee-promo .promo-label {
    width: fit-content;
    min-height: auto;
    font-size: 0.9rem;
  }
  .hero-fee-promo strong,
  .hero-fee-promo .promo-note {
    justify-self: start;
    text-align: left;
  }
  .hero-fee-promo strong { font-size: 1.08rem; }
  .quick-search-head h2,
  .section-title,
  .member-cta h2 { font-size: 20px; }
  .company-profile-section,
  .company-outline-section {
    padding: 32px 0;
  }
  .company-profile-hero {
    padding: 20px;
    border-radius: 16px;
    gap: 16px;
  }
  .company-profile-copy h2,
  .company-outline-head h2,
  .company-contact-inner h2 {
    font-size: 20px;
  }
  .company-profile-mark {
    width: 112px;
    height: 112px;
    border-radius: 16px;
    justify-self: start;
  }
  .company-profile-mark img {
    width: 94px;
  }
  .company-outline-list div,
  .company-outline-list dt,
  .company-outline-list dd {
    display: block;
    width: 100%;
  }
  .company-outline-list dt,
  .company-outline-list dd {
    padding: 11px 14px;
  }
  .company-outline-list dd {
    border-top: 0;
  }
  .company-contact-cta {
    padding: 32px 0;
  }
  .company-contact-actions {
    grid-template-columns: 1fr;
  }
  .company-contact-tel {
    grid-column: auto;
  }
  .membership-page { padding: 28px 0 40px; }
  .membership-heading { margin-bottom: 20px; }
  .membership-kicker {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.7rem;
  }
  .membership-kicker span { width: 26px; }
  .membership-heading h1 { font-size: 24px; }
  .membership-heading p:last-child { font-size: 0.94rem; }
  .membership-mobile-line {
    display: block;
  }
  .membership-heading h1,
  .membership-benefit-hero h2,
  .membership-benefit-hero p,
  .membership-discount-card strong,
  .membership-discount-card p,
  .membership-benefits-head h2,
  .membership-benefit-card h3,
  .membership-benefit-card p,
  .membership-after-grid h3,
  .membership-after-grid p,
  .membership-form-heading p {
    overflow-wrap: anywhere;
    word-break: break-all;
    line-break: anywhere;
  }
  .membership-benefit-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: calc(100vw - 24px);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 20px 16px;
  }
  .membership-benefit-hero h2 {
    font-size: 20px;
  }
  .membership-discount-card {
    padding: 15px;
  }
  .membership-discount-card strong {
    font-size: 1.28rem;
  }
  .membership-benefits,
  .membership-after-grid {
    max-width: calc(100vw - 24px);
  }
  .membership-benefits {
    margin-bottom: 22px;
    padding: 18px 15px;
  }
  .membership-benefits-head {
    display: block;
    margin-bottom: 15px;
    padding-bottom: 14px;
  }
  .membership-benefits-head h2 {
    font-size: 20px;
  }
  .membership-benefits-grid,
  .membership-after-grid {
    grid-template-columns: 1fr;
  }
  .membership-benefit-card,
  .membership-after-grid div {
    padding: 16px;
  }
  .membership-benefit-badge {
    position: static;
    margin: 0 0 12px 8px;
    vertical-align: top;
  }
  .membership-after-register {
    margin-bottom: 24px;
  }
  .membership-section-head h2,
  .membership-form-heading h2 {
    font-size: 20px;
  }
  .membership-card {
    border-radius: 16px;
    padding: 18px 15px;
  }
  .membership-grid,
  .membership-name-grid,
  .membership-check-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .membership-form { gap: 18px; }
  .membership-field input,
  .membership-field select { min-height: 46px; }
  .membership-submit {
    min-height: 50px;
    border-radius: 12px;
  }
  .appraisal-page {
    padding: 28px 0 46px;
  }
  .appraisal-feature-strip,
  .appraisal-form,
  .appraisal-two-col {
    grid-template-columns: 1fr;
  }
  .appraisal-feature-strip {
    gap: 10px;
    margin-bottom: 16px;
  }
  .appraisal-feature-strip div {
    padding: 14px;
  }
  .appraisal-form-card {
    padding: 18px 15px;
    border-radius: 16px;
  }
  .appraisal-phone-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .appraisal-phone-info {
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 12px 0 0;
  }
  .appraisal-form-heading h2,
  .appraisal-success h2 {
    font-size: 20px;
  }
  .appraisal-form {
    gap: 16px;
  }
  .appraisal-form .form-control,
  .appraisal-form .form-select {
    min-height: 46px;
    font-size: 16px;
  }
  .appraisal-consent {
    width: 100%;
    align-items: flex-start;
  }
  .appraisal-submit {
    min-height: 56px;
  }
  .search-box h3,
  .contact-panel h3 { font-size: 18px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .quick-search-head,
  .section-heading,
  .listing-toolbar { align-items: flex-start; flex-direction: column; }
  .property-type-strip,
  .service-grid { grid-template-columns: 1fr; }
  .property-detail-page { padding: 18px 0 42px; }
  .detail-breadcrumb { margin-bottom: 16px; }
  .property-detail-layout { gap: 24px; }
  .detail-gallery-main img { height: 270px; }
  .detail-thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .detail-summary-panel h1 { font-size: 24px; }
  .detail-summary-row {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 0;
  }
  .detail-summary-row dt,
  .detail-summary-row dd {
    padding: 12px;
  }
  .detail-summary-row dt { font-size: 0.82rem; }
  .detail-summary-row dd { font-size: 0.9rem; }
  .detail-summary-row dd.is-price { font-size: 1.08rem; }
  .detail-summary-row dd.is-title { font-size: 1rem; }
  .detail-action-row { grid-template-columns: 1fr; }
  .detail-section { margin-top: 34px; }
  .detail-section-title { font-size: 20px; }
  .detail-point-box { padding: 16px; }
  .detail-basic-table,
  .detail-basic-table tbody,
  .detail-basic-table tr,
  .detail-basic-table th,
  .detail-basic-table td {
    display: block;
    width: 100%;
  }
  .detail-basic-table tr {
    border-bottom: 1px solid var(--line);
  }
  .detail-basic-table th,
  .detail-basic-table td {
    border-bottom: 0;
    padding: 11px 14px;
  }
  .detail-basic-table td {
    border-top: 0;
  }
  .detail-basic-table-desktop {
    display: none;
  }
  .detail-basic-table-mobile {
    display: block;
  }
  .detail-inquiry-section { padding: 20px 16px; }
  .detail-phone strong { font-size: 1.25rem; }
  .detail-phone {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px;
  }
  .detail-phone-icon {
    width: 40px;
    height: 40px;
  }
  .detail-contact-copy { padding: 0; }
  .detail-contact-points { gap: 8px; }
  .property-detail-images .main-img { height: 270px; }
  .property-info-table th,
  .property-info-table td { display: block; width: 100%; }
  .admin-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }
  .admin-content { margin-left: 0; }
  .admin-topbar { padding: 14px 18px; }
  .admin-main { padding: 18px; }
}

.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.border-accent { border-color: var(--accent) !important; }

/* 管理画面はPC入力作業を優先し、スマホ幅でもデスクトップ幅を維持する */
.admin-body {
  min-width: 1280px;
  overflow-x: auto;
}
.admin-body .admin-sidebar {
  position: fixed;
  width: 244px;
  min-height: 100vh;
}
.admin-body .admin-content {
  margin-left: 244px;
  min-width: 1036px;
}
.admin-body .admin-topbar {
  padding: 16px 28px;
}
.admin-body .admin-main {
  padding: 28px;
}

@media (max-width: 820px) {
  .admin-login-body {
    padding: 18px;
  }
  .admin-login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .admin-login-side,
  .admin-login-card {
    padding: 28px;
  }
  .admin-login-side-copy h1 {
    font-size: 1.35rem;
  }
}
