/* IMPORT RESET ================================================== */
@import url("sanitize.css");

/* IMPORT WEBFONT */
@import url('https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:400,700&subset=japanese');


/* STYLES ======================================================== */

/* ルートのフォントサイズを10pxに設定 */
html {
  font-size: 62.5%;
}

/* bodyのフォントサイズを16pxに設定 */
body {
  font-size: 1.6em;
}

.small{
  font-size: 1.2rem;
}

.large{
  font-size: 2rem;
}

/* MEMO ++++++++++++++++++++++++++++++++
  フォントサイズはremで指定すること
  例）10pxは1rem、12pxは1.2rem
+++++++++++++++++++++++++++++++++++++ */

*{
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, #fffbce 0%, #fbd257 100%);
  background-image: url(../img/bg_pc.jpg);
  background-size: 100%;
}
@media (max-width: 767px){
  body {
    background-image: url(../img/bg_sp.jpg);
  }
}

.sp {
  display: none;
}
@media (max-width: 767px){
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

header{
  margin: 0;
  padding: 0;
  text-align: center;
}

header h1{
  margin: 0 auto;
  padding: 0;
  border-bottom: 5px solid #fff;
}

h1 img{
  max-width: 980px;
}

header p{
  max-width: 980px;
  margin: 1em auto;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
}

main{
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
}

@media (max-width: 767px){
/*スマホのみ適用*/
  main{
    padding: 0 10px;
  }
}

footer{
  margin: 0;
  padding: 10px;
  text-align: center;
  background-color: #CD1911;
  color: #fff;
}

img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

img.photo {
  border: 5px solid #fff;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, .3);
}

h2{
  font-size: 2rem;
  color: #CD1911;
  border-left: 7px solid #CD1911;
  padding-left: 7px;
}

div.orange-border{
  background-color: #fff;
  border:2px solid #a82d28;
  border-radius: 10px;
  padding: 10px;
  margin: 1em 0;
}

#apps div{
  background-color: #fff;
  border-radius: 10px;
  padding: 0;
  margin: 1em 0;
  position: relative;
  aspect-ratio: 982 / 217;
}

#apps div figure{
  position: absolute;
  margin: 0;
}
#apps div a.appstore{
  position: absolute;
  width: 13.5%;
  top: 39%;
  left: 18.5%;
}
#apps div a.googleplay{
  position: absolute;
  width: 17%;
  top: 66%;
  left: 18.5%;
}
#apps div a.iaeon{
  position: absolute;
  width: 10%;
  top: 41.5%;
  left: 52.2%;
}

@media (max-width: 767px){
  #apps div{
    aspect-ratio: 710 / 965;
  }
  #apps div a.appstore{
    width: 37%;
    top: 23%;
    left: 45%;
  }
  #apps div a.googleplay{
    width: 46%;
    top: 34.5%;
    left: 45%;
  }
  #apps div a.iaeon{
    width: 33%;
    top: 48.5%;
    left: 52.2%;
  }
}


/*Flexbox ────────────────────────────────────────────────────────────
　表示数が足りない時は左寄せ。
　子要素の右に10pxのマージン。右端にくる分は親要素のmargin-right: -10pxで相殺
　※均等配置にしたい場合は上記設定を削除し、flex-boxにjustify-content: space-betweenを設定し
　子要素のwidthの計算式で100%から引く数値を10px減らす
　※記事の間隔は10px設定なので、間隔を変更する場合は関連箇所の数値を調整
*/
.flexbox{
  display: flex;
  flex-wrap: wrap;
  margin-right: -10px;
}

.flexbox > div,
.flexbox > p{
  border: 1px solid #ccc;
}

/*PC2列、スマホ1列　※flexと一緒に設定*/
.box2-1 > div,
.box2-1 > p{
  width: 100%;
  margin: 0 10px 10px 0;
}
@media (min-width: 768px){
/*PCのみ適用*/
  .box2-1 > div,
  .box2-1 > p{
    width: calc( ( 100% - 10px * 2 ) / 2 );
    margin-right: 10px;
  }
}

/*PC3列、スマホ2列　※flexと一緒に設定*/
.box3-2 > div,
.box3-2 > p{
  width: calc( ( 100% - 10px * 2 ) / 2 );
  margin: 0 10px 10px 0;
}

@media (min-width: 768px){
/*PCのみ適用*/
  .box3-2 > div,
  .box3-2 > p{
    width: calc( ( 100% - 10px * 3 ) / 3 );
  }
}

/*PC4列、スマホ2列　※flexと一緒に設定*/

.box4-2 > div,
.box4-2 > p{
  width: calc( ( 100% - 20px ) / 2 );
  margin: 0 10px 10px 0;
}

@media (min-width: 768px){
/*PCのみ適用*/
  .box4-2 > div,
  .box4-2 > p{
    width: calc( ( 100% - 40px ) / 4 );
  }
}


.btn{
  background-color: #E91F0C;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px 20px;
  text-decoration: none;
}

/*ページトップスクロール*/
#page-top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 77%;
  width: 20%;
  max-width: 50px;
  z-index: 10;
}
#page-top img {
  width: 100%;
}
/* ▲ページトップスクロールここまで▲ */

/*YouTubeの埋め込みレスポンシブ対応===============================*/

.youtube {
	width:100%;
	max-width:560px; /*PC用の横幅。変更可*/
  margin: 0 auto;
}

.youtube .inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.youtube .inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}