t-intro .image-fish .pc-imageruby {
  ruby-align: distribute-space;
  ruby-overhang: auto;
  ruby-position: above;
}

ruby rt, ruby rp {
  font-size: 9px !important;
  font-weight: lighter;
}

/* Aspect Ratios */
.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-3-1 { aspect-ratio: 3 / 1; }
.aspect-11-5 { aspect-ratio: 11 / 5; }
.aspect-42-23 { aspect-ratio: 42 / 23; }
.aspect-5-1 { aspect-ratio: 5 / 1; }
.aspect-128-109 { aspect-ratio: 128 / 109; }
.aspect-260-109 { aspect-ratio: 260 / 109; }
.aspect-320-109 { aspect-ratio: 320 / 109; }
.aspect-48-13 { aspect-ratio: 48 / 13; }
.aspect-13-1 { aspect-ratio: 13 / 1; }
.aspect-117-29 { aspect-ratio: 117 / 29; }
.aspect-240-29 { aspect-ratio: 240 / 29; }
.aspect-74-19 { aspect-ratio: 74 / 19; }
.aspect-329-34 { aspect-ratio: 329 / 34; }
.aspect-9-1 { aspect-ratio: 9 / 1; }
.aspect-862-183 { aspect-ratio: 862 / 183; }
.aspect-49-18 { aspect-ratio: 49 / 18; }
.aspect-10-1 { aspect-ratio: 10 / 1; }
.aspect-25-11 { aspect-ratio: 25 / 11; }
.aspect-30-11 { aspect-ratio: 30 / 11; }
.aspect-127-115 { aspect-ratio: 127 / 115; }
.aspect-599-49 { aspect-ratio: 599 / 49; }
.aspect-37-12 { aspect-ratio: 37 / 12; }
.aspect-70-17 { aspect-ratio: 70 / 17; }
.aspect-130-43 { aspect-ratio: 130 / 43; }
.aspect-7-2 { aspect-ratio: 7 / 2; }
.aspect-41-21 { aspect-ratio: 41 / 21; }
.aspect-80-67 { aspect-ratio: 80 / 67; }
.aspect-64-23 { aspect-ratio: 64 / 23; }
.aspect-215-56 { aspect-ratio: 215 / 56; }
.aspect-450-104 { aspect-ratio: 450 / 104; }
.aspect-790-56 { aspect-ratio: 790 / 56; }
.aspect-640-230 { aspect-ratio: 640 / 230; }
.aspect-640-270 { aspect-ratio: 640 / 270; }
.aspect-890-155 { aspect-ratio: 890 / 155; }
.aspect-860-224 { aspect-ratio: 860 / 224; }
.aspect-48-37 { aspect-ratio: 48 / 37; }
.aspect-57-16 { aspect-ratio: 57 / 16; }

.br-sp { display: none; }

/* ============================================================
   Base Container
   ============================================================ */

.medaka-contest {
  position: relative;
  padding: 0;
  width: 100%;
  display: block;
  overflow: hidden;
  z-index: 1;
}

/* ============================================================
   Intro Section
   ============================================================ */

.medaka-contest-intro {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.medaka-contest-intro h1 {
  position: absolute;
  top: 0;
  margin: 6% auto 0;
  padding: 0;
  width: 80%;
  max-width: 77rem;
  z-index: 100;
  transition: all .5s ease;
}

.medaka-contest-intro.end h1 {
  width: 90%;
  max-width: 80rem;
}

.medaka-contest-intro .intro-inner {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 98rem;
  height: 100%;
  max-height: 65.4rem;
  transition: all .5s ease;
}

.medaka-contest-intro .image-fish {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  z-index: 20;
  transition: all .5s ease;
}

.medaka-contest-intro .image-fish .pc-image {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
}

.medaka-contest-intro .image-fish .pc-image img {
  object-fit: cover;
}

.medaka-contest-intro .intro-bg {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 0;
  display: block;
  z-index: 5;
  background: linear-gradient(90deg, rgb(136 172 231) 40%, rgb(136 172 231) 60%);
}

.medaka-contest-intro.end .intro-bg {
  background-color: #958d89;
}

.medaka-contest-intro .intro-bg-wave {
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 4rem;
  z-index: 10;
}

.medaka-contest-intro .intro-bg-wave img {
  width: 100%;
  height: 4rem;
}

.medaka-contest-intro .intro-bg .pc-image img {
  height: 100rem;
  object-fit: cover;
}

.medaka-contest-intro .intro-kodomo-logo {
  position: absolute;
  bottom: -1.3em;
  left: 0;
  right: 0;
  margin: auto;
  width: 94%;
  max-width: 98rem;
  display: flex;
  justify-content: flex-end;
  z-index: 50;
  pointer-events: none;
}

.medaka-contest-intro .intro-kodomo-logo img {
  margin: 0;
  width: 25%;
  max-width: 16rem;
}


@media screen and (min-width: 769px) {
  .medaka-contest-intro h1 {
    margin: 3rem auto 0;
    width: 100%;
    max-width: 84rem;
  }

  .medaka-contest-intro .intro-bg {
    padding: 0;
    height: 100%;
  }

  .medaka-contest-intro .intro-kodomo-logo {
    bottom: -2.2em;
  }
}

@media screen and (max-width: 1920px) {
   .medaka-contest-intro .intro-bg .pc-image {
    height: 73rem;
    object-fit: cover;
  }
}

@media screen and (max-width: 1024px) {
.medaka-contest-intro .intro-bg .pc-image {
  height: 53rem;
}
}


/* ============================================================
   Section Base
   ============================================================ */

.medaka-contest-section {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
}

/* ============================================================
   Info Section
   ============================================================ */

/* Background slider */
.info-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 120%;
  display: block;
  z-index: 1;
}

.info-bg-slider:before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 90%;
  height: 150%;
  display: block;
  background: url(/medakacon2025/img/bg_star_02.svg) no-repeat;
  background-size: 100% auto;
  animation: slide-l 7.5s linear infinite;
  content: "";
  z-index: 1;
}

.info-bg-slider:after {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 90%;
  height: 150%;
  display: block;
  background: url(/medakacon2025/img/bg_star_01.svg) no-repeat;
  background-size: 100% auto;
  animation: slide-s 5.5s linear infinite;
  content: "";
  z-index: 1;
}

@keyframes slide-s {
  0% {
    background-position: 0 0%;
    opacity: 0.1;
    transform: rotate(0deg) scale(0.7);
  }
  100% {
    background-position: 0 64%;
    opacity: 0.9;
    transform: rotate(-12deg) scale(2.5);
  }
}

@keyframes slide-l {
  0% {
    background-position: 0 20%;
    opacity: 0.9;
    transform: rotate(10deg) scale(0.7);
  }
  100% {
    background-position: 0 -50%;
    opacity: 0.1;
    transform: rotate(0deg) scale(2);
  }
}

/* Info background */
.medaka-contest-section.medaka-contest-info {
  padding-bottom: 5em;
  overflow: hidden;
  background-color: rgb(182 235 237);
  background-image:
    radial-gradient(circle, rgb(255 255 255 / 56%) 30%, transparent 16%),
    radial-gradient(circle, rgb(255 255 255 / 56%) 30%, transparent 16%);
  background-size: 50px 50px;
  background-position: 0px 0px, -24px -24px;
}

.medaka-contest-section.medaka-contest-info:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18rem;
  display: block;
  background: linear-gradient(180deg, rgb(182 235 237) 5%, rgba(182, 235, 237, 0) 100%);
  content: "";
  z-index: 10;
}

.medaka-contest-section.medaka-contest-info:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.8rem;
  display: block;
  background: url(/medakacon2025/img/bg_blue_wave.svg) center bottom no-repeat;
  background-size: 100% 2.8rem;
  content: "";
  z-index: 10;
}

.medaka-contest-section.medaka-contest-info.end {
  padding-bottom: 3em;
  position: relative;
  top: 1rem;
  z-index: 5;
}

.medaka-contest-section.medaka-contest-info.end:after {
  position: inherit;
  background: none;
}

/* Info fish image */
.medaka-contest-info .image-fish {
  position: relative;
  z-index: 20;
  max-width: 66rem;
  padding: 0.5rem 1rem 0;
  left: 0;
  right: 0;
  margin: auto;
}

.medaka-contest-info .image-fish .pc-image {
  display: none;
}

/* Info content blocks */
.contest-inner-block {
  position: relative;
  margin: auto;
  padding: 2em 0;
  width: 90%;
  max-width: 92rem;
  display: block;
  z-index: 100;
}

.contest-inner-block.award-inner {
  padding: 0;
  width: 94%;
  max-width: 100rem;
}

.medaka-contest-info .medaka-contest-section-title {
  position: relative;
  margin: auto;
  padding: 0 0 0.5em 12.5rem;
  width: 100%;
  display: block;
  z-index: 100;
}

.medaka-contest-info .medaka-contest-section-title.end {
  padding: 0 0 0.5em 0;
}

/* PC/SP image toggle (shared) */
.medaka-contest-info .pc-image{
  display: block;
}

/* Contest inner body */
.contest-inner-body {
  position: relative;
  padding: 1em;
  width: 100%;
  display: block;
  border-radius: 0.4em;
  background-color: #eee;
}

.contest-inner-body:before {
  position: absolute;
  top: 1em;
  left: 1em;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.4em;
  background-color: #666;
  content: "";
  z-index: -1;
}

.medaka-contest-info .contest-inner-body {
  background-color: #6eb869;
}

.medaka-contest-info .contest-inner-body:before {
  background-color: #468f42;
}

.medaka-contest-info .contest-inner-body.backimgnone {
  background: none;
  padding: 0;
}

.medaka-contest-info .contest-inner-body.backimgnone.end {
  margin-top: 0;
}

.medaka-contest-info .contest-inner-body.backimgnone:before {
  background: none;
}

.medaka-contest-info .contest-inner-body.backimgnone img {
  margin: 0.2em 0;
}

/* Text block */
.medaka-contest-info .txt-block {
  position: relative;
  padding: 1em 1em 1em 16rem;
  width: 100%;
  display: block;
  border-radius: 0.4em;
  background-color: #fff;
}

.medaka-contest-info .txt-block:after {
  position: absolute;
  top: -3em;
  left: -1em;
  width: 20rem;
  height: calc(100% + 5em);
  display: block;
  background: url(/medakacon2026/img/character_01.svg) left top no-repeat;
  background-size: 20rem auto;
  content: "";
  transform: rotate(-8deg);
}

.medaka-contest-info .txt-block p {
  position: relative;
  padding: 0.5em 0;
  color: #468f42;
  word-wrap: break-word;
  font-size: 2rem;
  line-height: 1.8;
  text-shadow:
    0.1rem 0.1rem 0.1rem rgb(255, 255, 255),
    0.2rem 0.2rem 0.3rem rgb(255, 255, 255),
    0.2rem 0.2rem 0.5rem rgb(255, 255, 255),
    0 0 0.3rem rgb(255, 255, 255);
  z-index: 100;
}

/* Info block */
.medaka-contest-info .info-block {
  position: relative;
  margin: 0;
  padding: 1em 0 0;
  display: flex;
  justify-content: flex-start;
  background-color: #6eb869;
  z-index: 100;
}

.medaka-contest-info .info-block li:first-child {
  padding: 0 0.7em 0 0;
}

.medaka-contest-info .info-block li:last-child {
  padding: 0 0 0 0.7em;
}

/* Hapyou logo & endcut */
.title-hapyou-logo {
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

.endcut-img {
  max-width: 434px;
  width: 90%;
  display: block;
  margin: 0 auto;
  aspect-ratio: 434 / 370;
}

@media screen and (min-width: 899px) {
  .medaka-contest-info .image-fish {
    max-width: 128rem;
    padding: 0 1rem;
  }

  .medaka-contest-info .image-fish .pc-image {
    display: block;
  }
}

@media screen and (max-width: 1400px) {
  .medaka-contest-section.medaka-contest-info:after {
    background-size: 140rem 2.8rem;
  }
}

@media screen and (max-width: 898px) {
  .medaka-contest-section.medaka-contest-info:before {
    background: linear-gradient(180deg, rgb(182 235 237) 65%, rgba(182, 235, 237, 0) 100%);
  }
}

@media screen and (max-width: 768px) {
.medaka-contest-intro .intro-bg {
    height: 66.7347%;
    max-height: 64.4rem;
  }

.medaka-contest-intro .intro-bg .pc-image {
      height: unset;
      object-fit: unset;
    }

  .medaka-contest-info .medaka-contest-section-title {
    padding: 0 0 0.5em;
    width: 80%;
    max-width: 38rem;
  }

  .medaka-contest-info .medaka-contest-section-title.end {
    padding: 0 0 0.5em 0;
    width: 100%;
    max-width: 48rem;
  }
}

@media screen and (max-width: 640px) {
  .contest-inner-block {
    padding: 2em 0 3em;
  }

  .medaka-contest-info .info-block {
    flex-direction: column;
  }

  .medaka-contest-info .txt-block p {
    font-size: 1.8rem;
  }

  .medaka-contest-info .info-block li:first-child,
  .medaka-contest-info .info-block li:last-child {
    position: relative;
    padding: 12% 0 0;
    width: 100%;
    height: 0;
    display: block;
    text-align: left;
  }

  .medaka-contest-info .info-block li:first-child img,
  .medaka-contest-info .info-block li:last-child img {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .medaka-contest-section.medaka-contest-info:after {
    background-size: 100rem 2rem;
  }
}

@media screen and (max-width: 480px) {
  .br-sp { display: block; }

  .contest-inner-body:before {
    top: 0.5em;
    left: 0.5em;
  }

  .medaka-contest-info .txt-block {
    padding: 5rem 0.5em 1em;
  }

  .medaka-contest-info .txt-block:after {
    top: -2em;
    left: 0;
    width: 13rem;
    height: 13rem;
    background-size: 13rem auto;
    transform: rotate(-10deg);
  }

  .medaka-contest-info .txt-block p {
    padding: 0.5em 0;
    background-color: #fff;
    font-size: 1.8rem;
    text-shadow: none;
  }
}

@media screen and (max-width: 425px) {
.medaka-contest-intro h1 {
  margin: 4% auto 0;
  width: 94%;
}

.medaka-contest-intro .intro-bg .pc-image {
  height: 33rem;
  object-fit: cover; 
}
}



/* ============================================================
   Theme Section
   ============================================================ */

.medaka-contest-section.medaka-contest-theme:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18rem;
  display: block;
  background: linear-gradient(180deg, rgba(185, 235, 247, 1) 5%, rgba(185, 235, 247, 0) 100%);
  content: "";
  z-index: 10;
}

.medaka-contest-section.medaka-contest-theme:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8em;
  display: block;
  background: #fff;
  content: "";
  z-index: 10;
}

.medaka-contest-section.medaka-contest-theme .theme-bg {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.medaka-contest-section.medaka-contest-theme .theme-bg img {
  width: 100%;
  height: 100%;
}

.medaka-contest-section.medaka-contest-theme .theme-bg:before {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
  background: url(/medakacon2023/img/bg_fish_white.svg) repeat-x;
  background-size: 50%;
  animation: fish-1 8.5s linear infinite;
  content: "";
  opacity: 0.8;
}

.medaka-contest-section.medaka-contest-theme .theme-bg:after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5%;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
  background: url(/medakacon2023/img/bg_fish_blue.svg) repeat-x;
  background-size: 50%;
  animation: fish-2 10.5s linear infinite;
  content: "";
  opacity: 0.8;
}

@keyframes fish-1 {
  0% { background-position: 0 0; }
  2% { background-position: 2% 5%; }
  4% { background-position: 4% 5%; }
  100% { background-position: 100% 0; }
}

@keyframes fish-2 {
  0% { background-position: 0 0; }
  60% { background-position: 60% -5%; }
  62% { background-position: 62% -5%; }
  100% { background-position: 100% 0; }
}

.medaka-contest-theme .medaka-contest-section-title {
  position: relative;
  margin: 0 auto 1em;
  padding: 0;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 100;
}

.medaka-contest-theme .medaka-contest-section-title .icon {
  margin: 0;
  padding: 0;
  width: 8rem;
  height: 8rem;
  display: block;
}

.medaka-contest-theme .medaka-contest-section-title picture {
  margin: 0;
  padding: 0 0.5em;
}

.medaka-contest-theme .character {
  position: absolute;
  top: -20%;
  right: -5%;
  margin: 0;
  padding: 0;
  width: 40%;
  max-width: 28rem;
  display: block;
  animation: robo 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes robo {
  0% { margin: 0; }
  50% { margin: 1em 0 0; }
  100% { margin: 0; }
}

.medaka-contest-section.medaka-contest-theme .contest-inner-body {
  background-color: #fff;
}

.medaka-contest-section.medaka-contest-theme .contest-inner-body:before {
  background-color: #93c6f2;
}

.medaka-contest-theme .lead-txt {
  padding: 1em;
  color: #333;
  font-size: 1.8rem;
  line-height: 1.8;
}

.medaka-contest-theme .medaka-contest-section-sub-title {
  position: relative;
  margin: auto;
  padding: 1em 0;
  width: 90%;
  max-width: 36rem;
}

.medaka-contest-theme .txt-block {
  position: relative;
  padding: 1em 2em 5em;
  width: 100%;
  display: block;
  border-radius: 0 0 0.8em 0.8em;
  background-color: #bee6f9;
}

.medaka-contest-theme .txt-block:before {
  position: absolute;
  top: 0;
  left: 1rem;
  width: calc(100% - 2rem);
  height: 2.8rem;
  display: block;
  background: url(/medakacon2023/img/bg_white_wave.svg) center bottom no-repeat #bee6f9;
  background-size: 100% auto;
  transform: scale(1, -1);
  content: "";
  z-index: 10;
}

.medaka-contest-theme .txt-block:after {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  width: calc(100% - 2rem);
  height: 100%;
  display: block;
  border-radius: 0.8em;
  border: solid #fff 0.2rem;
  background-color: transparent;
  content: "";
  z-index: 10;
}

.medaka-contest-theme .txt-block p {
  position: relative;
  padding: 0.5em 0 2em;
  color: #333;
  font-size: 1.6rem;
  line-height: 1.8;
}

.medaka-contest-theme ul {
  position: relative;
  padding: 1.5em 0 1em 1em;
  display: flex;
  flex-wrap: wrap;
}

.medaka-contest-theme ul li {
  position: relative;
  padding: 0.5em 0 0;
  width: calc(25% - 1rem);
  list-style: disc;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.6;
  word-wrap: break-word;
}

.medaka-contest-theme ul li.kind01 {
  width: calc(75% - 1rem);
}

.medaka-contest-theme .theme-foot-image {
  position: relative;
  margin: -10% auto 0;
  padding: 0;
  width: 100%;
  max-width: 82.6rem;
  z-index: 100;
}

@media screen and (max-width: 768px) {
  .medaka-contest-section.medaka-contest-theme .theme-bg:before {
    animation: fish-1 6.5s linear infinite;
  }

  .medaka-contest-section.medaka-contest-theme .theme-bg:after {
    animation: fish-2 8.5s linear infinite;
  }

  .medaka-contest-theme .medaka-contest-section-title .icon {
    width: 6rem;
    height: 6rem;
  }

  .medaka-contest-theme .character {
    top: -12%;
    right: 0%;
    width: 50%;
  }

  .medaka-contest-theme .txt-block {
    padding: 1em 2em 3em;
  }

  .medaka-contest-theme ul:after {
    display: block;
    width: calc(33.333% - 1rem);
    content: "";
  }

  .medaka-contest-theme ul li {
    width: calc(33.333% - 1rem);
  }
}

@media screen and (max-width: 540px) {
  .medaka-contest-theme ul li {
    width: calc(50% - 1rem);
  }
}

/* ============================================================
   Award Section
   ============================================================ */

.medaka-contest-section.medaka-contest-award {
  width: 100%;
  display: block;
}

.medaka-contest-section.medaka-contest-award:before {
  position: absolute;
  bottom: -10rem;
  margin: auto;
  padding: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10rem 50vw 0 50vw;
  border-color: #ffe0aa transparent transparent transparent;
  content: "";
  z-index: 100;
}

.medaka-contest-section.medaka-contest-award.end:before {
  position: inherit;
  bottom: inherit;
  border-style: inherit;
  border-width: inherit;
  border-color: inherit;
}

.medaka-contest-section.medaka-contest-award.end:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.8rem;
  display: block;
  background: url(/medakacon2023/img/bg_blue_wave.svg) center bottom no-repeat;
  background-size: 100% 2.8rem;
  content: "";
  z-index: 100;
}

.award-intro {
  position: relative;
  margin: 0;
  padding: 5em 0 0;
  display: block;
}

.medaka-contest-section.medaka-contest-award.end .award-intro {
  padding: 10em 0 0;
}

.award-bg {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  margin: auto;
  padding: 0;
  width: 96%;
  display: block;
  z-index: -1;
  opacity: 0.5;
}

.medaka-contest-section.medaka-contest-award.end .award-bg {
  top: 8%;
}

.medaka-contest-award .medaka-contest-section-title {
  position: absolute;
  bottom: -1em;
  left: 0;
  right: 0;
  margin: auto;
  padding: 0;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 200;
}

.medaka-contest-award .medaka-contest-section-title .icon {
  margin: 0;
  padding: 0;
  width: 8rem;
  height: 8rem;
  display: block;
}

.medaka-contest-award .medaka-contest-section-title picture {
  margin: 0;
  padding: 0 0.5em;
}

.medaka-contest-award .character {
  position: relative;
  margin: auto;
  padding: 0;
  width: 85%;
  max-width: 50rem;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.medaka-contest-award .character:before {
  position: absolute;
  bottom: 0;
  margin: auto;
  padding: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50vw 8rem 50vw;
  border-color: transparent transparent #fffed4 transparent;
  content: "";
  z-index: -1;
}

.medaka-contest-award .character:after {
  position: absolute;
  top: -60%;
  margin: auto;
  padding: 100% 0 0;
  width: 100%;
  height: 0;
  display: block;
  background: url(/medakacon2023/img/bg_light.svg) center center no-repeat;
  background-size: contain;
  animation: bg-light 60s linear infinite;
  content: "";
  z-index: -2;
}

@keyframes bg-light {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.medaka-contest-award .award-block {
  position: relative;
  margin: auto;
  padding: 5em 0;
  width: 100%;
  background-color: #fffed4;
  z-index: 100;
}

.medaka-contest-award.end .award-block {
  padding: 5em 0 10em;
}

.medaka-contest-award .award-block:after {
  position: absolute;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 40%;
  background: linear-gradient(0deg, rgba(255, 224, 170, 1) 0%, rgba(255, 224, 170, 0) 75%);
  content: "";
  z-index: 10;
}

.medaka-contest-award .contest-inner-block .lead-txt {
  margin: auto;
  padding: 0;
  width: 94%;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.8;
  text-align: center;
}

.medaka-contest-award .award-info {
  position: relative;
  margin: auto;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.medaka-contest-award .award-info .award-info-li {
  position: relative;
  margin: 1.5em 1.5rem 0;
  padding: 0 0 12rem;
  width: calc(100% / 3 - 3rem);
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 0 0.6rem 0.6rem;
  background-color: #fff;
  box-shadow: 0 1em 1rem -0.5rem rgba(0, 0, 0, 0.2);
  z-index: 500;
}

.medaka-contest-award .award-title {
  position: relative;
  padding: 0;
  display: block;
  background-color: #fffed4;
}

.medaka-contest-award .award-class {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  max-width: 12.7rem;
  display: block;
}

.award-info-inner ul {
  margin: 1.5em 0 0 2em;
  padding: 0;
  display: block;
  list-style: disc;
  font-size: 1.6rem;
  line-height: 1.6;
}

.award-info-inner li strong {
  color: #f30;
  font-size: 2rem;
}

@media screen and (max-width: 860px) {
  .medaka-contest-award .award-info {
    flex-wrap: wrap-reverse;
  }

  .medaka-contest-award .award-info .award-info-li {
    width: 30rem;
  }

  .medaka-contest-award .award-info .award-info-li:first-child {
    order: 3;
  }

  .medaka-contest-award .award-info .award-info-li:nth-child(2) {
    margin: 1.5em 1rem 0;
    width: calc(50% - 2rem);
    order: 1;
  }

  .medaka-contest-award .award-info .award-info-li:nth-child(3) {
    margin: 1.5em 1rem 0;
    width: calc(50% - 2rem);
    order: 2;
  }
}

@media screen and (max-width: 768px) {
  .medaka-contest-section.medaka-contest-info.end {
    padding-bottom: 0;
  }

  .medaka-contest-section.medaka-contest-info.end .contest-inner-block {
    padding: 1em 0 3em 0;
  }

  .medaka-contest-section.medaka-contest-award.end .award-intro {
    padding: 6em 0 0;
  }

  .medaka-contest-section.medaka-contest-award.end .award-bg {
    top: 4%;
  }

  .medaka-contest-award .contest-inner-block .lead-txt {
    text-align: left;
  }

  .contest-inner-block .lead-txt br {
    display: none;
  }

  .medaka-contest-award .award-info {
    flex-wrap: wrap-reverse;
  }

  .medaka-contest-award.end .award-block {
    padding: 5em 0 8em;
  }
}

@media screen and (max-width: 640px) {
  .medaka-contest-award .medaka-contest-section-title {
    bottom: -4em;
    flex-direction: column;
  }

  .medaka-contest-award .medaka-contest-section-title .icon {
    width: 6rem;
    height: 6rem;
  }

  .medaka-contest-award .contest-inner-block .lead-txt {
    padding: 2em 0 0;
  }
}

@media screen and (max-width: 580px) {
  .medaka-contest-award .award-info .award-info-li,
  .medaka-contest-award .award-info .award-info-li:nth-child(2),
  .medaka-contest-award .award-info .award-info-li:nth-child(3) {
    margin: 1.5em 0 0.5em;
    width: 30rem;
  }
}

/* ============================================================
   Summary Section
   ============================================================ */

.medaka-contest-section.medaka-contest-summary {
  overflow: hidden;
  background-color: rgba(241, 251, 247, 1);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 1em,
    rgba(206, 249, 231, 0.3) 1em,
    rgba(206, 249, 231, 0.3) 2em
  );
}

.medaka-contest-section.medaka-contest-summary:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  display: block;
  background: linear-gradient(0deg, rgba(241, 251, 247, 0) 0%, rgba(241, 251, 247, 1) 75%);
  content: "";
  z-index: 10;
}

.medaka-contest-summary .contest-inner-block {
  padding: 8em 0 0;
}

.medaka-contest-summary .medaka-contest-section-title {
  margin: auto;
  padding: 0;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 200;
}

.medaka-contest-summary .medaka-contest-section-title .icon {
  margin: 0;
  padding: 0;
  width: 8rem;
  height: 8rem;
  display: block;
}

.medaka-contest-summary .summary-inner {
  margin: 1.5em auto 0;
  padding: 2em;
  width: 100%;
  display: block;
  border-radius: 1em;
  background-color: #fff;
}

.summary-inner .summary-list {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 1.6rem;
  line-height: 1.7;
}

.summary-inner .summary-list dt {
  margin: 0.5em 0;
  padding: 1em 0;
  width: 9em;
  display: block;
  border-top: dotted 0.1rem #999;
}

.summary-inner .summary-list dt strong {
  font-size: 1.8rem;
}

.summary-inner .summary-list dd {
  margin: 0.5em 0;
  padding: 1em 0;
  width: calc(100% - 9em);
  display: block;
  border-top: dotted 0.1rem #999;
}

.summary-inner .summary-list dt:first-child,
.summary-inner .summary-list dt:first-child + dd {
  border-top: none;
}

.summary-inner .check-point {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 1.6rem;
  line-height: 1.6;
}

.summary-inner .check-point li {
  position: relative;
  margin: 0 0 1em;
  padding: 0 0 0 2em;
}

.summary-inner .check-point li:before {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  border-radius: 0.2rem;
  border: 0.1rem solid #999;
  content: "";
}

.summary-inner .check-point li:after {
  position: absolute;
  top: 0.3rem;
  left: 0.2rem;
  width: 1.4rem;
  height: 0.6rem;
  display: block;
  border: 0.4rem solid #f60;
  border-width: 0 0 0.4rem 0.4rem;
  transform: rotate(-45deg);
  content: "";
}

.summary-inner .summary-banner {
  padding: 1em 0 0;
  width: 100%;
  max-width: 35rem;
  display: block;
}

.medaka-contest-summary .summary-bottom-image {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.medaka-contest-summary .summary-bottom-image .voice {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  width: 50%;
  max-width: 48rem;
  display: flex;
  align-items: center;
  z-index: 10;
}

.medaka-contest-summary .summary-bottom-image .character {
  position: relative;
  margin: -5% 0 0;
  width: 50%;
  max-width: 48rem;
  display: block;
  z-index: 1;
}

@media screen and (max-width: 640px) {
  .medaka-contest-summary .medaka-contest-section-title {
    bottom: -4em;
    flex-direction: column;
  }

  .medaka-contest-summary .medaka-contest-section-title .icon {
    width: 6rem;
    height: 6rem;
  }

  .summary-inner .summary-list dt {
    margin: 0;
    padding: 1em 0 0.5em;
    width: 100%;
    border-top: none;
    border-bottom: dotted 0.1rem #999;
  }

  .summary-inner .summary-list dd {
    margin: 0;
    padding: 1em 0 1em 1em;
    width: 100%;
    border-top: none;
  }
}

@media screen and (max-width: 620px) {
  .medaka-contest-summary .summary-bottom-image {
    flex-direction: column;
    justify-content: center;
  }

  .medaka-contest-summary .summary-bottom-image .voice {
    position: relative;
    top: inherit;
    left: inherit;
    bottom: inherit;
    margin: 1em auto 0;
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .medaka-contest-summary .summary-bottom-image .character {
    margin: 0 auto;
    width: 90%;
  }
}

/* ============================================================
   Aside Title
   ============================================================ */

.medaka-contest-aside-title {
  position: relative;
  margin: 0 0 0.8em;
  padding: 0 0 0.2em;
  color: #07a0d2;
  font-size: 3rem;
  line-height: 1.4;
}

.medaka-contest-aside-title em {
  color: #f90;
}

.medaka-contest-aside-title:before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.5rem;
  content: '';
  background-image: repeating-linear-gradient(-45deg, #CCC, #CCC 1px, transparent 0.2rem, transparent 0.5rem);
  background-size: 0.7rem 0.7rem;
  backface-visibility: hidden;
}

.medaka-contest-aside-title:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 15%;
  height: 0.5rem;
  content: '';
  background-image: repeating-linear-gradient(-45deg, #07a0d2, #07a0d2 1px, transparent 0.2rem, transparent 0.5rem);
  background-size: 0.7rem 0.7rem;
  backface-visibility: hidden;
}

/* ============================================================
   Hint Banner & Past Contest
   ============================================================ */

.hint-banner {
  position: relative;
  margin: 1em auto 4em;
  width: 100%;
  max-width: 82.6rem;
}

.past-contest {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 86rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.past-contest li {
  position: relative;
  margin: 1em 0 0;
  width: 41rem;
  height: 10.5rem;
  display: block;
  overflow: hidden;
}

.past-contest li a:hover { opacity: 1; }
.past-contest li a:hover img { margin-top: -10.5rem; }

@media screen and (max-width: 920px) {
  .past-contest li {
    margin: 1em 0 0;
    padding: 0.5em;
    width: 100%;
    height: auto;
    border-bottom: dotted #999 0.1rem;
  }

  .past-contest li img { display: none; }

  .past-contest span {
    position: relative;
    margin: 0;
    padding: 0 0 0 2rem;
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
  }

  .past-contest span:before {
    position: absolute;
    top: 0;
    left: -0.5rem;
    bottom: 0;
    margin: auto;
    width: 1.6rem;
    height: 1.6rem;
    display: block;
    background: url(/common/img/icon_arrow_blue.svg) center center no-repeat;
    background-size: contain;
    content: "";
  }
}

@media screen and (max-width: 768px) {
  .medaka-contest-aside-title { font-size: 2.2rem; }
  .past-contest span { font-size: 1.6rem; }
}

/* ============================================================
   IE Fallback
   ============================================================ */

@media all and (-ms-high-contrast: none) {
  .medaka-contest-intro .intro-bg-wave { bottom: -0.1rem; }
  .medaka-contest-intro { display: block; }

  .medaka-contest-theme .medaka-contest-section-title { display: block; }
  .medaka-contest-theme .medaka-contest-section-title .icon { margin: auto; }

  .medaka-contest-award .medaka-contest-section-title {
    display: block;
    text-align: center;
  }


  .medaka-contest-award .medaka-contest-section-title .icon { margin: auto; }

  .medaka-contest-award .character:before {
    left: -50%;
    right: -50%;
    margin: auto;
  }

  .medaka-contest-award .character:after { left: 0; right: 0; }

  .medaka-contest-summary .medaka-contest-section-title {
    width: 80%;
    display: block;
  }

  .medaka-contest-summary .medaka-contest-section-title .icon { margin: auto; }
}

/* ============================================================
   Closing / Medalist Section
   ============================================================ */

.closing {
  max-width: 860px;
  margin: 0 auto;
}

.medaka-medalist01,
.medaka-medalist02,
.medaka-medalist03 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.medaka-medalist02::after,
.medaka-medalist03::after {
  content: "";
  display: block;
  width: 49%;
}

.medaka-medalist01 li,
.medaka-medalist02 li,
.medaka-medalist03 li {
  width: 49%;
  border-radius: 0.7rem;
  box-sizing: border-box;
  margin-bottom: 2%;
}

.medaka-medalist01 li {
  border: #FFCC66 solid 0.3rem;
  background: #FFF;
}

.medaka-medalist02 li {
  border: #CCC solid 0.2rem;
  background: #eef7ee;
}

.medaka-medalist03 li {
  border: #CCC solid 0.2rem;
  background: #eef0f8;
}

.medaka-medalist01 li li,
.medaka-medalist02 li li,
.medaka-medalist03 li li {
  width: 100%;
  border: none;
}

.medaka-medalist01 dl { padding: 0 1.5rem 1rem; }

.medaka-medalist02 dl,
.medaka-medalist03 dl,
.comment-title,
.comment-txt {
  padding: 1rem 1.5rem;
}

.medaka-medalist01 dl,
.medaka-medalist02 dl,
.medaka-medalist03 dl {
  display: flex;
  justify-content: space-between;
}

.medaka-medalist01 dt { width: calc(100% - 120px); }
.medaka-medalist01 dd { width: 120px; }

.medaka-medalist01 dd img {
  border: 1px solid #eee;
  aspect-ratio: 380 / 544;
}

.medaka-medalist02 dt.gin-medal,
.medaka-medalist03 dt.dou-medal {
  width: 120px;
}

.medaka-medalist02 dd,
.medaka-medalist03 dd {
  width: calc(100% - 120px);
}

.medaka-medalist01 h4,
.medaka-medalist02 h4,
.medaka-medalist03 h4 {
  color: #0066CC;
  font-weight: bold;
  font-size: 2rem;
}

.comment-title {
  color: #666;
  font-weight: bold;
  font-size: 1.6rem;
  padding-bottom: 0;
}

.medaka-medalist01 .kin-medal,
.medaka-medalist01 .kagaku-medal {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.medaka-medalist01 .kin-medal img,
.medaka-medalist01 .kagaku-medal img {
  display: block;
  vertical-align: baseline;
  border-radius: 0.3rem 0.3rem 0 0;
}

ul.comment-txt li {
  position: relative;
  list-style-type: none !important;
  padding: 0 0 0 1em;
  margin-bottom: 5px;
}

ul.comment-txt li:before {
  display: inline-block;
  content: '';
  width: 0.8em;
  height: 0.8em;
  left: 0;
  top: 0.35em;
  border-radius: 25em;
  position: absolute;
}

.medaka-medalist01 ul.comment-txt li:before { background: #FFCC66; }
.medaka-medalist02 ul.comment-txt li:before { background: #9ED130; }

/* Comment box */
.commentbox {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.commentbox.left { padding: 1rem 1.5rem 1rem 1rem; }
.commentbox.right { padding: 1rem 1rem 1rem 1.5rem; }

.commentbox .comment-txt {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1rem;
  max-width: 100%;
  background: #FFF;
  box-sizing: border-box;
}

.commentbox.left .comment-txt {
  margin: 0 0 0.5rem 1.5rem;
  box-shadow: 0.5rem 0.5rem 0 0 rgb(218, 218, 218);
}

.commentbox.right .comment-txt {
  margin: 0 1.5rem 0 0;
  box-shadow: -0.5rem 0.5rem 0 0 rgb(218, 218, 218);
}

.commentbox.left .comment-txt:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -2.4rem;
  margin-top: -1.2rem;
  border: 1.2rem solid transparent;
  border-right: 1.2rem solid #FFF;
}

.commentbox.right .comment-txt:before {
  content: "";
  position: absolute;
  top: 50%;
  right: -2.4rem;
  margin-top: -1.2rem;
  border: 1.2rem solid transparent;
  border-left: 1.2rem solid #FFF;
}

.commentbox .comment-txt p { margin: 0; padding: 0; }

.commentbox.left .comment-txt { width: calc(100% - 90px); }
.commentbox.right .comment-txt { width: calc(100% - 125px); }
.commentbox.left .comment-img { width: 75px; aspect-ratio: 262 / 253; }
.commentbox.right .comment-img { width: 110px; aspect-ratio: 376 / 253; }


/* Winner link */
.winner-link { padding-left: 1.5rem; }

.winner-link a {
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0.5em 0.5em 0.5em 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.winner-link a:before {
  position: absolute;
  top: 1.2rem;
  left: -1.5rem;
  margin: auto;
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  background: url(/common/img/icon_arrow_blue.svg) center center no-repeat;
  background-size: contain;
  content: "";
}

/* Endcut (default hidden) */
.endcut-img { display: none; }

/* Award end info */
.award-end-info {
  border-radius: 0.8rem;
  background: #FFF;
  padding: 1.8em 2em;
  margin-top: 1.5em;
}

.award-end-info dl {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.2em 0;
}

.award-end-info dt {
  width: 150px;
  padding-right: 0.5rem;
}

.award-end-info dd {
  width: calc(100% - 150px);
}

.award-end-info p.award-name01 {
  width: 186px;
  display: block;
  padding-bottom: 0.5rem;
}

.award-end-info p.award-name02 {
  width: 166px;
  display: block;
  padding-bottom: 0.5rem;
}

.award-end-info p.award-name03,
.award-end-info p.award-name04 {
  width: 85px;
  display: block;
  padding-bottom: 0.5rem;
}

/* Judge list */
.judge-list {
  border-radius: 0.8rem;
  background: #F0F0F0;
  padding: 1.5em 1.5em 1.8em;
  border: 1px solid #EEE;
  margin-top: 1.5em;
}

.judge-list p.judge-totle {
  max-width: 200px;
  padding-bottom: 1rem;
}

.judge-list p {
  line-height: 150%;
  padding-bottom: 0.8rem;
}

.judge-list p span {
  font-size: 1.4rem;
  color: #666;
}

/* Link boxes */
div.meda_linkbox {
  background: #e4f8ff;
  padding: 4rem 0;
  border-bottom: 1px solid #FFF;
}

div.mcon_link02 {
  max-width: 405px;
  margin: 0 auto 10px auto;
}

div.mcon_link03 {
  max-width: 350px;
  margin: 0 auto 10px auto;
}

div.mcon_link02:hover,
div.mcon_link03 a:hover img {
  opacity: 0.5;
}

/* ============================================================
   Medalist Responsive
   ============================================================ */

@media screen and (min-width: 769px) {
  .medaka-medalist02 {
    background: url(/medakacon2025/img/mcon_image_endcut.svg) no-repeat bottom 0 right 0;
    background-size: 48% auto;
  }
}

@media screen and (max-width: 768px) {
  .medaka-medalist02::after,
  .medaka-medalist03::after {
    width: 100%;
  }

  .medaka-medalist01 li,
  .medaka-medalist02 li,
  .medaka-medalist03 li {
    width: 100%;
  }

  .commentbox.left .comment-txt,
  .commentbox.right .comment-txt {
    box-shadow: 0.5rem 0.5rem 0 0 rgb(218, 218, 218);
  }

  .commentbox.left .comment-txt:before,
  .commentbox.right .comment-txt:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    right: inherit;
    margin-top: 0;
    margin-left: -1.2rem;
    border: 1.2rem solid transparent;
    border-top: 1.2rem solid #FFF;
    z-index: 2;
  }

  .commentbox.left .comment-txt:after,
  .commentbox.right .comment-txt:after {
    content: "";
    position: absolute;
    bottom: -2.6rem;
    left: 50%;
    margin-left: -0.9rem;
    border: 1.2rem solid transparent;
    border-top: 1.2rem solid #dadada;
    z-index: 1;
  }

  .commentbox.left .comment-txt,
  .commentbox.right .comment-txt {
    width: 100%;
  }

  .commentbox.left .comment-img { margin: 0.5rem auto 0; }
  .commentbox.right .comment-img { margin: 0.8rem auto 0; }

  .award-end-info {
    padding: 1.5em 1.5em;
  }

  .endcut-img {
    display: block;
    margin: 0 auto;
    max-width: 434px;
  }
}

@media screen and (max-width: 640px) {
  .award-end-info dl {
    display: block;
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom: dotted 0.1rem #CCC;
  }

  .award-end-info dl.none {
    border-bottom: none;
  }

  .award-end-info dt {
    width: 150px;
    padding-right: 0;
    margin: 0 auto;
  }

  .award-end-info dd {
    width: 100%;
    text-align: center;
  }

  .award-end-info p.award-name01,
  .award-end-info p.award-name02,
  .award-end-info p.award-name03,
  .award-end-info p.award-name04 {
    margin: 0 auto;
  }
}