/* 2026-07-24 fixed CTA and mobile Google-rating adjustments */

.google-rating-badge {
  display: none;
}

/* 創業融資解説動画：サムネイルと中央再生ボタン */
.p-finance-video-embed {
  position: relative;
}

.p-finance-video-embed__thumbnail {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.p-finance-video-embed__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.p-finance-video-embed.has-started .p-finance-video-embed__thumbnail {
  opacity: 0;
  pointer-events: none;
}

.p-finance-video-embed.has-started .p-finance-video-embed__video {
  opacity: 1;
}

.p-finance-video-embed__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0 0 0 6px;
  border: 0;
  border-radius: 50%;
  color: #0f1d42;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.p-finance-video-embed__play:hover,
.p-finance-video-embed__play:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.p-finance-video-embed__play:focus-visible {
  outline: 3px solid #194196;
  outline-offset: 4px;
}

.p-finance-video-embed.is-playing .p-finance-video-embed__play {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media screen and (min-width: 769px) {
  body {
    padding-bottom: 0;
  }

  .c-cta--fixed-sp {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .p-finance-video-embed__play {
    width: 72px;
    height: 72px;
    padding-left: 5px;
  }

  .p-finance-video-embed__play svg {
    width: 38px;
    height: 38px;
  }

  .google-rating-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 6px;
    margin: 24px 0 12px;
    padding: 12px 10px;
    border: 1px solid #d9dde5;
    border-radius: 8px;
    background: #ffffff;
    color: #0f1d42;
    box-shadow: 0 3px 10px rgba(15, 29, 66, 0.08);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .google-rating-badge__label {
    font-weight: 700;
  }

  .google-rating-badge__stars {
    color: #f5a623;
    letter-spacing: 1px;
  }

  .google-rating-badge strong {
    color: #194196;
    font-size: 18px;
  }
}
