@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Zen+Kaku+Gothic+New&display=swap");

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 メインビジュアル

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.sitename {
  color: #dddddd;
  font-size: clamp(3rem, 2.6rem + 2vw, 5rem);
  letter-spacing: 8px;
  padding: 0 20px;
  margin: 20vh 0;
  text-align: center;
}

/* スマホ */

@media (max-width: 520px) {
  .sitename {
    margin: 20vh 40px;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 更新履歴

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.update {
  height: 140px;
  overflow-y: auto;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-gutter: stable;
}

.update__item {
  display: flex;
  gap: 20px;
  padding: 8px 20px;
  background-color: rgba(221, 221, 221, 0.1);
}

/* スマホ */

@media (max-width: 520px) {
  .update__item {
    flex-direction: column;
    gap: 4px;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 トピック一覧

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.topiclist__item {
  margin-bottom: 40px;
  padding: 30px;
}

.topiclist__item .grid {
  gap: clamp(10px, 2vw, 20px);
  text-decoration: none;
  align-items: flex-start;
}

.topiclist__item .grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topiclist__item .grid p {
  margin: 0;
  padding: 10px;
}

/* タブレット・スマホ */

@media (max-width: 768px) {
  .topiclist__item .grid {
    grid-template-columns: 1fr;
  }
  .topiclist__item.bg-white {
    margin-bottom: 20px;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 LINK

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.linklist__item a {
  text-decoration: none;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 NOVEL

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/*－－－－－－－－－－  小説一覧ページ －－－－－－－－－－*/

.novellist {
  margin-top: 25px;
}

.novellist.--2column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* 数字＋小タイトルの数字の色 */

.novellist__number {
  color: #dddddd;
  display: inline-block;
  margin-right: 5px;
}

/* 短編小説の説明文 */

.novellist__text {
  display: block;
  font-size: 0.8em;
  margin: 10px;
  margin-left: 30px;
}

@media (max-width: 520px) {
  .novellist__text {
    margin-left: 0px;
  }
}

/*－－－－－－－－－－ 小説のページ －－－－－－－－－－*/

.novelpage__inner {
  max-width: 880px;
  margin: auto;
  background-color: rgba(36, 32, 39, 0.9);
  padding: 80px;
}

.novelpage__main {
  font-size: 1.7rem;
  text-align: justify;
  text-justify: inter-ideograph;
  hanging-punctuation: allow-end;
  letter-spacing: 0.02em;
  line-height: 2;
  word-break: break-word;
}

.afterword {
  margin: 60px 0 0 0;
}

/* スマホ */

@media (max-width: 520px) {
  .novelpage__inner {
    padding: 20px;
    padding-bottom: 60px;
  }
  .novelpage__inner h1 {
    font-size: clamp(2.1rem, 1.9rem + 0.6vw, 2.6rem);
  }
  .novelpage__main {
    font-size: 1.6rem;
    line-height: 1.9;
  }
  .pagenav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 0 0;
  }
  .pagenav__item {
    flex: 0 1 auto;
  }
  .pagenav__item a {
    white-space: nowrap;
  }
}

/* 前後ページへのナビ */

.pagenav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.pagenav__item a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.pagenav__item a i {
  opacity: 0;
  transition: 0.2s;
}

.pagenav__item a:hover i {
  opacity: 1;
}

.pagenav__item.--prev a i {
  margin-right: 10px;
}

.pagenav__item.--prev a:hover i {
  transform: translateX(-6px);
}

.pagenav__item.--next a i {
  margin-left: 10px;
}

.pagenav__item.--next a:hover i {
  transform: translateX(6px);
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 GALLERY

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.gallerylist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 160px));
  justify-content: flex-start;
  gap: 12px;
  margin: 40px 0;
}

.gallerylist__item a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
}

.gallerylist__item a img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .gallerylist {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 PhotoSwipe

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.pswp__arrow-custom {
  position: absolute;
  display: none;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
}

.pswp__arrow-prev {
  left: 6px;
}

.pswp__arrow-next {
  right: 6px;
}

.pswp__custom-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  font-size: 14px;
}

.pswp.pswp--ui-hidden .pswp__top-bar,
.pswp.pswp--ui-hidden .pswp__button,
.pswp.pswp--ui-hidden .pswp__custom-caption,
.pswp.pswp--ui-hidden .pswp__arrow-custom {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .pswp__arrow-custom {
    display: block;
  }
  .pswp__button--arrow--prev, .pswp__button--arrow--next {
    display: block;
    opacity: 0.8;
    padding: 20px;
    transform: scale(1.2);
  }
  .pswp__custom-caption {
    width: calc(100% - 20px);
    max-width: none;
    bottom: 20px;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 Plyr

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* 全体のベースカラー */

:root {
  --plyr-color-main: #ed1a3d;
}

/* 背景 */

.plyr {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.plyr__controls {
  opacity: 0;
  transition: 0.3s;
}

.plyr:hover .plyr__controls {
  opacity: 1;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 YouTube

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

.youtube {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  overflow: hidden;
}

.youtube iframe {
  width: 100%;
  height: 100%;
}