* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ",
    Meiryo, sans-serif;
  color: #32190e;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
}

a {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
}

.sorry-bg {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px 24px;
  overflow: hidden;
  background-color: #fff;
  background-image: linear-gradient(
    to bottom,
    rgba(255 255 255 / 0%) 0%,
    rgba(255 255 255 / 0%) calc(30% + 80px),
    #e5f6f8 calc(30% + 80px),
    #e5f6f8 100%
  );
}

.sorry-bg::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-color: #e5f6f8;
  -webkit-mask-image: url("../images/wave_c_others_sp.png");
  mask-image: url("../images/wave_c_others_sp.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center 30%;
  mask-position: center 30%;
  -webkit-mask-size: 1428px auto;
  mask-size: 1428px auto;
}

.sorry-page {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 24px 16px 48px;
  text-align: center;
}

.sorry-figure {
  margin: 0 0 24px;
}

.sorry-illustration {
  width: 160px;
  height: auto;
}

.sorry-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

.sorry-note {
  margin: 24px 0 16px;
  font-size: 16px;
  line-height: 1.6;
}

.sorry-button-group {
  width: 100%;
  margin-bottom: 16px;
}

.sorry-button-group:last-child {
  margin-bottom: 0;
}

.sorry-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background-color: #088eb3;
  border: 1px solid #088eb3;
  border-radius: 30px;
  box-shadow: 0 4px 24px rgb(41 54 64 / 10%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sorry-button .external-link {
  display: inline-block;
}

.sorry-button .external-link::after {
  position: absolute;
  top: 50%;
  right: 24px;
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  background: url("../images/icon_blank.svg") no-repeat center center;
  background-size: contain;
  filter: brightness(0) invert(1);
  transform: translateY(-50%);
}

.sorry-button:hover,
.sorry-button:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sorry-button:focus-visible {
  outline: 3px solid rgb(8 142 179 / 35%);
  outline-offset: 3px;
}

@media (width <= 480px) {
  .sorry-page {
    padding: 32px 24px 40px;
  }

  .sorry-illustration {
    width: 140px;
  }

  .sorry-button {
    font-size: 15px;
  }
}

@media (width >= 768px) {
  .sorry-bg {
    background-image: linear-gradient(
      to bottom,
      rgba(255 255 255 / 0%) 0%,
      rgba(255 255 255 / 0%) calc(30% + 80px),
      #e5f6f8 calc(30% + 80px),
      #e5f6f8 100%
    );
  }

  .sorry-bg::after {
    -webkit-mask-image: url("../images/wave_c_others_pc.svg");
    mask-image: url("../images/wave_c_others_pc.svg");
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-position: center 30%;
    mask-position: center 30%;
    -webkit-mask-size: 1428px auto;
    mask-size: 1428px auto;
  }
}
