/* お問い合わせフォーム（contact.html）専用 - common.css の後に読み込む */
body.contact-page {
  background: #e6ecf2;
}

/* ヘッダー直下：パンくず・タイトル・物件カード */
.contact-page-hero {
  width: 100%;
  background-image: linear-gradient(to top, #024898, #013572);
  color: #fff;
  padding: 22px 16px 36px;
  box-sizing: border-box;
}

.contact-page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.contact-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.contact-breadcrumb a:hover {
  text-decoration: underline;
}

.contact-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.75;
}

.contact-breadcrumb-current {
  opacity: 0.95;
}

.contact-page-title {
  text-align: center;
  font-size: clamp(1.25rem, 4vw, 1.45rem);
  font-weight: 700;
  margin: 14px 0 22px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #fff;
  border-left: none;
  padding-left: 0;
}

@media (min-width: 641px) {
  .contact-page-title {
    font-size: 24px;
  }
}

.contact-property-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 22px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 22px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  color: #1a1a1a;
  text-align: left;
}

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

.contact-property-thumb-wrap {
  flex: 0 0 38%;
  max-width: 280px;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  align-self: flex-start;
}

.contact-property-thumb-wrap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  vertical-align: top;
}

.contact-property-body {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-property-name-row {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #0f172a;
}

.contact-property-name-row strong {
  font-weight: 700;
}

.contact-property-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  margin: 0 0 14px 0;
  font-size: 0.9375rem;
  color: #334155;
}

.contact-property-stats > span {
  display: inline-flex;
  align-items: center;
}

.contact-property-stats > span:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  margin: 0 12px;
  vertical-align: middle;
}

.contact-property-stats .contact-property-price {
  color: #c62828;
  font-weight: 700;
  font-size: 1.08rem;
}

.contact-property-stats .contact-property-price::before {
  background: #cbd5e1;
}

.contact-property-line {
  margin: 6px 0 0 0;
  color: #1e293b;
  font-size: 0.9375rem;
}

.contact-property-line:first-of-type {
  margin-top: 4px;
}

.contact-property-k {
  font-weight: 600;
  margin-right: 4px;
}

@media (max-width: 640px) {
  .contact-page-hero {
    padding: 18px 12px 28px;
  }

  .contact-property-card {
    flex-direction: column;
    padding: 16px 16px;
    gap: 16px;
  }

  .contact-property-thumb-wrap {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .contact-property-stats > span:not(:first-child)::before {
    margin: 0 8px;
  }

  .contact-page-title {
    margin: 12px 0 18px;
  }
}

/* フォーム全体：3カード＋フッター（ページ背景は body.contact-page） */
.contact-page-main {
  margin-top: 28px;
  padding-bottom: 48px;
}

.contact-form-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 4px;
}

.contact-form-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
  border: 1px solid #e8ecf1;
  padding: 24px 28px 26px;
  margin-bottom: 18px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: minmax(132px, 30%) 1fr;
  gap: 10px 22px;
  align-items: start;
  margin-bottom: 20px;
}

.contact-field-row:last-child {
  margin-bottom: 0;
}

.contact-field-row--top .contact-field-label {
  padding-top: 2px;
}

.contact-field-row--textarea .contact-field-label {
  padding-top: 10px;
}

.contact-field-row--address .contact-field-label {
  padding-top: 8px;
}

.contact-field-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-label-text {
  display: inline;
}

.contact-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.3;
}

.contact-badge--required {
  color: #fff;
  background: #db5051;
}

.contact-badge--optional {
  color: #475569;
  background: #e8ecf0;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.contact-field-control {
  min-width: 0;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.2s;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: #1565c0;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #94a3b8;
}

.contact-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.contact-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.contact-field-hint {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 6px 0 0 0;
}

.contact-field-hint--tight {
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.contact-field-control .contact-address-grid {
  margin-bottom: 0;
}

.contact-field-control .contact-address-grid + .contact-stack--full {
  margin-top: 16px;
}

.contact-stack {
  min-width: 0;
}

.contact-stack--full {
  margin-bottom: 0;
}

.contact-sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-radio-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-radio-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
}

.contact-radio-line input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #1565c0;
  flex-shrink: 0;
}

.contact-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.contact-check-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.contact-check-line input[type="checkbox"] {
  margin: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  accent-color: #1565c0;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-form-footer {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 0 4px;
  text-align: center;
}

.contact-agree-wrap {
  margin-bottom: 8px;
}

.contact-agree-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
}

.contact-agree-row input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #1565c0;
  flex-shrink: 0;
}

.contact-agree-text {
  margin-right: 2px;
}

.contact-agree-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin: 12px 0 0 0;
  line-height: 1.65;
}

.contact-submit-btn {
  display: inline-block;
  min-width: 260px;
  margin-top: 22px;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1565c0;
  background: #fff;
  border: 2px solid #1565c0;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact-submit-btn:hover:not(:disabled) {
  background: #e3f2fd;
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.form-success {
  display: none;
  color: #166534;
  background: #ecfdf5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid #a7f3d0;
}

.form-error {
  display: none;
  color: #b91c1c;
  background: #fef2f2;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #fecaca;
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 18px 16px 20px;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 8px 0;
    margin-bottom: 18px;
  }

  .contact-field-row--textarea .contact-field-label {
    padding-top: 0;
  }

  .contact-address-grid {
    grid-template-columns: 1fr;
  }

  .contact-submit-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

body.contact-page .site-footer {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 48px;
  padding: 40px 20px;
  text-align: center;
  background: #1565c0;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

/* ===== サンクスページ（thanks.html） ===== */
.thanks-card {
  max-width: 840px;
  margin: 0px auto 0;
  padding: 48px 32px 44px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.thanks-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
}

.thanks-title {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.thanks-lead {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1565c0;
}

.thanks-text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
}

.thanks-note {
  margin: 0 auto 30px;
  max-width: 460px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  text-align: left;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.thanks-btn--primary {
  background: #1565c0;
  color: #fff;
  border: 1px solid #1565c0;
}

.thanks-btn--primary:hover {
  background: #0d4aa0;
  border-color: #0d4aa0;
}

.thanks-btn--ghost {
  background: #fff;
  color: #1565c0;
  border: 1px solid #1565c0;
}

.thanks-btn--ghost:hover {
  background: #eef4fc;
}

@media (max-width: 600px) {
  .thanks-card {
    padding: 36px 20px 32px;
  }

  .thanks-title {
    font-size: 1.3rem;
  }
  .thanks-text{
    text-align: left;
  }

  .thanks-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}

/* ===== 個人情報の取扱いページ（privacy.html） ===== */
.policy-doc {
  max-width: 900px;
  margin: 0px auto 0;
  padding: 44px 40px 40px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.policy-lead {
  margin: 0 0 28px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-heading {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 8px;
  border-bottom: 2px solid #1565c0;
}

.policy-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #334155;
}

.policy-actions {
  margin-top: 70px;
  text-align: center;
}

@media (max-width: 600px) {
  .policy-doc {
    padding: 28px 20px 28px;
  }

  .policy-heading {
    font-size: 1.02rem;
  }

  .policy-actions {
    margin-top: 35px;
  }

  .policy-actions .thanks-btn {
    width: 100%;
    max-width: 320px;
  }
}
