/* ===========================
   SERVICES PAGE
=========================== */

/* ---- Hero ---- */
.sv-hero {
  min-height: 40vh;
  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 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.sv-hero-title {
  font-family: var(--font-ja);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}

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

/* ---- Subnav ---- */
.sv-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  background: rgba(22, 25, 41, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.sv-subnav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sv-subnav-inner::-webkit-scrollbar { display: none; }

.sv-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 14px;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.sv-tab:hover { color: var(--white); }

.sv-tab.active {
  color: var(--pink-gold);
  border-bottom-color: var(--pink-gold);
}

.sv-tab-num {
  font-size: 0.6rem;
  opacity: 0.55;
  letter-spacing: 0.05em;
}

/* ---- Recommend list (replaces grid on services page) ---- */
.sv-recommend-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.sv-recommend-item {
  position: relative;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--white-dim);
  line-height: 1.75;
}

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

/* ---- Service sections (alternating bg + top fade) ---- */
.sv-section {
  padding: 96px 40px;
  position: relative;
  scroll-margin-top: 80px;
}

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

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

.sv-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---- Section header ---- */
.sv-header {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

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

.sv-title {
  font-family: var(--font-ja);
  font-size: clamp(1.2rem, 2.5vw, 1.625rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.5;
}

/* ---- Sub-block ---- */
.sv-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.sv-page-cta::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;
}

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

.sv-page-cta .section-label {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.sv-page-cta-text {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--white-dim);
  line-height: 2;
  margin: 0 0 40px;
}

@media (max-width: 768px) {
  .sv-page-cta { padding: 72px 24px; }
  .sv-page-cta-text { font-size: 11px; text-align: center; }
  .sv-page-cta .btn-primary {
    width: 180px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}

/* ---- Hide mobile-only elements ---- */
.sv-toggle { display: none; }
.sv-mobile-cards { display: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Subnav */
  .sv-subnav-inner { padding: 0 12px; }
  .sv-tab { font-size: 0.7rem; padding: 10px 10px; letter-spacing: 0.06em; }

  /* Section */
  .sv-section { padding: 3rem 1.5rem; }
  .sv-container { gap: 0.8rem; }

  /* Header: number + title side by side */
  .sv-header { display: flex; align-items: baseline; gap: 1rem; }
  .sv-title { flex: 1; min-width: 0; font-size: 1rem; margin-bottom: 1.5rem; }

  /* Description */
  .sd-text { margin: 0 0 1rem; padding: 0; font-size: 0.8rem; line-height: 1.8; text-align: justify; word-break: break-all; }
  .sd-text br { display: none; }

  /* こんな方におすすめ block */
  .sv-block { margin: 0; padding: 0; }
  .sv-block + .sv-block { margin-top: 0.8rem; }
  .sd-section-title { font-size: 0.9rem; margin-bottom: 0.4rem; }
  .sv-recommend-item { padding-top: 0.3rem; padding-bottom: 0.3rem; font-size: 0.8rem; }

  /* 対応内容: borderless list */
  .sd-service-grid { grid-template-columns: 1fr; gap: 0; }
  .sd-service-item { padding: 0.3rem 0; font-size: 0.8rem; border: none; background: none; border-radius: 0; }
}

/* ---- PC: align with agency.html ---- */
@media (min-width: 769px) {
  .sd-section-title { font-weight: 300; margin-top: 32px; margin-bottom: 8px; }
}
