/*
Theme Name: Doujin Manga
Theme URI: https://doujin-manga.com
Author: Doujin Manga
Description: 同人漫画情報サイト「同人まんが」専用テーマ。モバイルファースト設計。
Version: 0.2.0
Requires PHP: 7.4
License: Proprietary
Text Domain: shirouto-video
*/

:root {
  --bg: #0d0d11;
  --bg-card: #16161d;
  --bg-elev: #1e1e27;
  --text: #eceef2;
  --text-sub: #8f8f9c;
  --accent: #ff3d6e;
  --accent-dark: #e02a58;
  --border: #262630;
  --nav-h: 58px;
  --header-h: 52px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

a { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: none; }
img, iframe, table, pre { max-width: 100%; }
button { font-family: inherit; touch-action: manipulation; }

/* ============ ヘッダー ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  height: var(--header-h);
  background: rgba(13, 13, 17, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.header-spacer { flex: 1; }
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 460px;
}
.header-search form { display: flex; align-items: center; }
.header-search input {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px; /* iOSズーム防止 */
  padding: 7px 14px;
  min-height: 36px;
}
.header-search input::placeholder { color: var(--text-sub); }
.header-search input:focus { outline: none; border-color: var(--accent); }

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

/* ============ 下部固定タブバー ============ */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(18, 18, 23, .96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-sub);
  font-size: 10px;
  line-height: 1;
  padding-top: 2px;
}
.tabbar a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.is-on { color: var(--accent); }
.tabbar a:active { background: rgba(255,255,255,.04); }

/* ============ 見出し ============ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}
.section-head:first-child { margin-top: 8px; }
.section-title {
  font-size: 16px;
  font-weight: 700;
  padding-left: 9px;
  border-left: 3px solid var(--accent);
  margin: 26px 0 12px;
}
.section-head .section-title { margin: 0; }
.section-more { font-size: 12px; color: var(--text-sub); white-space: nowrap; }

.hero { padding: 6px 0 4px; }
.hero h1 { font-size: 19px; line-height: 1.5; margin-bottom: 6px; }
.hero p { color: var(--text-sub); font-size: 13px; }

/* ============ 作品カード（2列グリッド） ============ */

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

.fcard {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  color: var(--text);
}
.fcard:active { border-color: var(--accent); }
.fcard-link { display: block; color: inherit; }

.fcard-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #000;
}
.fcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard-badge {
  position: absolute;
  right: 5px; bottom: 5px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 3px;
  letter-spacing: .02em;
}
.fcard-play {
  position: absolute;
  left: 5px; bottom: 5px;
  background: rgba(255,61,110,.92);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
}
.fcard-body { padding: 8px 9px 10px; }
.fcard-label {
  display: block;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcard h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-sub);
  min-height: 13px;
}
.fcard-cast { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard-score { color: #ffcf6b; white-space: nowrap; }

/* いいねボタン（サムネ右上に重ねる） */
.fcard-like {
  position: absolute;
  top: 4px; right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 5px 8px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.fcard-like svg {
  width: 14px; height: 14px;
  fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linejoin: round;
}
.fcard-like.is-on { background: rgba(255,61,110,.92); }
.fcard-like.is-on svg { fill: #fff; stroke: #fff; }
.fcard-like:active { transform: scale(.92); }
.fcard-like .n { font-variant-numeric: tabular-nums; }

.fav-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
  padding: 34px 10px;
  line-height: 2;
}

/* ============ レーベル・出演者カード ============ */

.labelgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.labelcard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  min-height: 56px;
  justify-content: center;
}
.labelcard:active { border-color: var(--accent); }
.labelcard-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.labelcard-count { font-size: 11px; color: var(--text-sub); }

/* ============ 並び替えタブ ============ */

.sorttabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px 14px;
  padding: 2px 14px 4px;
}
.sorttabs::-webkit-scrollbar { display: none; }
.sorttab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 17px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
}
.sorttab.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ 横スクロールの作品列 ============ */

.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 2px 14px 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail .fcard { flex: 0 0 190px; scroll-snap-align: start; }

/* ============ チップ（タグ・レーベル） ============ */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  color: var(--text);
  min-height: 32px;
}
a.chip:active { border-color: var(--accent); color: var(--accent); }
.chip small { color: var(--text-sub); font-size: 10px; }
.chip-series { border-color: var(--accent); color: var(--accent); }
.chip-score { color: #ffcf6b; border-color: #4a3d1d; }

.chips-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -14px;
  padding: 2px 14px 4px;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: 0 0 auto; }

/* ============ パンくず ============ */

.breadcrumb {
  font-size: 11px;
  color: var(--text-sub);
  padding: 2px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.breadcrumb a { color: var(--text-sub); }

/* ============ 作品ページ ============ */

.work-title { font-size: 17px; line-height: 1.55; font-weight: 700; margin-bottom: 9px; }
.work-meta-top { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.hl { margin: 0 -14px 18px; }
.hl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 9px;
}
.hl-head h2 { font-size: 15px; padding-left: 9px; border-left: 3px solid var(--accent); }
.hl-counter { font-size: 11px; color: var(--text-sub); }
.hl-tabs { display: flex; gap: 6px; }
.hl-tab {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12px;
  cursor: pointer;
  min-height: 32px;
}
.hl-tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.hl-pane.is-hidden { display: none; }
.hl-note { font-size: 11px; color: var(--text-sub); text-align: center; margin-top: 7px; }

.hl-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 14px;
  scroll-padding-left: 14px;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-slide {
  flex: 0 0 calc(100% - 28px);
  scroll-snap-align: center;
  margin: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hl-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hl-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; padding: 3px 0; }
.hl-dot {
  width: 7px; height: 7px; padding: 0;
  border-radius: 50%; border: none;
  background: var(--border);
  cursor: pointer;
}
.hl-dot.is-on { background: var(--accent); width: 18px; border-radius: 4px; }

.movie-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.movie-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA */
.cta { margin: 20px 0; }
.coupon-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 11px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff2f6;
  background: linear-gradient(135deg, rgba(255,61,110,.18), rgba(255,61,110,.06));
  border: 1px solid var(--accent);
  border-radius: 11px;
}
.coupon-banner strong { color: var(--accent); font-size: 15px; }
.coupon-wing { color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.coupon-text { display: inline-block; }
.cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  padding: 15px;
  border-radius: 11px;
  box-shadow: 0 3px 14px rgba(255, 61, 110, .28);
}
.cta-note { text-align: center; font-size: 11px; color: var(--text-sub); margin-top: 7px; }

.work-points ul { margin: 0 0 0 19px; }
.work-points li { margin-bottom: 7px; font-size: 14px; }
.work-review p { margin-bottom: 15px; font-size: 14px; }

.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table th, .info-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 6px;
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 28%; color: var(--text-sub); font-weight: 500; white-space: nowrap; }
.info-table .tag-cell { display: flex; flex-wrap: wrap; gap: 6px; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; display: block; }

/* 追従CTA（タブバーの上に重ねる） */
.sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 900;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(13,13,17,.98) 65%, rgba(13,13,17,0));
  transform: translateY(150%);
  transition: transform .25s ease;
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 13px; border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.sticky-cta-btn span { font-size: 11px; font-weight: 400; opacity: .85; }

/* ============ ハブ・一覧の見出し ============ */

.hub-head { padding: 2px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.hub-label {
  display: inline-block; font-size: 10px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 1px 7px; margin-bottom: 7px;
}
.hub-head h1 { font-size: 19px; line-height: 1.45; }
.hub-count { font-size: 12px; color: var(--text-sub); margin-top: 5px; }
.hub-desc { margin-top: 12px; font-size: 13px; }
.hub-intro { margin-top: 10px; font-size: 12px; color: var(--text-sub); line-height: 1.8; }
.hub-freelink { margin-top: 10px; font-size: 13px; }
.hub-freelink a { font-weight: 700; }

/* /free/ LP */
.steps {
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 10px 12px 10px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 9px;
}
.faq-item h3 { font-size: 13px; margin-bottom: 6px; color: var(--accent); }
.faq-item p { font-size: 13px; color: var(--text); margin: 0; }

/* 特集記事内の埋め込みカード */
.feed-embed { margin: 4px 0 6px; }
.article .content .feed-embed { grid-template-columns: 1fr; max-width: 460px; }

.term-cloud { margin: 22px 0; }

/* ============ 記事・固定ページ ============ */

.article h1 { font-size: 19px; line-height: 1.5; margin-bottom: 7px; }
.article .meta { font-size: 11px; color: var(--text-sub); margin-bottom: 20px; }
.article .content h2 { font-size: 16px; margin: 26px 0 12px; padding-left: 9px; border-left: 3px solid var(--accent); }
.article .content h3 { font-size: 15px; margin: 20px 0 9px; }
.article .content p { margin-bottom: 15px; }
.article .content ul, .article .content ol { margin: 0 0 15px 20px; }
.article .content li { margin-bottom: 5px; }
.article .content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.article .content th, .article .content td { border-bottom: 1px solid var(--border); padding: 9px 6px; text-align: left; }

.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 15px;
  margin-bottom: 11px;
  color: var(--text);
}
.post-card h2 { font-size: 15px; margin-bottom: 5px; line-height: 1.5; }
.post-card .excerpt { font-size: 12px; color: var(--text-sub); }
.post-card .date { font-size: 11px; color: var(--text-sub); margin-top: 7px; display: block; }

/* ============ もっと見る / ページネーション ============ */

.loadmore-wrap { margin-top: 20px; text-align: center; }
.loadmore {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; min-height: 46px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
}
.loadmore:active { border-color: var(--accent); }
.loadmore[disabled] { opacity: .5; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text);
}
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ 検索 ============ */

.searchbox { margin-bottom: 18px; }
.searchbox form { display: flex; gap: 8px; }
.searchbox input[type="search"] {
  flex: 1; min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
}
.searchbox input:focus { outline: none; border-color: var(--accent); }
.searchbox button {
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 0 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; min-height: 46px;
}

/* ============ お問い合わせフォーム ============ */

.sv-notice { border-radius: 9px; padding: 13px 15px; margin-bottom: 18px; font-size: 13px; line-height: 1.7; }
.sv-notice.ok    { background: #17301f; border: 1px solid #2f7a4a; color: #b9e8cb; }
.sv-notice.error { background: #331a20; border: 1px solid #8a3348; color: #f3bcc7; }

.sv-form { margin-top: 6px; }
.sv-field { margin-bottom: 16px; }
.sv-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sv-field label .req {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 3px;
  padding: 1px 6px; margin-left: 7px; vertical-align: 2px;
}
.sv-field input, .sv-field select, .sv-field textarea {
  width: 100%;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
}
.sv-field textarea { resize: vertical; }
.sv-field input:focus, .sv-field select:focus, .sv-field textarea:focus { outline: none; border-color: var(--accent); }
.sv-note { font-size: 11px; color: var(--text-sub); margin-bottom: 16px; }
.sv-submit {
  display: block; width: 100%;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 15px;
  font-size: 16px; font-weight: 700; cursor: pointer;
}

/* ============ 年齢確認 ============ */

#age-gate {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 8, 11, .98);
  align-items: center; justify-content: center;
  padding: 20px;
}
#age-gate.show { display: flex; }
#age-gate .box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 380px;
  padding: 30px 22px;
  text-align: center;
}
#age-gate .box .r18mark { font-size: 30px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
#age-gate .box p { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; }
#age-gate .buttons { display: flex; gap: 10px; justify-content: center; }
#age-gate button {
  font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border);
  min-height: 46px;
}
#age-gate .yes { background: var(--accent); border-color: var(--accent); color: #fff; }
#age-gate .no { background: transparent; color: var(--text-sub); }

/* ============ フッター ============ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 14px 28px;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
}
.site-footer .r18 {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 10px;
  font-weight: 700;
}
.site-footer nav { margin-bottom: 9px; }
.site-footer nav a { color: var(--text-sub); margin: 0 7px; display: inline-block; padding: 4px 0; }

/* ============ タブレット以上 ============ */

@media (min-width: 600px) {
  body { font-size: 15px; }
  .feed { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .labelgrid { grid-template-columns: repeat(3, 1fr); }
  .fcard h3 { font-size: 13px; }
  .rail .fcard { flex-basis: 230px; }
  .hl { margin-left: 0; margin-right: 0; }
  .hl-head { padding: 0; }
  .hl-track { padding: 0; }
  .hl-slide { flex-basis: 78%; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .sticky-cta { display: none; }
  .feed { grid-template-columns: repeat(4, 1fr); }
  .labelgrid { grid-template-columns: repeat(6, 1fr); }
  .fcard h3 { font-size: 13px; }
  .site-main { padding: 20px 20px 48px; }
  .work-title { font-size: 21px; }
  .hero h1 { font-size: 23px; }
  .hub-head h1 { font-size: 23px; }
  .article h1 { font-size: 23px; }
  .fcard:hover { border-color: var(--accent); }
  a.chip:hover { border-color: var(--accent); color: var(--accent); }
  .cta-btn:hover, .sv-submit:hover, .searchbox button:hover { filter: brightness(1.08); }
  .page-numbers:hover { border-color: var(--accent); }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}
