@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   font-family: "Zen Maru Gothic", sans-serif;
   font-weight: 500;
  font-style: normal;
}


/* :root {
  --main-color: #e02112;
  --accent-color: #125de0;
  --accent2-color: #fafafa;
  --accent3-color: #e020121b;
  --bg-color: #e020128f;
  --text-color: #222;
} */

:root {
  --main-color: #ff9832;
  --accent-color: #b3bf78;
  --accent2-color: #fdf8f3;
  --accent3-color: #ffe3c7b5;
  --bg-color: #f5ddb2;
  --text-color: #444;
}

body {
  background: var(--accent2-color);
  background-image:
    linear-gradient(to right, var(--bg-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-color) 1px, transparent 1px);
  background-size: 30px 30px;
  margin: 0;
  padding: 0;
  margin-bottom: 90px;
  background-attachment: fixed;
}

p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: 700;
}

p, dl, ul, ol, form, .box, .scrollbox {
  margin-block: 1rem;
}

b,em,strong {
  font-weight: 700;
  color: var(--text-color);
}

em { 
  color: var(--main-color);
}

h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--main-color);
  text-align: center;
  padding:0.5rem 0;
  margin: 1.5rem 0;
  letter-spacing: 3px;
}


h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-color);
  margin: 1.5rem 0;
}


h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 1rem 0;
  padding: 0.25em 0.5em;
  border-left: solid 5px var(--main-color)
}


h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
  margin: 1rem 0;
}


a {
  text-decoration: none;
  font-weight: 700;
  color:var(--main-color);
}

hr {

  inline-size: 80%;
  block-size: 3px;
  margin-inline: auto;
  border: 0;
  background: var(--main-color);
}

li {
  list-style: none;
}

img {
  width: 100%;
}

/* ボタン */
button {
  padding: 0.5em;
  cursor: pointer;
  background-color: var(--accent-color);
  border: none;
  border-radius: 5px;
  color: var(--accent2-color);
  font-size: 1em;
}

button a {
  color: var(--accent2-color);
  font-size: 1em;
}

.btn {
  text-align:right;
  color:var(--accent2-color);
   font-weight: 700;
}


/* セレクトボックス */

.selectbox {
  display: inline;
}

.selectbox select {
  padding: 5px 0;
  border: 2px solid var(--accent-color);
  color: var(--text-color);
  background: var(--accent2-color);
  border-radius: 25px;
  margin: 16px 0;
  font-size: 1.1em;
}


/* ヘッダー */

header {
  position: fixed;
    white-space: nowrap;
    z-index: 90;
}

header h1 a {
  position: relative;
  color: var(--main-color);
  font-family: "Dela Gothic One";
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding:0 1rem;
}


/* ハンバーガー */
.hamburger {
  position: fixed;
  display: block;
  height: 50px;
  width: 50px;
  top: 5px;
  right: 5px;
  z-index: 150;
  border: none;
  background: var(--main-color);
  border-radius: 10px;
}

.hamburger.-active .hamburger__line {
  background-color: transparent;
}

.hamburger.-active .hamburger__line::before {
  top: 0;
  transform: rotate(45deg);
  transition: 0.3s;
}

.hamburger.-active .hamburger__line::after {
  top: 0;
  transform: rotate(-45deg);
  transition: 0.3s;
}

.hamburger__line {
  display: block;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  background-color: var(--accent2-color);
}

.hamburger__line:before,
.hamburger__line:after {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  background-color: var(--accent2-color);
  transition: 0.3s;
}

.hamburger__line:before {
  top: -6px;
}

.hamburger__line:after {
  top: 6px;
}

.header__nav-area {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 100;
  height: 100vh;
  width: 250px;
  visibility: hidden;
  padding-top: 30px;
  background-color: color-mix(in srgb, var(--accent-color) 90%, transparent);
  transition: 0.3s;
}

.header__nav-area.-active {
  right: 0;
  visibility: visible;
}

.global-navigation {
  padding: 40px 25px 120px 25px;
}

.global-navigation__list>li {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent2-color);
}

.global-navigation__list>li+li {
  margin-top: 10px;
}

.global-navigation__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent2-color);
  font-weight: 900;
  font-size: 0.9rem;
}

.global-navigation-list li  {
  padding: 1em 0;
}

.global-navigation-list li a {
  color: var(--accent2-color);
    display: block;
    font-weight: 900;
    font-size: 0.9rem;
}


/* ボトムメニュー */
.bottom-menu {
  background: color-mix(in srgb, var(--accent-color) 90%, transparent);
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  border-radius: 35px 35px 0 0 ;
}

.bottom-menu ul {
  display: flex;
  justify-content: space-evenly; /* 均等配置に変更 */
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottom-menu li, .bottom-menu a {
  flex: 1; /* 各要素が均等に広がる */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px; /* 高さを固定 */
  font-size: 1.7rem;
  color: var(--accent2-color);
}

.bottom-menu a {
  text-decoration: none;
}

.bottom-menu li {
  width: 100%; /* リンク内の要素も幅いっぱいに */
}


/* ボトムメニュー ミニ */
.bottom-menu-mini {
  position: fixed;
  bottom: 10px;
  right: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row; /* 横向きに配置 */ 
  gap: 5px;
}

.bottom-menu-mini li {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.menu-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color) 90%, transparent);
  color: var(--accent2-color);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.1s, transform 0.2s;
}

.menu-button:hover {
  background-color: color-mix(in srgb, var(--accent-color) 90%, transparent);
}

.menu-button:active {
  background-color: color-mix(in srgb, var(--accent-color) 90%, transparent);
  transform: scale(1.1);
}

.menu-button:focus-visible {
  outline: 2px solid #ffffffcc;
  outline-offset: 2px;
}


/* 目次 */

.toc {
  padding: 16px;
  margin: 16px;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 5px 0;
  border-left: solid 6px var(--main-color);/*左側の線*/
  background: var(--accent2-color);/*背景色*/
  margin-bottom: 3px;/*下のバーとの余白*/
  line-height: 1.5;
  padding: 0.5em;
}

.toc a {
  display: block;
  font-size: 1.2rem;
  text-decoration: none;
}


/* ヒーロー */

.hero {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* セクション */

section {
  padding: 18px;
}

/* 小説用のスタイル */
.novel {
  background: var(--accent3-color);
  font-size: 14px;
  margin: 10px;
  padding: 10px;
}

.novel p {
  font-family: "Noto Sans JP", serif;
  line-height: 1.7;
  font-weight: 400;
}


.novel-cards {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.novel-card {
  flex: 1;
  padding: 10px;
  margin: 0 10px;
  border-radius: 5px;
  text-align: center;
  background-color: var(--accent-color);
  color: var(--accent2-color);
  font-size: 0.8em;
}

.novel-card  a{
  color: var(--accent2-color);
}


.random-novel {
  margin-top: 20px;
  text-align: center;
}

.random-novel button {
  background-color: var(--accent-color);
  color: var(--accent2-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}




.random-lucky-character {
  text-align: center;
  margin: 20px auto;
  padding: 24px;
  background-color: var(--accent2-color);
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  max-width: 300px;
}

.random-lucky-character #lucky-character a {
font-size: 1.5em;
}

.random-lucky-character #lucky-character img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}



/* カード全体のレイアウト */
#cardContainer {
  display: flex;
  flex-wrap: wrap;
  /* カードを折り返し可能に */
  gap: 10px;
  /* カード間の間隔を調整 */
  border-radius: 5px;
  margin: 0 auto;
}


/* カードのスタイル */
.card {
  background-color: var(--accent3-color);
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 5px);
  font-size: 0.7em;
}

/* 画像のスタイル */
.card img {
  width: 100%;
  /* カード幅に合わせる */
  height: auto;
  /* 固定の高さを指定 */
  object-fit: cover;
  /* 画像をカード全体にカバー */
  display: block;
  /* 余白を削除 */
}

.card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color:var(--main-color);
}

.card-mini {
  font-weight: 700;
  color:#777;
}



.group-heading {
  width: 100%;
  /* 見出しを横幅いっぱいに */
  text-align: center;
  /* 左寄せにしたい場合 */
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-color);
  padding-left: 10px;
  /* 必要ならインデントを追加 */
}


.creation-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px;
  justify-content: center;
}

.creation-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  transition: transform 0.2s ease;
}

.creation-card:hover {
  transform: translateY(-3px);
}

.creation-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.creation-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.creation-card:hover .creation-card-image {
  transform: scale(1.03);
}

.creation-card-title {
  position: absolute;
  bottom: 5%;
  left: 5%;
  color: var(--accent2-color);
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* 小説 */
.novel-container {
  line-height: 1.6;
}

.novel-list {
  list-style-type: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px 0;
}

.novel-h2 {
  font-family: "Zen Maru Gothic";
  color: var(--text-color);
  font-weight: 700;
  font-style: bold;
  font-size: 1.5em;
}

/* カード全体をリンク可能にする */
.novel-link {
  display: block;
  border-radius: 5px;
  text-decoration: none;
}

.tags {
  display: flex;
  flex-wrap: wrap; /* タグが折り返せるように設定 */
  gap: 5px; /* タグ間の余白を追加 */
  margin-top: 0.5em;
}

.tags .tag {
  display: inline-block;
  font-size: 0.9em;
  padding: 0 3px;
  font-weight: bold;
  color: var(--accent-color);
  cursor: pointer;
  position: relative; /* アイコン用の位置指定に必要 */
}

.tags .tag::before {
  font-family: "FontAwesome";
  content: "\23"; /* FontAwesomeの星アイコン */
  font-size: 0.9em;
  color: var(--accent-color);
}

.novel-item {
  margin: 0;
  padding: 10px;
  background-color: var(--accent3-color);
  margin: 5px 0;
}

.novel-item a {
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.3em;
}


/* 見出しの非表示時スタイル */
h2[style*="display: none"] {
  margin: 0;
  padding: 0;
  border: none;
}

/* リストアイテムの非表示時スタイル */
.novel-item[style*="display: none"] {
  display: none !important;
}



/* タブレット以上: 横4列 */
@media (min-width: 768px) {

  .hamburger {
    height: 60px;
    width: 60px;
  }
  

  section h2 {
    font-size: 2em;
  }

  section h3 {
    font-size: 2em;
  }

  .creation-card-container {
      grid-template-columns: repeat(4, 1fr); /* 横4列 */
      gap: 20px;
  }



/* 内容部分のスタイル */
.update-short-description {
    font-size: 1.1em;
}

.update-long-description { 
    font-size: 1em;
}

  .card {
    flex: 1 1 calc(19% - 10px);
    /* タブレット以上では5列 */
    max-width: calc(20% - 5px);
  }

  .tags .tag {
    padding: 3px 6px;
    font-size: 1em;
  }

  .novel {
    padding: 24px;
    margin:10px 60px;
  }

  .novel p {
    line-height: 1.8;
    font-size: 17px;
  }
  
  .novel-card {
    margin: 0 60px;
    font-size: 1.1em;
  }
  

}