/*
* {
  box-sizing: border-box;
}
*/

/*
html,
body {
  margin: 0;
  padding: 0;
}
*/
/*

body {
  color: #163318;
}


a {
  color: inherit;
  text-decoration: none;
}
*/

/* ==============================
   ファーストビュー
============================== */
.care-fv {
  --green: #12801d;
  --green-dark: #086f14;
  --green-light: #48ae22;
  --yellow: #fff56b;
  background: #fff;
  width: 100%;
  /*  min-height: 100vh;*/
  overflow: hidden;
}

.hero-top-box {
  position: relative;
  overflow: hidden;
}

.hero-dec {
  position: absolute;
  background: url("../image/common/page-bottom.png") center;
  background-size: cover;
  height: 10vw;
  width: 100vw;
  display: block;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.hero-dec-left {
  background: url("../image/common/page-bottom-right.png") no-repeat;
  background-size: contain;
  width: 30vw;
  height: 100vh;
  bottom: 0;
  left: 0;
}

.hero-dec-right {
  background: url(../image/common/page-bottom-right.png) no-repeat;
  background-size: contain;
  width: 31vw;
  height: 100vh;
  bottom: 0;
  right: 0;
  left: inherit;
  transform: scale(-1, 1);
}

/* 上部 */
.care-fv__top {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.care-fv__logo {
  position: absolute;
  top: 24px;
  left: 30px;
  width: min(390px, 26vw);
  z-index: 2;
}

.care-fv__headline {
  width: min(1060px, 72vw);
  margin: 0 auto;
  text-align: center;
}

.care-fv__eyebrow {
  width: min(650px, 64%);
  margin: 0 auto;
  padding: 8px 28px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #56af20, #05731b);
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.care-fv__headline h1 {
  display: block;
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.08;
  padding: 10px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.care-fv__headline h1 span {
  display: block;
  font-size: clamp(43px, 5vw, 76px);
  font-size: clamp(30px, 4vw, 55px);
  color: #27901f;
}

.care-fv__headline h1 strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(50px, 5.6vw, 70px);
  white-space: nowrap;
}

.care-fv__headline-line {
  display: block;
  width: 92%;
  height: 7px;
  margin: 0 auto;
  border-radius: 100% 0;
  background: linear-gradient(90deg, #51b725 0%, #13921e 62%, transparent 100%);
  transform: skewX(-18deg) rotate(0.15deg);
}

/* ==============================
   4枚カード
============================== */
.care-fv__slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.care-fv__slider::after {
  display: block;
  content: "";
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 15px;
  background: #14871b;
  position: absolute;
}

.care-fv__track {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  z-index: 1;
  position: relative;
  padding-top: 15px;
}

.service-card {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 2px 2px 10px rgb(20 120 20 / 32%);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 80, 0, 0.15);
}

.service-card__photo {
  width: 100%;
  aspect-ratio: 1.53 / 1;
  overflow: hidden;
  background: #eee;
}

.service-card__photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.service-card__body {
  padding: 10px 20px 0;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-card__number {
  width: 28px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 17px;
  font-weight: 900;
  padding-bottom: 1px;
}

.service-card__small-title {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(17px, 1.45vw, 25px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  font-family: "Noto Sans JP", sans-serif;
}

.service-card__name {
  margin: 0;
  text-align: center;
  color: var(--green-dark);
  font-size: clamp(30px, 3.6vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  font-family: "Noto Sans JP", sans-serif;
}

.service-card__type {
  margin: 9px 0 12px;
  padding: 7px 7px 8px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(90deg, #58b723, #31a31f);
  text-align: center;
  font-size: clamp(16px, 1.2vw, 21px);
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.service-card__desc {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #111;
}

.service-card__desc p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01rem;
  line-height: 1.65;
  font-family: "Yu Gothic", sans-serif;
}

.service-card__icon {
  flex: 0 0 50px;
  width: 50px;
  aspect-ratio: 1/1;
  color: #39a424;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==============================
   下部
============================== */

.care-fv__bottom {
  width: 100%;
  background: #14871b;
  padding: 25px 20px 30px;
}

.care-fv-bottom-box {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1560px;
  width: 100%;
  margin: auto;
  position: relative;
}

.care-fv__bottom-message {
  flex: 0 0 31%;
  font-weight: 900;
  line-height: 1.2;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.care-fv__bottom-message strong {
  display: block;
  font-size: clamp(32px, 3.2vw, 53px);
}

.care-fv__bottom-message span {
  display: block;
  margin-top: 4px;
  color: var(--yellow);
  font-size: clamp(20px, 2.4vw, 39px);
  white-space: nowrap;
}

.care-fv__features {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 15px;
  border-radius: 17px;
  background: #fff;
  color: #08651a;
}

.feature-item {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 2px 18px;
  border-right: 2px solid rgba(0, 110, 20, 0.7);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item__icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #58b723;
  font-size: 40px;
}

.feature-item__icon svg {
  width: 100%;
  height: 100%;
  fill: #58b723;
}

.feature-item__icon--heart {
  line-height: 1;
  font-size: 50px;
}

.feature-item p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 900;
  line-height: 1.45;
  white-space: nowrap;
  font-family: "Yu Gothic", sans-serif;
}

.care-fv__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 2px 0 16px;
  background: #0a7714;
}

.care-fv__dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.care-fv__dots i.is-active {
  background: #fff;
}

/* ==============================
   1560px以下
============================== */
@media (max-width: 1560px) {
  .service-card__body {
    padding: 15px;
  }

  .service-card__icon {
    flex: 0 0 40px;
    width: 40px;
  }

  .care-fv-bottom-box {
    gap: 0px;
  }
}

/* ==============================
   1300px以下
============================== */
@media (max-width: 1300px) {
  .care-fv__top {
    margin-top: 50px;
  }

  .care-fv__eyebrow {
    width: 450px;
  }

  .care-fv__headline h1 span {
    font-size: clamp(24px, 4vw, 50px);
  }

  .care-fv__headline h1 strong {
    font-size: min(5vw, 70px);
  }

  .service-card__desc p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .service-card__body {
    min-height: auto;
  }

  .service-card__icon {
    flex: 0 0 30px;
    width: 30px;
  }

  .care-fv__track {
    gap: 10px;
  }

  .care-fv__slider::after {
    display: none;
  }

  .feature-item {
    min-height: inherit;
    gap: 10px;
    padding: 2px 10px;
  }

  .care-fv__bottom {
    gap: 20px;
    padding: 20px;
  }
}

/* ==============================
   1000px未満：
   右から左へ自動スライド
============================== */

@media (max-width: 1150px) {
  .care-fv {
    background: #fff;
  }

  .care-fv__headline {
    width: 100%;
  }

  /*
  .care-fv__eyebrow {
    width: min(640px, 92%);
    font-size: clamp(15px, 3.1vw, 24px);
  }
*/

  .care-fv__slider {
    padding: 0;
  }

  .care-fv__track {
    width: max-content;
    margin: 0;
    display: flex;
    gap: 12px;
    will-change: transform;
    padding-bottom: 20px;
  }

  .service-card {
    flex: 0 0 clamp(310px, 72vw, 360px);
    overflow: auto;
  }

  .care-fv__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .care-fv__bottom-message {
    text-align: center;
  }

  .care-fv__dots {
    display: none;
  }
}

@media (max-width: 1000px) {
  .care-fv__top {
    margin-top: 70px;
  }

  .care-fv__eyebrow {
    width: fit-content;
    font-size: min(2vw, 1.5rem);
    padding: 5px 20px;
  }

  .care-fv-bottom-box {
    gap: 20px;
    grid-template-columns: 1fr;
    display: grid;
    margin: 30px auto;
  }

  .care-fv__features {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 450px;
    margin: auto;
    width: 100%;
  }

  .feature-item {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 110, 20, 0.25);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .care-fv__headline-line {
    transform: skewX(-18deg) rotate(0.25deg);
  }
}

@media (min-width: 601px) {
  .care-fv__headline-sp {
    display: none;
  }
}
@media (max-width: 600px) {
  .care-fv__top {
    padding-left: 12px;
    padding-right: 12px;
  }

  .care-fv__headline h1 strong {
    font-size: min(6.5vw, 70px);
  }

  .service-card {
    flex-basis: 84vw;
  }

  .service-card__body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .service-card__desc {
    gap: 10px;
  }

  .service-card__icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .hero-dec-left,
  .hero-dec-right {
    background-repeat: no-repeat;
    background-size: contain;
    width: 35vw;
    height: 100vh;
    background-position: center;
  }

  .care-fv__eyebrow {
    font-size: max(3.75vw, 0.85rem);
  }

  .care-fv__headline-line {
    transform: skewX(-18deg) rotate(0.65deg);
  }

  .care-fv__headline {
    display: none;
  }

  .care-fv__headline-sp {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: auto;
  }

  .care-fv__headline-sp img {
    width: 100%;
  }
}

/* PC：オープニング後、カードを1枚ずつ下から上へ表示 */
@media (min-width: 1151px) {
  .care-fv__track:not(.is-show) > .service-card {
    opacity: 0;
  }

  .care-fv__track.is-show > .service-card {
    /* backwards：終了後はアニメーションを外し、hover時のtransformを有効にする */
    animation: careFvCardUp 1s ease-out backwards;
  }

  .care-fv__track.is-show > .service-card:nth-child(2) {
    animation-delay: 0.3s;
  }

  .care-fv__track.is-show > .service-card:nth-child(3) {
    animation-delay: 0.6s;
  }

  .care-fv__track.is-show > .service-card:nth-child(4) {
    animation-delay: 0.9s;
  }
}

@keyframes careFvCardUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }

  .care-fv__track.is-show > .service-card {
    animation: none;
  }
}
