/* =========================================================
   J4C 事業内容（services.html）専用スタイル
   見出しは明朝体、本文はゴシック体（会社情報ページと同じ）
   ========================================================= */

.sv {
  --f-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --f-script: "Caveat", "Yomogi", cursive;
  --sv-line: #ece8df;
  overflow-x: clip;
}

/* ---------- 小さなオレンジの英字ラベル・オレンジの線 ---------- */
.sv-label {
  font-family: var(--f-serif-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #f08a1c;
}
.sv-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-orange);
}
.sv-line-center { margin: 18px auto 0; width: 46px; }

/* =========================================================
   ページ見出し
   ========================================================= */
.sv-head {
  position: relative;
  min-height: clamp(460px, 36vw, 560px);
  background: #f8f7f4;
  overflow: hidden;
}
/* 右側の写真（左端は背景になじませる） */
.sv-head-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  animation: fade-up 1.2s var(--ease) .1s both;
}
.sv-head-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.sv-head-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f8f7f4 0%, rgba(248, 247, 244, .85) 14%, rgba(248, 247, 244, .2) 34%, rgba(248, 247, 244, 0) 48%);
}
.sv-head-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  animation: wave-draw 1.8s var(--ease) .3s both;
}
.sv-head-wave path {
  fill: none;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 64px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.sv-hand {
  position: absolute;
  z-index: 2;
  top: 40px;
  right: 40px;
  font-family: var(--f-script);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  color: #f39a2c;
  transform: rotate(-12deg);
  text-shadow: 0 0 10px rgba(255, 255, 255, .8);
  animation: fade-up 1s var(--ease) 1s both;
}
.sv-hand span { display: inline-block; padding-left: .6em; }

.sv-head-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 0 60px 7%;
}
.sv-head-inner .sv-label { animation: fade-up .9s var(--ease) .1s both; }
.sv-head-en {
  margin-top: 6px;
  font-family: var(--f-serif-en);
  font-size: clamp(60px, 6.2vw, 92px);
  font-weight: 500;
  line-height: 1;
  animation: fade-up 1s var(--ease) .2s both;
}
.sv-head-ja {
  margin-top: 8px;
  font-family: var(--f-serif);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: 0.12em;
  animation: fade-up 1s var(--ease) .35s both;
}
.sv-head-inner .sv-line {
  margin: 30px 0 28px;
  transform-origin: left center;
  animation: line-grow .8s var(--ease) .6s both;
}
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sv-head-lead {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 2;
  letter-spacing: 0.1em;
  color: #333;
  text-shadow: 0 0 12px rgba(248, 247, 244, .9);
  animation: fade-up 1s var(--ease) .7s both;
}

/* =========================================================
   4つのサービス
   ========================================================= */
.sv-list {
  max-width: 1440px;
  margin: 0 auto;
  padding: 70px 2.5% 110px;
}
.sv-intro { text-align: center; }
.sv-title {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.sv-intro-text {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--c-sub);
}

.sv-cards {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}
.sv-card {
  --c-main: #f08a1c;
  --c-soft: #fde7d6;
  --c-btn-bg: linear-gradient(90deg, #ffb562, #ff9a3d);
  --c-btn-text: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 47% 1fr;
  min-height: clamp(360px, 28vw, 420px);
  border: 1px solid var(--sv-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.sv-massage {
  --c-main: #3a8fd6;
  --c-soft: #dcecfa;
  --c-btn-bg: #d8ebfb;
  --c-btn-text: #2470b5;
}
.sv-careplan {
  --c-main: #6faf2c;
  --c-soft: #e6f2d6;
  --c-btn-bg: #e2f1cf;
  --c-btn-text: #4d8c18;
}
.sv-support {
  --c-main: #9a6fd8;
  --c-soft: #ece3fa;
  --c-btn-bg: #ebe1fb;
  --c-btn-text: #7a4fc0;
}
.sv-homecare .sv-icon { color: #f2735a; background: #fde2da; }

/* 写真と文章を左右入れかえる */
.sv-card.is-reverse { grid-template-columns: 1fr 47%; }
.sv-card.is-reverse .sv-card-photo { order: -1; }

.sv-card-body {
  position: relative;
  z-index: 1;
  padding: 36px 30px 34px 44px;
}
.sv-card.is-reverse .sv-card-body { padding-left: 30px; padding-right: 40px; }
.sv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.sv-icon {
  flex-shrink: 0;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-main);
  display: grid;
  place-items: center;
}
.sv-icon svg { width: 44px; height: 44px; }
.sv-num {
  font-family: var(--f-serif-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #f08a1c;
}
.sv-name {
  margin-top: 4px;
  font-family: var(--f-serif);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.sv-sub {
  margin-top: 6px;
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #333;
}
/* 事業所名と拠点 */
.sv-office {
  display: inline-block;
  margin-top: 20px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sv-office span { margin-left: 2px; font-weight: 500; }
.sv-text {
  margin-top: 14px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #444;
}
.sv-btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 200px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--c-btn-bg);
  color: var(--c-btn-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sv-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.sv-btn-arrow { position: relative; width: 16px; height: 10px; }
.sv-btn-arrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 1.6px;
  background: currentColor;
}
.sv-btn-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* 写真（文章側の端を白になじませる） */
.sv-card-photo { position: relative; min-height: 260px; }
.sv-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .6) 10%, rgba(255, 255, 255, 0) 28%);
}
.sv-card.is-reverse .sv-card-photo::before {
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, .6) 10%, rgba(255, 255, 255, 0) 28%);
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1180px) {
  .sv-card,
  .sv-card.is-reverse { grid-template-columns: 1fr 1fr; }
  .sv-card-head { gap: 16px; }
  .sv-icon { width: 70px; height: 70px; }
  .sv-icon svg { width: 36px; height: 36px; }
}

@media (max-width: 960px) {
  .sv-head { min-height: 0; display: flex; flex-direction: column; }
  .sv-head-photo { position: relative; width: 100%; height: 56vw; order: -1; }
  .sv-head-photo::before { background: linear-gradient(0deg, #f8f7f4 0%, rgba(248, 247, 244, 0) 40%); }
  .sv-head-wave { display: none; }
  .sv-hand { top: 20px; right: 20px; font-size: 22px; }
  .sv-head-inner { padding: 10px 22px 48px; }
  .sv-head-lead br { display: none; }
  .sv-list { padding: 60px 16px 80px; }
  .sv-intro-text br { display: none; }
  .sv-card,
  .sv-card.is-reverse { grid-template-columns: 1fr; min-height: 0; }
  .sv-card-photo,
  .sv-card.is-reverse .sv-card-photo { order: -1; height: 56vw; max-height: 340px; }
  .sv-card-photo::before,
  .sv-card.is-reverse .sv-card-photo::before { background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 30%); }
  .sv-card-body,
  .sv-card.is-reverse .sv-card-body { padding: 8px 22px 30px; }
  .sv-btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-head-photo, .sv-head-wave, .sv-hand, .sv-head-inner .sv-label,
  .sv-head-en, .sv-head-ja, .sv-head-inner .sv-line, .sv-head-lead { animation: none; }
}
