* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

.page {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 48px 12px 48px;
}

.notice-wrap {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
}

.notice {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 18px 20px 24px;
  border: 1px solid #999999;
  background: #ffffff;
  text-align: center;
}

.title-row {
  display: block;
  margin: 0 0 18px;
}

.aa-block {
  z-index: 1;
  position: absolute;
  top: 0;
  display: block;
  outline: none;
}

.aa-block-left {
  left: calc(-1 * clamp(260px, 25vw, 360px));
}

.aa-block-right {
  right: calc(-1 * clamp(286px, 27vw, 392px));
}

.aa-img {
  display: block;
  width: clamp(250px, 24vw, 350px);
  height: auto;
  opacity: 0.95;
}

.aa-right {
  width: clamp(270px, 26vw, 378px);
  transform: translate(12px, 13px);
}

.speech {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  display: inline-block;
  max-width: 132px;
  padding: 5px 7px;
  border: 1px solid #777777;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  white-space: normal;
}

.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 9px;
  height: 9px;
  border-right: 1px solid #777777;
  border-bottom: 1px solid #777777;
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.aa-block:hover .speech,
.aa-block:focus .speech,
.aa-block:focus-within .speech {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

h1 {
  margin: 0;
  color: #000080;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

p {
  margin: 16px 0;
}

hr {
  height: 1px;
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #999999;
}

.links {
  margin-top: 22px;
}

.button-link {
  display: inline-block;
  min-width: 180px;
  padding: 9px 18px;
  border: 2px outset #dddddd;
  background: #eeeeee;
  color: #000080;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button-link:visited {
  color: #000080;
}

.button-link:hover {
  background: #f7f7f7;
}

.button-link:active {
  border-style: inset;
  background: #dddddd;
}

.small {
  margin-bottom: 0;
  color: #555555;
  font-size: 13px;
}

.period {
  margin-top: -4px;
  color: #666666;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

@media (max-width: 1100px) {
  body {
    font-size: 15px;
  }

  .page {
    padding-top: 16px;
  }

  .notice {
    padding: 18px 14px 20px;
  }

  .title-row {
    display: flex;
    justify-content: center;
    gap: clamp(4px, 1vw, 8px);
    align-items: center;
    margin-bottom: 18px;
  }

  .aa-block {
    position: relative;
    top: auto;
    flex: 0 0 auto;
  }

  .aa-block-left {
    left: auto;
  }

  .aa-block-right {
    right: auto;
  }

  .speech {
    max-width: 112px;
    padding: 4px 5px;
    font-size: clamp(9px, 1.5vw, 11px);
    line-height: 1.25;
  }

  .aa-img {
    width: clamp(58px, 8vw, 82px);
  }

  .aa-right {
    width: clamp(64px, 8.8vw, 92px);
    transform: translate(5px, 3px);
  }

  h1 {
    flex: 0 1 auto;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 700;
  }

  .links {
    margin-top: 20px;
  }

  .button-link {
    min-width: 180px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .notice {
    padding-left: 8px;
    padding-right: 8px;
  }

  .title-row {
    gap: 3px;
  }

  .aa-img {
    width: clamp(38px, 12vw, 52px);
  }

  .aa-right {
    width: clamp(42px, 13vw, 58px);
    transform: translate(3px, 2px);
  }

  .speech {
    max-width: 92px;
    font-size: 8px;
  }

  h1 {
    font-size: clamp(15px, 4.3vw, 18px);
  }
}
