body {
  margin: 0;
  padding: 0;
}

@media only screen and (min-width: 769px) {

  p {
    font-family: sans-serif;
    font-size: 18px;
    color: #50290c;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  h1 {
    font-family: sans-serif;
    font-size: 24px;
    color: #50290c;
    height: 52px;
    font-weight: normal;
  }

  h1 img {
    vertical-align: middle;
    margin-right: 5px;
  }

  .logo-area-top {
    background-color: rgb(255, 255, 255);
    height: 30px;
    border-bottom: 1px solid #ccc;
  }

  .top-logo {
    width: 130px;
    height: 30px;
    position: relative;
    left: 10px;
  }

  .bg {
    background-image: url("./images/img_pc_bg.jpg");
    background-size: 1890px 1247px;
    height: 1247px;
  }

  .right-flower{
    background-image: url("./images/img_flower_right.png");
    background-size: 573px 684px;
    width: 573px;
    height: 684px;
    position: absolute;
    float: right;
    right: 0;
    z-index: 1;
  }

  .left-flower{
    background-image: url("./images/img_flower_left.png");
    background-size: 567px 850px;
    width: 567px;
    height: 850px;
    position: absolute;
    top: 385px;
    z-index: 1;
  }

  .main-area {
    padding-top: 30px;
    width: 694px;
    height: auto;
    margin: auto;
    position: relative;
    z-index: 10;
  }

  .top-area {
    background: url("images/img_table_top.png");
    background-size: 694px 50px;
    background-repeat: no-repeat;
    width: 694px;
    height: 50px;
    margin-top: 30px;
  }

  .middle-area {
    background: url("images/img_table_center.png");
    background-size: 694px 2px;
    background-repeat: repeat-y;
  }

  .title {
    background: url("images/img_title.png");
    background-size: 625px 44px;
    background-repeat: no-repeat;
    width: 625px;
    height: 44px;
    margin: auto;
  }

  .contents {
    width: 576px;
    height: auto;
    position: relative;
    margin: auto;
  }

  .title-area {
    width: 576px;
    margin: 30px 0 30px 0;
    display: flex;
  }

  .icon {
    background-image: url("images/ico_app.png");
    background-size: cover;
    width: 138px;
    height: 138px;
    margin-right: 30px;
  }

  .detail {
    flex: 1;
  }

  .game-title {
    color: #a61f00;
    font-weight: bold;
  }

  .area-border {
    background-image: url("images/img_border.jpg");
    background-size: 576px 4px;
    width: 576px;
    height: 4px;
  }

  .id-input-area {
    width: 576px;
    height: auto;
  }

  .serial-area {
    width: 576px;
    height: auto;
  }

  .id-input-form {
    background-image: url("./images/img_serial_l.jpg");
    background-size: cover;
    width: 572px;
    height: 48px;
    font-size: 20px;
    color: #50290c;
    text-align: center;
  }

  .serial-input-form {
    background-image: url("./images/img_serial_s.jpg");
    background-size: cover;
    width: 128px;
    height: 48px;
    font-size: 20px;
    color: #50290c;
    text-align: center;
    margin: 15px 5px 30px 0;
  }

  .note-area {
    width: 576px;
    height: auto;
  }

  .failed {
    color: #a61f00;
    font-weight: bold;
    width: 576px;
    text-align: center;
    margin-bottom: 30px;
  }

  .submit-btn {
    background: url("images/btn_submit.png") no-repeat;
    padding: 0;
    margin-left: 145px;
    border: 0;
    width: 280px;
    height: 60px;
  }

  .bottom-area {
    background: url("images/img_table_top.png");
    background-size: 694px 50px;
    background-repeat: no-repeat;
    width: 694px;
    height: 50px;
    transform: rotateX(180deg);
    margin-bottom: 40px;
  }

  .logo-area-foot {
    background-color: #4e3c26;
    height: 85px;
    min-width: 769px;
    width: 100%;
    position: absolute;
  }

  .foot-logo {
    position: relative;
    top: 15px;
    width: 193px;
    height: 26px;
    margin: auto;
  }

  .copyright {
    position: relative;
    top: 25px;
    margin: auto;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
  }

}

@media only screen and (max-width: 768px) {

  p {
    font-family: sans-serif;
    font-size: 18px;
    color: #50290c;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  h1 {
    font-family: sans-serif;
    font-size: 24px;
    color: #50290c;
    height: 52px;
    font-weight: normal;
  }

  h1 img {
    vertical-align: middle;
    margin-right: 5px;
  }

  .logo-area-top {
    background-color: rgb(255, 255, 255);
    height: 30px;
    border-bottom: 1px solid #ccc;
  }

  .top-logo {
    width: 100%;
    height: 30px;
    position: relative;
    left: 10px;
  }

  .bg {
    background-image: url("./images/img_pc_bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    height:0;
    padding-bottom: 220%;
    padding-top: 3%;
    position: relative;
  }

  .right-flower{
    display: none;
  }

  .left-flower{
    display: none;
  }

  .main-area {
    transform-origin: left top;
    width: 694px;
    height: auto;
    margin: auto;
  }

  .top-area {
    background: url("images/img_table_top.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 694px;
    height: auto;
    min-height: 50px;
    margin-top: 30px;
  }

  .middle-area {
    background: url("images/img_table_center.png");
    background-size: 694px 2px;
    background-repeat: repeat-y;
  }

  .title {
    background: url("images/img_title.png");
    background-size: 625px 44px;
    background-repeat: no-repeat;
    width: 625px;
    height: 44px;
    margin: auto;
  }

  .contents {
    width: 576px;
    height: auto;
    position: relative;
    margin: auto;
  }

  .title-area {
    width: 576px;
    margin: 30px 0 30px 0;
    display: flex;
  }

  .icon {
    background-image: url("images/ico_app.png");
    background-size: cover;
    width: 138px;
    height: 138px;
    margin-right: 30px;
  }

  .detail {
    flex: 1;
  }

  .game-title {
    color: #a61f00;
    font-weight: bold;
  }

  .area-border {
    background-image: url("images/img_border.jpg");
    background-size: 576px 4px;
    width: 576px;
    height: 4px;
  }

  .id-input-area {
    width: 576px;
    height: auto;
  }

  .serial-area {
    width: 550px;
    height: auto;
  }

  .id-input-form {
    background-image: url("./images/img_serial_l.jpg");
    background-size: cover;
    width: 572px;
    height: 48px;
    font-size: 20px;
    color: #50290c;
    text-align: center;
  }

  .serial-input-form {
    background-image: url("./images/img_serial_s.jpg");
    background-size: cover;
    width: 15%;
    height: 48px;
    font-size: 20px;
    color: #50290c;
    text-align: center;
    margin: 15px 3px 30px 0;
  }

  .note-area {
    width: 576px;
    height: auto;
  }

  .failed {
    color: #a61f00;
    font-weight: bold;
    width: 576px;
    text-align: center;
    margin-bottom: 30px;
  }

  .submit-btn {
    background: url("images/btn_submit.png") no-repeat;
    padding: 0;
    margin-left: 145px;
    border: 0;
    width: 280px;
    height: 60px;
  }

  .bottom-area {
    background: url("images/img_table_top.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 694px;
    height: 50px;
    transform: rotateX(180deg);
    margin-bottom: 40px;
  }

  .logo-area-foot {
    background-color: #4e3c26;
    height: 85px;
    width: 100%;
    position: relative;
  }

  .foot-logo {
    position: relative;
    top: 15px;
    width: 193px;
    height: 26px;
    margin: auto;
  }

  .copyright {
    position: relative;
    top: 25px;
    margin: auto;
    font-size: 12px;
    text-align: center;
    color: #ffffff;
  }

}