
/* ========================================
  HERO
======================================== */

/* PC */
.hero {
  position: relative;
  padding-top: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-hero-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/fv/fv-bg.webp');
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../assets/fv/fv-overlay-pc.webp');
  background-size: 250px 250px;
  background-repeat: repeat;
  background-position: 50%;
  background-color: rgba(32, 30, 30, 0.7);
  mix-blend-mode: normal;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
  max-width: 100%;
}

.hero-inner {
  z-index: 10;
  max-width: var(--max-w-6xl);
  margin-inline: auto;
  padding: 4rem 0.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0);
  width: 1100px;
  height: 100%;
  justify-content: center;
  position: relative;
  max-width: 100%;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* カバー効果: 16:9アスペクト比を維持しつつ上下左右を埋める */
  width: 177.78vh;   /* height基準で16:9を確保 */
  height: 56.25vw;   /* width基準で16:9を確保 */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

.hero-content {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.hero-title {
  font-size: 3.875rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 5px 5px 20px rgba(32, 30, 30, 0.7);
}

.hero-logo {
  height: 5rem;
  margin: 0 0 1rem;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-xl);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-shadow: 5px 5px 20px rgba(0, 0, 0, 0.7);
}

.hero-btns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: none;
  margin: 0;
}

.hero-btns .btn {
  width: auto;
  min-width: 13rem;
}

.hero-character {
    position: absolute;
    right: 2.25rem;
    bottom: 4.5rem;
    width: 30rem;
    box-shadow: 0 3.363px 11.209px 0 rgba(0, 0, 0, 0.25), 0 -4.484px 6.726px 0 rgba(65, 47, 14, 0.30) inset;
    z-index: 10;
    transition: all .2s cubic-bezier(.175,.885,.32,1.275);
}

.hero-character:hover {
  opacity: .8;
  transform: translateY(-3px);
}

.hero-character img {
  width: 100%;
}

/* タブレット */
@media (max-width: 1023px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 768px;
  }
  .hero-title {
    font-size: 3.75rem;
  }

  .hero-btns {
    flex-direction: column;
    max-width: 25rem;
    margin-top: 6.25rem;
    padding: 0 3.75rem;
  }
  .hero-character {
    right: 2.5rem;
    bottom: 6rem;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .hero {
    padding: 0;
  }
  .hero-inner {
    padding: 0 1.25rem;
  }
  .hero-content {
    margin-inline: auto;
    text-align: start;
  }

  .hero-title {
    font-size: 1.875rem;
    margin-bottom: 0;
  }

  .hero-logo {
    width: 330px;
    height: auto;
    margin: 0 0 1rem -1.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
    line-height: 1.3;
  }

  .hero-btns {
    align-items: center;
    margin-inline: auto;
    margin-top: 6vh;
  }

  .hero-character {
    width: 80%;
    right: 0;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%);
  }
}

@media (max-width: 639px) {
  .hero-btns .btn {
    width: 100%;
    min-width: unset;
  }
}

/* ========================================
   NEWS
======================================== */

/* PC */
.news {
  padding: 5rem 7vw ;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.news-inner {
  text-align: center;
  max-width: 46.42925rem;
  width: 100%;
  transition: opacity 0.3s ease;
}
.news-inner:hover {
  opacity: 0.8;
}
.news-banner {
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.news-banner:hover {
  opacity: 0.8;
}

/* スマホ */
@media (max-width: 767px) {
  .news {
    padding: 4rem 1.25rem;
  }
  .news-inner {
    padding: 0 1.25rem;
  }
}

/* ========================================
   PROBLEMS
======================================== */

/* PC */
.problems {
  background-color: var(--color-section-gray);
}

.problems-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}

.problems-grid {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
  margin-top: 4.5rem;
}

.problems-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-inline: auto;
}

.problems-grid .problems-row:nth-child(2) {
  display: flex;
  justify-content: center;
}
.problems-row--center {
  display: flex;
  justify-content: center;
}

.problems-row--center .problem-card {
  width: 100%;
  max-width: calc(50% - 0.5rem);
}

.problem-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-border);
  text-align: center;
  width: 330px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  gap: 5px;
}

.problem-card-icon {
  width: 1.563rem;
  height: 1.563rem;
  margin-bottom: 0.25rem;
}
.problem-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.problem-card-text {
  font-size: var(--font-size-md);
  font-weight: 400;
  line-height: 1.4;
}

.problems-solution {
  margin: 7rem auto 2.5rem;
}

.problems-solution-line {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  letter-spacing: 0.05rem;
}

.problems-solution-line u {
  text-decoration: underline;
  text-decoration-color: rgba(200, 33, 29, 0.8);
  text-decoration-thickness: 6px;
  text-underline-offset: 6px;
}

.problems-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 450px;
  margin-inline: auto;
  margin-top: 3.25rem;
}

.problems-logo-img {
  max-width: 100%;
  height: auto;
}

.problems-video {
  border-radius: var(--radius-xl);
  overflow: hidden;
  max-width: 42rem;
  margin-inline: auto;
  background-color: var(--color-section-dark);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  width: auto;
}

.problems-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media screen and (max-width: 1200px) {
  .problems-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 42.5rem;
    margin-inline: auto;
    width: 100%;
    justify-items: center;
  }
  .problems-row .problem-card:nth-child(3) {
    width: 330px;
    grid-column: 1 / 3;
    margin: 0 auto;
  }
  .problems-row:nth-child(2) .problem-card {
    width: 330px;
  }
}
/* スマホ */
@media screen and (max-width: 768px) {
  .problems-inner {
    padding: 0 1.25rem;
  }
  .problems-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .problems-row .problem-card {
    width: 100%;
    max-width: 330px;
  }

  .problems-row .problem-card:nth-child(3),
  .problems-row:nth-child(2) .problem-card {
    width: 100%;
    max-width: 330px;
    grid-column: 1 / 1;
    margin: 0 auto;
  }

  .problems-logo {
    width: 300px;
  }

  .problems-logo-img {
    max-width: 100%;
  }

  .problems-video {
    width: 100%;
    height: auto;
  }

  .problems-solution-line {
    font-size: 1.5rem;
  }
  .problems-grid .problems-row:nth-child(2) {
    flex-direction: column;
  }
  .problems-solution-line u {
    font-size: 1.5rem;
  }
  .problems-solution-line {
    font-size: 1rem;
  }
}


/* ========================================
  FEATURES
======================================== */

/* PC */
.features {
  background-color: #fff;
}

.features-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding-inline: 0;
}

.features-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 4.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-inline: auto;
  width: 100%;
}

/* PC以上で3枚目を表示 */
.features-grid .feature-card:nth-child(3) {
  display: flex;
}

/* PC以上では中央配置グループを非表示 */
.features-grid-center {
  display: none;
  justify-content: center;
}

.features-grid-center .feature-card {
  width: 100%;
  max-width: calc(50% - 0.75rem);
}

.feature-card {
  background-color: var(--color-card);
  border-radius: 0.5rem;
  padding: 2.2rem 2.5rem 2.5rem;
  padding-bottom: 1.875rem;
  text-align: center;
  border: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
}

.feature-card-title {
  font-weight: 700;
  font-size: var(--font-size-3xl);
  white-space: pre-line;
  line-height: 1.3;
}

.feature-card-divider {
  width: 3.5rem;
  border-top: 5px solid var(--color-accent);
  margin: 1rem auto 1.25rem;
}

.feature-card-desc {
  font-size: var(--font-size-md);
  line-height: 1.4;
  text-align: left;
}

.feature-card-image {
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
  scale: 1.1;
}

/* タブレット */
@media (max-width: 1023px) {
  .features-inner {
    padding: 0 5vw;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .features-grid .feature-card:nth-child(3) {
    display: none;
  }

  .features-grid-center {
    display: flex;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .features-inner {
    padding: 0 1.25rem;
  }

  .feature-card-title {
    font-size: 1.5rem;
  }
  .feature-card-desc {
    font-size: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-grid-wrapper {
    margin-top: 3.125rem;
  }
  .features-grid-center .feature-card {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   REASONS
======================================== */

/* PC */
.reasons {
  background-color: var(--color-background);
}

.reasons-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding-inline: 0.5rem;
}

.reasons-list {
  display: flex;
  flex-direction: column;
  gap: 6.25rem;
  margin-top: 4.25rem;
}

.reason-item {
  display: flex;
  flex-direction: row;
  gap: 2.75rem;
  align-items: center;
}

.reason-item--reverse {
  flex-direction: row-reverse;
}

.reason-item-text {
  width: 40%;
  text-align: left;
}

.reason-item-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}

.reason-item-num {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;

}

.reason-item-title {
  font-size: 2.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  white-space: pre-line;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.reason-item-desc {
  font-size: 1.125rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
}

.reason-item-media {
  width: 60%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reason-item-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.reason-item-media-placeholder {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

/* タブレット */
@media (max-width: 1023px) {
  .reasons-inner {
    padding: 0 10vw;
  }
  .reason-item {
    flex-direction: column;
    gap: 1.5rem;
  }

  .reason-item--reverse {
    flex-direction: column;
  }

  .reason-item-text {
    width: 100%;
  }

  .reason-item-media {
    width: 100%;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .reasons-inner {
    padding: 0 1.25rem;
  }

  .reason-item-text {
    text-align: center;
  }

  .reason-item-label {
    display: none;
  }
  .reasons-list  {
    margin-top: 3.125rem;
  }
  .reason-item-num {
    font-size: 3rem;
  }

  .reason-item-title {
    font-size: 1.5rem;
  }
  .reason-item-desc {
    font-size: 1rem;
    text-align: start;
  }

}

/* ========================================
   MERIT
======================================== */

/* PC */
.merit {
  background-color: var(--color-section-gray);
}

.merit-inner {
  max-width: var(--max-w-5xl);
  margin-inline: auto;
  padding-inline: 1rem;
}

.merit-intro {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 4.15rem auto 0;
}

.merit-table-wrap {
  max-width: var(--max-w-3xl);
  margin-inline: auto;
  margin: 2.5rem auto 2rem;
}

.merit-table-placeholder {
  /* background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1rem; */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18.75rem;
  /* border: 1px solid var(--color-border); */
}

.merit-table-placeholder p {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}


@media screen and (max-width: 1024px) {
  .merit-inner {
    padding: 0 10vw;
  }
  .merit-intro {
    font-size: 1.125rem;
  }
  .summary-block {
    flex-direction: column;
    align-items: center;
    gap: 1.875rem;
    margin-top: 2.5rem;
  }
  .summary-block-text {
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
  }
}
/* スマホ */
@media (max-width: 767px) {
  .merit-inner {
    padding: 0 1.25rem;
  }
  .merit-intro {
    font-size: 1rem;
    margin-top: 3.125rem;
    line-height: 25px;
  }
  .merit-table-placeholder {
    flex-direction: column;
    gap: 2.5rem;
  }
  .merit-table-placeholder img {
    width: 100%;
  }
  .summary-block-text {
    font-size: 1rem;
  }
}
/* ========================================
   COST
======================================== */

/* PC */
.cost {
  background-color: var(--color-background);
}

.cost-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}

.cost-chart-wrap {
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.cost-chart-placeholder {
  width: 750px;
  min-height: 21.875rem;
  margin: 5rem auto 2.5rem;
}

.cost-chart-img {
  width: 100%;
  height: auto;
}

.cost-desc {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-top: 5rem;
}

.cost-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 2rem auto 2.5rem;
}

.cost-circle {
  width: 180px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cost-circle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 1024px) {
  .cost-inner {
    padding: 0 10vw;
  }
  .cost-chart-placeholder {
    width: 100%;
    min-height: 18.75rem;
    margin: 2.5rem auto 2.5rem;
  }
  .cost-chart-wrap {
    margin-bottom: 5rem;
  }
}
/* スマホ */
@media (max-width: 767px) {
  .cost-inner {
    padding: 0 1.25rem;
  }
  .cost-desc {
    font-size: 0.875rem;
  }

  .cost-circles {
    flex-direction: column;
    gap: 1rem;
  }

  .cost-circle {
    width: 180px;
  }

  .cost-circle-title {
    font-size: 0.75rem;
  }

  .cost-circle-item {
    font-size: 0.625rem;
  }

}

/* ========================================
  CTA
======================================== */

/* PC */
.cta,
.top-contact-form-section {
  padding-top: 7.5rem;
  padding-bottom: 0;
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.top-contact-form-section {
  scroll-padding-top: calc(7.5rem + 5rem); /* セクションの高さ + ヘッダーの高さ */
}

.cta-inner,
.top-contact-form-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding:1rem 0 ;
  text-align: center;
  padding-bottom: 7.5rem;
}

.cta-title,
.top-contact-form-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: 3.75rem;
  max-width: var(--max-w-3xl);
  margin: 2.5rem auto;
}

.top-contact-form {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 4rem 3.5rem;
  max-width: 1024px;
  margin: 2.5rem auto 3rem;
  text-align: left;
}

.cta-card {
  background-color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-foreground);
}

.cta-card-icon {
  width: 3rem;
  height: auto;
  color: var(--color-primary);
}
.cta-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.25rem;
}
.cta-cards .cta-card:nth-child(1) .cta-card-title {
  margin-top: 1.4rem;
}
.cta-card-desc {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
  margin: 0.75rem 0 1.875rem;
  text-align: left;
}

.anzek-wrapper {
  position: relative;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anzek-bubble {
  display: flex;
width: 31rem;
background-size: cover;
background-repeat: no-repeat;
height: 4.3rem;
  justify-content: center;
align-items: center;
position: relative;
border: 2px solid #fff;
border-radius: 8px;
padding: 0.75rem 1.5rem;
z-index: 10;
}

.anzek-bubble p {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

/* 吹き出し口（SP: 中央） - PCでは非表示 */
.cta-balloon-tail,
.top-contact-form-balloon-tail {
  display: none;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 26px;
  z-index: 1;
}

/* 吹き出し口（PC: 右寄せ） */
.cta-balloon-tail--pc,
.top-contact-form-balloon-tail--pc {
  display: block;
  position: absolute;
  bottom: -16px;
  right: 125px;
  width: 31px;
  height: 16px;
  z-index: 1;
}

.anzek-appear-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  
  opacity: 1;
  transform: translateY(100%);
  margin-top: -12.5rem;
}

.cta-character-img.is-visible {
  animation: bounce-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


.anzek-appear {
position: absolute;
left: 50%;
transform: translateX(-50%) translateY(400px);
opacity: 0;
transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
width: 240px;
height: auto;
display: flex;
justify-content: center;
z-index: 20;
}

.anzek-wrapper.active .anzek-appear {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    bottom: -13.5rem;
}

@keyframes superballBounce {

0% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}

10% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}
20% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}
35% {
    transform: translateX(-50%) scale(1.1, 0.9) translateY(150px);
}
40% {
    transform: translateX(-50%) scale(1.15, 0.9) translateY(150px);
}
50% {
    transform: translateX(-50%) scale(0.95, 1.08);
}
60% {
    transform: translateX(-50%) scale(1.05, 0.95) translateY(-60px);
}
70% {
    transform: translateX(-50%) scale(0.98, 1.02) translateY(5px);
}
80% {
    transform: translateX(-50%) scale(1.08, 0.9) translateY(15px);
}
95% {
    transform: translateX(-50%) scale(1, 1) translateY(0);
}
100% {
    transform: translateX(-50%) scale(1, 1) translateY(0);
}
}
@media screen and (max-width: 1024px) {
  .cta-cards {
    gap: 1.25rem;
  }
  /* .cta-card {
    width: 250px;
  } */
  .cta-inner,
.top-contact-form-inner {
  padding:1rem 7vw;
  margin-bottom: 7.5rem;
}

}
/* スマホ */
@media (max-width: 767px) {
  .cta,
  .top-contact-form-section {
    padding-top: 4rem;
  }

  .cta-title,
  .top-contact-form-title {
    font-size: 1.75rem;
  }

  .cta-cards {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    width: 100%;
    padding: 40px 16px 32px 16px;
  }
  .cta-balloon p {
    font-size: 0.875rem;
  }

  .cta-balloon-tail,
  .top-contact-form-balloon-tail {
    display: block;
    left: 68%;
    bottom: -22.5px;
    width: 37px;
  }

  .cta-balloon-tail--pc,
  .top-contact-form-balloon-tail--pc {
    display: none;
  }

  .cta-character-wrap {
    height: 10rem;
  }

  .cta-character-img {
    width: 10rem;
  }
  .anzek-bubble {
    width: 90%;
    padding: 2.5rem 1rem;
    border: 1px solid #fff;
  }

  .top-contact-form-inner {
    padding-inline: 1.25rem;
  }

  .top-contact-form {
    padding: 1.5rem 1.25rem 3rem;
  }
}

/* ========================================
   CASES
======================================== */

/* PC */
.cases {
  background-color: var(--color-background);
}

.cases-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding-inline: 1rem;
}

.cases-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.cases-title-icon {
  position: relative;
  width: 120px;
  height: 110px;
  overflow: hidden;
}

.cases-title-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 9rem;
}

.cases-title-icon--left::before {
  background-image: url('../assets/case/factory-emp.webp');
}

.cases-title-icon--right::before {
  background-image: url('../assets/case/factory-emp-lady.webp');
}

.cases-title-group {
  text-align: center;
  margin-bottom: 0;
}

.cases-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 5rem;
  margin-bottom: 3.5rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  max-width: none;
  margin-inline: auto;
  width: 100%;
}

/* PC以上では3枚目を表示 */
.cases-grid .case-card:nth-child(3) {
  display: flex;
}

/* PC以上では中央配置グループを非表示 */
.cases-grid-center {
  display: none;
  justify-content: center;
}

.cases-grid-center .case-card {
  width: 100%;
  max-width: calc(50% - 0.75rem);
}

.case-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.case-card-bar {
  height: 1rem;
  background-color: var(--color-primary);
  width: 100%;
  flex-shrink: 0;
}

.case-card-body {
  padding: 2.5rem 1.875rem 1.875rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: rgba(241, 243, 244, 0.57);
}

.case-card-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  line-height: 2rem;
}

.case-card-desc {
  font-size: 1.125rem;
  color: var(--black);
  line-height: 1.4;
  flex: 1;
  letter-spacing: 0.02em;
}

.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.9375rem;
}

.case-card-company {
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-card-avatar {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-primary);
}

/* タブレット */
@media (max-width: 1023px) {
  .cases-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 42rem;
  }

  .cases-grid .case-card:nth-child(3) {
    display: none;
  }

  .cases-grid-center {
    display: flex;
  }
  .cases-grid-center .case-card {
    width: 100%;
    max-width: calc(50% - 4.25rem);
  }
  
}

/* スマホ */
@media (max-width: 767px) {
  .cases-inner {
    padding: 0 1.25rem;
  }
  .case-card-title {
    font-size: 1.5rem;
  }

  .case-card-desc {
    font-size: 1rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
  .cases-title-wrap {
    gap: 1.5rem;
    align-items: flex-end;
  }
  .cases-title-icon {
    width: 60px;
    height: 75px;
  }
  .cases-title-icon::before {
    height: 7rem;
  }
  .cases-grid-center .case-card {
    width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   FLOW
======================================== */

/* === FLOW section === */

.flow-section {
  margin: 0 auto;
  font-family: var(--font-ja);
  color: var(--flow-dark);
  background: var(--color-section-gray);
}
.flow-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding: 120px 24px;
}

.flow-title {
  text-align: center;
  margin-bottom: 48px;
}
.flow-title h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--flow-dark);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.flow-title p {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--flow-red);
  letter-spacing: 0.2em;
}

.steps {
  display: grid;
  grid-template-columns: 46px max-content;
  column-gap: 2.5rem;
  row-gap: 16px;
  justify-content: center;
  margin-top: 5rem;
}

.step-row {
  display: contents;
}

/* vertical line per row, hidden on the last one */
.step-row .step-num::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: -16px;
  width: 2px;
  background: var(--flow-red);
  opacity: 0.2;
  z-index: 0;
}
.step-row:first-child .step-num::before { top: 50%; }
.step-row:nth-last-child(2) .step-num::before { bottom: -59px; }
.step-row:last-child .step-num::before { display: none; }

.step-num {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-num-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-num-circle.dark { background: var(--flow-dark); }
.step-num-circle .step-label {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 0.065rem;
}
.step-num-circle .step-number {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.075rem;
}
.step-row:nth-child(4) .step-number {
  letter-spacing: 0.1rem;
}
.step-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 68px 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-card .step-body {
  flex: 1;
}

.step-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg { width: 48px; height: 48px; }

.step-body { flex: 1; }
.step-title {
  font-weight: 700;
  color: var(--flow-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.step-title .block {
  display: block;
  font-size: 18px;
}
.step-desc {
  font-size: 16px;
  color: #000;
  line-height: 1.75;
  margin: 0;
}
.step-note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  line-height: 1.6;
}

/* Tablet */
@media (max-width: 1023px) {
  .flow-section { max-width: none; padding: 48px 7vw; }
  .steps {
    grid-template-columns: 46px 1fr;
    column-gap: 1.5rem;
  }
  .step-card { padding: 18px 74px 18px 22px; }
}

/* SP */
@media (max-width: 767px) {
  .flow-section { 
    max-width: none; padding: 40px 24px; 
  }
  .flow-inner { 
    padding: 40px 0; 
  }
  .flow-title { 
    margin-bottom: 32px; 
  }
  .flow-title h2 { 
    font-size: 22px; 
  }
  .steps {
    grid-template-columns: 40px 1fr;
    column-gap: 1rem;
    row-gap: 12px;
  }
  .step-num {
    width: 40px;
    justify-content: center;
  }
  .step-num-circle { 
    width: 46px; 
    height: 46px; 
  }
  .step-row .step-num::before { 
    left: 19px; 
    bottom: -12px;
  }
  .step-row:first-child .step-num::before {
    top: 50%;
  }
  .step-row:nth-last-child(2) .step-num::before { 
    bottom: -48px; 
  }
  .step-icon {
    display: none;
  }
  .step-icon svg { width: 36px; height: 36px; }
  .step-card {
    padding: 16px 18px;
    gap: 1rem;
  }
  .step-title .block { font-size: 16px; }
  .step-desc { font-size: 14px; }

  .step-num-circle .step-number {
    font-size: 18px;
    margin-left: 0.065rem;
  }
  .step-num-circle .step-label {
    font-size: 10px;
    margin-top: 0.125rem;
    margin-left: 0.065rem;
  }
}

/* ========================================
  PRICING
======================================== */

/* PC */
.pricing {
  background-color: var(--color-primary-foreground);
}

.pricing-inner {
  max-width: var(--max-w-1100);
  margin-inline: auto;
  padding-inline: 1rem;
  text-align: center;
}

.pricing-desc {
  font-size: 1.125rem;
  line-height: 25px;
  color: var(--color-foreground);
  margin-top: 4.3rem;
}

.pricing-image-wrap {
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.pricing-image-placeholder {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  width: 300px;
  margin-top: 0.875rem;
}

.pricing-cta-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid var(--color-primary);
  transition: var(--transition-colors);
  margin-bottom: 1.5rem;
}

.pricing-cta-btn:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
}

.pricing-table-wrap {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.pricing-table-placeholder {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0 1rem;
}

.pricing-divider--bottom {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.pricing-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3.75rem auto;
}

.pricing-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-sample-badge {
  display: inline-block;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.625rem 2.5rem;
  border-radius: 4px;
  background-color: var(--color-primary);
}

.pricing-sample-badge--alt {
  background-color:  #d84f4e;
}

.pricing-sample-video {
  border-radius: 8px;
  width: 100%;
  height: 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 1.25rem;
}

.pricing-sample-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pricing-sample-video p {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.pricing-sample-note {
  font-size: 1rem;
  color: var(--vlack);
  margin-top: 0.75rem;
  align-self: flex-end;
}

/* タブレット */
@media (max-width: 1023px) {
  .pricing-inner {
    padding: 0 10vw;
  }
  .pricing-samples {
    grid-template-columns: 1fr;
  }
  .pricing-desc {
    font-size: 1.125rem;
    margin-top: 3.125rem;
  }
  .pricing-cta-btn {
    font-size: 0.875rem;
  }
  .pricing-samples {
    justify-items: center;
  }
  .pricing-sample {
    width: 500px;
  }
  .pricing-sample-badge {
    width: 100%;
  }
  .pricing-table-placeholder {
    padding: 0;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .pricing-inner {
    padding: 0 1.25rem;
  }
  .pricing-desc {
    font-size: 1rem;
  }

  .pricing-cta-btn {
    font-size: 0.875rem;
  }

  .pricing-sample {
    width: 100%;
  }

  .pricing-sample-video {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .pricing-sample-badge {
    width: 100%;
    box-sizing: border-box;
  }
  .pricing-image-placeholder {
    width: 220px;
  }
  .pricing-image-wrap {
    margin-bottom: 1.25rem;
  }
}

/* ========================================
  FLOATING BUTTON & POPUP
======================================== */

.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 300px;
}

.floating-btn .outline {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 3rem;
  padding: 0.75rem 1.5rem 0.75rem 1.5rem;
  box-shadow:0 3.363px 11.209px 0 rgba(0, 0, 0, 0.25), 0 -4.484px 6.726px 0 rgba(65, 47, 14, 0.30) inset;
  border: 2px solid #fff;
  transition: all .2s cubic-bezier(.175,.885,.32,1.275);
}

.floating-btn:hover .outline {
  transform: translateY(-3px);
  opacity: 0.8;
}

.floating-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.floating-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.floating-btn-sub {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #fff;
}

.floating-btn-main {
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.5;
  color: #fff;
}

.floating-btn-cta {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #fff;
  font-weight: 500;
  margin-top: 0.15rem;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.popup-container {
  position: fixed;
  top: 4%;
  right: 0;
  transform: translateX(100%);
  z-index: 201;
  height: auto;
  overflow-y: auto;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  /* padding: 2rem; */
}

.popup-container.is-visible {
  transform: translate(0%, 0%) scale(1);
  visibility: visible;
}

.popup-card {
  background: #fff;
  border-radius: 1rem 0 0 1rem;
  overflow: hidden;
  position: relative;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close-btn {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
  line-height: 1;
  color: #fff;
}

.popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.popup-header {
  background: #fff;
  color: #000;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.contact-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 0.875rem;
}

.ttl_txt {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.ttl_underline {
  width: 3rem;
  height: 5px;
  background: var(--color-primary);
  margin:0 auto 0.75rem;

}

.contact_detail {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #000;
}

.contact_detail .bold {
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.popup-body {
  padding: 2rem 4rem 4rem;
}

/* SP */
@media (max-width: 767px) {
  .floating-btn {
    bottom: 1rem;
    right: 1rem;
    width: 215px;
  }

  .floating-btn .outline {
    padding: 0.625rem 1rem 0.625rem 1rem;
    gap: 0.75rem;
    border-radius: 2.5rem;
  }

  .floating-btn-icon {
    width: 2rem;
    height: 2rem;
  }

  .floating-btn-main {
    font-size: 0.875rem;
  }

  .floating-btn-sub,
  .floating-btn-cta {
    font-size: 0.625rem;
  }

  .popup-container {
    width: 100%;
  }

  .popup-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .popup-body {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .ttl_txt {
    font-size: 1.1rem;
  }
}
/* ============================
   Floating Popup check card
 ============================ */

/* ---------- 親ラッパー ---------- */
.service-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
	width:100%;
}
 
/* ---------- チェックボックス非表示 ---------- */
.service-card-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
 
/* ---------- カード1枚（label全体がクリック対象） ---------- */
.service-card-item {
  display: block;
  cursor: pointer;
}
 
.service-card-item > label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px 13px 13px;
  background: #ffffff;
  border: 1.5px solid #c0cad4;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
	height:100% !important;
}

.service-card-item.wpcf7-checkbox label {
	border:none;
	padding:none;
}

 
.service-card-item > label:hover {
  box-shadow: 0 2px 10px rgba(0, 119, 200, 0.10);
}

/* ---------- ポップアップフォームの調整 ---------- */

.service-card-item .wpcf7-list-item-label {
	font-size:0;
}
.service-card-item .wpcf7-list-item {
	display: none !important;
}
.popup-card .ttl_txt {
	font-size:1.6rem;
}

.popup-card .contact_detail {
	font-size: 1.1rem;
  color: #000;
}

.popup-card .contact-badge {
	font-size: 0.9rem;
	width: 8.4rem;
	padding: 0.15rem 0 0.25rem;
}
.popup-card .service-detail {
	text-align: left;
}
#popupContainer .form-group label {
  width: 100%;
}
#popupContainer .form-box {
  margin-top: 0;
}

/* ---------- トップページフォーム ---------- */
.top-contact-form-section .ttl_txt {
  font-size: 1.6rem;
}

.top-contact-form-section .contact_detail {
  font-size: 1.1rem;
  color: #000;
}

.top-contact-form-section .contact-badge {
  font-size: 0.9rem;
  width: 8.4rem;
  padding: 0.15rem 0 0.25rem;
}

.top-contact-form-section .service-detail {
  text-align: left;
}

.top-contact-form .form-group label {
  width: 100%;
}

.top-contact-form .form-box {
  margin-top: 0;
}

/* ---------- 選択中スタイル ---------- */
.service-card-item > label:has(input:checked) {
  background: color-mix(in srgb, var(--color-hero-bg) 10%, transparent);
  border-color: var(--color-hero-bg);
  box-shadow: 0 3px 14px rgba(77, 77, 77, 0.14);
}
 
/* ---------- 選択中チェックアイコン（右端） ---------- */
.service-card-item > label::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
 
.service-card-item > label:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
 
/* ---------- アイコンエリア ---------- */
.service-card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

}
 
 
.service-card-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
 
/* ---------- テキストエリア ---------- */
.service-card-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.4;
  padding-right: 30px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}
 
.service-card-label .card-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted-foreground);
  margin-top: 2px;
}

/* ---------- グリッド版（ポップアップ） ---------- */
.service-card-wrap--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card-wrap--grid .service-card-item label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.service-card-wrap--grid .service-card-item label::after {
  right: 10px;
  top: 20px;
  z-index: 1;
}
.service-card-wrap--grid .service-card-icon {
  flex-shrink: 0;
  width: 100%;
  height: 120px;
  border-radius: 0;
}

.service-card-wrap--grid .service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-card-wrap--grid .service-card-item:nth-child(1) .service-card-icon img {
  object-position: center;
}
.service-card-wrap--grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: 50% 27%;
}
.service-card-wrap--grid .service-card-label {
  padding: 10px 12px 12px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* ---------- グリッド版（トップページ） ---------- */
.service-card-wrap.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.service-card-wrap.grid .service-card-item label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.service-card-wrap.grid .service-card-item label:hover {
  border: none;
  box-shadow: none;
}

.service-card-wrap.grid .service-card-item label:has(input:checked) {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* オーバーレイ背景 */
.service-card-wrap.grid .service-card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-hero-bg) 65%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

/* 円形チェック＋選択中テキスト */
.service-card-wrap.grid .service-card-icon::before {
  content: '選択中';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  text-align: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='24' fill='white' fill-opacity='0.2' stroke='white' stroke-width='2'/%3E%3Cpolyline points='14 27 22 35 38 17' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center top / 48px 48px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-icon::after,
.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-icon::before {
  opacity: 1;
}

/* チェックインジケーター: 右上に四角アウトライン（未選択）→ 塗り（選択時） */
/* label::after は grid では無効化 */
.service-card-wrap.grid .service-card-item label::after {
  display: none;
}

/* チェックボックスを service-card-label の右横に配置 */
.service-card-wrap.grid .service-card-label {
  position: relative;
}

.service-card-wrap.grid .service-card-label::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #c0cad4;
  background-color: transparent;
  flex-shrink: 0;
}

.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-label::after {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* テキストエリアを上に */
.service-card-wrap.grid .service-card-label {
  order: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 40px 12px 0px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: 0.08rem;
  margin-top: 0.5rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.service-card-wrap.grid .service-card-label .card-sub {
  order: -1;
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.0175rem;
}

/* 画像エリアを中段に */
.service-card-wrap.grid .service-card-icon {
  order: 2;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 5 / 3;
}

.service-card-wrap.grid .service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-card-wrap.grid .service-card-item:nth-child(2) .service-card-icon img,
.service-card-wrap.grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: top;
}

/* 画像下テキスト */
.service-card-wrap.grid .service-card-desc {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 16px;
}

.service-card-wrap.grid .service-card-desc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.4;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.service-card-wrap.grid .service-card-desc-text {
  font-size: 0.78rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

@media (max-width: 1023px) {
  .service-card-wrap.grid {
    gap: 20px;
  }
  .service-card-wrap.grid .service-card-label {
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 10px 36px 10px 10px;
  }
  .service-card-wrap.grid .service-card-label .card-sub {
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 6px;
    min-height: calc(0.72rem * 1.5 * 2);
    display: flex;
    align-items: flex-end;
  }
  .service-card-wrap.grid .service-card-desc-title {
    font-size: 0.85rem;
  }
  .service-card-wrap.grid .service-card-desc-text {
    font-size: 0.72rem;
  }
}

@media (max-width: 767px) {
  .service-card-wrap.grid {
    grid-template-columns: 1fr;
  }
  .service-card-wrap.grid .service-card-label {
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 12px 40px 12px 12px;
  }
  .service-card-wrap.grid .service-card-label .card-sub {
    font-size: 0.75rem;
  }
  .service-card-wrap--grid {
    grid-template-columns: 1fr;
  }
  .service-card-wrap--grid .service-card-icon {
    height: 190px;
  }
  .service-card-wrap--grid .service-card-label {
    padding: 24px 12px 32px 12px;
  }
}