/**************** COMMON ****************/
/* #page-top ボタンタグのリセットCSS */
#page-top {
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 10000;
}

#page-top a {
    text-decoration: none;
    color: #fff;
    text-align: center;
    font-weight: bold;
    display: block;
    transition: transform 0.3s ease;
}

#page-top a:hover {
    text-decoration: none;
    transform: translateY(-10px);
}

#page-top a img {
    width: 75px;
    height: auto;
}

@media only screen and (max-width: 767px) {
    #page-top {
        bottom: 100px;
        right: 10px;
    }
    #page-top a img {
        width: 50px;
    }
}

@media only screen and (min-width: 768px) {
    #page-top a img {
        width: 75px;
    }
}

/* フェード/スライドアニメーション */
.slide-top { opacity: 0; transform: translate(0,-20px); transition: all 0.5s ease-out; }
.slide-bottom { opacity: 0; transform: translate(0,20px); transition: all 0.5s ease-out; }
.slide-left { opacity: 0; transform: translate(-20px,0); transition: all 0.5s ease-out; }
.slide-right { opacity: 0; transform: translate(20px,0); transition: all 0.5s ease-out; }
.slide-right02 { opacity: 0; transform: translate(20px,0); transition: all 0.5s ease-out; }
.slide-right03 { opacity: 0; transform: translate(20px,0); transition: all 1.5s ease-out; }
.slide-right04 { opacity: 0; transform: translate(20px,0); transition: all 2s ease-out; }

.fadein { opacity: 0; animation: fadein 4s ease forwards; }
@keyframes fadein { 100% { opacity: 1; } }
.txt01 { animation-delay: 0.2s; }
.txt02 { animation-delay: 0.5s; }
.txt03 { animation-delay: 0.8s; }
.txt04 { animation-delay: 1.1s; }
.txt05 { animation-delay: 0.2s; }
.txt06 { animation-delay: 2.1s; }


@keyframes jitter {
  0%   { transform: translate(0, 0) rotate(0deg); }
  10%  { transform: translate(3px, -3px) rotate(5deg); }
  20%  { transform: translate(-3px, 3px) rotate(-5deg); }
  30%  { transform: translate(2px, -2px) rotate(4deg); }
  40%  { transform: translate(-2px, 2px) rotate(-4deg); }
  50%  { transform: translate(1px, -1px) rotate(2deg); }
  60%  { transform: translate(-1px, 1px) rotate(-2deg); }
  70%  { transform: translate(2px, -2px) rotate(3deg); }
  80%  { transform: translate(-2px, 2px) rotate(-3deg); }
  90%  { transform: translate(1px, 1px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.title.fadein.txt05 img {
  animation: jitter 1.5s ease-in-out 2s forwards;
}


/**************** STORY TAB ****************/
input[type="radio"] { display: none; }

/* タブエリア */
.tab_area {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-start;
  font-size: 0;
}
@media only screen and (max-width: 751px) {
    .tab_area label {
    display: inline-block;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-family: "KeinannPOP", sans-serif;
    font-weight: 500;
    font-style: normal;
    cursor: pointer;
    margin: 0px 7px 15px 7px;
    padding: 5px 5px;
    border-radius: 40px;
    background-color: #8dcde0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
}

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

.tab_area label {
    display: inline-block;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    font-size: 30px;
    font-family: "KeinannPOP", sans-serif;
    font-weight: 500;
    font-style: normal;
    cursor: pointer;
    margin: 0 10px 10px 0;
    padding: 12px 22px;
    border-radius: 5px;
    background-color: #8dcde0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
}
.tab_area label:hover {
  color: #fff;
  background-color: #ff7dca;
}

/* 選択状態 */
#tab1:checked ~ .tab_area .tab1_label,
#tab2:checked ~ .tab_area .tab2_label,
#tab3:checked ~ .tab_area .tab3_label,
#tab4:checked ~ .tab_area .tab4_label,
#tab5:checked ~ .tab_area .tab5_label,
#tab6:checked ~ .tab_area .tab6_label,
#tab7:checked ~ .tab_area .tab7_label,
#tab8:checked ~ .tab_area .tab8_label,
#tab9:checked ~ .tab_area .tab9_label,
#tab10:checked ~ .tab_area .tab10_label,
#tab11:checked ~ .tab_area .tab11_label,
#tab12:checked ~ .tab_area .tab12_label,
#tab13:checked ~ .tab_area .tab13_label,
#tab14:checked ~ .tab_area .tab14_label,
#tab15:checked ~ .tab_area .tab15_label,
#tab16:checked ~ .tab_area .tab16_label,
#tab17:checked ~ .tab_area .tab17_label,
#tab18:checked ~ .tab_area .tab18_label,
#tab19:checked ~ .tab_area .tab19_label,
#tab20:checked ~ .tab_area .tab20_label,
#tab21:checked ~ .tab_area .tab21_label,
#tab22:checked ~ .tab_area .tab22_label {
  color: #fff;
  background-color: #d1097f;
}

/**************** パネルエリア ****************/
.tab_panel {
  width: 100%;
  padding: 0;
  display: none;
  box-sizing: border-box;
}
.tab_panel p {
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
}
#tab1:checked ~ .panel_area #panel1,
#tab2:checked ~ .panel_area #panel2,
#tab3:checked ~ .panel_area #panel3,
#tab4:checked ~ .panel_area #panel4,
#tab5:checked ~ .panel_area #panel5,
#tab6:checked ~ .panel_area #panel6,
#tab7:checked ~ .panel_area #panel7,
#tab8:checked ~ .panel_area #panel8,
#tab9:checked ~ .panel_area #panel9,
#tab10:checked ~ .panel_area #panel10,
#tab11:checked ~ .panel_area #panel11,
#tab12:checked ~ .panel_area #panel12,
#tab13:checked ~ .panel_area #panel13,
#tab14:checked ~ .panel_area #panel14,
#tab15:checked ~ .panel_area #panel15,
#tab16:checked ~ .panel_area #panel16,
#tab17:checked ~ .panel_area #panel17,
#tab18:checked ~ .panel_area #panel18,
#tab19:checked ~ .panel_area #panel19,
#tab20:checked ~ .panel_area #panel20,
#tab21:checked ~ .panel_area #panel21,
#tab22:checked ~ .panel_area #panel22 {
  display: block;
}

@media only screen and (min-width: 751px) {
  .panel_area {
    padding-top: 1em;
    margin-bottom: 2em;
  }
}

/**************** slickやbox ****************/
.slick-track{ margin:0; }
.box{ box-sizing:border-box; padding:0; position:relative; }
.box img{ width:100%; height:auto; display:block; margin:0 auto; }
button.slick-next{ display:block; }
.slick-initialized .slick-slide { margin: 0; }

/**************** MOBILE ****************/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    #page-top {
        border: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        appearance: none;
        position: fixed;
        bottom: 50px;
        right: 20px;
        z-index: 10000;
    }
}


@media only screen and (min-width: 751px) and (max-width: 1024px) {
    .tab_area label {
        font-family: "KeinannPOP", sans-serif;
        font-weight: 500;
        font-style: normal;
        font-size: 22px;
        margin: 0 11px 10px 0;
        padding: 12px 14px;
    }
}
