@charset "UTF-8";
/* ==========================================================
   style.css ― このページ専用のCSS
   ress.min.css（リセットCSS）の後に読み込む
   ========================================================== */

/* ----------------------------------------------------------
   1. 色・サイズの設定値
   ---------------------------------------------------------- */
:root {
  --base-color: #000;
  --link-color: #666;
  --muted-color: #767676;
  --back-color: #f7f7f7;
  --white-color: #fff;
  --rule-color: #e1e1e1;
}

/* ----------------------------------------------------------
   2. 全体の基本設定
   ---------------------------------------------------------- */
html {
  font-size: 62.5%;
  scroll-padding-top: 5rem;
}

body {
  color: var(--base-color);
  background: var(--white-color);
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'メイリオ', Meiryo, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   3. レイアウト（グリッド）
   ---------------------------------------------------------- */
.container {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.col {
  flex: 1 1 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .row { flex-direction: row; }
  .col { margin-left: 4%; }
  .col:first-child { margin-left: 0; }

  .span-4 { flex: 0 0 30.6667%; max-width: 30.6667%; }
  .span-6 { flex: 0 0 48%;      max-width: 48%; }
  .span-8 { flex: 0 0 65.3333%; max-width: 65.3333%; }
}

/* ----------------------------------------------------------
   4. 見出し
   ---------------------------------------------------------- */
h1, h2, h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: bold;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.35;
  letter-spacing: -0.08rem;
}
@media (min-width: 450px) {
  h1 { font-size: 2rem; }
}

h2 {
  font-size: 1.5rem;
  line-height: 1.6;
}

.minor-heading {
  font-size: 1em;
  line-height: inherit;
  letter-spacing: normal;
}

/* ----------------------------------------------------------
   5. 本文・リンク・リスト・罫線
   ---------------------------------------------------------- */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration-line: none;
}
a:hover {
  color: var(--muted-color);
  text-decoration: underline;
}

ul {
  margin: 0 0 1rem 1rem;
  padding-left: 0;
  list-style: circle inside;
}
ul ul {
  margin: 0.5rem 0 0.5rem 0.5rem;
  font-size: 90%;
}
li {
  margin-bottom: 0.75rem;
  padding-left: 1.25em;
  text-indent: -1.25em;
  word-break: break-all;
}

hr {
  margin: 1rem 0 1.5rem;
  border: 0;
  border-top: 1px solid var(--rule-color);
}

/* ----------------------------------------------------------
   6. このページ専用の部品
   ---------------------------------------------------------- */
section {
  margin: 2rem 0;
  padding: 1rem 0;
}

.profile {
  padding-top: 2rem;
}
.prf {
  display: block;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.sns-nav {
  margin-bottom: 4rem;
  text-align: center;
}
.sns-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
  list-style: none;
}
.sns-nav li {
  flex: 1 0 auto;
}
.sns-nav a {
  display: block;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}
.sns-nav a:hover {
  background-color: var(--back-color);
  text-decoration: none;
}

summary {
  margin-bottom: 0.75rem;
  font-size: 90%;
  font-style: italic;
  cursor: pointer;
}
summary:hover {
  background-color: var(--back-color);
}
details[open] > summary {
  color: var(--muted-color);
}

.circle {
  margin-inline-start: 1em;
}

.pagetop {
  position: fixed;
  right: 15px;
  bottom: 15px;
  display: block;
  width: 50px;
  padding: 10px 5px;
  background-color: var(--base-color);
  color: var(--white-color);
  text-align: center;
  text-decoration: none;
}
.pagetop:hover {
  background-color: var(--link-color);
  color: var(--white-color);
  text-decoration: none;
}
.js .pagetop {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.js .pagetop.is-visible {
  visibility: visible;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js .pagetop { transition: none; }
}

/* ----------------------------------------------------------
   7. 品書き
   ---------------------------------------------------------- */
.plain-list {
  margin: 0;
  list-style: none;
}
.plain-list > li {
  margin: 0;
  padding: 0;
  text-indent: 0;
  word-break: normal;
}

.catalog {
  margin-top: 2rem;
  column-gap: 2.4rem;
}
@media (min-width: 768px)  { .catalog { column-count: 2; } }
@media (min-width: 1024px) { .catalog { column-count: 3; } }

.catalog-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 3.6rem;
  overflow-wrap: anywhere;
}
.catalog-item[hidden] { display: none; }

.catalog-thumb {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: var(--back-color);
  border-radius: 10px;
}
.catalog-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================
   8. タグ・バッジのグレースケール階層濃淡打ち分け
   ========================================================== */

/* ベース共通スタイル */
.badge-group {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.6rem);
}

.badge,
.catalog-filter button {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.6;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* 1. R-18 絞り込みボタン */
.catalog-filter button[data-group="r18"] {
  background-color: #ffffff;
  color: #dc143c;
  border: 1px solid #dc143c;
}
.catalog-filter button[data-group="r18"][aria-pressed="true"] {
  background-color: #dc143c !important;
  color: #ffffff !important;
  border-color: #dc143c !important;
}

/* 2. 仕様（大区分：同人誌・イメージグッズ）― 濃いグレー（#444444） */
.badge-type-main,
.catalog-filter button[data-group="type-main"] {
  background-color: #444444;
  color: #ffffff;
  border: 1px solid #444444;
}

/* 3. 仕様（小区分：漫画・イラスト集・カレンダー）― やや濃いグレー（#666666） */
.badge-type,
.catalog-filter button[data-group="type"] {
  background-color: #666666;
  color: #ffffff;
  border: 1px solid #666666;
}

/* 4. ジャンルタグ（中間グレー：コントラスト比適合 #767676） */
.badge-genre,
.catalog-filter button[data-group="genre"] {
  background-color: #767676;
  color: #ffffff;
  border: 1px solid #767676;
}

/* 5. CPタグ（淡いグレー：#eeeeee） */
.badge-cp,
.catalog-filter button[data-group="cp"] {
  background-color: #eeeeee;
  color: #333333;
  border: 1px solid #dddddd;
}

/* 6. 通販先タグ（点線フレーム／極薄グレー） */
.catalog-filter button[data-group="shop"] {
  background-color: #f7f7f7;
  color: #444444;
  border: 1px dashed #cccccc;
}

/* 「すべて」ボタン */
.catalog-filter button[data-tag="すべて"] {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
}

/* 絞り込みボタンで選択中の状態（アクティブ時：真黒） */
.catalog-filter button[aria-pressed="true"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* 左上の赤バッジ（R18） */
.badge-r18 {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  bottom: auto;
  background: #dc143c;
  color: #ffffff;
}

/* 絞り込みボタンエリア */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}
.catalog-filter[hidden] { display: none; }
.catalog-filter .count {
  margin-left: 0.4em;
  font-weight: normal;
}

/* ----------------------------------------------------------
   9. 品書き詳細コンテンツ情報
   ---------------------------------------------------------- */
.catalog-title {
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: normal;
}
.catalog-spec {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}
.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}
.catalog-meta > li::before {
  content: "●";
  margin-right: 0.2em;
}

.catalog-desc {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.shop-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}
.shop-buttons a {
  display: block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--link-color);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
}
.shop-buttons a:hover {
  background: var(--link-color);
  color: var(--white-color);
  text-decoration: none;
}

/* ----------------------------------------------------------
   10. 汎用ユーティリティ
   ---------------------------------------------------------- */
.small   { font-size: 85%; }
.mb-lg   { margin-bottom: 3rem; }
.mb-sm   { margin-bottom: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
