:root {
  --brand-main: #4069d4;
  --card-bg-light: rgba(255, 255, 255, 0.95);
  --card-gradient: linear-gradient(45deg, rgba(255, 255, 255, 0.1), var(--brand-main));
  --light-line: rgba(255, 255, 255, 0.6);
  --text-main: #222222;
  --text-sub: #444444;
}

.mv-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.mv-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* サービスセクション */
.service-section {
  background-color: #f8f8f8ec;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.service-header h2 {
  font-size: clamp(32px, 5vw, 55px);
  color: var(--brand-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  margin-bottom: 60px;
}

.service-lead p {
  font-size: 20px;
  margin: 0 auto 12px;
  max-width: 700px;
  color: var(--text-main);
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.1);
}

.service-lead .lead-highlight {
  display: inline-block;
  padding: 5px 30px;
  margin-top: 8px;
  background-color: var(--brand-main);
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
}

/* カード */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: 50px;
}

.card {
  background: var(--card-bg-light);
  border-radius: 12px;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  color: var(--text-main);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--light-line);
  transform: skewX(-45deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: scale(1.03);
  backdrop-filter: brightness(1.05);
}

.card .icon {
  height: 90px;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .icon img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--brand-main);
  margin-bottom: 20px;
  text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.15);
}

.card-lead {
  display: block;
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 16px);
  text-align: center;
  color: var(--text-main);
}

.card-desc {
  display: block;
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 15px);
  text-align: left;
  padding: 10px;
  line-height: 1.5;
  color: var(--text-sub);
}

/* ボタン */
.btn-more {
  display: inline-block;
  padding: 10px 24px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(45deg, var(--brand-main), #6bcfff);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.btn-more:hover {
  transform: scale(1.05);
}

.card .btn-more {
  display: block;
  width: calc(100% - 40px);
  margin: 20px auto 0 auto;
  padding: 14px 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: linear-gradient(45deg, var(--brand-main), #6bcfff);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card .btn-more:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(64, 100, 160, 0.4);
}

@keyframes gradientFlowLeft {
  0% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.price-button-wrapper {
  margin-top: 40px;
  text-align: center;
  max-width: 1550px;
  margin-left: auto;
  margin-right: auto;
}

.price-button {
  display: inline-block;
  background: #FFFFFF;
  text-decoration: none;
  border-radius: 50%;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.text-inner {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-main-btn,
.text-btn-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  text-align: center;
}

.text-btn-hover {
  color: #FFFFFF;
}

.price-button.expand .text-main-btn,
.price-button.expand .text-btn-hover {
  transition: font-size 0.6s ease-out, opacity 0.6s ease-out;
  opacity: 1;
}

/* アニメーション後のボタン形状 */
.price-button.expand {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  color: #3e3e3e;
  width: clamp(180px, 30vw, 240px);
  height: clamp(40px, 8vw, 55px);
  padding: clamp(10px, 2vw, 12px) clamp(24px, 5vw, 30px);
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  opacity: 1;
  box-shadow: 9px 9px 12px rgba(130, 180, 250, 1);
  transform: scale(1);
  letter-spacing: 0;
}

/* アニメーション光る */
.price-button.animating {
  animation: priceGradientFlow 1s ease forwards;
}

@keyframes priceGradientFlow {
  0% {
    box-shadow: 9px 9px 12px rgba(130, 180, 250, 1);
    filter: brightness(1);
  }

  50% {
    box-shadow: 9px 9px 16px rgba(130, 180, 250, 1);
    filter: brightness(1.2);
  }

  100% {
    box-shadow: 9px 9px 12px rgba(130, 180, 250, 1);
    filter: brightness(1);
  }
}

#hover_trigger {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
}


/* 1330px以下でカードを2枚ずつにする */
@media (max-width: 1330px) {
  .service-cards {
    gap: 40px;
  }

  .card {
    width: calc(50% - 20px);
    max-width: 400px;
    min-width: unset;
  }

  .price-button-wrapper {
    text-align: center;
  }
}

@media screen and (max-width: 1024px) {
  .service-section {
    padding: 0 20px 60px;
  }

  .service-header {
    padding-top: 30px;
  }

  .service-cards {
    gap: 50px;
  }

  .card {
    width: 45%;
    max-width: 350px;
    padding: 40px 24px;
  }

  .price-button-wrapper {
    text-align: center;
  }

  .price-button.expand {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .service-section {
    padding: 0 50px 50px;
  }

  .service-header {
    padding-top: 45px;
  }

  .service-header h2 {
    margin-bottom: 120px;
  }

  .service-lead p {
    margin: 1.0em auto;
    font-size: 20px;
  }

  .service-cards {
    gap: 30px;
  }

  .card {
    width: calc(50% - 20px);
    max-width: 340px;
    padding: 35px 20px;
  }

  .card .icon {
    margin-bottom: 30px;
  }

  .card h3 {
    margin-bottom: 25px;
  }

  .card-desc {
    margin-bottom: 30px;
  }

  .price-button-wrapper {
    margin-top: 40px;
  }

  .price-button.expand {
    font-size: 26px;
    white-space: nowrap;
    width: 240px;
    height: 55px;
  }
}

@media screen and (max-width: 480px) {
  .service-section {
    padding: 60px 15px 50px;
  }

  .service-header {
    padding-top: 0;
  }

  .service-header h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .service-lead p {
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
  }

  .service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px 10px;
    margin-top: 30px;
  }

  .card {
    width: calc(50% - 5px);
    min-width: unset;
    padding: 20px 10px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card .icon {
    height: 50px;
    margin-bottom: 15px;
  }

  .card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    min-height: unset;
  }

  .card-lead {
    font-size: 13px;
    margin-bottom: 10px;
    min-height: unset;
  }

  .card-desc {
    font-size: 12px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 15px;
    min-height: unset;
    text-align: center;
  }

  .card .btn-more {
    width: 100%;
    padding: 8px 0;
    font-size: 13px;
    margin-top: auto;
  }

  .price-button.expand {
    width: 200px;
    height: 48px;
  }

  .text-main-btn {
    font-size: 18px;
  }
}

@media screen and (max-width: 360px) {
  .card {
    width: 100%;
    max-width: 100%;
  }
}