@charset "UTF-8";

:root {
  /* unit */
  --unit: 8px;
  --hint-body-width: 327px;
  --hint-color-red: #e3463d;
  --hint-color-red-dark: #b72219;
  --hint-btn-red-height: 58px;
  --hint-btn-red-fontsize: 16px;
  --hint-btn-bottom-height: 48px;
}

h1 {
  color: #003554;
}

.hintpage {
  width: var(--hint-body-width);
  margin: 0 auto;
  padding: calc(var(--unit) * 5) 0;
  text-align: center;
}

.hintpage img {
  display: block;
  margin: 0 auto;
}


/**
 * margin
 */

.mtop1 {
  margin-top: calc(var(--unit) * 1);
}

.mtop3 {
  margin-top: calc(var(--unit) * 3);
}

.mtop5 {
  margin-top: calc(var(--unit) * 5);
}

.mtop7 {
  margin-top: calc(var(--unit) * 7);
}

.mtop9 {
  margin-top: calc(var(--unit) * 9);
}

/**
 * btnRed
 */

.hintpage .btnRed {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: var(--hint-btn-red-height);
  border-radius: 10px;
  background-color: var(--hint-color-red);
  text-decoration: none;
}

.hintpage .btnRed:hover {
  opacity: 1;
  background-color: var(--hint-color-red-dark);
  text-decoration: none;
}

.hintpage .btnRed::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: var(--hint-color-red-dark);
}

.hintpage .btnRed span {
  margin-top: 3px;
  padding: 0 1em;
  color: #fff;
  font-size: var(--hint-btn-red-fontsize);
  font-weight: bold;
  line-height: 1.3;
}

/**
 * caption
 */

.hintpage .caption {
  font-size: 13px;
  text-align: center;
}

.hintpage .caption a {
  color: #0095ee;
  text-decoration: underline;
}

.hintpage .caption a:hover {
  text-decoration: none;
}

/**
 * btnBottom
 */

.hintpage .btnBottom {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: var(--hint-btn-bottom-height);
  border: solid 1px var(--hint-color-red);
  border-radius: 4px;
  text-decoration: none;
}

.hintpage .btnBottom:hover {
  text-decoration: none;
}

.hintpage .btnBottom span {
  color: var(--hint-color-red);
  font-size: 16px;
  font-weight: bold;
}

/* for 4inch screen */
@media (max-width: 360px) {
  :root {
    --hint-body-width: calc(320px - calc(var(--unit) * 4));
    --hint-btn-red-height: 48px;
    --hint-btn-red-fontsize: 14px;
  }

  .hintpage img {
    width: auto;
    max-width: var(--hint-body-width);
    height: auto;
  }
}
