@charset "utf-8";

*{
  padding:  0;
  margin:  0;
}
body{
  font-family:
    sans-serif;
  line-height:  1;
  color:  #333;
}
ul{
  list-style:  none;
}
a{
  text-decoration:  none;
  display:  block;
}
.btn, .spnav, .top{
  display: none;
}

/*共通幅*/
.container{
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 10px;
}

/*header*/
header{
  color:  #fff;
  background:  #a00  
}
header .container{
  height:  200px;
  background: url(../img/new-header.png) 
   no-repeat 
   right bottom; 
}
header h1{
  padding:  40px 0 20px;
  font-family: 'Cherry Bomb One', cursive;
  font-size: 55px;
  letter-spacing: 10px;
  text-shadow: 5px 5px 2px #cc0;
}
header p{
  font-size:  24px;
}

/*navigation*/
.pcnav{
  background:  #fdd;
}
.pcnav ul{
  display:  flex;
}
.pcnav li{
  width:  20%;
}
nav a{
  line-height: 50px;
  text-align: center;
  text-decoration:  none;
  color:  #a00;
}
nav a:hover{
  color:  #fff;
  background:  #f00;
}

/*2カラムレイアウト*/
.wrap{
  padding:  50px 10px;
  display:  flex;
  justify-content: 
    space-between;
}
main{
  width: calc(630/960*100%);
}
.sidebar{
  width: calc(300/960*100%);
}

/*共通指定*/
h2{
  margin-bottom: 20px;
  padding:  10px;
  color:  #fff;
  background:  #f00;
}
h3{
  margin:30px 0 20px;
  padding:  10px;
  color:  #a00;
  background:  #fdd;
}
.wrap p{
  line-height: 1.6;
}

/*main*/
main>section section{
  overflow:  hidden;
}
main>section>p:last-of-type a{
  display:  inline;
  color:  #00f;
  text-decoration:  underline;
}
main img{
  margin-right:  20px;
  width:  40%;
  float:  left;
}
main>section>p:first-of-type{
  margin-bottom: 30px;
}
/*詳細を見る*/
.more{
  margin-top: 30px;
  float: right;
  width:  9em;
  text-align: center;
  line-height:  2em;
  color:  #fff;
  background:  #f00;
  border-radius: 5px; 
}
.more:hover{
  background:  #a00;
}

/*sidebar*/
.sidebar p{
  margin-bottom: 30px;
}
.sidebar dt{
  color: #900;
}
.sidebar dd{
  line-height: 1.6;
  padding:5px 0 15px 20px;
}
.sidebar dd:last-of-type{
 padding-bottom: 0;
}
.sidebar dd a{
  color:  #00f;
  text-decoration:  underline;
}

/*footer*/
footer{
  padding:  20px 0;
  color:  #fff;
  background:  #a00;
}

/*メディアクエリ743以下*/
@media screen and (max-width:743px){
  .container{
    display: block;
  }
  .pcnav{
    display: none;
  }

  .btn{
    display: block;
    text-align: center;
    background: linear-gradient(#fff,#fcc);
  }
  .btn i{
    line-height: 50px;
    color: #f00;
    font-size: 35px;
  }

  .spnav{
    display: block;
    position: absolute;
    width: 100%;
  }
  .spnav li{
    border-bottom: 1px solid #f00;
    line-height: 60px;
    background: rgba(255, 221, 221, 0.8); 
  }
  .spnav a{
    color: #f00;
    font-size: 20px;
    font-weight: bold;

  }
  /*header*/
  header .container{
    height: 150px;
    background-size: auto 150px;
    text-shadow: 1px 1px 1px #500;
  }
  header h1{
    padding: 20px 0 ;
    font-size: 55px;
    letter-spacing: 5px;
  }
  header p{
    font-size: 18px;
  }

  .wrap{
    margin: 20px auto;
  }
  main, .sidebar{
    width: auto;
  }
  h3{
    margin:20px 0 10px;
  }
  main>section section:last-child{
    margin-bottom: 20px;
  }
  main>section>p:first-of-type{
    margin-bottom: 20px;
  }
  main>section section{
    overflow: visible;
  }
  main img{
    margin-bottom: 20px;
  }
  .more{
    float: none;
    width: 100%;
    line-height: 50px;
    color: #a00;
    background:linear-gradient(#fff,#fdd) ;
    border: 1px solid #a00;
    border-radius: 5px;
    /*↓↓overflow:hidden;が使いにくい場面で使う*/
    clear: both;

  }

  .sidebar{
    width: 100%;
  }
  .sidebar img{
  display: block;
  margin-inline: auto;

  }
}

/*メディアクエリ５００以下*/
@media screen and (max-width:500px){
  .top{
    display: block;
    position: fixed;
    right: 5px;
    bottom: 5px;
    line-height: 1.1em;
    background: #fff;
    border-radius: 50%;
  }
  .top i{
    font-size: 35px;
    color: #C00;
  }

  header h1{
    font-size: 45px;
  }

  main img{
    float: none;
    width: auto;
    display: block;
    margin: 0 auto 10px;
  }

}