/*
Theme Name: Shirouto Video
Theme URI: https://shirouto-video.com
Author: Shirouto Video
Description: 素人AV情報サイト「シロウトビデオ」専用テーマ。審査用ミニサイト兼本番の骨格。
Version: 0.1.0
Requires PHP: 7.4
License: Proprietary
Text Domain: shirouto-video
*/

:root {
  --bg: #101014;
  --bg-card: #1a1a21;
  --text: #e8e8ee;
  --text-sub: #9a9aa8;
  --accent: #ff4d6d;
  --accent-dark: #d63c58;
  --border: #2a2a33;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}
.site-header .inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.site-logo {
  font-size: 20px; font-weight: 700; color: var(--text);
}
.site-logo span { color: var(--accent); }
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 16px; font-size: 13px; }
.site-nav a { color: var(--text-sub); }

.site-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

.hero {
  padding: 28px 0 8px;
}
.hero h1 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.hero p { color: var(--text-sub); font-size: 14px; }

.section-title {
  font-size: 18px; margin: 32px 0 16px;
  padding-left: 10px; border-left: 4px solid var(--accent);
}

.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  color: var(--text);
}
.post-card:hover { text-decoration: none; border-color: var(--accent); }
.post-card h2 { font-size: 16px; margin-bottom: 6px; }
.post-card .excerpt { font-size: 13px; color: var(--text-sub); }
.post-card .date { font-size: 12px; color: var(--text-sub); margin-top: 8px; display: block; }

.article h1 { font-size: 22px; line-height: 1.5; margin-bottom: 8px; }
.article .meta { font-size: 12px; color: var(--text-sub); margin-bottom: 24px; }
.article .content h2 {
  font-size: 18px; margin: 32px 0 14px;
  padding-left: 10px; border-left: 4px solid var(--accent);
}
.article .content h3 { font-size: 16px; margin: 24px 0 10px; }
.article .content p { margin-bottom: 16px; }
.article .content ul, .article .content ol { margin: 0 0 16px 24px; }
.article .content li { margin-bottom: 6px; }

/* ============ 作品まわり ============ */

.breadcrumb {
  font-size: 12px;
  color: var(--text-sub);
  padding: 4px 0 14px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--text-sub); }
.breadcrumb a:hover { color: var(--accent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .section-title { flex: 1; }
.section-more { font-size: 13px; white-space: nowrap; }

.work-title { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }

.work-meta-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text);
}
a.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip small { color: var(--text-sub); font-size: 11px; }
.chip-series { border-color: var(--accent); color: var(--accent); }
.chip-score { color: #ffcf6b; border-color: #4a3d1d; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.term-cloud { margin: 28px 0; }

/* 見どころスライダー */
.hl { margin: 0 0 22px; }
.hl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hl-head h2 {
  font-size: 16px; padding-left: 10px; border-left: 4px solid var(--accent);
}
.hl-counter { font-size: 12px; color: var(--text-sub); }
.hl-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 10px;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.hl-dot {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
}
.hl-dot.is-on { background: var(--accent); }

/* サンプル動画 */
.movie-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.movie-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA */
.cta { margin: 22px 0; }
.cta-btn {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 16px;
  border-radius: 10px;
}
.cta-btn:hover { background: var(--accent-dark); text-decoration: none; }
.cta-note { text-align: center; font-size: 11px; color: var(--text-sub); margin-top: 8px; }

/* ポイント・紹介文 */
.work-points ul { margin: 0 0 0 20px; }
.work-points li { margin-bottom: 8px; font-size: 15px; }
.work-review p { margin-bottom: 16px; }

/* 作品情報テーブル */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  border-bottom: 1px solid var(--border);
  padding: 11px 8px;
  text-align: left;
  vertical-align: top;
}
.info-table th { width: 30%; 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(3, 1fr); gap: 8px; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }

/* 作品カード一覧 */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.work-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
}
.work-card:hover { border-color: var(--accent); text-decoration: none; }
.work-card-thumb { aspect-ratio: 3 / 4; background: #000; }
.work-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; }
.work-card-series { font-size: 11px; color: var(--accent); }
.work-card h3 { font-size: 13px; line-height: 1.5; font-weight: 600; }
.work-card-score { font-size: 12px; color: #ffcf6b; }

/* ハブページ見出し */
.hub-head { padding: 4px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.hub-label {
  display: inline-block; font-size: 11px; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 4px; padding: 1px 8px; margin-bottom: 8px;
}
.hub-head h1 { font-size: 22px; line-height: 1.4; }
.hub-count { font-size: 13px; color: var(--text-sub); margin-top: 6px; }
.hub-desc { margin-top: 14px; font-size: 14px; }

/* ページネーション */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.page-numbers {
  display: inline-block; min-width: 36px; text-align: center;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; color: var(--text);
}
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-numbers:hover { border-color: var(--accent); text-decoration: none; }

@media (min-width: 600px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-card h3 { font-size: 14px; }
  .hl-slide { flex-basis: 70%; }
}

/* お問い合わせフォーム */
.sv-notice {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  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: 8px; }
.sv-field { margin-bottom: 18px; }
.sv-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sv-field label .req {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 2px;
}
.sv-field input,
.sv-field select,
.sv-field textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px; /* iOSでのズーム防止 */
  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: 12px; color: var(--text-sub); margin-bottom: 18px; }
.sv-submit {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.sv-submit:hover { background: var(--accent-dark); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}
.site-footer .r18 {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 10px;
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer nav { margin-bottom: 10px; }
.site-footer nav a { color: var(--text-sub); margin: 0 8px; }

/* 年齢確認オーバーレイ（JSで表示制御。SSRのHTML自体は隠さない） */
#age-gate {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 10, 14, 0.97);
  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: 12px;
  max-width: 400px;
  padding: 32px 24px;
  text-align: center;
}
#age-gate .box .r18mark {
  font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 12px;
}
#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: 10px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border);
}
#age-gate .yes { background: var(--accent); border-color: var(--accent); color: #fff; }
#age-gate .yes:hover { background: var(--accent-dark); }
#age-gate .no { background: transparent; color: var(--text-sub); }
