/* ===========================
   AGENCY PAGE
=========================== */

/* ---- Hero ---- */
.ag-hero {
  min-height: 32vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 55% 45%, #2A2F4A 0%, var(--navy-dark) 65%);
  padding: calc(var(--nav-h) + 48px) 40px 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ag-hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(201, 149, 108, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.ag-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
  z-index: 0;
}

.ag-hero-inner {
  position: relative;
  z-index: 1;
  animation: heroFadeUp 0.8s ease both;
}

.ag-hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  letter-spacing: 0.35em;
  color: var(--pink-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ag-hero-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--white);
  margin-bottom: 20px;
}

.ag-hero-sub {
  font-size: 0.9375rem;
  color: var(--white-dim);
  line-height: 1.9;
}

/* ---- Container ---- */
.ag-container {
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Registration sections ---- */
.ag-section {
  padding: 96px 40px;
  position: relative;
}

.ag-section:nth-child(1) {
  background: linear-gradient(to bottom, var(--navy) 0px, var(--navy-dark) 80px);
}

.ag-section:nth-child(2) {
  background: linear-gradient(to bottom, var(--navy-dark) 0px, var(--navy) 80px);
}

.ag-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.25rem;
  margin-bottom: 48px;
}

.ag-section-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--pink-gold);
  opacity: 0.3;
  margin-bottom: 0;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.ag-section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0;
  flex: 1;
}

.ag-desc {
  font-size: 0.9375rem;
  color: var(--white-dim);
  line-height: 2;
  margin-bottom: 48px;
  flex-basis: 100%;
}

/* ---- Two column layout ---- */
.ag-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.ag-col-title {
  font-family: var(--font-ja);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pink-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ---- Benefit list ---- */
.ag-benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ag-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.75;
}

.ag-benefit-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 1px;
  background: var(--pink-gold);
  margin-top: 0.85em;
}

/* ---- Recommend list ---- */
.ag-recommend-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.ag-recommend-item {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
}

.ag-recommend-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 56%;
  background: var(--pink-gold);
  border-radius: 1px;
}

/* ---- Mobile-only line break ---- */
.ag-sp-br { display: none; }

/* ---- Section theme ---- */
.ag-theme {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--pink-gold);
  margin-bottom: 16px;
  margin-top: 12px;
  opacity: 0.9;
  flex-basis: 100%;
}

/* ---- CTA section ---- */
.ag-cta-section {
  padding: 96px 40px;
  text-align: center;
  background: linear-gradient(to bottom, var(--navy) 0px, transparent 80px),
              linear-gradient(160deg, #1A1E32 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
}

.ag-cta-section::before {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(201, 149, 108, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.ag-cta-inner {
  position: relative;
  z-index: 1;
}

.ag-cta-label {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.2em;
  color: var(--pink-gold);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.ag-cta-text {
  font-size: 0.9375rem;
  color: var(--white-dim);
  line-height: 2;
  margin-bottom: 40px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ag-hero { padding: calc(var(--nav-h) + 36px) 24px 48px; }
  .ag-cta-section { padding: 72px 24px; }

  /* Section */
  .ag-section { padding: 1.5rem 1.25rem; }

  /* Section header: number + title side by side (matches sv-header) */
  .ag-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 1rem;
    margin-bottom: 0.8rem;
  }

  .ag-section-title { flex: 1; font-size: clamp(1.1rem, 2.5vw, 1.3rem); margin-bottom: 0; padding-bottom: 0; line-height: 1.5; }
  .ag-section-title::after { display: none; }
  .ag-theme { flex-basis: 100%; font-size: 0.85rem; margin-bottom: 6px; margin-top: 8px; }
  .ag-desc { flex-basis: 100%; font-size: 0.8rem; margin-bottom: 0.8rem; line-height: 1.75; }
  .ag-sp-br { display: block; }

  /* Columns */
  .ag-cols { grid-template-columns: 1fr; gap: 0.8rem; }

  /* Column title */
  .ag-col-title { font-size: 0.9rem; margin-bottom: 0.4rem; padding-bottom: 8px; }

  /* Benefit list */
  .ag-benefit-list { gap: 0; }
  .ag-benefit-item { padding: 0.3rem 0; font-size: 0.8rem; gap: 0.6em; }
  .ag-benefit-item::before { margin-top: 0.8em; }

  /* Recommend list — ✓ checkmark style (matches sd-service-item on mobile) */
  .ag-recommend-list { border-top: none; }
  .ag-recommend-item {
    padding: 0.3rem 0;
    font-size: 0.8rem;
    border-bottom: none;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.6em;
  }
  .ag-recommend-item::before {
    content: "✓";
    color: #C9956C;
    font-size: 0.8rem;
    flex-shrink: 0;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    top: auto;
    left: auto;
  }
}
