/* ==========================================================================
   services.css — サービス一覧ページ専用スタイル
   フロントページ・aboutページのデザイン言語に準拠（白基調・primary blue）
   ========================================================================== */

/* ------------------------------------------------------------------
   共通ユーティリティ
   ------------------------------------------------------------------ */
.sv-label {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sv-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.sv-section-lead {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sv-pc-only {
  display: inline;
}

@media (max-width: 640px) {
  .sv-pc-only { display: none; }
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.sv-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(to bottom, rgba(8, 16, 28, 0.60) 0%, rgba(8, 16, 28, 0.50) 100%),
    url('https://edel-hearts.com/wp-content/uploads/hearts-photo-gray.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  color: #fff;
}

@media (max-width: 768px) {
  .sv-hero {
    background-attachment: scroll, scroll;
  }
}

.sv-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(60px, 10vw, 100px);
}

.sv-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.sv-hero__title {
  font-size: clamp(1.9rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.70),
    0 4px 24px rgba(0, 0, 0, 0.55),
    0 8px 48px rgba(0, 0, 0, 0.35);
}

.sv-hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* スクロール矢印 */
.sv-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.sv-hero__scroll span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55));
  animation: svScrollDrop 1.9s ease-in-out infinite;
  transform-origin: top;
}

@keyframes svScrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-hero__scroll span { animation: none; opacity: 0.3; }
}

/* ------------------------------------------------------------------
   Services Grid
   ------------------------------------------------------------------ */
.sv-services {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.sv-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .sv-services__grid { grid-template-columns: 1fr; }
}

.sv-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.sv-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.sv-card__icon--blue   { background: rgba(2, 132, 199, 0.1);   color: var(--color-primary); }
.sv-card__icon--red    { background: rgba(239, 68, 68, 0.1);   color: #ef4444; }
.sv-card__icon--green  { background: rgba(16, 185, 129, 0.1);  color: #10b981; }
.sv-card__icon--purple { background: rgba(124, 58, 237, 0.1);  color: #7c3aed; }

.sv-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.sv-card__concept {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
}

.sv-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sv-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.sv-card__list li {
  position: relative;
  padding-left: 1.1em;
  font-size: 0.875rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.sv-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 769px) {
  .sv-card__title   { font-size: 1.25rem; }
  .sv-card__concept { font-size: 0.92rem; }
  .sv-card__desc    { font-size: 1rem; }
  .sv-card__list li { font-size: 0.95rem; }
  .sv-card__link    { font-size: 0.95rem; }
}

.sv-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.sv-card:hover .sv-card__link {
  gap: 0.65em;
}

/* ------------------------------------------------------------------
   診断バナー
   ------------------------------------------------------------------ */
.sv-diagnosis {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-light);
}

.sv-diagnosis__banner {
  background: linear-gradient(135deg, var(--color-primary-dark, #0369a1) 0%, var(--color-primary, #0284c7) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.sv-diagnosis__banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .sv-diagnosis__banner {
    flex-direction: column;
    text-align: center;
  }
}

.sv-diagnosis__body {
  position: relative;
  z-index: 1;
}

.sv-diagnosis__label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.sv-diagnosis__title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sv-diagnosis__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

.sv-diagnosis__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sv-diagnosis__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

/* ------------------------------------------------------------------
   ご利用の流れ
   ------------------------------------------------------------------ */
.sv-flow {
  padding: var(--section-padding) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}

.sv-flow__grid {
  display: flex;
  gap: 1.25rem;
  counter-reset: sv-flow-counter;
}

@media (max-width: 768px) {
  .sv-flow__grid {
    flex-direction: column;
    gap: 2.5rem;
  }
}

.sv-flow__step {
  flex: 1;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}

/* STEP バッジ */
.sv-flow__step::before {
  counter-increment: sv-flow-counter;
  content: "STEP " counter(sv-flow-counter);
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* PC 矢印 */
@media (min-width: 769px) {
  .sv-flow__step:not(:last-child)::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
    z-index: 2;
    background: var(--color-white);
    padding: 0 2px;
  }
}

/* SP 矢印 */
@media (max-width: 768px) {
  .sv-flow__step:not(:last-child)::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -1.9rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
  }
}

.sv-flow__icon {
  font-size: 2rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.85rem;
  margin-top: 0.25rem;
}

.sv-flow__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.sv-flow__desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ------------------------------------------------------------------
   フッター CTA
   ------------------------------------------------------------------ */
.sv-cta {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-light);
}

.sv-cta__card {
  background: linear-gradient(135deg, var(--color-primary-dark, #0369a1) 0%, var(--color-primary, #0284c7) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.sv-cta__title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.sv-cta__lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.sv-cta__btn {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sv-cta__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
