@charset "UTF-8";

html {
  scroll-behavior: smooth;
  background: #f1f1f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  line-height: 1.6;
}
a img {
  transition: all 0.5s;
}
a:hover img {
  transform: scale(0.98);
}
.min {
  font-size: 0.8rem;
  font-weight: normal;
}
/********************************TOPメイン*********************/

@keyframes textanimation {
  0% {
    opacity: 0;
    transform: translateX(2em);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

main {
  width: 1300px;
  max-width: 90%;
  display: flex;
  padding: 0 0 100px 0;
  position: relative;
}
.main_sign {
  position: absolute;
  width: 24%;
  top: 57%;
  left: 27%;
  /* 以下アニメーション1 */
  animation: textanimation 2s forwards;
  animation-delay: 2.5s;
  z-index: 10;
  opacity: 0;
}
.kitakata {
  font-size: 0;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  width: 50%;
  /* 以下アニメーション2 */
  animation: textanimation 1s forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
img {
  width: 100%;
}
.grid {
  overflow: hidden;
  border-radius: 0 8px 8px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: 50%;
  gap: 0;
  /* 以下アニメーション3 */
  animation: textanimation 1s forwards;
  animation-delay: 1s;
  opacity: 0;
}

.panel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-in-out;
}

.panel.flipped {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

.back {
  transform: rotateY(180deg);
}
/********************************メニュー*********************/
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px; /* h1 と nav の間隔 */
  width: 1300px;
  max-width: 90%;
  padding: 40px 0 40px 0;
  margin: 0 auto;
  box-sizing: border-box;
  animation: textanimation 1s forwards;
  animation-delay: 0s;
  opacity: 0;
}

header h1 {
  flex: 0 0 auto;
  max-width: 330px;
  margin: 0 auto;
}
header h1 img {
  display: block;
  max-width: 100%;
  height: auto;
}
nav {
  margin: 0 auto;
  flex: 1 1 auto; /* 余った幅を使う */
  min-width: 0; /* 子要素のはみ出し防止 */
  width: 90%;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8%; /* li の間隔（margin-left の代わり） */
  margin: 0;
  padding: 0;
  list-style: none;
}

nav ul li {
  padding: 12px 0;
}

nav ul li img {
  display: block;
  height: 34px;
  width: auto;
  transition: transform 0.2s ease;
}
nav ul li img:hover {
  transform: scale(1.1);
}

@media (max-width: 890px) {
  header {
    flex-direction: column;
    align-items: flex-start; /* 左寄せ */
    gap: 12px;
    padding: 20px 0;
  }
  nav ul {
    justify-content: center;
    flex-wrap: nowrap;
  }
  nav ul li img {
    height: 33px;
    display: block;
  }
}
@media (max-width: 600px) {
  nav ul li img {
    height: 24px;
  }
}
@media (max-width: 350px) {
  nav ul li img {
    height: 19px;
  }
}

/********************************コンテンツ*********************/

.contents {
  width: 100%;
  background: #360000;
  background-image: linear-gradient(90deg, #000000, #660000);
  font-size: 0;
  text-align: center;
  padding: 4rem 0;
}
.contents img {
  max-width: 1500px;
}

.ttl {
  width: 90%;
  max-width: 680px;
  margin: 0 auto 1rem;
}
.newseries {
  margin: 0 auto 8rem;
}
.series {
  margin: 0 auto 8rem;
}
.profile {
  margin: 0 auto 8rem;
}
.download {
  margin: 5rem auto 0;
}

.bnr {
  width: 90%;
  max-width: 840px;
  margin: 0 auto 3rem;
}
.bnr img {
  box-shadow: rgba(0, 0, 0, 0.95) 0px 5px 15px;
}

.profile_kitakata {
  margin: 0 auto;
  display: flex;
  width: 90%;
  max-width: 850px;
}
.profile_ph {
  width: 30%;
}
.profile_ph img {
  max-width: 100%;
}
.profile_txt {
  font-size: 1rem;
  text-align: left;
  color: #e6e6e6;
  width: 70%;
  padding: 0 0 0 3%;
  letter-spacing: 0.5px;
}
span.cap {
  font-size: 1rem;
  color: #fff;
  display: block;
  padding: 0.5rem 0 0 0;
}
span.cap2 {
  font-size: 1rem;
  color: #000;
  display: block;
  padding: 0.5rem 0 0 0;
  text-align: center;
}

/********************************表紙スクロール*********************/
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.scroll-infinity__wrap {
  width: 100vw;
  display: flex;
  overflow: hidden;
  padding: 2rem 0 0 0;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0;
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 80s infinite linear 0.5s both;
}
.scroll-infinity__item {
  width: calc(100vw / 11);
}
.scroll-infinity__item > img {
  width: 100%;
}
/********************************読了リスト*********************/
.booklist {
  padding: 3rem 0 1rem;
}
.booklist {
  text-align: center;
}
.booklist_ttl {
  width: 670px;
  margin: 0 auto 1rem;
}
.booklist_txt {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.8;
}

.check_txt {
  text-align: center;
}
#count-display {
  text-align: center;
  margin: 0 auto;
  position: sticky;
  top: 10px;
  background-color: #601111;
  max-width: 400px;
  width: 70%;
  border-radius: 5px;
  padding: 20px 0;
  color: #fff;
  font-weight: bold;
  z-index: 10;
}
#checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
  display: block;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}
label.selected {
  background-color: #fff75e;
  font-weight: bold;
}
.buttons {
  text-align: center;
  margin-top: 20px;
}
button,
a.tweet-button {
  padding: 20px 200px;
  font-size: 16px;
  margin: 0 auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #000;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
  display: inline-block;
}
button:hover,
a.tweet-button:hover {
  background-color: #333;
}
.small-year {
  font-size: 0.7em;
  display: block;
  color: #999;
  padding-left: 7px;
}

@media (max-width: 1100px) {
  #checkboxes {
    max-width: 95%;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 8px;
    font-size: 0.8rem;
  }
  button,
  a.tweet-button {
    font-size: 16px;
    padding: 12px 60px;
  }
  #count-display {
    padding: 12px 0;
  }
}
/****************************************
イベントバナー
*****************************************/
.bnr_event {
  max-width: 800px;
  width: 90%;
  margin: 0 auto 2rem;
}
@media (max-width: 768px) {
  .bnr_event {
    margin: -4rem auto 2rem;
  }
}
/****************************************
SNSボタン
*****************************************/
.sns_list {
  display: flex;
  width: 250px;
  margin: 0 auto;
}
.tw,
.fb,
.li {
  width: 33%;
  padding: 9%;
}
/****************************************
フッター
*****************************************/
footer {
  background-color: #000;
  text-align: center;
  width: 100%;
  margin-top: 4rem;
  padding: 2rem;
  color: #dadada;
  font-size: 0.8rem;
}

/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/********************************SP*********************/

@media (max-width: 1000px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
  body {
    margin: 0;
    padding: 0;
  }
  header h1 {
    width: 58%;
  }
  .main_sign {
    position: absolute;
    width: 46%;
    top: 26%;
    left: 56%;
  }
  main {
    display: block;
    width: 100%;
  }
  .contents {
    padding: 4rem 0 0 0;
  }

  .kitakata {
    font-size: 0;
    width: 100%;
  }
  .grid {
    width: 100%;
    height: 100vw;
  }
  .scroll-infinity__item {
    width: calc(100vw / 6);
  }
  .kitakata {
    border-radius: 0;
  }
  .grid {
    border-radius: 0;
  }

  .profile_kitakata {
    display: block;
    width: 90%;
    max-width: 850px;
  }
  .profile_ph {
    width: 60%;
    margin: 0 auto 1rem;
  }

  .profile_txt {
    width: 100%;
    margin: 0 auto;
    letter-spacing: 0;
  }

  .profile_txt {
    font-size: 0.8rem;
  }
  span.cap {
    font-size: 0.8rem;
  }
  .ttl {
    width: 100%;
    overflow: hidden;
  }
  .ttl img {
    width: 100%;
  }
  .booklist_txt {
    font-size: 1rem;
    font-weight: normal;
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }
  .profile {
    margin: 0 auto 4rem;
  }
  span.cap2 {
    font-size: 0.8rem;
  }
  /****************************************
  SNSボタン
  *****************************************/
  .sns_list {
    width: 180px;
  }
}
