/* ==================================================
   RIDGE RACER V - TRIVIA
   VERSION 05
================================================== */

* {
  box-sizing: border-box;
}

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

body {
  background: #f4f4ef;
  color: #17213a;
  font-family: Arial, Helvetica, "Meiryo", sans-serif;
}

/* 画面全体に広げる */
.site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #f4f4ef;
  overflow: hidden;
}

.image-item-wrapper {
  display: flex;
  flex-wrap: wrap;
}
.image-item {
  margin: 4px 8px;
  width: 200px;
}
.image-item img {
  display: block;
  margin: 4px auto;
  width: 100%;
}

/* HEADER */

.trivia-header {
  position: relative;
  width: 100%;
  height: 118px;
  padding: 20px 32px;
  color: #fff;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.10) 0,
      rgba(255,255,255,.10) 1px,
      transparent 1px,
      transparent 5px
    ),
    #183e89;
  border-bottom: 7px solid #f0a130;
  overflow: hidden;
}

.trivia-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -150px;
  width: 400px;
  height: 400px;
  border: 48px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.brand {
  position: relative;
  z-index: 2;
  width: max-content;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
}

.brand b {
  color: #f0a130;
}

.brand small {
  margin-left: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: .7;
}

.dots {
  position: absolute;
  left: 32px;
  bottom: 8px;
  font-size: 9px;
  line-height: 9px;
  letter-spacing: 2px;
  opacity: .8;
}

/* MAIN */

main {
}

/* HEROは削除。小さなページ見出しだけ残す */
.page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: max-content;
  margin: 24px 28px 16px;
  padding: 0 18px 7px 0;
  border-bottom: 6px solid #f0a130;
}

.page-title span {
  color: #234c99;
  font-size:32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
}

.page-title strong {
  color: #173e89;
  font-size: 22px;
}

/* article / aside を左寄せ */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  align-items: start;
  gap: 22px;
  margin: 0 auto;
  width: calc(100vw - 32px);
}

.cards {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.cards article {
  display: block;
  width: 100%;
}


.body {
  padding: 4px 16px;
}

.body h2 {
  background: #234c99;
  margin: 0 0 4px;
  padding: 2px 16px;
  color: #fff;
  font-size: 22px;
}

.body h2 i {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 9px;
  color: #fff;
  background: #f0a130;
  font-size: 10px;
  letter-spacing: 1px;
}

.body p {
  margin: 8px 0;
  font-weight: 600;
}

.point {
  display: grid;
  grid-template-columns: 78px 1fr;
  margin-top: 16px;
  border: 1px solid #e3a03d;
}

.point b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #e99b2f;
  font-size: 12px;
}

.point span {
  padding: 10px 12px;
  background: #fff6df;
  font-size: 12px;
  font-weight: bold;
}

.image-row {
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 18px;
}

.placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b96a9;
  background: #e9ebee;
  border: 1px solid #9aa4b2;
  font-weight: 900;
}

.placeholder small {
  margin-top: 4px;
  font-size: 9px;
}

mark {
  padding: 2px 5px;
  background: #ffd36e;
}

.body ol {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ccd0d5;
}

.body li {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid #ccd0d5;
  font-size: 13px;
  font-weight: bold;
}

.body li b {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  margin-right: 12px;
  color: #fff;
  background: #f0a130;
  font-size: 18px;
}

/* ASIDE - INDEXは完全削除 */

aside {
  width: 275px;
  justify-self: end;
}

.memo {
  margin: 0;
  padding: 17px 18px;
  background: #fff4d9;
  border: 1px solid #e2a64d;
  border-top: 7px solid #f0a130;
}

.memo small {
  color: #d88616;
  font-weight: 900;
  letter-spacing: 2px;
}

.memo h3 {
  margin: 4px 0 8px;
  color: #173e89;
}

.memo p {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.7;
}

.round {
  width: 210px;
  height: 210px;
  margin: 28px 0 0;
  padding: 28px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
  background: #f0a130;
  border: 24px solid #234c99;
  border-radius: 50%;
  font-size: 65px;
  font-weight: 900;
  font-style: italic;
  overflow: hidden;
}

.round span {
  margin: 65px 0 0 25px;
}

/* FOOTER */

footer {
  width: 100%;
  height: 54px;
  margin-top: 32px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: #234c99;
  border-top: 5px solid #f0a130;
  font-size: 9px;
  letter-spacing: 1px;
}

footer b {
  opacity: .7;
}

footer em {
  margin-left: auto;
  color: #f0a130;
  font-size: 18px;
  font-weight: 900;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .trivia-header {
    padding-left: 18px;
  }

  .brand {
    font-size: 21px;
  }

  .brand small {
    display: none;
  }

  .dots {
    left: 18px;
  }

  main {
    padding-left: 14px;
  }

  .page-title span {
    font-size: 38px;
  }

  .page-title strong {
    font-size: 18px;
  }

  .layout {
    grid-template-columns: 1fr;
    width: calc(100vw - 14px);
  }

  .image-row {
    grid-template-columns: 1fr;
  }

  aside {
    width: 100%;
  }
}
