/* リセットCSS */
html,
::before,
::after {
  font-family: sans-serif;
  font-size: 16px;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #121212;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

ul {
  padding-left: 0;
}

/* このページ用 */

header {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}

main {
  margin: 15px 15%;

}


@media (max-width: 768px) {
main {
  margin: 4px;
}
}


footer {
  font-size: small;
  color: #F5F5F5;
  background-color: #121212;
  text-align: center;
  margin-top: 200px;
  padding: 8px;
}

.globalnav {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 10000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
    align-items: center; 
  background-color: #F5F5F5;
h1{
  margin-left: 16px;
}
  menu {
    margin: 0;
    padding: 0;

    margin-right: 50px;

    display: flex;

    li {
      list-style: none;
      margin-left: 32px;
    }

  }
}

.hamburger {
  display: none; /* PCでは非表示 */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
    line-height: 1;
  padding: 0 8px;
  margin: 0;
}


/* スマホ用 */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* ハンバーガー表示 */
  }

.globalnav menu {
    display: none; /* 初期は非表示 */
    flex-direction: column;
    position: absolute;
    top: 60px; /* ヘッダー下に展開 */
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    padding: 1rem;
  }

  .globalnav menu.open {
    display: flex; /* 開いたとき */
  }
}

a {
  text-decoration: none;
  transition: 0.5s;
  color: #121212;

  &:hover {
    color: #30475E;
  }
}

.illust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;

  div {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    height: inherit;
  }

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  @media(width >=768px) {
    & {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;

    }
  }
}

  .content {
  margin-top: 0;
}

.active {
  color: #F05454;
}

button {

  margin-top: 48px;
  background-color: #F5F5F5;
  border: #30475E solid 1px;
  padding: 8px;
  border-radius: 12px;

  & :hover {
    opacity: 0.5;
  }

  a {
    color: #30475E;
  }
}

/* 漫画ページ */

.comic {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.comicmenu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comicbanner {
  width: auto;    
  overflow: hidden;
}

.comicbanner img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  border: solid 2px #121212;
}

.comic  h2 {
    text-align: center;
    font-size: 20px;
}


/* 漫画ページスマホ */
@media(max-width: 768px) {
.comic {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.comicmenu {
  display: flex;
  flex-direction: column;
  align-items: center;

}
.comicbanner {
  width: 80vw;
  height: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
}

.comic  h2 {
    text-align: center;
    font-size: 20px;
}

.comicbanner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: solid 2px #121212;
}
}

.illust , .comic {
  a {
    &:hover {
      opacity: 0.5;
    }
  }
}

.page {
  text-align: center;

  button {
    font-size: large;
    background: none;
    border: none;
    margin-left: 32px;
  }

}
.art-one {
  display: flex;
  flex-direction: column;      /* 縦方向に並べる */
  align-items: center;         /* 横中央揃え */
}

.img-wrapper {
  display: flex;
  justify-content: center;     /* 横中央 */
  align-items: center;         /* 縦中央 */
  height: 80vh;                /* PC版の高さ */
  width: 100%;
  overflow: hidden;            /* はみ出しを隠す */
}

.img-wrapper img {
  display: block;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* スマホ版 */
@media (max-width: 768px) {
  /* .img-wrapper {
    height: 90vh;
  } */

  .img-wrapper img {
    max-height: 100%;
    margin: 0;
  }
  .back-to-list {
  margin-left: 32px;
  
}
button {
  margin-top: -30px;
}
}

div.caption {
  margin: 0 auto;
  max-width: 50vw;
}
.atogaki {
  text-align: right;
  font-size: smaller;
}

/* 更新情報 */
.update{
  margin-bottom: 64px;
}

dt {
  margin-top: 8px;
}


