body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
  background: #f7f4ef;
  color: #2b2522;
}

.site-header {
  padding: 48px 24px 24px;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 12px;
  font-size: 32px;
}

.site-header p {
  margin: 0;
  color: #6f625c;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* タグ */
.tag-area {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.tag-button {
  border: 1px solid #c8b8ad;
  background: #fffaf5;
  color: #3a302b;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.tag-button.active {
  background: #2b2522;
  color: #fff;
}

/* 夢絵注意書き */
.dream-notice {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 16px 20px;
  background: #fff8f8;
  border: 1px solid #e8d3d3;
  border-radius: 12px;
  color: #5a4b4b;
  line-height: 1.8;
  font-size: 14px;
}

/* ギャラリー */
.month-section {
  margin-bottom: 48px;
}

.month-title {
  font-size: 22px;
  margin: 0 0 16px;
  border-bottom: 1px solid #d8cbc2;
  padding-bottom: 8px;
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.art-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.art-card img {
  width: 100%;
  display: block;
}

.art-info {
  padding: 12px;
}

.art-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.art-date,
.art-page-count {
  font-size: 13px;
  color: #7a6d66;
}

.art-page-count {
  margin-top: 4px;
}

.art-comment {
  line-height: 1.6;
}

.art-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.art-tags span {
  font-size: 12px;
  background: #f0e7df;
  border-radius: 999px;
  padding: 4px 8px;
}

.manga-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(43, 37, 34, 0.85);
  color: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 14px;
  z-index: 2;
}
/* ゲーム作品カード */
.game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;

  padding: 6px 10px;

  color: #fff;
  background: rgba(43, 37, 34, 0.88);

  border-radius: 999px;

  font-size: 13px;
  font-weight: bold;

  pointer-events: none;
}

.game-card-label {
  margin-top: 7px;

  color: #7a6d66;

  font-size: 12px;
  line-height: 1.5;
}

.game-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

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

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.13);
}

/* モーダル共通 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  padding: 16px 24px 48px;
  z-index: 1000;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: min(960px, 100%);
  background: #fffaf5;
  border-radius: 18px;
  padding: 12px 16px 20px;
}

.modal-content img {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: transparent;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: #2b2522;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 24px;
  cursor: pointer;
}

.modal-info {
  padding: 14px 4px 0;
}

.modal-info h2 {
  margin: 0 0 6px;
}

#modalDate {
  color: #7a6d66;
  margin: 0 0 10px;
}

#modalComment {
  line-height: 1.7;
}

/* 漫画モーダル */
.manga-modal-content {
  width: min(1700px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 8px 12px 12px;
  background: #f7f4ef;
}

.manga-viewer {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.manga-pages {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  column-gap: 0;
  row-gap: 56px;
  align-items: start;
  margin-top: 0;
  direction: ltr;
}

.manga-pages img {
  width: min(43vw, 650px);
  max-height: none;
  object-fit: initial;
  display: block;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.manga-nav {
  border: none;
  background: #2b2522;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
}

.manga-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.manga-page-info {
  text-align: center;
  margin-top: 6px;
  color: #7a6d66;
  font-size: 14px;
}

.manga-info {
  margin-top: 20px;
  border-top: 1px solid #d8cbc2;
  padding-top: 16px;
}

/* スマホ */
@media (max-width: 700px) {
  main {
    padding: 16px;
  }

  .art-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .art-info {
    padding: 8px;
  }

  .art-title {
    font-size: 13px;
  }

  .art-date,
  .art-page-count {
    font-size: 11px;
  }

  .art-tags span {
    font-size: 10px;
    padding: 3px 6px;
  }

  .art-comment {
    font-size: 11px;
  }

  .manga-modal-content {
    width: calc(100vw - 12px);
    padding: 8px;
  }

  .manga-viewer {
    display: block;
  }

  .manga-nav,
  .manga-page-info {
    display: none;
  }

  .manga-pages {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 60px;
    direction: ltr;
  }

  .manga-pages img {
    width: 100%;
    max-width: 100%;
  }
}
.tag-groups {
  margin-bottom: 40px;
}

.genre-tag-area {
  margin-bottom: 14px;
}

.work-tag-area {
  margin-bottom: 0;
}

.work-tag-area .tag-button {
  background: #f0e7df;
}

.work-tag-area .tag-button.active {
  background: #2b2522;
  color: #fff;
}
.art-modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d8cbc2;
}

.art-modal-nav-button {
  border: none;
  background: #2b2522;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}

.art-modal-nav-button:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 700px) {
  .art-modal-nav {
    flex-direction: column;
  }

  .art-modal-nav-button {
    width: 100%;
    border-radius: 12px;
  }
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: none;
  background: #2b2522;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
  }
}
.manga-loading {
  text-align: center;
  padding: 80px 16px;
  color: #7a6d66;
  font-size: 14px;
}

.manga-pages.loading {
  display: none;
}
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.modal {
    overscroll-behavior: contain;
}

.modal-content {
    overscroll-behavior: contain;
}
@media (max-width: 700px) {
  .modal-close {
    position: fixed;
    top: 8px;
    right: 12px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    z-index: 2000;
  }
}
/* 通常 */
body {
    cursor: url("cursor/cursor_default.cur"), auto;
}

/* リンク・ボタン・クリックできるもの */
a,
button,
.tag-button,
.art-card,
.back-to-top,
.modal-close,
.art-modal-nav-button,
.manga-nav {
    cursor: url("cursor/cursor_pointer.cur"), pointer;
}

/* テキスト選択 */
p,
h1,
h2,
.art-title,
.art-date,
.art-comment,
.month-title,
.site-header {
    cursor: url("cursor/cursor_text.cur"), text;
}

/* 押せないボタン */
button:disabled,
.art-modal-nav-button:disabled,
.manga-nav:disabled {
    cursor: url("cursor/cursor_disabled.cur"), not-allowed;
}

/* 読み込み中 */
body.loading,
.manga-loading {
    cursor: url("cursor/cursor_loading.cur"), progress;
}
.site-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.site-nav a {
  text-decoration: none;
  border: 1px solid #c8b8ad;
  background: #fffaf5;
  color: #3a302b;
  border-radius: 999px;
  padding: 8px 18px;
}

.site-nav a:hover {
  background: #2b2522;
  color: #fff;
}

.download-section {
  max-width: 900px;
  margin: 0 auto 48px;
}

.download-section h2 {
  font-size: 22px;
  border-bottom: 1px solid #d8cbc2;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.download-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  background: #fffaf5;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.download-preview img {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #fff;
}

.download-info h3 {
  margin-top: 0;
}

.download-info p {
  line-height: 1.7;
  color: #6f625c;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.download-button {
  text-decoration: none;
  background: #2b2522;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .download-card {
    grid-template-columns: 1fr;
  }

  .site-nav {
    margin-top: 18px;
  }

  .site-nav a,
  .download-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
.game-section {
  max-width: 1100px;
  margin: 0 auto 48px;
}

.game-frame-wrap {
  width: 100%;
  background: #2b2522;
  border-radius: 18px;
  padding: 12px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
  border-radius: 12px;
}

.game-info {
  margin-top: 20px;
  background: #fffaf5;
  border-radius: 18px;
  padding: 18px;
  line-height: 1.8;
}

.game-info h2 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .game-frame-wrap {
    padding: 6px;
    border-radius: 12px;
  }

  .game-frame {
    border-radius: 8px;
  }
}
.detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  padding: 24px;
  z-index: 1000;
  overflow-y: auto;
}

.detail-modal.show {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.detail-modal-content {
  position: relative;
  width: min(1000px, 100%);
  background: #fffaf5;
  border-radius: 18px;
  padding: 24px;
}

.detail-modal-content h2 {
  margin-top: 0;
}

.detail-modal-content p {
  line-height: 1.7;
  color: #6f625c;
}

.detail-modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;

    width: 100%;
    max-width: 1000px;

    margin: 24px auto 0;
}

.detail-image-card {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;

  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.detail-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.detail-image-card figcaption {
  margin-top: 8px;
  text-align: center;
  color: #7a6d66;
  font-size: 13px;
}
.detail-modal-images .detail-image-card.wide-card {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
}

.detail-modal-images .detail-image-card.wide-card img.wide-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
}
/* 配布詳細モーダルのスマホ調整 */
.detail-modal,
.detail-modal-content,
.detail-modal-images,
.detail-image-card,
.detail-image-card img {
  box-sizing: border-box;
}

.detail-modal {
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .detail-modal {
    padding: 8px;
  }

  .detail-modal-content {
    width: 100%;
    max-width: 100%;
    padding: 52px 12px 18px;
    overflow-x: hidden;
  }

  .detail-modal-images {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-image-card,
  .detail-modal-images .detail-image-card.wide-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
  }

  .detail-image-card img,
  .detail-modal-images .detail-image-card.wide-card img.wide-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .detail-modal-content h2,
  .detail-modal-content p {
    overflow-wrap: anywhere;
  }
}
.download-section .download-card + .download-card {
  margin-top: 24px;
}
.game-launch {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.game-fullscreen-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #2b2522;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .game-fullscreen-button {
    width: 100%;
    box-sizing: border-box;
  }
}
.game-fullscreen-note {
  margin: 10px 0 0;
  text-align: center;
  color: #7a6d66;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width:700px){

.game-launch{

    display:block;
    text-align:center;

}

.game-fullscreen-button{

    display:block;
    width:100%;
    box-sizing:border-box;
    margin-bottom:12px;

}

.game-fullscreen-note{

    margin:0 0 18px;
    font-size:13px;

}

}
.game-mobile-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.game-mobile-label {
  display: none;
}

.game-fullscreen-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #2b2522;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.game-fullscreen-note {
  margin: 0;
  color: #7a6d66;
  font-size: 13px;
  line-height: 1.6;
}

.game-embed-heading {
  display: none;
}

@media (max-width: 700px) {
  .game-mobile-lead {
    display: block;
    margin-bottom: 28px;
    padding: 22px 18px;
    background: #fffaf5;
    border: 1px solid #d8cbc2;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .game-mobile-label {
    display: block;
    margin: 0 0 12px;
    color: #6f625c;
    font-size: 14px;
    font-weight: bold;
  }

  .game-fullscreen-button {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    box-sizing: border-box;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
  }

  .game-fullscreen-note {
    margin-top: 12px;
    font-size: 12px;
  }

  .game-embed-heading {
    display: block;
    margin: 0 0 12px;
    text-align: center;
  }

  .game-embed-heading h2 {
    margin: 0 0 6px;
    font-size: 18px;
  }

  .game-embed-heading p {
    margin: 0;
    color: #7a6d66;
    font-size: 12px;
    line-height: 1.6;
  }

  .game-frame-wrap {
    margin-bottom: 20px;
  }
}
.terms-section {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 24px;
  background: #fffaf5;
  border: 1px solid #d8cbc2;
  border-radius: 18px;
  box-sizing: border-box;
}

.terms-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.terms-intro {
  margin: 0 0 20px;
  line-height: 1.8;
  color: #6f625c;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.terms-box,
.terms-note {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
}

.terms-box h3,
.terms-note h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.terms-box ul {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.8;
}

.terms-note {
  margin-top: 16px;
}

.terms-note p {
  margin: 0;
  line-height: 1.8;
  color: #5f534d;
}

.terms-small {
  margin: 18px 0 0;
  color: #7a6d66;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .terms-section {
    padding: 18px 14px;
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   則宗さんと話すだけ
   1280×720 実寸表示
======================================== */

.norimune-game-section {
  width: 1304px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.norimune-game-section .game-frame-wrap {
  width: 1304px;
  max-width: none;
  padding: 12px;
  box-sizing: border-box;
}

.norimune-game-section .game-frame {
  display: block;
  width: 1280px;
  height: 720px;
  aspect-ratio: auto;
  border: none;
}

/* このページではmainの共通幅制限を解除 */
body:has(.norimune-game-section) main {
  max-width: none;
  overflow-x: hidden;
}

/* 1280px実寸で置けない画面では埋め込みを隠す */
@media (max-width: 1351px) {
  .norimune-game-section {
    width: 100%;
  }

  .norimune-game-section .game-frame-wrap,
  .norimune-game-section .game-embed-heading {
    display: none;
  }

  .norimune-game-section .game-mobile-lead {
    display: block;
    max-width: 600px;
    margin: 0 auto 28px;
    padding: 22px 18px;
    background: #fffaf5;
    border: 1px solid #d8cbc2;
    border-radius: 18px;
    text-align: center;
    box-sizing: border-box;
  }

  .norimune-game-section .game-mobile-label {
    display: block;
    margin: 0 0 12px;
  }

  .norimune-game-section .game-fullscreen-note {
    margin-top: 12px;
  }
  @media (max-width: 700px) {
  .game-badge {
    top: 7px;
    right: 7px;

    padding: 4px 7px;

    font-size: 10px;
  }

  .game-card-label {
    font-size: 10px;
  }

  .game-card:hover {
    transform: none;
  }
}
}
.modal-game-area {
  margin-top: 20px;
  padding: 18px;
  background: #f0e7df;
  border-radius: 14px;
  text-align: center;
}

.modal-game-area[hidden] {
  display: none;
}

.modal-game-note {
  margin: 0 0 14px;
  color: #6f625c;
  font-size: 13px;
  line-height: 1.7;
}

/* ========================================
   ゲーム作品 詳細モーダル
   紹介画像 + キャラ紹介 + 更新履歴
======================================== */

.modal-game-area {
  margin-top: 24px;
}

.modal-game-area .game-fullscreen-button {
  margin: 0 auto;
}

.modal-game-character-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}

.modal-game-character-images:empty {
  display: none;
}

.modal-game-character-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.modal-content .modal-game-character-card img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: transparent;
}

.modal-game-history-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d8cbc2;
  text-align: left;
}

.modal-game-history-section[hidden] {
  display: none;
}

.modal-game-history-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.modal-game-history-scroll {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 12px 4px 4px;
  border: 1px solid #d8cbc2;
  border-radius: 12px;
  background: #fffaf5;
  scrollbar-gutter: stable;
}

.modal-game-history {
  margin: 0;
}

.modal-game-history-item {
  padding: 14px 10px;
  border-bottom: 1px solid #e7ddd6;
}

.modal-game-history-item:last-child {
  border-bottom: none;
}

.modal-game-history-item dt {
  margin-bottom: 6px;
  font-weight: bold;
  color: #3a302b;
}

.modal-game-history-item dd {
  margin: 4px 0 0;
  color: #6f625c;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .modal-game-area {
    padding: 14px;
  }

  .modal-game-character-images {
    gap: 16px;
    margin-top: 22px;
  }

  .modal-game-history-section {
    margin-top: 24px;
    padding-top: 20px;
  }

  .modal-game-history-scroll {
    max-height: 260px;
    padding-right: 8px;
  }
}


/* 一時的にサイト全体を非表示 */
html {
    background: white !important;
    background-image: none !important;
}

body {
    display: none !important;
}