small {
  font-size: 0.75em;
}
figure img {
  max-width: 100%;
  height: auto;
}
.center {
  text-align: center;
}
.pc-view { display: block !important }
span.pc-view { display: inline !important }
.sp-view { display: none !important }

.btn.btn-related {
  background-image: linear-gradient(180deg, #f95c8b 0%, #EC0048 100%);
}
.btn.btn-related:hover {
  background-image: linear-gradient(180deg, #fa6d98 0%, #f83872 100%);
}

#background {
  background-image: url(images/bg_pc_avan.jpg);
}

#special {
  padding-top: 40px;
}
.sp-header,
.sp-main {
  position: relative;
  width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  z-index: 3;
}
#special .logo {
  line-height: 0;
  margin-bottom: 20px;
  text-align: center;
}
#special .sp-header > *,
main {
  width: 630px;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
}
#special .sp-header > * {
  position: relative;
  z-index: 3;
}
#special .sp-header > .header-avan {
  position: fixed;
  top: 0;
  width: auto;
  margin: 0;
  margin-left: -210px;
  z-index: 1;
}

main {
  text-align: left;
}
#special article {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
#special article section {
  margin: 25px 0;
  padding: 10px 30px 10px;
  background: rgba(255,255,255,0.95);
  -webkit-box-shadow: 0 0 2px 0 rgb(0 0 0 / 20%), 0 0 10px 0 rgb(0 0 0 / 10%), inset 0 0 5px 0 #ffffff;
  box-shadow: 0 0 2px 0 rgb(0 0 0 / 20%), 0 0 10px 0 rgb(0 0 0 / 10%), inset 0 0 5px 0 #ffffff;
  border-radius: 5px;
}
article .detail h2 {
  margin: 10px 0 20px 0;
  line-height: 1.3;
}
article .detail * + h2 {
  margin: 40px 0 20px;
}
article .detail .header-icon + h2 {
  margin: 1.2rem 0 20px;
}
.min,
article .detail h2.min,
.special-date {
  font-family: toppan-bunkyu-midashi-min-st, serif;
  -webkit-font-feature-settings: 'palt';
  font-feature-settings: 'palt';
  font-weight: 900;
  font-style: normal;
}
article .detail h2.no-icon {
  padding-left: 0;
}
article .detail h2.no-icon::before {
  display: none;
}

.header-icon {
  margin: 1.2rem 0;
  line-height: 0;
  text-align: center;
}
.header-icon img {
  max-width: 70%;
}
header .logo img {
  width: 160px;
}
article .detail .special-date {
  margin-top: 0;
  color: #004383;
  font-size: 36px;
  text-align: center;
  line-height: 60px;
}
.special-date > span {
  display: inline-block;
  padding: 0 30px;
  border: 2px solid #004383;
  border-radius: 60px;
}
.special-date.related > span {
  border: 2px solid #EC0048;
  background: #EC0048;
  color: #fff;
}
#special article section .btn {
  flex-direction: column;
  width: 100%;
  padding: 8px;
  line-height: 1.3;
}
#special article section .btn.btn-expand {
  display: inline-block;
  width: auto;
  padding: 8px 20px;
}



#special article .detail {
  margin-top: 0;
}
article .detail p.result {
  margin: 0;
}
.special-title p.result {
  margin: 15px 0 20px;
}
.terms {
  margin-bottom: 20px;
  font-size: 16px;
}
.terms ul {
  list-style: disc;
}
.terms li {
  margin-left: 2em;
}
article .detail .terms p,
article .detail .terms ul,
article .detail .terms h3,
article .detail .terms h4 {
  margin: 0.7rem 0;
}
.vote-limit {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}
.vote-atention {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 40px 30px 40px 70px;
  padding: 10px 20px 10px 90px;
  border: 2px solid #D80000;
  border-radius: 5px;
  color: #D80000;
  font-weight: bold;
  text-align: left;
}
article .detail .vote-atention h3 {
  position: absolute;
  top: calc( 50% - 65px );
  left: -50px;
  margin: 0;
}
article .detail .vote-atention p {
  flex-grow: 1;
  margin: 0;
}
.vote-atention img {
  height: 130px;
}
.vote-lead {
  font-feature-settings: 'palt';
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  line-height: 2;
  text-align: center;
}
.question {
  font-size: 1.5em;
}
.question-figure img {
  max-width: 100%;
  height: auto;
}





#vote-list > ol {
  display: block;
  margin: 40px auto;
  list-style: none;
}
#vote-list > ol > li {
  position: relative;
  display: block;
  /* display: flex;
  align-items: flex-start; */
  margin-bottom: 30px;
  padding: 15px;
  border: 3px solid #2337A5;
  border-radius: 10px;
}
#vote-list > ol > li[data-page="2"] {
  display: block;
}
#vote-list > ol { counter-reset: vote }
#vote-list > ol > li { counter-increment: vote }
#vote-list > ol > li .vote-confirm:before {
  content: counter(vote, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: #2337A5;
  font-family: toppan-bunkyu-midashi-min-st, serif;
  -webkit-font-feature-settings: 'palt';
  font-feature-settings: 'palt';
  font-weight: 900;
  font-style: normal;
  font-size: 68px;
  line-height: 1;
}
#vote-list > ol > li .vote-confirm:before {
  top: -2px;
}

article .detail #vote-list figure {
  margin: 0;
  text-align: center;
}
article .detail #vote-list [data-page="2"] figure {
  margin: 0 0 10px;
}
#vote-list figure span {
  display: block;
  line-height: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  /* box-shadow: 0 0 0 1px #aaa; */
}
#vote-list figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 500/380;
  cursor: pointer;
  background-size: contain;
  background-position: center center;
}
article .detail #vote-list figure,
article .detail #vote-list figure img {
  user-select: auto;
  pointer-events: auto;
}

.vote-detail {
  width: 100%;
  flex-grow: 1;
}
article .detail .vote-detail h3 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  margin: 10px 0;
  color: #2337A5;
  font-family: toppan-bunkyu-midashi-min-st, serif;
  -webkit-font-feature-settings: 'palt';
  font-feature-settings: 'palt';
  font-weight: 900;
  font-style: normal;
  font-size: 24px;
  line-height: 1.3;
}
.vote-detail h3 span {
  /* display: inline-block; */
}
article .detail .vote-detail p {
  margin: 0;
  font-size: 13px;
  font-weight: bold;
}
article .detail .vote-detail p.description {
  display: none;
  margin-left: -90px;
  font-size: 15px;
}
.vote-confirm {
  position: absolute;
  width: calc( 100% - 30px );
  text-align: right;
}
.vote-confirm .button {
  position: relative;
  z-index: 10;
  display: inline-block;
  width: 100px;
  height: 54px;
  line-height: 54px;
  padding-left: 3px;
  background: #2337A5;
  border-radius: 5px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 5px;
  text-decoration: none;
  text-align: center;
  transition: background .1s ease;
}
.vote-confirm .button:hover {
  background: #2B7BD8;
}
.vote-text {
  min-height: 60px;
  padding-left: 90px;
}

article .detail .before-public {
  margin-bottom: 0;
  font-family: toppan-bunkyu-midashi-min-st, serif;
  -webkit-font-feature-settings: 'palt';
  font-feature-settings: 'palt';
  font-weight: 900;
  font-style: normal;
  font-size: 150px;
  line-height: 1;
  text-align: center;
}

.form-nazo input[type="text"] {
  width: 100%;
  padding: 0 10px;
  font-size: 28px;
  border: 2px solid #aaa;
  background: #fef6cd;
  box-shadow: 2px 2px 5px rgba(0,0,0,.2) inset;
  border-radius: 4px;
  text-align: center;
}
::-webkit-input-placeholder {
  color: #ccc;
}
::-moz-placeholder {
  color: #ccc;
}
:-ms-input-placeholder {
  color: #ccc;
}
::-ms-input-placeholder {
  color: #ccc;
}
::placeholder {
  color: #ccc;
}

@media screen and (min-width: 1080px) {
  .pc-center {
    text-align: center;
  }
}
@media screen and (max-width: 1080px) {
  .sp-header {
    position: relative;
    width: 640px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
  }
  .sp-header .result img {
    max-width: 75%;
  }
  
  body#special {
    padding-top: 0;
  }
  .sp-header {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    z-index: 3;
  }
}
@media screen and (max-width: 1080px) {
  .pc-view { display: none !important }
  .sp-view { display: block !important }
  span.sp-view { display: inline !important }
  .pc-center {
    text-align: left;
  }
  .btn {
    font-size: 24px;
  }
  
  #background {
    background-image: url(images/bg_sp_avan.jpg);
  }
  .sp-header,
  .sp-main {
    width: 100%;
  }
  .sp-main {
    position: relative;
    padding: 0;
  }
  .sp-header {
    min-height: 0;
  }
  
  #special .sp-header > *,
  main {
    margin: 0 auto;
  }
  
  body.child h1 {
    margin-left: -10px;
    margin-right: -10px;
  }
  body.child .sp-header {
    margin-bottom: -20px;
    padding-bottom: 0;
  }
  #special .sp-header > .header-avan {
    position: static;
    margin: 20px 0 -200px;
  }
  body.child .header-avan {
    display: none;
  }
  #special article section {
    padding: 15px;
  }
  article .detail h2 {
    font-size: 1.7em;
  }
  .special-title {
    padding: 10vh 20px 0;
  }
  .vote-lead {
    font-size: 1rem;
    text-align: left;
  }
  .vote-limit {
    font-size: 1.2rem;
  }
  .scroll {
    padding: 0 5px 0 10px;
  }
  .terms {
    font-size: 14px;
    line-height: 1.5;
  }
  .terms li {
    margin-left: 1.5em;
  }
  
  .vote-detail {
    min-height: 66px;
  }
  #vote-list > ol {
    display: block;
  }
  #vote-list > ol > li {
    display: block;
    width: 100%;
    padding: 10px;
  }
  article .detail #vote-list figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media screen and (max-width: 640px) {
  body#special {
    padding-bottom: 10px;
  }
  article + .paging {
    margin: 10px 10px 50px;
  }
  #special article section {
    border-radius: 0;
  }
  article .detail figure {
    margin-left: -15px !important;
    margin-right: -15px !important;
  }
  
  #vote-list > ol > li .vote-confirm:before {
    display: none;
  }
  article .detail .vote-detail h3 {
    min-height: 15vw;
    margin: 0;
    padding-left: 19vw;
    font-size: 5.1vw;
    line-height: 1.2;
  }
  #vote-list > ol > li h3:before {
    content: counter(vote, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    color: #2337A5;
    font-family: toppan-bunkyu-midashi-min-st, serif;
    -webkit-font-feature-settings: 'palt';
    font-feature-settings: 'palt';
    font-weight: 900;
    font-style: normal;
    font-size: 16vw;
    letter-spacing: -3px;
    line-height: 1;
  }
  article .detail .vote-detail p {
    margin-top: 10px;
    padding-left: 19vw;
    line-height: 1.5;
  }
  article .detail .vote-detail p.description {
    margin-bottom: -10px;
    margin-left: 0;
    padding-left: 0;
  }
  .vote-detail {
    min-height: 24vw;
    padding-bottom: 12px;
  }
  .vote-confirm {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: calc( 100% - 20px );
  }
  .vote-confirm .button {
    display: block;
    width: auto;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
  }
  .vote-text {
    padding-left: 0;
  }
  article .detail .vote-detail p.description {
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 480px) {
  .vote-atention {
    margin: 30px 0;
    padding: 10px 10px 10px 35vw;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
  }
  article .detail .vote-atention h3 {
    top: calc( 50% - 15vw );
    left: 10px;
  }
  .vote-atention img {
    height: 30vw;
  }
}



.scroll {
  max-height: 300px;
  padding: 0 10px;
  background: #fff;
  border: 3px solid #aaa;
  border-radius: 5px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar {
  width: 16px;
}
.scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 24px;
  border: 4px solid #fff;
}
.scroll::-webkit-scrollbar-track-piece:start {
  background: #fff;
  border-radius: 10px;
}
.scroll::-webkit-scrollbar-track-piece:end {
  background: #fff;
  border-radius: 10px;
}

.modaal-close {
  right: auto;
  left: 20px;
  box-shadow: 0 0 0 4px #fff inset;
}
.modaal-container {
  border-radius: 10px;
}
.modaal-overlay {
  background: #1C68D9 !important;
  opacity: 0.6 !important;
}
