/* ========================================
   清水区 戸建て賃貸サイト — スタイルシート
   ======================================== */

:root {
  --primary:       #1a4b7a;
  --primary-dark:  #0f2e4f;
  --primary-light: #2563a8;
  --accent:        #e07b00;
  --accent-light:  #f5a623;
  --bg:            #f5f7fa;
  --white:         #ffffff;
  --text:          #2d2d2d;
  --text-muted:    #666666;
  --border:        #dde2e8;
  --success:       #2e7d4f;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --radius:        8px;
  --radius-lg:     16px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.3;
}
.logo-text strong { display: block; font-size: 1rem; letter-spacing: 0.03em; }

.site-nav { display: flex; gap: 4px; }

.site-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e6b9e 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; text-align: center; }

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-light); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  padding: 20px 40px;
  text-align: center;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 150px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-num span { font-size: 1rem; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── Section Common ── */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
}
.section-desc {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Property Cards ── */
.properties-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.filter-btn.active,
.filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-image {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c8d6e5 0%, #a8bed0 100%);
  overflow: hidden;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7090ab;
  font-size: 0.85rem;
}
.card-image-placeholder .icon { font-size: 2.5rem; }

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-募集中 { background: var(--success); color: var(--white); }
.status-成約済み { background: #888; color: var(--white); }
.status-準備中 { background: var(--accent); color: var(--white); }

.photo-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-card { cursor: pointer; }
.property-card:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.card-body { padding: 18px 20px; }

.card-rent {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.rent-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}
.rent-unit { font-size: 0.85rem; color: var(--text-muted); }
.management-fee { font-size: 0.8rem; color: var(--text-muted); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--text);
}

.card-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.spec-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-info-list {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.info-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.info-icon { font-size: 0.9rem; }

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.btn-card {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-card-primary { background: var(--primary); color: var(--white); }
.btn-card-primary:hover { background: var(--primary-light); }
.btn-card-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-card-outline:hover { background: var(--primary); color: var(--white); }

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.empty-desc { color: var(--text-muted); font-size: 0.9rem; }

/* ── Area Section ── */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.area-features { display: flex; flex-direction: column; gap: 20px; }
.area-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.feature-text h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.feature-text p  { font-size: 0.85rem; color: var(--text-muted); }

.area-map {
  background: #c8d6e5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.area-map iframe { width: 100%; height: 100%; border: none; }

/* ── Why Us ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.why-icon { font-size: 2.4rem; margin-bottom: 14px; }
.why-title { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.why-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Contact ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 12px; }
.contact-info p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 24px; }

.contact-detail-list { display: flex; flex-direction: column; gap: 14px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.contact-detail .ci {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.form-label .required {
  color: #e04040;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,168,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
  font-family: inherit;
}
.form-submit:hover { background: var(--primary-light); transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 50, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
  position: relative;
}
.modal-backdrop.show .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  color: var(--text);
}
.modal-close:hover { background: var(--bg); transform: rotate(90deg); }

/* Gallery */
.modal-gallery {
  position: relative;
  background: #1a1a1a;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gallery-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.gallery-placeholder .icon { font-size: 4rem; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
  color: var(--text);
}
.gallery-nav:hover { background: var(--white); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  z-index: 5;
}

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
}
.gallery-thumb.active { opacity: 1; border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Modal Body */
.modal-body { padding: 28px 32px 32px; }

.modal-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.modal-status-row .status-badge {
  position: static;
  font-size: 0.8rem;
}
.modal-rent-large {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}
.modal-rent-large .unit { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }

.modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin: 6px 0 18px;
  line-height: 1.4;
}

.modal-section { margin-bottom: 22px; }
.modal-section h4 {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bg);
  letter-spacing: 0.04em;
}

.modal-info-table {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  font-size: 0.9rem;
}
.modal-info-table dt { color: var(--text-muted); font-size: 0.85rem; }
.modal-info-table dd { font-weight: 600; }

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 11px;
  font-size: 0.82rem;
}

.modal-description {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.modal-actions .btn-card { padding: 12px 20px; font-size: 0.95rem; }
.modal-actions .btn-card-primary { flex: 1; min-width: 180px; }

@media (max-width: 600px) {
  .modal-body { padding: 22px 20px; }
  .modal-info-table { grid-template-columns: 100px 1fr; font-size: 0.85rem; }
  .modal-rent-large { font-size: 1.4rem; }
  .modal-title { font-size: 1.1rem; }
  .gallery-thumb { width: 60px; height: 45px; }
}

body.modal-open { overflow: hidden; }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .logo-text { color: rgba(255,255,255,0.9); }
.footer-tagline { font-size: 0.82rem; margin-top: 10px; line-height: 1.6; }

.footer-nav h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; }
  .hamburger { display: flex; }

  .header-inner { position: relative; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 12px 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav a { padding: 10px 14px; }

  .hero { padding: 50px 0 60px; }

  .stat-item { padding: 16px 20px; }
  .stat-num  { font-size: 1.4rem; }

  .area-grid    { grid-template-columns: 1fr; }
  .area-map     { order: -1; }

  .contact-wrap { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .form-card    { padding: 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .properties-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}
