/* ===============================================
    Common
=============================================== */
/* constant */
:root {
  --primary: #1066a0;
  --secondary: #015caf;
  --blue: #1c80e7;
  --light-blue: #367dde;
  --deep-blue: #0b41a0;
  --light-green: #24b5b1;
  --gray: #f4f4f4;
  --deep-gray: #a7a7a7;
  --pink: #ec0e4d;
  --red: #c30808;
  --orange: #ff730f;
  --shadow: #e3e3e3;
  --grad-key: linear-gradient(45deg, var(--secondary), var(--primary));
  --grad-blue: linear-gradient(45deg, var(--deep-blue), var(--blue));
}

/* anchor */
.post a {
  transition: 0.3s;
}

/* button */
.post .btn {
  padding: 0.7em 0.2em;
  color: var(--white);
  border: none;
  background-color: var(--primary);
  box-shadow: 4px 4px 0 0 var(--shadow);
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  font-size: 110%;
  display: block;
  width: 100%;
  transition: 0.3s;
}

.post .btn:hover {
  color: var(--white);
  filter: brightness(1.2);
}

/* dialog */
.modal-header {
  padding: 1em;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 0.5em;
  align-items: center;
  color: var(--red);
  text-align: center;
  border-bottom: none;
}

.modal-header .close {
  color: var(--gray-dark);
  border-radius: 0.3rem;
  font-size: 2em;
  margin: -1em 0;
}

.modal-footer {
  border-top: none;
  padding: 1em;
}

/* bordered-box */
.l-main .border {
  padding: 0.75rem 1.25rem;
}

/* table */
.post th,
.post td {
  width: auto !important;
}

/* ===============================================
    layout
=============================================== */
/* fixed footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--light);
}

#footer {
  margin-top: auto;
}

#footer .copy {
  margin: 0;
}

#footer #thk {
  margin: 0;
}

/* primary */
#primary {
  border: none;
}

@media (min-width: 992px) {
  #primary {
    margin-top: 25px;
  }
}

/* background-color */
#core {
  background-color: transparent;
  border: none;
}

/* grid */
.l-left {
  background-color: var(--white);
  border: 1px solid var(--gray);
  padding-top: 30px;
  padding-bottom: 30px;
}

.l-main {
  background-color: var(--white);
  border: 1px solid var(--gray);
  padding-top: 15px;
  padding-bottom: 15px;
}

.l-right {
  background-color: var(--white);
  border: 1px solid var(--gray);
  padding-top: 30px;
  padding-bottom: 30px;
}

@media (min-width: 992px) {
  .l-main {
    padding: 45px;
  }
}

/* ===============================================
    Front Page
=============================================== */
/* main area */
.index #main {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* title */
.post .front-page-title {
  color: var(--primary);
  border: none;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  white-space: nowrap;
  align-items: center;
  grid-gap: 0.5em;
  font-size: 2em;
  padding-left: 0;
  padding-right: 0;
}

.post .front-page-title::before,
.post .front-page-title::after {
  content: "";
  height: 2px;
  background-color: var(--primary);
  flex: 1 0 auto;
  display: block;
}

/* banner */
.exam-banner {
}

.exam-banner__list {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.exam-banner__item {
  /* max-height: 150px; */
  /* text-align: center; */
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  grid-gap: 15px;
  align-items: center;
}

.exam-banner .card-title {
  margin: 0 0 0.5em;
  border: none;
  padding: 0;
}

.exam-banner__item > p {
  margin: 0;
  height: 100%;
}

.exam-banner__item .card-text {
  font-size: 80%;
}

.exam-banner__item .card-link {
  display: block;
  margin: auto;
  width: fit-content;
}

.exam-banner__item img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  border: 5px solid var(--white);
  box-sizing: border-box;
}

.exam-banner__item .card-btn {
  width: auto;
  height: auto;
  border: none;
}

/** amazon **/
.exam-banner__item .__mobile-associates-search-widget {
  width: 100% !important;
}

@media (min-width: 992px) {
  .exam-banner__item .__mobile-associates-search-widget {
    width: 470px !important;
  }
}

/* list */
.exam-list {
  grid-gap: 25px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 870px;
  margin-left: auto;
  margin-right: auto;
}

.post .exam-list__item {
  text-decoration: none;
  color: #fff;
  padding: 1em;
  padding-left: 1.5em;
  display: flex;
  align-items: center;
  grid-column-gap: 0.5em;
  flex: 0 0 auto;
  width: calc(100% - 15px);
  position: relative;
}

.post .exam-list__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  box-shadow: 4px 4px 0px 0px rgb(215, 219, 220);
  border-right: 1em solid var(--secondary);
  transform: skewX(-15deg);
  z-index: -1;
  transition: 0.3s;
}

.post .exam-list__item:hover::before {
  /* background-color: var(--secondary); */
  box-shadow: 4px 4px 0px 0px rgb(215 219 220);
  /* border-right: 1em solid var(--primary); */
}

.post .exam-list__item:hover {
  filter: brightness(1.1);
  /* color: #eedf9e; */
}

.post .exam-list__item--disabled,
.post .exam-list__item--disabled:hover {
  filter: grayscale(0.5) opacity(0.75);
  pointer-events: none;
}

@media (min-width: 768px) {
  .exam-list {
    grid-gap: 30px 40px;
    /* ▼▼▼ドローン試験用カスタマイズ▼▼▼ */
    /* flex-direction: column;
    height: 21em;
    white-space: nowrap; */
    /* ▲▲▲ドローン試験用カスタマイズ▲▲▲ */
  }

  .post .exam-list__item {
    width: calc((100% - 40px) / 2);
  }
}

@media (min-width: 1200px) {
  .post .exam-list__item {
    /* width: calc((100% - 75px) / 4); */
  }
}

/* ===============================================
    Sub Page
=============================================== */
/* wrapper */
.js-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 10px;
}

/* title */
.post .entry-title {
  padding: 0.3em 1em;
  color: var(--white);
  border: none;
  background-color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
}

.entry-title__main {
}

.entry-title__sub {
  font-size: 80%;
  display: block;
  line-height: 1.2;
}

/* ===============================================
    Notes Page
=============================================== */
/* header */
.notes #header {
  display: none;
}

/* ===============================================
    Exam Page
=============================================== */
/* layout */
.exam .l-primary {
  display: grid;
  grid-gap: 30px;
}

.exam .l-left {
  order: 2;
}

.exam .l-main {
  order: 0;
}

.exam .l-right {
  order: 1;
}

@media (min-width: 992px) {
  .exam .l-primary {
    grid-template-columns: 200px 1fr 200px;
  }

  .exam .l-left {
    order: 0;
  }

  .exam .l-main {
    max-height: 78vh;
    overflow-y: auto;
    order: 1;
    padding: 30px 25px;
  }

  .exam .l-right {
    order: 2;
  }
}

.exam {
  padding-top: 35px;
}

@media (min-width: 992px) {
  .exam {
    padding-top: 0;
  }
}

/* header */
.exam #header {
  display: none;
}

/* sidebar */
.widget {
  margin-bottom: 20px;
}

/* side title */
.post .side-title {
  border: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-gap: 0.3em;
  font-size: 110%;
  margin: 0 auto 0.5em;
  letter-spacing: 0.1em;
}

.post .side-title:first-child {
  margin-top: 0;
}

.post .side-title::before,
.post .side-title::after {
  content: "";
  width: 1em;
  height: 1em;
  background-color: #1c80e7;
  transform: rotate(45deg) scale(0.5);
}

/* side nav */
.nav-q {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 4px;
}

.post .nav-q__item {
  flex: 0 0 auto;
  padding: 0.3em;
  width: 2em;
  height: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  color: var(--light);
  background-color: var(--red);
  position: relative;
  font-size: inherit;
}

.nav-q__item:hover {
  color: var(--light);
  filter: brightness(1);
}

.nav-q__item.answered {
  background-color: var(--deep-gray);
}

.nav-q__item.hold {
}

.nav-q__item.hold::before {
  color: var(--red);
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  position: absolute;
}

.nav-q__item.hold.answered::before {
  color: var(--red);
}

.nav-q__item.hold:not(.answered)::before {
  color: var(--white);
}

@media (min-width: 992px) {
  .nav-q {
  }

  .post .nav-q__item {
    width: 30px;
    height: 30px;
  }
}

/* usage */
.post .usage {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  grid-gap: 1em;
}

.post .usage__item {
  font-size: 80%;
  display: flex;
  align-items: center;
  grid-gap: 0.5em;
}

.usage__item span {
  padding: 0.5em;
  width: 2em;
  height: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  background-color: var(--red);
  position: relative;
}

.usage__item span.answered {
  background-color: var(--deep-gray);
}

.usage__item span.answered::before {
  color: var(--light);
}

.usage__item span.hold {
}

.usage__item span.hold::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  position: absolute;
  color: var(--bs-white);
}

@media (min-width: 992px) {
  .post .usage {
    flex-wrap: wrap;
    grid-gap: 0.5em;
  }
}

/* timer */
.widget-timer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  margin: 0;
  padding: 15px;
  z-index: 2;
  box-shadow: var(--shadow);
}

.timer {
  display: flex;
  justify-content: center;
  grid-gap: 1em;
  align-items: center;
}

.timer .side-title {
  margin: 0;
  font-size: inherit;
}

.timer .side-title::before,
.timer .side-title::after {
  display: none;
}

.post .timer__text {
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0;
  text-align: center;
}

@media (min-width: 992px) {
  .widget-timer {
    position: static;
    background-color: transparent;
    color: inherit;
    margin-bottom: 20px;
    box-shadow: none;
    padding: 0;
  }

  .timer {
    display: block;
  }

  .timer .side-title {
    margin-bottom: 5px;
    font-size: 110%;
  }

  .timer .side-title::before,
  .timer .side-title::after {
    display: block;
  }
}

/* side list */
.ans__list {
  margin-bottom: 30px;
}

.ans__item {
  width: 75%;
  margin: auto;
}

.custom-select {
  height: 3em;
  padding: 0.5em 1em;
  font-size: inherit;
}

.custom-control {
  padding-left: 0.5em;
}

.custom-control-label {
}

.custom-control-label::before,
.custom-control-label::after {
  left: 2em;
  top: 0;
  width: 2em;
  height: 2em;
}

.ans__hold {
  padding-left: 2.5em;
}

.ans__hold .custom-control-label {
}

.ans__hold .custom-control-label::before,
.ans__hold .custom-control-label::after {
  left: -2.5em;
}

@media (min-width: 992px) {
  .ans__item {
    width: 100%;
  }
}

/* button */
.goStart {
  max-width: 480px;
  margin: 3em auto;
  display: flex;
  justify-content: space-between;
  grid-gap: 15px;
}

.widget-btns {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 15px;
}

.goNext {
  width: 100%;
}

.goNext .btn {
  background-color: var(--primary);
}

.goPrev {
  width: 100%;
}

.goPrev .btn {
  background-color: var(--secondary);
}

.goStatus {
  width: 100%;
}

.goStatus .btn {
  background-color: var(--light-green);
}

.goResult {
  width: 100%;
}

.goResult .btn {
  background-color: var(--pink);
  display: none;
}

.print .btn {
  background-color: var(--light-green);
  padding: 1em;
}

.goTop {
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.goTop .btn {
  background-color: var(--secondary);
}

.modal .btn {
  background-color: var(--pink);
}

@media (min-width: 992px) {
  .goStart {
    grid-gap: 80px;
  }
}

/* question */
.post .q__title {
  border-left-color: var(--primary);
  margin-top: 0 !important;
  border-left: none;
  display: flex;
  align-items: center;
  grid-gap: 0.3em;
  font-size: 130%;
  font-weight: bold;
  padding: 0;
  margin-bottom: 1em;
  letter-spacing: 0.1em;
}

.post .q__title::before {
  content: "";
  background-color: var(--secondary);
  border-radius: 50%;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  display: block;
}

.q__body .alert {
  border: 1px solid #d62e2e;
  background-color: #ffebeb;
  background-color: #fff;
  padding: 1em;
  border-radius: 0;
}

/* status */
.status__tbl tbody tr:hover {
  background-color: var(--light);
}

.status__tbl {
  width: 100%;
}

.status__tbl th {
  white-space: nowrap;
  line-height: 1.2;
  color: var(--white);
  background-color: var(--primary);
  font-size: 110%;
  font-weight: normal;
  border: 1px solid var(--primary);
  border-right-color: var(--white);
  padding: 0.7em 0.2em;
}

.status__tbl th:last-child {
  border-right-color: var(--primary);
}

.status__tbl td {
  vertical-align: middle;
  border: 1px solid var(--primary);
}

.status__tbl .btn {
  white-space: nowrap;
  padding-top: 0.3em;
  padding-bottom: 0.3em;
  background-color: var(--secondary);
}

.status__label {
  color: var(--red);
}

.status__label .answered {
  color: inherit;
  font-weight: normal;
}

.status__label .hold {
  color: var(--red);
  font-weight: bold;
}

/* ===============================================
    Result Page
=============================================== */
.result #header {
  display: none;
}

.result .l-main {
  max-width: 100%;
  padding-bottom: 30px;
}

.result .exam-main {
  text-align: center;
}

/* button */
.goReport {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================================
    Report Page
=============================================== */
.report #header {
  display: none;
}

.report .l-main {
  max-width: 100%;
  padding-bottom: 30px;
}

.exam-report {
}

.exam-report__list {
  display: grid;
  grid-gap: 0.5em;
  margin-bottom: 30px;
}

.exam-reportItem {
  position: relative;
  transition: 0.3s;
}

.exam-reportItem__head {
  cursor: pointer;
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-gap: 2em;
  transition: 0.3s;
}

.exam-reportItem__head:hover {
  filter: brightness(1.2);
}

.exam-reportItem__head i {
  position: relative;
  right: 1em;
  transition: 0.3s;
  font-size: 1.5em;
}

.exam-reportItem__head.opened {
  /* background-color: var(--orange); */
  filter: brightness(1.2);
}

.exam-reportItem__head.opened i {
  transform: scale(1, -1);
}

.post .exam-reportItem__title {
  border: none;
  margin-top: 0 !important;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: auto 3.5em 1fr;
  align-items: center;
  padding: 1em;
  position: relative;
  font-size: 110%;
}

.post .exam-reportItem__title::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background-color: var(--white);
  display: block;
  border-radius: 50%;
  margin-right: 0.5em;
}

.exam-reportItem__titlesub {
  margin-left: 0.5em;
  font-size: 90%;
}

.exam-reportItem__body {
  display: none;
}

.exam-reportItem__question {
}

.exam-reportItem__answer {
}

.exam-reportItem__answer .alert {
  border: 1px solid #d62e2e;
  background-color: #ffebeb;
  background-color: #fff;
  padding: 1em;
  border-radius: 0;
}

.exam-reportItem__answer .alert p:first-child {
  margin-top: 0;
}

.exam-report .exam-banner__list {
  max-width: 750px;
}

.exam-report .exam-banner__item {
  max-height: none;
}

.exam-report .exam-banner__item img {
  border: none;
}

.exam-report .exam-banner__item .card-body {
  height: 100%;
}

.exam-report .print {
  max-width: 430px;
  margin: auto;
}

.post .exam-report__descripiton {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.exam-report__descripiton strong {
  font-size: 130%;
  color: var(--red);
  padding: 0 0.3em;
}

.exam-report__footer p {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.exam-report .goTop {
  margin-top: 6em;
}

@media (min-width: 992px) {
  .report .l-main {
    padding: 30px;
  }

  .exam-report .print {
    /* display: block; */
    /* width: -webkit-fit-content; */
    /* width: fit-content; */
    /* float: right; */
  }

  .exam-reportItem {
  }

  .exam-reportItem__body {
  }
}

/* ===============================================
    For Printer
=============================================== */
@media print {
  .post .entry-title {
    background-color: var(--primary) !important;
  }

  .exam-reportItem__head {
    background-color: var(--primary) !important;
  }

  .post .exam-reportItem__title::before {
    background-color: var(--white) !important;
  }

  .exam-reportItem__body {
    display: block !important;
  }

  .exam-reportItem .alert {
    background-color: #ffebeb !important;
    border-color: #d62e2e !important;
    background-color: #fff !important;
  }

  .post .btn {
    background-color: var(--primary) !important;
    box-shadow: 4px 4px 0 0 var(--shadow) !important;
  }

  .print .btn {
    background-color: var(--light-green) !important;
  }

  .goTop .btn {
    background-color: var(--light-blue) !important;
  }
}
