/* あんしん実家じまい — 共通CSS */

:root {
  --aj-green: #0D9488;
  --aj-green-light: #14B8A6;
  --aj-green-pale: #ECFDF5;
  --aj-navy: #1E293B;
  --aj-navy-mid: #334155;
  --aj-gray: #64748B;
  --aj-gray-light: #F1F5F9;
  --aj-border: #E2E8F0;
  --aj-white: #FFFFFF;
  --aj-warning: #D97706;
}

::selection {
  background: #B9E8E2;
  color: var(--aj-navy);
}
::-moz-selection {
  background: #B9E8E2;
  color: var(--aj-navy);
}

body.aj-custom-layout .site-header,
body.aj-custom-layout #masthead {
  display: none !important;
}

body.aj-custom-layout .site-content,
body.aj-custom-layout .ast-container,
body.aj-custom-layout #content {
  padding: 0 !important;
  max-width: 100% !important;
}

.aj-page {
  font-size: 14px;
  color: var(--aj-navy);
  line-height: 1.7;
  background: var(--aj-gray-light);
}

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

/* Header */
.aj-header {
  background: var(--aj-white);
  border-bottom: 3px solid var(--aj-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.aj-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aj-logo {
  text-decoration: none;
  color: var(--aj-navy);
}

.aj-logo-main {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.aj-logo-main .accent {
  color: var(--aj-green);
}

.aj-logo-sub {
  display: block;
  font-size: 10px;
  color: var(--aj-gray);
  font-weight: 600;
  margin-top: 2px;
}

.aj-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.aj-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--aj-navy-mid);
  text-decoration: none;
}

.aj-nav a:hover {
  color: var(--aj-green);
}

.aj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.aj-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.aj-btn-primary {
  background: var(--aj-green);
  color: var(--aj-white);
}

.aj-btn-outline {
  background: var(--aj-white);
  color: var(--aj-green);
  border: 2px solid var(--aj-green);
}

/* Footer */
.aj-footer {
  background: var(--aj-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 20px;
  margin-top: 40px;
  font-size: 12px;
}

.aj-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.aj-footer-brand {
  font-size: 16px;
  font-weight: 900;
  color: var(--aj-white);
  margin-bottom: 8px;
}

.aj-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0;
}

.aj-footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.aj-footer-copy {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

/* Cards */
.aj-card {
  background: var(--aj-white);
  border: 1px solid var(--aj-border);
  border-radius: 10px;
  padding: 16px;
}

.aj-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.aj-vendor-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.aj-vendor-card:hover {
  border-color: var(--aj-green);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
  text-decoration: none;
}

.aj-vendor-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--aj-navy);
}

.aj-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--aj-green-pale);
  color: var(--aj-green);
  margin: 0 4px 4px 0;
}

.aj-badge-partner {
  background: #FEF3C7;
  color: #92400E;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.aj-section-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--aj-navy);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--aj-green);
}

.aj-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--aj-gray);
  font-size: 14px;
}

/* Vendor single */
.aj-vendor-hero {
  background: linear-gradient(135deg, var(--aj-navy) 0%, var(--aj-navy-mid) 100%);
  color: var(--aj-white);
  padding: 28px 20px;
}

.aj-vendor-hero h1 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 8px;
}

.aj-vendor-main {
  padding: 24px 0 40px;
}

.aj-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.aj-info-table th,
.aj-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--aj-border);
  text-align: left;
  vertical-align: top;
}

.aj-info-table th {
  width: 38%;
  color: var(--aj-gray);
  font-weight: 700;
  background: var(--aj-gray-light);
}

.aj-cta-box {
  background: var(--aj-green-pale);
  border: 2px solid var(--aj-green-light);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.aj-cta-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--aj-navy);
}

/* Hero（Astraの見出し色上書き対策で !important を明示） */
.aj-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(135deg, var(--aj-navy) 0%, var(--aj-navy-mid) 100%);
  padding: 56px 20px;
}
.aj-hero,
.aj-hero h1,
.aj-hero h2,
.aj-hero p,
.aj-hero li,
.aj-hero .aj-hero-eyebrow {
  color: #ffffff !important;
}
.aj-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.aj-hero h1 {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 16px;
}
.aj-hero h1 .accent {
  color: var(--aj-green-light) !important;
}
.aj-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.aj-hero-sub {
  font-size: 15px;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 0 20px;
}
.aj-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.aj-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}
.aj-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.aj-btn-lg {
  font-size: 15px;
  padding: 14px 28px;
}
.aj-btn-ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.aj-btn-ghost:hover {
  border-color: #ffffff;
  opacity: 1;
}
.aj-hero-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 16, 33, 0.28);
}
.aj-hero-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--aj-green) 0%, var(--aj-green-light) 100%);
}
.aj-hero-card-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.aj-hero-card-head h2 {
  flex: 1;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 0.02em;
}
.aj-hero-card-pill {
  flex: none;
  background: #ffffff;
  color: var(--aj-green) !important;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.aj-hero-card-list {
  list-style: none;
  margin: 0;
  padding: 16px 24px 8px;
}
.aj-hero-card-list li {
  color: var(--aj-navy-mid) !important;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 8px 0 8px 28px;
  position: relative;
}
.aj-hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 19px;
  height: 19px;
  background: var(--aj-green);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 19px;
}
.aj-hero-card-list li strong {
  color: var(--aj-navy) !important;
}
.aj-hero .aj-hero-card-note {
  color: var(--aj-navy) !important;
  background: var(--aj-green-pale);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--aj-border);
}
@media (max-width: 820px) {
  .aj-hero {
    padding: 40px 20px;
  }
  .aj-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* トップ：相場の目安カード */
.aj-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aj-price-card {
  display: flex;
  flex-direction: column;
  background: var(--aj-white);
  border: 1px solid var(--aj-border);
  border-top: 4px solid var(--aj-green);
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.aj-price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(2, 16, 33, 0.12);
  text-decoration: none;
}
.aj-price-card-label {
  font-size: 15px;
  font-weight: 900;
  color: var(--aj-navy);
}
.aj-price-card-cond {
  font-size: 12px;
  color: var(--aj-gray);
  margin: 2px 0 10px;
}
.aj-price-card-amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--aj-green);
  line-height: 1.1;
}
.aj-price-card-unit {
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
}
.aj-price-card-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--aj-navy-mid);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--aj-border);
}
.aj-price-card:hover .aj-price-card-link {
  color: var(--aj-green);
}
.aj-price-note {
  font-size: 11px;
  color: var(--aj-gray);
  margin: 12px 0 0;
}
@media (max-width: 720px) {
  .aj-price-grid {
    grid-template-columns: 1fr;
  }
}

/* サービス別ランディング（受け皿ページ） */
.aj-landing-body {
  padding: 28px 0 8px;
  font-size: 14px;
  color: var(--aj-navy);
  line-height: 1.9;
}
.aj-landing-body h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--aj-green);
}
.aj-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.aj-area-chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--aj-border);
  border-radius: 20px;
  background: var(--aj-white);
  color: var(--aj-navy-mid);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.aj-area-chip:hover {
  border-color: var(--aj-green);
  color: var(--aj-green);
  text-decoration: none;
}
.aj-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0;
}
.aj-price-table th,
.aj-price-table td {
  padding: 10px 12px;
  border: 1px solid var(--aj-border);
  text-align: left;
}
.aj-price-table th {
  background: var(--aj-gray-light);
  color: var(--aj-navy-mid);
  font-weight: 700;
}
.aj-steps {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  counter-reset: ajstep;
}
.aj-steps li {
  position: relative;
  padding: 6px 0 6px 36px;
  margin: 0 0 6px;
}
.aj-steps li::before {
  counter-increment: ajstep;
  content: counter(ajstep);
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  background: var(--aj-green);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .aj-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .aj-nav {
    width: 100%;
  }
}
