@charset "UTF-8";

main a {
  position: relative;
  z-index: 1;
/*   border-bottom: 1px solid; */
  color: inherit;
  background: linear-gradient(to top, #fff, #fff)   0    0  /   0    2px no-repeat,
              linear-gradient(to top, #fff, #fff) 100%   0  /   2px  0   no-repeat,
              linear-gradient(to top, #fff, #fff) 100% 100% /   0    2px no-repeat,
              linear-gradient(to top, #fff, #fff)   0  100% /   2px  0   no-repeat,
              linear-gradient(to top, #fff, #fff)   0  100% / 100%   1px no-repeat;
  text-decoration: none;
  transition: background .1s;
}

main a:hover,
main a:active,
main a:focus {
  color: inherit;
  background: linear-gradient(to top, #0f0, #0f0)   0    0  / 100%    2px no-repeat,
              linear-gradient(to top, #0f0, #0f0) 100%   0  /   2px 100%  no-repeat,
              linear-gradient(to top, #0f0, #0f0) 100% 100% / 100%    2px no-repeat,
              linear-gradient(to top, #0f0, #0f0)   0  100% /   2px 100%  no-repeat,
              linear-gradient(to top, #fff, #fff)   0  100% / 100%    1px no-repeat;
}

#content {
  overflow: hidden;
  font: 1rem/1.5rem 'Noto Sans JP', '_YuGo', 'YuGothic', 'Yu Gothic', '_HiraKaku', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN W3', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', 'メイリオ', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

.block {
  padding: 3rem 0;
}

.block.arrow+.block {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
}

.block.arrow+.block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  width: 3.535531rem;
  height: 3.535531rem;
  margin: 0 auto;
  background: #000;
  transform: translate(0, -50%) rotate(45deg);
}

.block>.inner {
  padding: 0 16px;
}

.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 2rem;
  font-feature-settings: 'halt';
  text-align: center;
}

.section-heading::before {
  content: "〈";
  margin-right: .25em;
}

.section-heading::after {
  content: "〉";
  margin-left: .25em;
}

.bodytext {
  line-height: 2rem;
}

.bodytext>p:not(:first-child),
.bodytext>ul:not(:first-child) {
  margin-top: 2rem;
}

.bodytext>:not(:first-child) li:not(:first-child) {
  margin-top: .5rem;
  line-height: 1.5rem;
}

.meta {
  display: flex;
  align-items: baseline;
  font-size: .875rem;
}

.meta>.label {
  margin-right: 8px;
  padding: .125rem 8px;
  border-radius: 2px;
  color: #fff;
  background: #f8bc02;
  font-weight: bold;
  white-space: nowrap;
}

.image img {
  width: 100%;
  vertical-align: top;
}

.notes>li {
  display: flex;
  align-items: baseline;
}

.notes>li::before {
  content: '※';
  display: block;
  flex: 0 0 auto;
}

.buttons {
  text-align: center;
}

a.button {
  display: inline-block;
  position: relative;
  margin-top: 1rem;
  padding: .75rem 40px .75rem 16px;
  border: 0;
  color: #fff;
  background: #070f7b;
  font-weight: bold;
  text-align: left;
}

a.button:hover,
a.button:active,
a.button:focus {
  border: 0;
  color: #fff;
  background: #070f7b;
}

a.button::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  z-index: -1;
  margin: auto;
  border: 2px solid #0f0;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.1);
  transition: .1s;
}

a.button:hover::before,
a.button:active::before,
a.button:focus::before {
  visibility: visible;
  opacity: 1;
  transform: none;
}

a.button::after {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  bottom: 0;
  width: 11.3137px;
  height: 11.3137px;
  margin: auto 0;
  border: solid;
  border-width: 4px 4px 0 0;
  box-sizing: border-box;
  transform: rotate(45deg);
  transition: transform .2s;
}

a.button:hover::after,
a.button:active::after,
a.button:focus::after {
  transform: translate(4px, 0) rotate(45deg);
}

.image a.button {
  display: block;
  padding: 0;
}

.image a.button::after {
  content: none;
  display: none;
}

/* ================================================================
   content header
   ================================================================ */

.content-header>.block {
  padding-top: 0;
  padding-bottom: 0;
  color: #fff;
  background: #5e050b linear-gradient(to bottom, #3c080a, #5e050b);
}

.content-header>.block>.inner {
  padding: 0;
}

.content-header-content {
  position: relative;
}

.main-image {
  text-align: center;
}

.main-image>img {
  max-width: 920px;
}

.content-header .period {
  position: absolute;
  top: 24px;
  right: 0;
  overflow: hidden;
  width: 180px;
  height: 0;
  padding-top: 180px;
  border-radius: 50%;
  color: #000;
  background: #fff url(../images/period@desktop.png) no-repeat;
}

.content-header .period>img {
  width: auto;
  height: 24px;
}

/* ================================================================
   content main
   ================================================================ */

#intro,
#intro.arrow+.block::before {
  color: #fff;
  background: #440206;
}

#intro .bodytext {
  font-size: 1.125rem;
  line-height: 2rem;
}

#intro .bodytext em,
#intro .bodytext strong {
  font-weight: bold;
  font-size: 1.5rem;
}

.intro .bodytext {
  text-align: center;
}

.intro .bodytext span {
  display: block;
}

#description,
#description.arrow+.block::before {
  color: #fff;
  background: #222;
}

#description .bodytext>p {
  margin-top: 0;
}

#categories,
#categories.arrow+.block::before {
  background: #fff;
}

.category-group {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  margin-left: -16px;
}

.category {
  max-width: 320px;
  margin: 2rem 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2efe6;
}

.category-heading {
  padding: .75rem 16px;
  color: #fff;
  background: #070f7b;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
}

.category .title {
  padding: .625rem 16px;
  background: #e6dec3;
}

.category .description {
  padding: .5rem 16px;
  font-size: .875rem;
}

#category-general {
  order: 2;
}

#category-night {
  order: 3;
}

#category-local {
  order: 1;
}

#rules,
#rules.arrow+.block::before {
  color: #fff;
  background: #070f7b;
}

.rules-table {
  max-width: 768px;
  margin: 2rem auto 0;
  border: 0;
}

.rules-table tr {
  border-bottom: 1px solid;
}

.rules-table tr:first-child {
  border-top: 1px solid;
}

.rules-table th,
.rules-table td {
  padding: calc(.75rem - 1px) 8px .75rem;
  border: 0;
  vertical-align: baseline;
}

.rules-table th {
  white-space: nowrap;
}

.rules-table dl>div {
  display: flex;
}

.rules-table dt {
  white-space: nowrap;
}

.rules-table dt::after {
  content: '：';
}

#rules .buttons {
  margin-top: 1rem;
}

#rules .button {
  color: #070f7b;
  background: #fff;
}

.prize {
  width: 100%;
  max-width: 320px;
  padding: 1rem 16px;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff9e6;
}

.prize-group {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  margin: 0 -8px;
}

.prize-group>.prize {
  margin: 2rem 8px 0;
}

.prize-heading {
  position: relative;
  margin: 1.5rem auto 0;
  padding: calc(.5rem - 2px) 0;
  border: solid #f8bc02;
  border-width: 2px 0;
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-align: center;
}

.prize-heading::before {
  content: '';
  position: absolute;
  top: -1.5625rem;
  right: 0;
  left: 0;
  width: 2.23214rem;
  height: 1.5625rem;
  margin: 0 auto;
  background: url(../images/icon_prize.svg) center / 100% auto no-repeat;
}

.prize-category,
.prize-heading {
  display: block;
}

.prize-category {
  font-size: .875rem;
  font-feature-settings: 'halt';
}

.prize-category::before {
  content: '【';
  margin-right: .25em;
}

.prize-category::after {
  content: '】';
  margin-left: .25em;
}

.prize-image {
  max-width: 240px;
  margin: 1rem auto;
}

.prize-list {
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-top: 1rem;
  font-size: .875rem;
}

.prize-list>li:not(:first-child) {
  margin-top: .25rem;
}

.prize-list em {
  font-style: normal;
  font-weight: bold;
}

.prize .meta {
  margin-top: 1rem;
}

.grand-prize {
  position: relative;
  margin: 4rem auto 3rem;
  padding: 0 384px 0 0;
  border-radius: 0;
  box-sizing: content-box;
  background: none;
}

.grand-prize::after {
  content: '';
  display: block;
  padding-top: 1rem;
  border-bottom: 4px solid #f8bc02;
}

.grand-prize .prize-heading::before {
  top: -2.1875rem;
  width: 3.125rem;
  height: 2.1875rem;
}

.grand-prize .prize-heading {
  padding: calc(1rem - 4px) 0 calc(1rem - 2px);
  border-top-width: 4px;
  font-size: 1.5rem;
  line-height: 2rem;
}

.grand-prize .prize-category {
  font-size: 1.125rem;
}

.grand-prize .prize-image {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: -1;
  width: 368px;
  max-width: none;
  margin: 0;
  transform: translate(0, -50%);
}

.grand-prize .meta {
  display: flex;
  justify-content: center;
}

#prizes .exhibit {
  display: flex;
  justify-content: center;
  margin: 2rem auto 0;
}

#prizes .exhibit>.text {
  display: flex;
  flex-flow: column;
  align-items: center;
  position: relative;
  padding: 0 4rem;
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
}

#prizes .exhibit>.text::before,
#prizes .exhibit>.text::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 4rem;
  height: 4rem;
  background: url(../images/icon_diagonal_line.svg) center / 100% 100% no-repeat;
}

#prizes .exhibit>.text::before {
  left: 0;
  transform: scaleY(-1);
}

#prizes .exhibit>.text::after {
  right: 0;
}

#notes {
  color: #fff;
  background: #222;
}

#notes .bodytext {
  max-width: 640px;
  margin: 0 auto;
}

#notes .notes,
#notes .note {
  font-size: .875rem;
  line-height: 1.5rem;
}

#notes .notes>li {
  margin-top: .5rem;
}

#notes .notes>li::before {
  content: '◎';
}

/* ================================================================
   content footer
   ================================================================ */

#message .image {
  width: auto;
  text-align: center;
}

#message .image img {
  width: auto;
  height: 112px;
}

#message .balloon {
  display: flex;
  justify-content: center;
  align-items: center;
}

#message .balloon>.text {
  display: flex;
  flex-flow: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-left: 2rem;
  padding: 1rem 16px;
  border-radius: 8px;
  box-sizing: border-box;
  background: #ffedf4;
}

#message .balloon>.text::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 16.97056px;
  height: 16.97056px;
  margin: auto 0;
  background: #ffedf4;
  transform: translateX(-50%) scaleX(1.2) rotate(45deg);
}

/* $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
   MSIE 10+
   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ */

/* MSIE 10-11 */

_:-ms-input-placeholder,
:root .rules-table th,
:root .rules-table td {
  vertical-align: top;
}

_:-ms-input-placeholder,
  :root .prize :not(.image) {
  max-width: 100%;
  }

/* MSIE 10+ Edge */

_:-ms-lang(x),
main a {
  border-bottom: 1px solid;
  background: none
}

_:-ms-lang(x),
main a:hover,
main a:active,
main a:focus {
  border-bottom: 2px solid #0f0;
  background: none
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
   -768px
   mobile, tablet
   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

@media screen and (max-width: 768px) {

  .content-header-content {
    display: flex;
    flex-flow: column;
    position: relative;
  }

  .main-image {
    order: 2;
  }

  .content-header .period {
    order: 1;
    position: static;
    width: auto;
    height: auto;
    padding-top: 0;
    border-radius: 0;
    background-image: none;
    text-align: center;
  }

  #intro .bodytext {
    font-size: inherit;
  }

  #intro .bodytext em,
  #intro .bodytext strong {
    font-size: 1.25rem;
  }

  .intro .bodytext {
    text-align: left;
  }

  .intro .bodytext span {
    display: inline;
  }

  #description .bodytext>p:not(:first-child) {
    margin-top: 2rem;
  }

  #category-general,
  #category-night,
  #category-local {
    order: 0;
  }

  .grand-prize {
    margin-bottom: 0;
    padding: 0;
  }

  .grand-prize .prize-image {
    position: static;
    width: auto;
    max-width: 240px;
    margin: 1rem auto;
    transform: none;
  }

  #prizes .exhibit {
    display: block;
  }

  #prizes .exhibit>.text {
    display: block;
    padding: 0 16px;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
  }

  #prizes .exhibit>.text::before,
  #prizes .exhibit>.text::after {
    width: 24px;
    height: 100%;
  }

  #prizes .exhibit>.text::before {
    left: -16px;
  }

  #prizes .exhibit>.text::after {
    right: -16px;
  }

  #message .balloon {
    display: block;
  }

  #message .balloon>.text {
    display: block;
    margin: 2rem 0 0;
  }

  #message .balloon>.text::before {
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    transform: translateY(-50%) scaleY(1.2) rotate(45deg);
  }

}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
   -568px
   mobile
   @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

@media screen and (max-width: 568px) {

  .rules-table,
  .rules-table tbody,
  .rules-table tr,
  .rules-table th,
  .rules-table td {
    display: block;
  }

  .rules-table tr {
    padding-bottom: 1rem;
  }

  .rules-table tr:first-child {
    border-top: 0;
  }

  .rules-table tr:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .rules-table th,
  .rules-table td {
    padding: 0;
  }

  .rules-table th {
    margin-top: calc(1rem - 1px);
    font-weight: bold;
  }

  .rules-table td {
    margin-top: .5rem;
  }

}
