.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  display: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 26, 26, 0.96);
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.cookie-notice.is-visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-notice__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cookie-notice__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-notice__text--short {
  display: none;
}

.cookie-notice__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__text a:hover {
  opacity: 0.85;
}

.cookie-notice__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.cookie-notice__link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cookie-notice__link:hover {
  color: #fff !important;
  opacity: 1;
}

.cookie-notice__btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.cookie-notice__btn:hover {
  background: #e8e8e8;
}

.landing-page .cookie-notice a {
  opacity: 1;
}

/* スマホ：コンパクト1行（はみ出し防止） */
@media (max-width: 767.98px) {
  .cookie-notice {
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    max-width: 100vw;
  }

  .cookie-notice__inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    max-width: 100%;
  }

  .cookie-notice__text--full {
    display: none;
  }

  .cookie-notice__text--short {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
    font-size: 0.6875rem;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
  }

  .cookie-notice__actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .cookie-notice__link {
    display: none;
  }

  .cookie-notice__btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.6875rem;
    letter-spacing: 0;
  }
}
