/* Shared by the Japanese and English sites; independent of page styles. */
#cookie-notice,
#cookie-notice * {
  box-sizing: border-box;
}

#cookie-notice {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d9d9d9;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
  color: #222;
  font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  text-align: left;
}

#cookie-notice .cookie-notice__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 40px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

#cookie-notice .cookie-notice__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

#cookie-notice .cookie-notice__link {
  display: inline;
  color: #235da8;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#cookie-notice .cookie-notice__button {
  display: block;
  flex: 0 0 148px;
  width: 148px;
  min-height: 44px;
  margin: 0;
  padding: 10px 24px;
  border: 1px solid #e60000;
  border-radius: 3px;
  background: #e60000;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

#cookie-notice .cookie-notice__button:hover {
  border-color: #bd0000;
  background: #bd0000;
}

#cookie-notice .cookie-notice__button:focus-visible,
#cookie-notice .cookie-notice__link:focus-visible {
  outline: 3px solid #235da8;
  outline-offset: 4px;
}

#cookie-notice-spacer {
  display: block;
  flex: 0 0 auto;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  #cookie-notice .cookie-notice__inner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  #cookie-notice .cookie-notice__button {
    flex-basis: auto;
    width: 100%;
    max-width: 320px;
  }
}

@media print {
  #cookie-notice,
  #cookie-notice-spacer {
    display: none !important;
  }
}
