@charset "UTF-8";

.light {
  --text-color: #000;
  --pane-color: #f0f0f388;
}

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

ul {
  list-style: none;
}

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

a:hover {
  color: var(--proxima-title-color);
}

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

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

body {
  font-family: serif, system-ui, -apple-system, BlinkMacSystemFont;
  font-weight: 400;
  font-style: normal;
  font-size: 100%;
  position: relative;
}

.light body {
  color: #000000;
}

body::after {
  content: "";
  display: block;
  width: 100vw;
  height: 90vh;
  height: 100svh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

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

/***********************************************************
header
***********************************************************/
header {
  padding: 30px 0 0;
  margin-bottom: 50px;
}

h1 {
  text-align: center;
  font-size: 2rem;
  line-height: 1.7;
}
@media screen and (max-width: 386px) {
  h1.h1-2025-omc-proxima {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 360px) {
  h1.h1-2025-omc-proxima {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 320px) {
  h1.h1-2025-omc-proxima {
    font-size: 1.2rem;
  }
}

h1 strong {
  display: block;
}

h1 span {
  display: flex;
  align-items: center;
}

h1 span span {
  font-size: 120%;
}

h1 span::before,
h1 span::after {
  content: "";
  display: block;
  height: 1px;
  flex-grow: 1;
  background: #fff;
}

h1 span::before {
  margin-right: .5rem;
}

h1 span::after {
  margin-left: .5rem;
}

.logo_block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo_block img {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.logo_block a:first-child {
  width: 44%;
  min-width: 220px;
}

.logo_block a:nth-child(2) {
  width: 24%;
  min-width: 120px;
  max-width: 200px;
}

.logo_block a:last-child {
  width: 24%;
  min-width: 120px;
  max-width: 200px;
}
@media screen and (max-width: 720px) {
  .logo_block a:first-child {
    width: 70%;
  }

  .logo_block a:nth-child(2) {
    width: 32%;
  }

  .logo_block a:last-child {
    width: 32%;
  }
}

/***********************************************************
main
***********************************************************/
h2 {
  padding-left: 1rem;
  font-size: 2.4rem;
  line-height: 1;
  border-left: 8px solid #fff;
  margin-bottom: 1.2rem;
}

.light h2 {
  border-left: 8px solid #000;
}

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

.preliminaries,
.mainMatch,
.reuse-notice {
  background: var(--pane-color);
}

h3 {
  font-size: 2rem;
  padding: 0 0 .75rem;
  border-bottom: 1px solid #fff;
  margin-bottom: 1rem;
}

.examDate p {
  font-size: 3.0rem;
}

@media screen and (max-width: 720px) {
  .examDate p {
    font-size: 1.75rem;
    line-height: 1.75;
  }
}

.coverage {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 1.5em;
}

.coverageItem {
  padding: 4px 0 0;
  width: 45%;
  text-align: center;
  border: 1px solid #fff;
}

.prize li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.6rem;
  margin: 1rem 0;
}

.prize img.trophy {
  width: 24px;
  height: 24px;
  margin: 4px 12px 0 0;
}

.prize li > span:nth-child(2) {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.prize li > span:nth-child(2)::after {
  content: "";
  display: block;
  height: 1px;
  flex-grow: 1;
  background: #fff;
  margin: 0 8px;
}

.prize li > span:last-child {
  padding: .25rem 1.5rem;
  border: 1px solid #fff;
  margin-left: 1rem;
  min-width: 5.2em;
  text-align: center;
}
/* 390px 以下で崩れずため苦肉の策*/
.prize .sankashou {
  display: flex;
}

@media screen and (max-width: 400px) {
  .prize .sankashou {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 380px) {
  .prize .sankashou {
    flex-direction: column;
    font-size: inherit;
  }
}
@media screen and (max-width: 300px) {
  .prize li {
    font-size: 1.4rem;
  }
}

.medals p {
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 0 5px #0005;
}

.medals p span {
  display: block;
  font-size: 70%;
}

.medals p span strong {
  font-size: 250%;
}

.medals .gold,
.medals .silver,
.medals .copper {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px #0005);
  transition: filter .45s ease-in-out;
}
.medals .gold:hover,
.medals .silver:hover,
.medals .copper:hover {
  filter: drop-shadow(0 0 5px #0005) brightness(1.35);
}

.medals .gold {
  color: #f8f5b0;
  background: center / cover url(../images/gold.png);
}

.medals .silver {
  color: #dededa;
  background: center / cover url(../images/silver.png);
}

.medals .copper {
  color: #d1b05a;
  background: center / cover url(../images/copper.png);
}

.participation {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-top: 10px;
}

@media screen and (max-width: 360px) {
  .participation {
    font-size: 1.6rem;
  }
}

.participation strong {
  padding: 0 4px 0 8px;
  font-size: 150%;
  transform: translateY(-8%);
}

.participation::before,
.participation::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
}

.participation::before {
  background: center / cover url(../images/arrow_left.png);
  margin-right: 8px;
}

.participation::after {
  background: center / cover url(../images/arrow_right.png);
  margin-left: 8px;
}

.qualification ul {
  /* display: flex; */
}

.qualification li {
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 0.5rem;
  align-items: start;
}

.qualification li img.check {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 0.25em;
}

.problem-link {
  font-size: 1.5rem;
  padding-left: 1rem;
  margin-bottom: 1rem;
  display: block;
  text-decoration: underline;
}

.reuse-notice {
  font-size: 1.6rem;
  margin-top: 2rem;
  padding: 1.6rem 2.8rem;
  color: #fff;
  line-height: 1.7;
}
.reuse-notice p {
  font-size: 1.6rem;
}
.reuse-notice ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.reuse-notice li {
  list-style: inside;
}

.section-links ul {
  padding: 12px 0;
}
.section-links li {
  display: flex;
}
.section-links a {
  font-size: 1.8rem;
  display: flex;
  width: 100%;
  padding: 6px 22px;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  background-color: rgba(255, 255, 255, 0.15);
  padding: 12px;
  justify-content: center;
  transition: .5s background-color;
  align-items: center;
}

.section-links a span:nth-child(2) {
  width: 18px;
  height: 1px;
  margin: 0 8px;
  border-top: 1px solid #fff;
}

.section-links a span:nth-child(4) {
  width: 18px;
  height: 1px;
  margin: 0 8px;
  border-top: 1px solid #fff;
}

@media screen and (max-width: 720px) {
  .section-links a {
    flex-direction: column;
    text-align: center;
    font-size: 1.6rem;
  }
  .section-links a span:nth-child(2) {
    display: none;
  }
  .section-links a span:nth-child(4) {
    display: none;
  }
}

.section-links--archive a.archive2024:hover {
  background-color: rgba(0, 160, 240, 0.8);
}
.section-links--news a.news-ivd:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000000;
}

.contact > div {
  text-align: center;
  border: 1px solid var(--text-color);
  margin-top: 24px;
}

.contact > div p {
  padding: 4px 0;
}

.contact > div a {
  display: block;
  color: #333;
  background: #fff;
  transition: .5s color, background;
}

.contact > div a:hover {
  color: var(--text-color);
  background: #fff3;
}

.light .contact > div a {
  background: var(--pane-color);
}

.light .contact > div a:hover {
  background: #666666;
  color: #fff;
}

.coverageItem figure {
  width: 90%;
  margin: .5rem auto 1rem;
  padding: 10px;
  background: linear-gradient(135deg, #0005, #0005, #0005, #2225, #0005, #0005);
  background-size: 400% 400%;
  background-position: 100% 100%;
}

.coverageItem:hover figure {
  background-position: 0% 0%;
  transition: background-position 1.2s ease-in-out;
}

.examDate p:last-child {
  border-top: 1px solid #fff;
}

/***********************************************************
footer
***********************************************************/
footer {
  text-align: center;
  padding: 10px 0;
  font-size: 10px;
  color: #333;
  background: #fff;
}

footer small {
  font-size: 10px;
}

/***********************************************************
submitted
***********************************************************/
.submitted::after {
  opacity: 0.5;
}

.submit_done {
  margin: 50px auto;
  padding: 2rem;
  width: fit-content;
  color: #333;
  background: #fffa;
}

.submit_done a {
  display: block;
  margin-top: 4rem;
  text-align: center;
  font-size: 1.5rem;
}

/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
styles for Mobile
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
@media screen and (max-width: 720px) {
  /***********************************************************
common for Mobile
***********************************************************/
  .forPC {
    display: none;
  }

  .pageContents {
    width: 97%;
  }

  /***********************************************************
header for Mobile
***********************************************************/
  header {
    padding: 30px 2.5% 0;
  }

  h1 strong {
    font-size: 175%;
  }

  .logo_block {
    margin-top: 18px;
  }

  /***********************************************************
main for Mobile
***********************************************************/
  main > section {
    padding: 0 2.5%;
    margin-bottom: 50px;
  }

  .preliminaries,
  .mainMatch {
    padding: .5rem 1.25rem 1rem;
    margin: 10px 0;
  }

  .preliminaries figure {
    margin: 15px 0;
  }

  .coverage {
    margin: 20px 0 10px;
  }

  .prize ul {
    margin-bottom: 30px;
  }

  .medals .gold {
    margin: auto;
    width: 200px;
    height: 200px;
  }

  @media screen and (max-width: 360px) {
    .medals .gold {
      width: 165px;
      height: 165px;
    }
  }

  .medals .gold p {
    transform: translateY(-8%);
    font-size: 3rem;
  }

  .medals.forMobile div {
    display: flex;
  }

  .medals.forMobile div.silver_copper {
    justify-content: space-between;
  }

  .medals .silver,
  .medals .copper {
    width: 165px;
    height: 165px;
  }

  @media screen and (max-width: 360px) {
    .medals .silver,
    .medals .copper {
      width: 128px;
      height: 128px;
    }
  }

  .medals .silver p,
  .medals .copper p {
    transform: translateY(-8%);
    font-size: 2.4rem;
  }

  .problem-link {
    font-size: 1.35rem;
    padding-left: 1rem;
    /* border-left: 4px solid var(--proxima-title-color); */
    /* color: var(--proxima-title-color); */
    margin-bottom: 1rem;
    display: block;
    text-decoration: underline;
  }

  .problem-link:hover {
    color: var(--omc-title-color);
    text-decoration: underline;
  }

  .reuse-notice {
    padding: .5rem 1.25rem 1rem;
  }

  .contact > div a {
    padding: 8px 0;
    font-size: 1.8rem;
  }

  /***********************************************************
footer for Mobile
***********************************************************/
  footer .logo_block {
    padding: 0 20px;
  }
}

/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
styles for PC
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
@media screen and (min-width: 721px) {
  /***********************************************************
common for PC
***********************************************************/

  .pageContents {
    width: 90%;
    margin: auto;
  }

  .forMobile {
    display: none;
  }

  /***********************************************************
header for PC
***********************************************************/
  header {
    padding: 40px 5% 20px;
  }

  h1 {
    font-size: 3.6rem;
  }

  h1 strong {
    font-size: 190%;
  }

  .logo_block {
    margin-top: 40px;
  }

  /***********************************************************
main for PC
***********************************************************/
  main > section {
    margin: 0 auto 60px;
    padding: 0 5%;
  }

  h2 {
    font-size: 3.1rem;
  }

  p {
    font-size: 1.8rem;
  }

  .examDate {
    position: relative;
    padding-bottom: 70px;
  }

  .examDate p {
    position: absolute;
    top: 0;
    left: 25%;
    font-size: 3.2rem;
    line-height: 1;
  }

  .examDate p:last-child {
    top: 50px;
    padding-top: 16px;
    border-top: 1px solid #fff;
  }

  .preliminaries,
  .mainMatch {
    padding: 1.6rem 2.8rem;
    margin-top: 2rem;
  }

  .preliminaries figure {
    margin: 8px 0;
  }

  .coverage {
    margin: 20px 0 10px;
  }

  .coverageItem {
    width: 23%;
  }

  .prize li {
    padding: 10px 7%;
    font-size: 2.4rem;
  }

  .prize li > span:last-child {
    min-width: 4.7em;
  }

  .medals.forPC {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }

  .medals.forPC div {
    width: 200px;
    height: 200px;
  }

  .medals.forPC div p {
    font-size: 3rem;
    transform: translateY(-8%);
  }

  .participation {
    margin-top: 40px;
    font-size: 2.4rem;
  }

  .qualification li {
    font-size: 1.8rem;
    margin-right: 3rem;
  }
  .qualification li img.check {
    width: 18px;
    height: 18px;
  }

  .contact > div {
    margin-top: 34px;
  }

  .contact > div p {
    padding: 8px 0;
  }

  .contact > div a {
    padding: 12px 0;
    font-size: 2.4rem;
  }

  /***********************************************************
footer for PC
***********************************************************/
  footer {
    padding: 20px 0;
  }

  footer .logo_block {
    padding: 0 30px;
    margin-bottom: 20px;
  }
}

/*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
styles for PC Wide
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
@media screen and (min-width: 940px) {
  .pageContents {
    width: 900px;
  }

  .medals.forPC div {
    width: 240px;
    height: 240px;
  }

  .medals.forPC div p {
    font-size: 3.5rem;
  }

  .problem-link {
    font-size: 2.0rem;
  }
}

/***********************************************************
particles
***********************************************************/
canvas {
  display: block;
  vertical-align: bottom;
}

/* ---- particles.js container ---- */
#particles-js {
  position: fixed;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

/* ---- stats.js ----
.count-particles {
  background:#000022;
  position:absolute;
  top:48px;
  left:0;
  width:80px;
  color:#13E8E9;
  font-size:.8em;
  text-align:left;
  text-indent:4px;
  line-height:14px;
  padding-bottom:2px;
  font-family:Helvetica, Arial, sans-serif; font-weight: bold;
}
.js-count-particles {
font-size: 1.1em;
}
#stats, .count-particles {
-webkit-user-select:none;
margin-top:5px;
margin-left:5px;
}
#stats {
border-radius:3px 3px 0 0;
overflow: hidden;
}
.count-particles {
border-radius:0 0 3px 3px;
}
 */

/*
add by kato
*/
.caution-pdf {
  /*注意事項のpdfでの下線*/
  text-decoration: underline;
  /* 下線 */
}

/*
add by aramaki
*/
.qualifying-link {
  /*注意事項のpdfでの下線*/
  text-decoration: underline;
  /* 下線 */
}

/*
以下はyoutubeの埋め込み用
chatGPTに聞いたので詳細は知らない
*/
.iframe-youtube {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 のアスペクト比 */
  height: 0;
  overflow: hidden;
}

.iframe-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

body::after {
  z-index: -2;
}

#pageTop {
  position: fixed;
  z-index: 1;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  text-align: center;
  background-color: #0005;
  cursor: pointer;
  color: #f1d3bc;
  transition: bottom 0.5s ease;
}
#pageTop.pressed {
  background-color: inherit;
  bottom: 150px;
}
#pageTop.pressed p {
  opacity: 0;
}
@media screen and (max-width: 720px) {
  #pageTop {
    background-color: inherit;
  }
  #pageTop.pressed {
    bottom: 60px;
  }
}

#pageTop svg {
  width: 30px;
  height: 30px;
  margin: 8px 0 4px 0;
}

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

/* add by kato */
.introduction h3 {
  margin-top: 20px; /* 上部の余白を20pxに設定 */
  color: khaki;
  text-decoration: underline; /* 下線を追加 */
}

/**
 * for mobile
 */
@media screen and (max-width: 720px) {
  .navigationMenu ul {
    width: calc(100% - 40px);
    padding: 12px 12px;
  }
}

@media (min-width: 720px) and (max-width: 899px) {
  .examDate p:last-child {
    top: 80px;
  }
}

.hidden {
  display: none;
}
