@charset "UTF-8";
/* ==========================================================================
   service.css
   ビューティーハウス コーポレートサイト / 事業内容ページ専用スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. イントロ
   -------------------------------------------------------------------------- */
.sv-intro {
  padding-top: clamp(48px, 7vw, 90px);
}

.sv-intro__text {
  max-width: 860px;
  margin-top: clamp(18px, 2.6vw, 28px);
  font-size: 1.5rem;
}

/* 目次ナビ */
.sv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 4vw, 40px);
}

.sv-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-ink-mid);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.sv-nav a:hover,
.sv-nav a.is-active {
  color: var(--c-white);
  background: var(--g-sea);
  border-color: transparent;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. 事業一覧
   -------------------------------------------------------------------------- */
.sv-list {
  padding-top: clamp(40px, 6vw, 72px);
}

.sv-item {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.sv-item + .sv-item {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--c-line);
}

.sv-item__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--g-sea);
  box-shadow: var(--sh-md);
}

/* 写真は背面いっぱいに敷き、番号とアイコンの視認性はスクリムで確保する */
.sv-item__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-item__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 46, 96, 0.56) 0%, rgba(20, 46, 96, 0.3) 46%, rgba(20, 46, 96, 0.54) 100%);
}

.sv-item__visual--b { background: linear-gradient(135deg, #4fcbea 0%, #29b0e0 60%, #3d84e4 100%); }
.sv-item__visual--c { background: linear-gradient(135deg, #7ed3ef 0%, #35a9e4 55%, #4169e1 100%); }
.sv-item__visual--d { background: linear-gradient(135deg, #2fc2e6 0%, #3d84e4 60%, #2d4fbe 100%); }
.sv-item__visual--e { background: linear-gradient(135deg, #5cc9ec 0%, #3a8ce2 58%, #4169e1 100%); }
.sv-item__visual--f { background: linear-gradient(135deg, #f0a878 0%, #d0603c 62%, #ac492b 100%); }

.sv-item__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(84px, 12vw, 116px);
  height: clamp(84px, 12vw, 116px);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.sv-item__icon svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-item__num {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  left: clamp(18px, 2.4vw, 30px);
  z-index: 2;
  font-family: var(--f-en);
  font-size: clamp(3rem, 4.4vw, 4.4rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.sv-item__en {
  font-family: var(--f-en);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--c-brand);
}

.sv-item--accent .sv-item__en {
  color: var(--c-tile);
}

.sv-item__title {
  margin-top: 4px;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.4;
}

.sv-item__text {
  margin-top: clamp(14px, 2vw, 20px);
  font-size: 1.5rem;
  line-height: 2.15;
  color: var(--c-ink-mid);
}

.sv-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2.4vw, 26px);
}

.sv-item__tags li {
  padding: 6px 16px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-brand);
  background: var(--c-sea-pale);
  border-radius: 999px;
}

.sv-item--accent .sv-item__tags li {
  color: var(--c-tile-dark);
  background: var(--c-tile-pale);
}

/* --------------------------------------------------------------------------
   3. 工事の流れ
   -------------------------------------------------------------------------- */
.sv-flow__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr;
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.sv-flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.sv-flow__item {
  position: relative;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--c-white);
  border-radius: var(--radius-m);
  box-shadow: var(--sh-sm);
}

.sv-flow__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(12px, 1.6vw, 20px) / -2 - 5px);
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--c-sea-light);
  border-right: 2px solid var(--c-sea-light);
  transform: translateY(-50%) rotate(45deg);
}

.sv-flow__item:last-child::after {
  display: none;
}

.sv-flow__step {
  font-family: var(--f-en);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-brand);
}

.sv-flow__title {
  margin-top: 6px;
  font-size: clamp(1.6rem, 1.9vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
}

.sv-flow__text {
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.95;
  color: var(--c-ink-mid);
}

/* --------------------------------------------------------------------------
   4. レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sv-flow__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .sv-flow__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-flow__item::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .sv-item {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sv-item__visual {
    aspect-ratio: 16 / 7;
  }
}

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

  .sv-nav a {
    padding: 8px 16px;
    font-size: 1.25rem;
  }
}
