@import url(html5reset-1.6.1.css);

/* General */
* {box-sizing: border-box;}
html,body {width: 100%;}
/* html {font-size: 62.5%;} */
body {line-height: 1.0;color: #000;font-family: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;}
@media screen and (min-width: 875px) {body {font-size: 16px;}}
@media screen and (max-width: 874px) {body {font-size: 20px;font-size: 16px;}}
@media screen and (min-width: 875px) {.sp {display: none !important;}}
@media screen and (max-width: 874px) {.pc {display: none !important;}}
a {color: inherit;text-decoration: none;}
a[target="_blank"] {color: #1772B8;text-decoration: underline;}
a[target="_blank"]:hover {text-decoration: none;}
a:hover {opacity: .8;}
img {max-width: 100%;vertical-align: bottom;align-self: baseline;}
address {font-style: normal;}
ol {counter-reset: number 0;}
ol li::before {counter-increment: number 1;content: counter(number);top: 0;bottom: 0;left: 0;margin: auto;border-radius: 50%;text-align: center;}
@media screen and (max-width: 874px) {th,td {display: block;width: 100%;}}
@media screen and (min-width: 875px) {th {vertical-align: middle;}}
input[type="text"],input[type="tel"],input[type="email"],button {border: none;outline: none;}
input[type="text"],input[type="tel"],input[type="email"] {-webkit-appearance: none;border-radius: 0;background: white;font-size: 1em;padding: .8em;display: block;}
button {padding: 0;}

@media screen and (min-width: 875px) {
  .sp-only{
    display: none;
  }
}


/* コンテンツ */

body{
  position: relative;
  padding:56px 56px 150px 56px;
  background-image: url(https://sapporo-1ban.com/assets/img/hitotemacp2021/cp-tile-bg.png);
  width: 100%;
  background-repeat: repeat;
  background-size: 20%;
}
@media screen and (max-width: 874px) {
  body{
    padding:24px;
  }
}

main {
  width:95%;
  max-width:1200px;
  margin: auto;
}
@media screen and (max-width: 874px) { /* SP */
  main {
    width:100%;
  }
}

header{
  width:100%;
}

header img{
  width:100%;
  height:auto;
  display: block;
  margin-bottom:40px;
  border-radius: 2px;
  box-shadow: 4px 4px 5px 1px rgba(0,0,0,.7);
}
@media screen and (max-width: 874px) {
  header img{
    margin-bottom:24px;
  }
}

.form-area {
  width: 100%;
  background: rgb(255,255,255);
  border-radius: 2px;
  padding: 5%;
  box-shadow: 4px 4px 5px 1px rgba(0,0,0,.7);
}
@media screen and (max-width: 874px) { /* SP */
  .form-area {
    padding:24px 24px 150px 24px;
  }
}

/* フォーム */

h2 {
  font-size: 32px;
  margin-bottom: 24px;
  line-height: 48px;
  letter-spacing: 2px;
  border-bottom: solid 2px #E80003;
}
h2 span{
  display: block;
  font-size:32px;
  line-height:32px;
  border-bottom:none;
}
@media screen and (max-width: 874px) { /* SP */
  h2 {
    font-size: 5.3125vw;
    margin-bottom: 8vw;
  }
  h2 span{
    font-size:16px;
    line-height:24px;
  }
}

p.read{
  margin-bottom: 2em;
  line-height:1.5;
}
@media screen and (max-width: 874px) { /* SP */
  p.read{
    font-size: 3.4375vw;
    line-height: 2.0;
  }
}

table {
  width: 100%;
  table-layout: fixed;
}

th {
  text-align: left;
  font-size: 17px;
}

span.required{
  display: inline !important;
  padding:0 4px !important;
  color:rgb(232,12,26) !important;
  font-size:14px !important;
}

@media screen and (min-width: 875px) { /* PC */
  tr {
    border-bottom: 1px solid #dcdcdc;
  }
  th,
  td {
    padding: 2em 5px 2em 0;
  }
  th {
    width: 23%;
  }
  td.flex{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  td.flex label{
    width: 100%;
    line-height: 32px;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
  }
}
@media screen and (max-width: 874px) { /* SP */
  th {
    font-size: 16px;
    margin: 1.5em 0;
  }
  td.flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  td.flex label{
    width:100%;
    line-height: 32px;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
  }
  .address_h{
    border-bottom: 1vw solid rgb(50,50,50);
    padding-bottom: 1em;
  }
}

@media screen and (max-width: 874px) {
  .prize label:nth-child(1){
    order: 1;
  }
  .prize label:nth-child(2){
    order: 3;
  }
  .prize label:nth-child(3){
    order: 5;
  }
  .prize label:nth-child(4){
    order: 2;
  }
  .prize label:nth-child(5){
    order: 4;
  }
  .prize label:nth-child(6){
    order: 6;
  }
}

input[type="text"],input[type="tel"],input[type="email"] {
  border: 1px solid rgb(50,50,50);
  width: 100%;
  border-radius: 2px;
}
@media screen and (max-width: 874px) { /* SP */
  input[type="text"],input[type="tel"],input[type="email"] {
    width: 100%;
  }
}

input:focus {
  box-shadow: 0 0 4px 1px rgb(91,190,228);
  border:solid 1px rgb(57, 140, 173);
}

.user-name input[type="text"]{
  width:200px;
}
@media screen and (max-width: 874px) { /* SP */
  .user-name input[type="text"]{
    width:100%;
  }
}

/* ラジオボタン装飾 */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.radio {
  margin: 0.5rem 0;
  width: calc(100%/3);
}

/* ラジオボタンの丸いポインタと文字の重なりを防ぐ
.radio2 input[type="radio"] + .radio-label:before {
  content: '';
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: middle;
} */

.radio input[type="radio"],
.radio2 input[type="radio"]  {
  position: absolute;
  opacity: 0;
}

.radio2 input[type="radio"] {
  flex-shrink: 0 !important; 
  width: 20px !important;    
  height: 20px !important;   
  margin-top: 2px !important; 
}
.radio .radio-label,
.radio2 .radio-label {
  display: inline-flex !important;
  white-space: normal !important;   
  word-break: break-all !important; 
  line-height: 1.5 !important;      
}

.radio input[type="radio"] + .radio-label:before,
.radio2 input[type="radio"] + .radio-label:before {
  content: '';
  background: #f4f4f4;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  min-width: 1.4em;
  min-height: 1.4em;
  position: relative;
  top: -0.2em;
  margin-right: 0.5em;
  vertical-align: middle;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
  flex-shrink: 0
}
.radio input[type="radio"]:checked + .radio-label:before,
.radio2 input[type="radio"]:checked + .radio-label:before {
  background-color: #e80003;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type="radio"]:focus + .radio-label:before,
.radio2 input[type="radio"]:focus + .radio-label:before {
  outline: none;
  border-color: #e80003;
}
.radio input[type="radio"]:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type="radio"] + .radio-label:empty:before {
  margin-right: 0;
}


@media screen and (max-width: 874px){
  .radio {
    margin: 0.5rem 0;
    width: calc(100% / 2); 
  }
  .radio input[type="radio"] + .radio-label:before,
  .radio2 input[type="radio"] + .radio-label:before  {
    top: 0;
  }
}

.age{
  display: flex;
  align-items: baseline;
}

.age input{
  width:50%;
  margin-right:16px;
}

@media screen and (max-width: 874px) { /* SP */
  .user-name th {
    border-bottom: 1vw solid rgb(50,50,50);
    padding-bottom: 1em;
  }
}

.user-name span {
  display: inline-block;
  width: 6%;
  font-weight: bold;
  font-size: 15px;
}
@media screen and (max-width: 874px) { /* SP */
  .user-name span {
    display: block;
    width:100%;
    margin-bottom: 1em;
  }
}

.user-name span:nth-of-type(2) {
  margin-top: 1em;
}

.user-name input[type="text"] {
  display: inline-block;
}

.user-name input[type="text"]:first-of-type {
  margin-right: 2em;
}

select{
  border: 1px solid rgb(50,50,50);
  width: 100%;
  border-radius: 2px;
  -webkit-appearance: none;
  background: white;
  font-size: 1em;
  padding: .8em;
  display: block;
}

.buybox_num{

  width: 80%;
  font-size: 1.3em;
  padding: .8em;
  margin: 0 auto;font-weight: bold;

}

@media screen and (max-width: 874px) {
  .buybox_num{
    width: 100%;;
  }
}

.buybox_num p{
  padding: 10px;;
}
div .buybox_num{
  position: relative;
}
.sankaku{
  position: relative;
  width: 100%;;
}
@media screen and (max-width: 874px){
  .sankaku{
    display: block;
    width: 100%;
  }
}

 .sankaku::after {
  content: '';
  width: 24px;
  height: 16px;
  background-image: url(../images/icon-arrow.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}

td.pref{
  position: relative;
}

td.pref::after{
  content:'';
  width:16px;
  height:16px;
  background-image:url(../images/icon-arrow.svg);
  background-repeat: no-repeat;
  background-size:contain;
  background-position: center;
  position: absolute;
  right:16px;
  top:50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

td.work{
  position: relative;
}

td.work:after{
  content:'';
  width:16px;
  height:16px;
  background-image:url(../images/icon-arrow.svg);
  background-repeat: no-repeat;
  background-size:contain;
  background-position: center;
  position: absolute;
  right:16px;
  top:50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

#file-upload input,
#file-upload2 input{
  display: none;
}

.upload {
  font-weight: bold;
  margin: 2em 0 2.5em;
}

.upload.invoice{
  border-top: 1px solid #dcdcdc;
  padding-top: 2em;
}

.upload span{
  display: block;
  font-weight: normal;
  font-size:15px;
  margin:8px 0;
  line-height:1.2;
}

@media screen and (max-width: 874px) { /* SP */
  .upload {
    margin: 1.5em 0;
  }
  .upload_con{
    width: 100%;
  }
  .upload_con div{
    width:100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

.upload_con div{
  line-height:3;
}

div .boxnote{
  width:100%;
  margin: 0 auto;
  margin-bottom: 20px;
  line-height: 1.6em;
  font-size:90%;
}
@media screen and (max-width: 874px) {
  div .boxnote{
    width:100%;
    margin-top:0px;
  }
}

.boxnote li{
  text-indent: -1em;
   padding-left: 1em;
}

.buybox{
  width:100%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 2;
}


#file-upload .buybox input,
#file-upload2 .buybox input{
  display: none;
}

.buybox .checkbox {
  display: none;
}

.buybox .checkbox + .checkbox-icon {
  position: relative;
  vertical-align: middle;
  margin:0 8px 0 0 !important;
  padding:0;
}

.buybox .checkbox + .checkbox-icon:before {
  font-family: "Font Awesome 5 Free";
  content: "\f14a";
  font-weight: 900;
  color: #ccc;
  font-size: 24px;
}

.buybox .checkbox:checked + .checkbox-icon:before {
  font-family: "Font Awesome 5 Free";
  content: "\f14a";
  font-weight: 900;
  color: #E80003;
  font-size: 24px;
}

.receipt {
  background: #f7f7fa;
  margin: auto;
  position: relative;
  width:100%;
}

.receipt h3 {
  width: 100%;
  color: white;
  text-align: center;
  background: #E80003;
  padding: 1em 0;
  font-size: 17px;
}

.receipt ul{
  padding:40px;
}

@media screen and (min-width: 875px) { /* PC */
  .receipt ul {
    margin-top: 40px;
  }
}

@media screen and (max-width: 874px) { /* SP */
  .receipt ul{
    padding:16px;
  }
}

.receipt li {
  line-height: 1.8;
  position: relative;
}

.receipt li::before {
  position: absolute;
  left: 0;
}

.receipt li + li {
  margin-top: 1em;
}

@media screen and (min-width: 875px) { /* PC */
  .receipt ul > li {
    padding-left: 2em;
  }
}

@media screen and (max-width: 874px) { /* SP */
  .receipt ul > li {
    padding-left: 1.5em;
  }
}

.receipt ul > li::before {
  content: "";
  position: absolute;
  background: #E80003;
}

@media screen and (min-width: 875px) { /* PC */
  .receipt ul > li::before {
    top: .2em;
    width: 1.2em;
    height: 1.2em;
  }
}

@media screen and (max-width: 874px) { /* SP */
  .receipt ul > li::before {
    top: .4em;
    width: 1em;
    height: 1em;
  }
}

.receipt ul ol {
  margin: .5em 0 0 1em;
}

.receipt ul ol li {
  padding-left: 1.4em;
}

.receipt ul ol li::before {
  width: 1em;
  height: 1em;
  border: 1px solid rgb(50,50,50);
  line-height: 1.0;
}

.example {
  display: flex;
  flex-wrap: wrap;
  padding:40px;
}

@media screen and (max-width: 874px) { /* SP */
  .example {
    padding:16px;
  }
}

.example h4 {
  width: 100%;
  color: rgb(50,50,50);
  position: relative;
  margin-bottom:24px;
  padding-left: 1.5em;
  font-size: 34px;
}

@media screen and (max-width: 874px) { /* SP */
  .example h4 {
    font-size:24px;
  }
}

.example h4::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: .8em;
  height: .8em;
  margin: auto;
  border: 5px solid rgb(50,50,50);
  border-radius: 50%;
}

.example img {
  width:45%;
}

@media screen and (max-width: 874px) { /* SP */
  .example img {
    width: 90%;
    margin:auto;
  }
}

.example .caption {
  margin-left: 40px;
}
@media screen and (max-width: 874px) { /* SP */
  .example .caption {
    width: 100%;
    margin-top: 6vw;
    margin-left:0;
  }
  .example .caption p {
    text-align: center;
  }
}

.example .caption ol {
  color: rgb(50,50,50);
  margin-top: 1.5em;
  font-size: 20px;
}

.example .caption li {
  font-weight: bold;
  padding-left: 2em;
  position: relative;
}

.example .caption li::before {
  width: 1.5em;
  height: 1.5em;
  background:#E80003;
  color: white;
  line-height: 1.5em;
  font-weight: normal;
}

.example .caption li + li {
  margin-top: 1em;
}

#file-upload,
#file-upload2 {
  display: flex;
  align-items: flex-start;
  color: rgb(50,50,50);
  margin-top:16px;
}
@media screen and (max-width: 874px) { /* SP */
  #file-upload,
  #file-upload2 {
    flex-direction: column;
  }
}

#file-upload p,
#file-upload2 p{
  margin-top:16px;
}

#file-upload.first,
#file-upload2.first {
  margin-top: 60px;
}
@media screen and (max-width: 874px) { /* SP */
  #file-upload.first
  #file-upload2.first{
    margin-top: 8vw;
  }
}

#file-upload p,
#file-upload2 p {
  font-weight: bold;
  padding:0 80px;
  font-size: 17px;
}
@media screen and (max-width: 874px) { /* SP */
  #file-upload p,
  #file-upload2 p {
    text-align: center;
    width: 100%;
    padding:0;
    margin-bottom:16px;
  }
}

#file-upload input[type="text"],
#file-upload2 input[type="text"] {
  display: none;
}

#file-upload button, 
#file-upload2 button {
  cursor: pointer;
  background: #E80003;
  color: white;
  padding: 16px 32px;
  margin-bottom: 8px;
  border-radius: 2px;
  font-size:16px;
}
@media screen and (max-width: 874px) { /* SP */
  #file-upload button,
  #file-upload2 button {
    width: 40%;
    height: 40px;
    line-height:40px;
    margin: 16px;
    padding:0;
  }
}

#file-upload span,
#file-upload2 span  {
  display: inline-block;
}
@media screen and (min-width: 875px) { /* PC */
  #file-upload span,
  #file-upload2 span  {
    margin-left: 2em;
  }
}

#file-upload .file-name,
#file-upload2 .file-name  {
  display: inline-block;
  font-size: 12px;
}

.notice{
  width: 100%;
  text-align: center;
  margin: 80px 0 20px 0;
}
@media screen and (max-width: 874px){
  .notice{
    font-size: 93%;
    line-height: 1.6em;
  }
}
@media screen and (min-width: 768px){
  .br-sp {display: none; }
  }
@media screen and (max-width: 768px){
    .br-pc {display: none; }
    }
  
.button-area {
  display: flex;
  justify-content: center;
  margin-top: 82px;
}
@media screen and (max-width: 874px) { /* SP */
  .button-area {
    margin-top: 12vw;
  }
}

.button-area button {
  background: #E80003;
  color:#fff;
  width: 100%;
  border-radius: 2px;
  height:80px;
  line-height: 80px;
  font-size: 20px;
  transition:all .2s;
  letter-spacing: 4px;
}

.button-area button:hover {
  cursor: pointer;
  background-color: #FFD800;
}

footer{
  width: 100%;
  text-align: center;
  padding: 50px;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left:0;
  background-color:#E80003;
  color:#fff;
}

/* 確認画面 */

.confirm th {
  height: 56px;
  padding: 0;
  width: 32%;
  line-height: 1.6em;
  padding: 5px 10px;
}
@media screen and (max-width:874px){
  .confirm th{
    height:32px;
    width: 100%;
  }
}

.confirm td {
  display: flex;
  align-items: center;
  padding: 0;
  min-height: 56px;
  padding:16px 0;
  flex-wrap: wrap;
}
@media screen and (max-width:874px){
  .confirm td{
    min-height: 32px;
    background-color: #ccc;
    padding-left: 8px;
    box-sizing: border-box;
  }
}

.confirm td img{
  padding-right:6px;
  padding-top: 6px;
}
@media screen and (max-width:800px){
  .confirm td img{
    padding-bottom:8px;
    padding-top: 0;
  }
}

.confirm td.pref::after{
  background:none;
}

.confirm td.work::after{
  background:none;
}
@media screen and (min-width: 768px){
  .br-sp {display: none; }
  }


/* 応募規約セクション -------------------------------------------------- */
.application_terms {
  margin: 2em 0;
  margin-top: 30px;
}
.application_terms h4{
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 8px;
}
.terms_content{
  font-size: 15px;
  line-height: 1.5;
  max-height: 250px;
  overflow-Y: scroll;
  overflow-X: hidden;
  border: 1px solid #dcdcdc;
  padding: 8px;
}
.application_terms .checkbox{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}
.application_terms input[type="checkbox"] {
  position: relative;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #b4b4b4;
  background-color: #f4f4f4;
  margin-right: 1em;
  vertical-align: -5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.application_terms input[type="checkbox"]:checked:before {
  position: absolute;
  top: -2px;
  left: 3px;
  transform: rotate(50deg);
  width: 8px;
  height: 12px;
  border-right: 3px solid #e80003;
  border-bottom: 3px solid #e80003;
  content: '';
}

/* --- 応募エラー
----------------------------------------- */
#box_errors {
  border: 2px solid #e40b20;
  background-color: #fbdde6;
  padding: 8px;
  margin-bottom: 45px;
}
#box_errors p {
  color: #e40b20;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid #e40b20;
  padding-bottom: 5px;
}
#error-list li {
  color: #e40b20;
  margin-bottom: 10px;
  display: table;
}

/* --- 追加修正コード --- */

/* A賞・B賞の箱を横に並べて幅を50%ずつにする */
.radio2 {
  flex: 1;
  min-width: 0; /* 文字がはみ出さないための設定 */
  margin: 0.5rem 0;
  padding-right: 10px; /* 隣とのスキマ */
}

/* ラベルの設定を上書き */
td.flex .radio2 .radio-label {
  display: block;    /* flexを解除して縦に並ぶようにする */
  width: auto;       /* 幅100%を解除 */
  line-height: 1.4;  /* 行間を適切に */
  letter-spacing: 0; /* 字間が広すぎるとはみ出すので調整 */
  word-break: break-all; /* 枠内で適切に折れ返すようにする */
}










