@charset "utf-8";

 /* ===== リセット & ベース ===== */
    *, *::before, *::after {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
      background-color: #ffffff;
      color: #222;
      line-height: 1.6;
    }


  /* ===== リンク基本 ===== */
    a {
    color: #3f5c6d;          /* 落ち着いた青グレー */
    text-decoration: none;
}

  /* ホバー・フォーカス */
    a:hover,
    a:focus {
    color: #222;             /* 本文と同程度の濃さ */
}

/* 訪問済みリンク */
    a:visited {
    color: #4a5a6a;          /* 色を変えない（創作サイト向け） */
}



/* ===== レイアウト ===== */
    .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: left; /* 文字は左揃え */
    }



/* ===== ヘッダー（固定、背景画像） ===== */
.header {
  position: fixed; /* 画面上部に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background-image: url('image/header.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: flex;
  justify-content: center;       /* 横中央 */
  align-items: flex-end;         /* 下寄せ */
  padding-bottom: 2%;           /* ヘッダー下から少し上に */
}
.header-text {
  text-align: center;           /* 横中央 */
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.header-title {
  font-size: 2rem;
  margin: 0;
}
.header-subtitle {
  font-size: 1rem;
  margin: 4px 0 0; /* タイトルとサブタイトルの間隔 */
}




/* ===== ナビゲーション（スクロールと一緒に動く） ===== */
.global-nav {
  position: relative; /* fixedはやめる */
  margin-top: 40vh;
  width: 100%;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #eee;
  z-index: 2; /* ヘッダーより上に出す必要はなし */
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 0;
  margin: 0;
  list-style: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.nav-list a {
  padding: 4px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #222;
  transition: width 0.2s ease;
}

.nav-list a:hover::after {
  width: 100%;
}




/* ===== メインコンテンツ ===== */
.main-content {
  padding-top: 48px;
  padding-bottom: 6rem; /* ← ここで完結させる */
  background: #fff;
  position: relative;
  z-index: 1;
}

.site-title {
      font-size: 1.6rem;
      font-weight: normal;
      margin-bottom: 12px;
    }

.site-description {
      font-size: 0.95rem;
      color: #666;
    }

p {
    max-width: 100%;
    margin: 0 0 1.4em;
    font-size: 0.95rem;
    line-height: 1.9;
  }
  


/* ===== 更新履歴 ===== */
.update {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1rem;   /* 内側余白だけ調整 */
}

.update-list {
  list-style: none;
  margin: 0;
  padding: 1em;

  max-height: 35vh;   /* ← ここが肝 */
  overflow-y: auto;

  border: 1px solid #666;
  text-align: left;
}

.update-list li {
  padding: 0.75em 0;
  border-bottom: 1px dashed #444;
  line-height: 1.6;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-list time {
  display: block;      /* 上に日付、下に本文 */
  color: #aaa;
  margin-bottom: 0.25em;
}

.update-list li.year {
  text-align: center;
  font-weight: bold;
  color: #aaa;
  border-bottom: none;
  padding: 0.5em 0;
}

.update-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
}

.update-more {
  font-size: 0.9em;
}


/* 更新履歴のスクロールバー */
.update-list::-webkit-scrollbar {
  width: 6px;
}

.update-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
}

.update-list::-webkit-scrollbar-track {
  background-color: transparent;
}


 



 /* ===== h2 見出し ===== */
    h2 {
  font-size: 1.2rem;
  font-weight: normal;   /* ← これが本命 */
  line-height: 1.6;
  margin: 2.5rem 0 1.2rem;
}

    h2 span {
  position: relative;
  padding-bottom: 12px;
  display: inline-block;
}

h2 span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ddd;
}




/* ===== 区切り線 ===== */
.home-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.home-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}




/* ===== サイトマップ ===== */
.site-map {
  margin-top: 5rem;
  padding-top: 2rem;
}

.site-map h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.site-map-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-map-list li:last-child a {
  font-weight: 600;
}

.site-map-list li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.site-map-list a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.site-map-list a:hover {
  text-decoration: underline;
}

.site-map-list span {
  color: #777;
  margin-left: 0.4em;
  font-size: 0.9em;
}



/* ===== HOMEに戻る ===== */
.back-home {
  text-align: center;
  margin: 3rem 0 2rem;
}

.back-home a {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-home a:hover {
  background-color: #ddd;
}


/* ===== 固定フッター ===== */
  .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 48px;

  background-color: #ffffff;
  border-top: 1px solid #eee;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.75rem;
  color: #777;

  z-index: 10;
}

  .site-footer p {
  margin: 0;
  letter-spacing: 0.05em;
  text-align: center;
}




/* ===== 作品の状態 ===== */
.work-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

/* 完結 */
.status-finished {
  background: #f2f2f2;
  color: #555;
}

/* 連載中 */
.status-serial {
  background: #eef3f7;
  color: #355a74;
}

/* 休載中 */
.status-hiatus {
  background: #f7f1e8;
  color: #7a5a2e;
}

/* NEW!マーク */
.new-text {
  font-weight: bold;
  color: #e74c3c;
  font-size: 0.7em;  /* 小さめに調整 */
  margin-left: 0.3em;
  display: inline-block;
  animation: pulseText 1s infinite;
}

/* 拡大縮小アニメーション */
@keyframes pulseText {
  0%, 90% { transform: scale(1); color: #e74c3c; }
  50% { transform: scale(1.2); color: #ff5555; }
}






@media (hover: none) {
  .nav-list a::after {
    display: none;
  }
}


@media screen and (max-width: 768px) {

  /* 本文幅を解放 */
  p,
  .novel-text p {
    max-width: none;
  }

  /* 余白を縮める */
  .main-content,
  .novel-content {
    padding: 2rem 1rem 5rem;
  }

  /* navを詰める */
  .global-nav ul {
    gap: 1.2rem;
  }
}



@media (max-width: 600px) {
  .page-nav {
    font-size: 0.85rem;
    margin: 1rem 0 1.5rem;
  }
    .update-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25em;
  }
}




@media screen and (max-width: 480px) {

  /* navを縦にしない・中央維持 */
  .global-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  /* 見出しを少し小さく */
  h2 {
    font-size: 1.1rem;
  }

  /* 本文行間を詰めすぎない */
  .novel-text p {
    line-height: 1.9;
  }
  .site-footer {
    height: 44px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  body.gallery-page h1 {
    font-size: 1.8rem;
  }

  body.novel-page h1 {
    font-size: 1.6rem;
  }

  body.info-page h1 {
    font-size: 1.5rem;
  }

  h1::after {
    width: 40px;              /* 下線を短く調整 */
    height: 1.5px;
  }


   .header {
    height: 25vh;        /* 縦幅を狭くする */
    padding-bottom: 1%;  /* 下寄せの余白も少し減らす */
  }

  .header-title {
    font-size: 1.5rem;   /* タイトルも小さくしてバランス調整 */
  }

  .header-subtitle {
    font-size: 0.85rem;  /* サブタイトルも小さく */
  }

  /* ナビゲーションをさらにコンパクトに */
  .global-nav {
    margin-top: 25vh;    /* ヘッダーの高さに合わせて位置調整 */
  }

  .nav-list {
    gap: 0.8rem;         /* リンク間隔を狭める */
    padding: 8px 0;      /* 上下余白も減らす */
  }
}



