@charset "UTF-8";

/* ==========================================================================
   Webinar floating banner — vertical card (bottom-right)
   Colors: brand red CTA + safe green #0F7A5F accents（現行スタイル踏襲）
   ========================================================================== */

.c-webinar-float {
  --wf-red: #C92D26;
  --wf-red-dark: #C11111;
  --wf-red-light: #F55656;
  --wf-grad: linear-gradient(160deg, var(--wf-red-light) 0%, var(--wf-red-dark) 100%);
  --wf-safe: #0F7A5F;
  --wf-safe-tint: rgba(15, 122, 95, 0.08);
  --wf-ink: #1F1D1D;
  --wf-mute: #555;

  position: fixed;
  z-index: 10001;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(300px, calc(100vw - 32px));
  transform: translateY(12px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.c-webinar-float.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.c-webinar-float.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.c-webinar-float__close {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(15, 122, 95, 0.35);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.c-webinar-float__close::before,
.c-webinar-float__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--wf-safe);
}

.c-webinar-float__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-webinar-float__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.c-webinar-float__inner {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(31, 29, 29, 0.18);
}

/* --------------------------------------------------------------------------
   Head (white)
   -------------------------------------------------------------------------- */
.c-webinar-float__head {
  padding: 12px;
  text-align: center;
  background: #fff;
}

.c-webinar-float__label {
  margin: 0 0 10px;
  color: var(--wf-red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.c-webinar-float__title {
  margin: 0;
  color: var(--wf-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.c-webinar-float__subtitle {
  margin: 10px 0 0;
  color: var(--wf-mute);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Foot (brand gradient)
   -------------------------------------------------------------------------- */
.c-webinar-float__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 18px 18px;
  background: var(--wf-grad);
  text-align: center;
}

.c-webinar-float__datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.c-webinar-float__cal {
  display: inline-flex;
  color: #fff;
  flex-shrink: 0;
}

.c-webinar-float__weekday {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--wf-red);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.c-webinar-float__format {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 14px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: var(--wf-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.c-webinar-float__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--wf-red) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-webinar-float__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.c-webinar-float__cta-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wf-red);
  flex-shrink: 0;
}

.c-webinar-float__cta-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 5px;
  height: 5px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1023px) {
  .c-webinar-float {
    right: 16px;
    bottom: 16px;
    width: min(280px, calc(100% - 28px));
  }

  .c-webinar-float__head {
    padding: 18px 16px 14px;
  }

  .c-webinar-float__title {
    font-size: 15px;
  }

  .c-webinar-float__subtitle {
    font-size: 13px;
  }

  .c-webinar-float__foot {
    padding: 16px 14px 14px;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   SP — full-bleed bottom bar
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .c-webinar-float {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.2);
    }

  .c-webinar-float__close {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
  }

  .c-webinar-float__inner {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 0;
  }

  .c-webinar-float__head {
    padding: 12px 40px 10px 16px;
    text-align: left;
  }

  .c-webinar-float__label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .c-webinar-float__title {
    font-size: 14px;
    line-height: 1.4;
  }

  .c-webinar-float__title br {
    display: none;
  }

  .c-webinar-float__subtitle {
    display: none;
  }

  .c-webinar-float__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "datetime cta"
      "format cta";
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    min-width: 0;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .c-webinar-float__datetime {
    grid-area: datetime;
    justify-content: flex-start;
    min-width: 0;
    font-size: 13px;
    gap: 4px 6px;
  }

  .c-webinar-float__cal svg {
    width: 15px;
    height: 15px;
  }

  .c-webinar-float__weekday {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .c-webinar-float__format {
    grid-area: format;
    justify-self: start;
    padding: 3px 10px;
    font-size: 10px;
  }

  .c-webinar-float__cta {
    grid-area: cta;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    gap: 6px;
  }

  .c-webinar-float__cta-icon {
    width: 18px;
    height: 18px;
  }
}
