@charset "UTF-8";

/* reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  vertical-align: baseline;
}

/***********************************************************
common
***********************************************************/
html {
  font-size: 62.5%;
}

body {
  font-family: "Noto Serif JP", serif, Arial;
  font-weight: 400;
  font-style: normal;
  font-size: 100%;
  position: relative;
  font-size: 1.6rem;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  display: block;
  position: fixed;
  z-index: -2;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: center/cover url(../images/final_background.png);
  filter: drop-shadow(2px 2px 20px rgb(94, 106, 157));
  animation:10s ease-in-out infinite alternate both bg_shadow;
}

@keyframes bg_shadow{
  0% {filter:drop-shadow(2px 2px 5px #0000);}
  50% {filter:drop-shadow(2px 2px 10px #0055);}
  100% {filter:drop-shadow(2px 2px 20px #00aa);}
}

.pageContents {
  position: relative;
  z-index: 1;
  margin: auto;
}

i {
  font-style: "Font Awesome 5 Free";
}

/***********************************************************
header
***********************************************************/
header.finalTop {
  padding: 50px 0;
  margin-bottom: 50px;
  text-align: center;
  color: #b49f08;
  background: url(../images/background.jpg);
}

h1 {
  font-size: 5rem;
  line-height: 1.7;
}

h1 strong {
  display: block;
  font-size: 7rem;
}

p.sponsored {
  width: fit-content;
  margin: 20px auto;
  padding: 0 26px;
  font-size: 3rem;
  color: #fff;
  background: #b49f08;
}

header.finalTop img {
  width: 500px;
  filter: drop-shadow(2px 2px 10px #000a);
  margin-bottom: 50px;
}

p.contest_type {
  padding: 0 40px;
  width: fit-content;
  margin: auto;
  font-size: 7rem;
  font-weight: bolder;
  line-height: 1.5;
  outline: 10px solid #b49f08;
}

/***********************************************************
navigation lower pages
***********************************************************/
.navigation_contents {
  width: 60px;
  height: 60px;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
}

.open_close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: url(../images/menuOpen.svg);
  transition: background 0.5s;
}

.open_close.close {
  background: url(../images/menuClose.svg);
}

.navigationMenu {
  position: absolute;
  width: 100vw;
  height: 100vh;
  padding: 1rem 2rem;
  top: 0;
  left: 0;
  z-index: 1;
  transform: translateX(100%);
  background: #000a;
  transition: transform 0.5s;
}

.navigationMenu ul {
  width: 500px;
  padding: 20px 50px;
  position: absolute;
  top: 80px;
  right: 20px;
  background: #fff;
}

.navigationMenu ul li {
  margin: 4px 0;
  padding: 8px 0;
  font-weight: bold;
}

.navigationMenu.menu-open {
  transform: translateX(-100%) translateX(60px);
}

.navigationMenu a {
  display: block;
  text-align: left;
  color: #333;
}

#pageTop {
  position: fixed;
  z-index: 1;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 60px;
  height: 60px;
  text-align: center;
  color: #fff;
  background: #000c;
}

#pageTop i {
  font-size: 30px;
}

#pageTop p {
  font-size: 11px;
  transform: translateY(-7px);
}

/***********************************************************
main
***********************************************************/
section {
  width:900px;
  margin:70px auto;
  box-shadow:2px 2px 10px #0003;
  background:#fff;
}

h2 {
  padding: 16px 0;
  text-align: center;
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
  background: #b49f08;
}

h3 {
  font-size: 2.4rem;
  color: #b49f08;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

h3::after {
  content: "";
  display: block;
  flex-grow: 1;
  height: 1px;
  margin-left: 8px;
  background: #b49f08;
}

.content_block {
  padding: 24px 36px;
}

p {
  font-size: 1.6rem;
  line-height: 1.75;
}

/***********************************************************
member list
***********************************************************/
div.memberList {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 5%;
  margin-top: 16px;
}

.eachMember {
  display: flex;
  width: 30%;
  border: 1px solid #b49f08;
}

.nickname {
  width: 80%;
  padding-left: 16px;
  color: #fff;
  background: #b49f08;
}

.age {
  width: 20%;
  text-align: center;
}

/***********************************************************
final_results
***********************************************************/
.final_results {
  padding:30px;
  width:1100px;
  background:#9e8d3c1f;
  border-style:solid;
  border-width:14px;
  border-color:#d8cb1a #aa9f06 #aa9f06 #d8cb1a;
  position:relative;
}
.final_results::after {
  content:"";
  display:block;
  position:absolute;
  z-index:-1;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:center/cover url(../images/26912887_m.jpg);
}
.final_results h2 {
  margin-bottom:30px;
}
.csvList .forFlex {
  display:flex;
}
article.final_list:not(:last-child) {
  margin-bottom:40px;
}
article.final_list .medalBlock {
  width:20%;
  filter:drop-shadow(2px 2px 2px #0007);
}
article.final_list .textBlock {
  width:80%;
}

article.final_list .textBlock p .divider {
  margin: auto 10px;
  width: 1px;
  height: 1em;
  background-color: #fff;
}
/* article.final_list:first-child .medalBlock {
  background:center/contain url(../images/medal_gold.png) no-repeat;
}
article.final_list:nth-child(2) .medalBlock,
article.final_list:nth-child(3) .medalBlock {
  background:center/contain url(../images/medal_silver.png) no-repeat;
}
article.final_list:nth-child(4) .medalBlock,
article.final_list:nth-child(5) .medalBlock,
article.final_list:nth-child(6) .medalBlock {
  background:center/contain url(../images/medal_bronze.png) no-repeat;
} */
article.final_list.gold .medalBlock {
  background: center/contain url(../images/medal_gold.png) no-repeat;
}
article.final_list.silver .medalBlock {
  background: center/contain url(../images/medal_silver.png) no-repeat;
}
article.final_list.bronze .medalBlock {
  background: center/contain url(../images/medal_bronze.png) no-repeat;
}
article .forFlex.flex01 {
  column-gap:20px;
  margin-bottom:10px;
}
article .forFlex.flex01 strong {
  font-weight:bolder;
}
article .forFlex.flex02 {
  column-gap:0;
}
article .forFlex p {
  padding:2px 15px;
  display:flex;
  align-items:center;
}
article .forFlex.flex01 p {
  font-size:40px;
}
article.final_list .textBlock p .divider {
  background: #333;
}
article .forFlex.flex02 p {
  font-size:16px;
  color:#333;
  background:#fff;
}
/* article.final_list:first-child .flex01 p {
  background:linear-gradient(#f2f2b7,#bfab35);
}
article.final_list:nth-child(2) .flex01 p,
article.final_list:nth-child(3) .flex01 p {
  font-size:28px;
  background:linear-gradient(#f7f8f8,#949388);
}
article.final_list:nth-child(4) .flex01 p,
article.final_list:nth-child(5) .flex01 p,
article.final_list:nth-child(6) .flex01 p {
  font-size:20px;
  background:linear-gradient(#f8dead,#e89d2e);
} */
article.final_list.gold .flex01 p {
  /* font-size: 28px; */
  background: linear-gradient(#f2f2b7, #bfab35);
}
article.final_list.silver .flex01 p {
  font-size: 28px;
  background: linear-gradient(#f7f8f8, #949388);
}
article.final_list.bronze .flex01 p {
  font-size: 20px;
  background: linear-gradient(#f8dead, #e89d2e);
}
span.sizeSmall {
  font-size:13px;
}
/* .final_list:nth-child(2) .flex02 p:last-child,
.final_list:nth-child(3) .flex02 p:nth-child(2),
.final_list:nth-child(4) .flex02 p:last-child {
  color:#777;
} */
/***********************************************************
added 20241122
***********************************************************/
.final_results,
.questions_and_answers {
  box-shadow:2px 2px 5px #0003;
}
div.final_QandA {
  padding:30px 0;
  background:#0009;
}
section.to_final {
  width:1200px;
}
p:has(.button_pdf) {
  margin:25px 0 30px;
}
.caution-pdf.button_pdf {
  padding:10px 25px;
  color:#fff;
  text-decoration:none;
  background:#333;
  border-radius:20px;
  transition:.25s all;
}
.caution-pdf.button_pdf:hover {
  color:#333;
  background:gold;
}
.important_notice {
  text-decoration:underline solid rgb(255, 25, 0);
  text-underline-offset:6px;
}
/***********************************************************
footer
***********************************************************/
footer {
  text-align: center;
  padding: 20px 0;
  color: #fff;
  background: #aa9f06;
}

.logo_block {
  display: flex;
  justify-content: center;
  width: 500px;
  margin: auto;
  gap: 50px;
}

footer img {
  width: auto;
  height: 28px;
}

footer small {
  font-size: 10px;
}

/* add by Proxima */

.caution-pdf {
  /*注意事項のpdfでの下線*/
  text-decoration: underline;
  /* 下線 */
  color: blue;
  /* 青文字 */
}

.caution-pdf:hover {
  color: darkblue;
  /* ホバー時に濃い青に変更 */
  text-decoration: none;
  /* ホバー時に下線を消す */
}

.pdf-link1 {
  text-decoration: underline;
  /* 下線 */
  color: blue;
  /* 青文字 */
}

/***************************************************************************
渡邊 追記 20241016
***************************************************************************/
span.sponsored {
  display: block;
  width: fit-content;
  margin: 20px auto;
  padding: 4px 26px;
  font-size: 80%;
  color: #fff;
  background: #b49f08;
}

span.contest_type {
  display: block;
  padding: 4px 40px;
  width: fit-content;
  margin: 50px auto 0;
  font-size: 7rem;
  font-weight: bolder;
  line-height: 1.5;
  outline: 10px solid #b49f08;
}

.logIn_block {
  width: fit-content;
  margin: 0 auto 50px;
  background: #fff;
  border: 1px solid #b49f08;
}

.logIn_block h2 {
  width: fit-content;
  padding-right: 50px;
  padding-left: 50px;
}

div.logIn_block .error-message {
  padding: 0 40px 10px 40px;
}

form#login-form {
  padding: 40px;
}

form#login-form .forFlex {
  display: flex;
  align-items: center;
  margin: 0 0 30px;
}

form#login-form .forFlex label {
  width: 30%;
}

form#login-form .forFlex input {
  width: 70%;
  padding: 0 6px;
  font-size: 1.6rem;
  line-height: 2.5;
}

form#login-form button {
  display: block;
  margin: auto;
  padding: 6px 40px;
  font-size: 2rem;
  color: #fff;
  background: #555;
  border: none;
  cursor: pointer;
  transition: color background 0.25s;
}

form#login-form button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

form#login-form button:not(:disabled):hover {
  color: #333;
  background: gold;
}

.questions {
  padding: 30px 40px 120px;
  overflow-x: visible;
}

section.questions h2 {
  padding: 15px 40px;
  width: fit-content;
  margin: 0 auto 60px;
  font-size: 3.1rem;
  color: #fff;
  background: #333;
}

body.lowerPages h2 span {
  margin: 0 10px;
}

.questionAnswerContainer {
  width: 90%;
  display: block;
  margin: auto;
  position: relative;
}

.questionAnswerPair {
  display: flex;
  /* 問題と解答を横並びに */
  justify-content: space-between;
  margin-bottom: 20px;
}

.question_block {
  width: 1120px;
  background: #fff;
}

.qContent_wrapper {
  /* width: calc(1120px * 4); */
  display: block;
  position: relative;
  left: 0;
}

.qPhase_block {
  width: 1000px;
  padding: 10px;
  margin-bottom: 40px;
}

.question_block iframe {
  width: 100%;
  height: 80vh;
}

.answer_block {
  width: 400px;
  /* overflow: hidden; */
  background: #fff;
  margin: 0px 40px;
}

/* .answer_block .formContent_wrapper {
  width: calc(400px * 4);
  height: 80vh;
  background: #fff;
  overflow-x: hidden;
  display: block;
} */
/* .answer_block .formContent_container {
  width: calc(400px * 4);
  display: flex;
  overflow-x: hidden;
  position: relative;
  position: hidden;
  left: 0;
} */
.answer_block .formPhase_block {
  padding: 0 10px;
  width: 340px;
  /* overflow-y: visible; */
}

.inputInside {
  text-align: center;
}

input[type="submit"].global_submit {
  width: 400px;
  padding: 10px;
  margin: 30px 0;
  font-size: 20px;
  color: #fff;
  background: #b49f08;
  border: none;
  /* position: absolute; */
  top: 100%;
  /* left: 0; */
  transition: color 0.25s;
  cursor: pointer;
}

input[type="submit"]:disabled {
  background-color: #ccc;
  /* 背景をグレーに */
  color: #666;
  /* テキストを薄い色に */
  border: 1px solid #999;
  /* 境界線も変更 */
  cursor: not-allowed;
  /* カーソルをクリック不可に */
  opacity: 0.5;
  /* 不透明度を下げる */
}

input[type="submit"].colorGold:hover {
  color: #333;
  background: gold;
}

.after_pages {
  text-align: center;
}

.submitDone h2 {
  width: fit-content;
  padding: 10px 100px;
  margin: 0 auto 50px;
  font-size: 36px;
}

.return_to {
  display: block;
  margin: 50px auto;
  width: fit-content;
  padding: 10px 50px;
  font-size: 32px;
  color: #fff;
  background: #333;
}

.return_to:hover {
  color: #333;
  background: gold;
}

.button_clickable {
  animation: none;
}

@keyframes clickable {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.025);
  }
}

.button_disable,
.colorGold.button_disable {
  color: #fff;
  background: #ccc !important;
  pointer-events: none;
  animation: none;
}

.submission_done {
  font-size: 32px;
  font-weight: bolder;
}

.timelimit_message {
  margin-bottom: 50px;
}

.p.file-upload {
  margin: 10px 0;
}

div.notice {
  width: 90%;
  margin: auto;
}

/**
  * for mobile
  */
@media screen and (max-width: 720px) {
  .navigationMenu ul {
    width: calc(100% - 40px);
    padding: 12px 20px;
  }
  h1 strong {
    display: block;
    font-size: 3.2rem;
  }
  p.sponsored {
    font-size: 2.2rem;
  }
  p.contest_type {
    font-size: 4rem;
    outline: 6px solid #b49f08;
  }
  header.finalTop img {
    width: 280px;
  }
  section {
    width: 100%;
  }
  section.to_final {
    width: 100%;
  }
  .final_results {
    width: 100%;
    padding: 30px 22px;
  }

  .answer_block {
    width: 100%;
  }

  input[type="submit"].global_submit {
    width: 300px;
  }
  article.final_list:not(:last-child) {
    margin-bottom: 80px;
  }
  span.sizeSmall {
    width: 80px;
    text-align: right;
  }
  .csvList .forFlex {
    flex-direction: column;
    gap: 16px;
  }
  article.final_list .medalBlock {
    width: auto;
    margin-bottom: 16px;
  }

  article.final_list.gold .medalBlock {
    height: 180px;
  }
  article.final_list.silver .medalBlock {
    height: 154px;
  }
  article.final_list.bronze .medalBlock {
    height: 112px;
  }
  article.final_list .textBlock {
    width: 100%;
  }
  article .forFlex.flex02 {
    gap: 0;
  }
  footer .logo_block {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .eachMember {
    width: 100%;
  }
}
/**
  * for small device
  */
@media screen and (max-width: 380px) {
  .final_results {
    padding: 30px 10px;
  }
  article .forFlex.flex01 p {
    font-size: 36px;
  }
  article.final_list.silver .flex01 p {
    font-size: 24px;
  }
  article.final_list.bronze .flex01 p {
    font-size: 18px;
  }
  article .forFlex.flex02 p {
    font-size: 14px;
  }
}
