/* リセットCSS */
html,
::before,
::after {
  font-family: sans-serif;
  font-size: 16px;
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  font-family: serif;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

li {
  list-style: none;
}

ul {
  padding: 0;
  line-height: 2rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 共通 */
html,
body {
  height: 100%;
}

body {
  background-color: #F5F5F5;
  color: #121212;
}

a {
  color: #30475E;
  transition: 0.5s;
  font-weight: bolder;
  cursor: pointer;
&:hover {
  color: #F05454;
  opacity: .5;
}
}



footer {
  background-color: #121212;
  color: #F5F5F5;
  padding: 8px;
  text-align: center;
  font-size: small;

}



/* トップページ */
/* レイアウト */
.top {
  display: flex;
  justify-content: space-between;
}


.main {
  position: relative;
}


/* トップ画像 */
.header {
  background-image: url(/img/nagi/asagao.jpg);
  background-position: center;
  background-size: cover;
  height: 100vh;
  width: calc(100 / 3 * 1vw);
}

.title-m {
  display: none;
  font-family: "見出ミンMA31",serif;
}

@media(max-width:820px) {
  .header {
    height: 200px;
    width: 100vw;
    position: relative;
  }

  .title-m {
    display: block;
    position: absolute;
    top: 130px;
    left: 0;
    color: #F5F5F5;
  }

  .title {
    display: none;
    font-family: "見出ミンMA31";
  }

  .top {
    display: block;
  }

  .main {
    position: static;
  }

  .content {
    padding: 12px;
    padding-left: 24px;
    position: static;
  }
}

/* 最新イラスト */
.latest {
  background-image: url(/img/tales/tov.jpg);
  background-position: center;
  background-size: cover;
  height: 30vh;
  width: 40vw;
  margin-bottom: 60px;
}

@media(max-width:820px) {
  .latest {
    height: 200px;
    width: 80%;
    margin-left: auto;
    margin-bottom: 0;
  }

  ul.menu {
    line-height: 2.rem;
    margin-bottom: 0;
  }
}

/* 更新情報 */
.update {
  margin: 64px 0;
}

/* メニュー */
.menu {
  margin-bottom: 120px;
}

ul.menu {
  line-height: 3;
}

/* タイトル */
.title {
  margin-bottom: 8px;
  font-size: 54px;
  color: #F05454;
    font-family: "見出ミンMA31",serif;
    font-weight: lighter;

}

/* ナビゲーション */
.globalmenu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 上下に分ける */
  align-items: center;
  /* 横方向中央 */
  padding: 1em 0;
  background-color: #F05454;
  color: #F5F5F5;
  max-width: 10vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}


.globalmenu h1 {
  position: relative;
  /* 回転後の位置調整 */
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 4rem;
  white-space: nowrap;
  margin: 0;
  /* 親内に収めるために適宜調整 */
  left: 10rem;
  /* 必要に応じて微調整 */
  top: 460px;
  font-weight: lighter;
  font-family: "しまなみ JIS2004",serif;
}

.globalmenu nav menu {
  padding: 0;
  margin: 0 0 1em 0;
  gap: 0.5em;
  text-align: center;
  font-size: 1.3rem;
  padding-bottom: 50px;
}

.globalmenu a {
  color: #F5F5F5;
}

.globalmenu li {
  margin-bottom: 1em;
}

/* mainページ */
.col2f {
  display: flex;
  justify-content: space-between;
  min-height: 100vh;
}



.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.illust-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 80px 0;
  justify-items: center;
  /* アイテムを列の中で中央揃え */
  justify-content: center;
  /* 全体のグリッドも中央揃え */
}

.col-1:first-child {
  margin-top: 32px;
  flex: 0 0 200px;
  /* グローバルメニューの幅固定 */
}

.col-1:last-child {
  margin-left: 20vw;
}


@media (max-width:820px) {
  .col2f {
    display: flex;
    flex-direction: column;
  }

  .globalmenu {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100vw;
    height: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    padding: 4px;
  }


  .globalmenu h1 {
    position: static;
    transform: rotate(0);
    font-size: 2rem;
    font-weight: lighter;
  }

  .globalmenu nav menu {
    display: flex;
    padding: 12px;
    margin: 0;
    gap: 0.5em;
    text-align: center;
    font-size: 1rem;
    margin-bottom: -12px;
  }

  .col2 {
    display: block;
  }

  .illust-list {
    grid-template-columns: repeat(3, 1fr);
  }


}

.col-1:last-child {
  margin-left: 0;
}

@media (max-width:768px) {
  .illust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 4px;
  }
}

.col-1:first-child {
  flex: auto;
  margin-left: 0;
}

.illust-one {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  height: inherit;
  max-width: 240px;

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

}

.list {
  column-count: 2;
  column-gap: 2em;
}

dl dt{
  line-height: 1.8;
}

.list .item {
  break-inside: avoid;
  margin-bottom: 1em;
}

.item dd {
  margin: 0;
  font-size: smaller;
}

.main-list {
  margin-left: 20vw;
  display: flex;
  flex-direction: column;
  padding: 24px;
  justify-content: space-between;
}

@media (max-width:820px) {
  .col2f {
    display: flex;
    flex-direction: column;
  }

  .globalmenu {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100vw;
    height: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    padding: 4px;
  }


  .globalmenu h1 {
    position: static;
    transform: rotate(0);
    font-size: 2rem;
    font-weight: lighter;
  }

  .globalmenu nav menu {
    display: flex;
    padding: 12px;
    margin: 0;
    gap: 0.5em;
    text-align: center;
    font-size: 1rem;
    margin-bottom: -12px;
  }

  .col2 {
    display: block;
  }

  .illust-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .list {
    column-count: auto;
    line-height: 1.5rem;
  }
}



@media (max-width:768px) {
  .illust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 4px;
  }
}

.col-1:first-child {
  flex: auto;
}

.illust-one {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  height: inherit;
  max-width: 240px;

  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

}

/* 各イラストコーナー */


.arts {
  column-count: 6;
  column-gap: 1rem;
}

.arts img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  object-fit: contain;
}

.gallery {
  margin-left: 20vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  margin-bottom: 24px;
}

.art-one {
  display: flex;
  flex-direction: column;
  /* 縦方向に並べる */
  align-items: center;
  /* 横中央揃え */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
  box-sizing: border-box;
}

.art-one img {
  max-width: 100%;
  /* 横幅は親を超えない */
  max-height: 100%;
  /* 縦幅は親（=画面高さ）を超えない */
  object-fit: contain;
  /* 縦横比を保持 */
  display: block;
}

.img-wrapper {
  display: flex;
  width: 100%;
  height: 90vh;
  max-width: 100%;
}


.main-corner {
  display: flex;
  gap: 2rem;
  /* 左右カラムの間隔 */
}

.art {
  padding: 40px;
  margin-top: 40px;
}

.art img {
  margin-bottom: 40px;
}

.artcol-1:first-child {
  flex: 0 0 200px;
  /* グローバルメニューの幅固定 */
}

.artcol-1:last-child {
  flex: 1;
  /* 残りのスペースを取る */
  display: flex;
  justify-content: center;
  /* 水平方向中央 */
}

.artcol-1 {
  min-height: 100vh;
}

.page {
  text-align: center;

  button {
    font-size: large;
    background: none;
    border: none;
    margin-left: 32px;
  }
}

@media (max-width:1024px) {
  .arts {
    column-count: 4;
  }
}

@media (max-width:820px) {
  .main-list {
    margin-left: 0;
  }

}

@media (max-width:768px) {
  .arts {
    column-count: 2;
    column-gap: 0.6rem;
  }

  .gallery {
    margin: 4px;
  }

  .gallery h2 {
    margin-top: 40px;
  }

  .main-corner {
    display: block;
  }

  .img-wrapper {
    height: auto;
  }

  .main-list {
    margin: 0;
  }


}

/* 小説ページ */

.h2-title {
  text-align: center;
  padding-top: 16px;
}

.novel {
  max-width: 800px;
  font-size: 18px;
  padding-bottom: 24px;
  margin: 0 auto;
}

.novel h2 {
  padding-bottom: 40px;
  font-family: "見出ミンMA31",serif;
}

.novel p {
  line-height: 1.8;
  font-family: "リュウミン M-KL" ,serif;
}

.atogaki {
  padding: 12px;
  max-width: 800px;
  margin: 0 auto;
}

@media(max-width:768px) {
  .artcol-1 {
    min-height: 0;
  }

  .h2-title {
    padding-top: 80px;
  }

  .novel {
    padding: 12px;
  }
}

.yajirushi {
  margin-right: 30px;
}

div.page {
  display: flex;
  justify-content: space-between;
  max-width: 100px;
  margin: 0 auto;
}

.textbox {
  padding: 12px;
  max-width: 800px;
}

.textbox h2 {
  margin: 60px 0 40px;
  text-align: center;
}

.textbox h3 {
  text-align: center;
}

.textbox a {
  font-family: sans-serif;
  font-weight: bold;
}

.textbox p {
  line-height: 1.4;
}

.textbox dl {
  line-height: 2;
  margin-bottom: 40px;
  text-align: center;
}
