#rhice-phone-notice:not([open]) {
  display: none;
}

#rhice-phone-notice {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-height: 85dvh;
  margin: auto;
  padding: clamp(24px, 5vw, 40px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ded7cd;
  border-radius: 12px;
  background: #fffdf9;
  color: #443e37;
  box-shadow: 0 12px 48px rgb(43 36 28 / 16%);
  font-family: inherit;
  text-align: left;
}

#rhice-phone-notice::backdrop {
  background: rgb(35 31 26 / 48%);
}

html:has(#rhice-phone-notice[open]) {
  overflow: hidden;
}

#rhice-phone-notice h2 {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid #ded7cd;
  color: inherit;
  font: inherit;
  font-size: clamp(16px, 3.8vw, 21px);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

#rhice-phone-notice p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
}

#rhice-phone-notice a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#rhice-phone-notice button {
  display: block;
  min-width: 120px;
  min-height: 44px;
  margin: 24px auto 0;
  padding: 8px 24px;
  border: 1px solid #b6ab9c;
  border-radius: 24px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#rhice-phone-notice button:hover {
  background: #f3eee7;
}
#rhice-phone-notice .rhice-notice-text {
  margin: 0;
  text-align: center;
  line-height: 1.9;
}

#rhice-phone-notice .rhice-notice-text + .rhice-notice-text {
  margin-top: 18px;
}

@media (max-width: 600px) {
  #rhice-phone-notice .rhice-notice-text {
    text-align: left;
    line-break: strict;
  }

  #rhice-phone-notice .rhice-break-pc {
    display: none;
  }
}
