/* ==========================================
   艶典 — Design System
   株式会社ヒューマニティドットジャパン
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
  --gold:        #c8a84b;
  --gold-dim:    rgba(200,168,75,0.35);
  --gold-faint:  rgba(200,168,75,0.10);
  --bg-base:     #0a0a0f;
  --bg-surface:  #0e0e16;
  --bg-raised:   #13131e;
  --text-primary:   #e8e0d0;
  --text-secondary: rgba(232,224,208,0.55);
  --text-muted:     rgba(232,224,208,0.30);
  --border:      rgba(200,168,75,0.18);
  --border-hover:rgba(200,168,75,0.45);
  --danger:      #c84040;
  --danger-dim:  rgba(200,64,64,0.20);
  --radius:      2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Shippori Mincho', serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.8;
}

/* ---- Grid bg texture ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  transparent, transparent 60px, rgba(180,140,60,.025) 60px, rgba(180,140,60,.025) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(180,140,60,.025) 60px, rgba(180,140,60,.025) 61px);
  pointer-events: none; z-index: 0;
}

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: 'Zen Antique', serif; letter-spacing: .15em; font-weight: 400; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout shell ---- */
.site-wrap { position: relative; z-index: 1; }
.container  { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; max-width: 1100px;
  margin: 0 auto; padding: 0 1.5rem;
}

.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-main { font-family: 'Zen Antique',serif; font-size: 22px; color: var(--gold); letter-spacing: .2em; }
.logo-sub   { font-size: 10px; color: var(--text-muted); letter-spacing: .3em; text-transform: uppercase; }

.site-nav { display: flex; gap: 1.8rem; list-style: none; }
.site-nav a { font-size: 13px; color: var(--text-secondary); letter-spacing: .1em; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--gold); text-decoration: none; }

.age-gate {
  background: var(--danger-dim);
  border: 1px solid rgba(200,64,64,.35);
  color: #ff9999;
  font-size: 11px; padding: 4px 10px;
  border-radius: var(--radius); letter-spacing: .1em;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-main { font-size: 20px; }
.footer-brand p { font-size: 12px; color: var(--text-muted); margin-top: .6rem; line-height: 1.7; }
.footer-brand .company { margin-top: .4rem; font-size: 11px; color: var(--text-muted); letter-spacing: .05em; }

.footer-col h4 { font-size: 13px; color: var(--gold); letter-spacing: .2em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: 13px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p { font-size: 11px; color: var(--text-muted); letter-spacing: .08em; }

/* =========================================
   AFFILIATE BANNER ZONES
   ========================================= */
/* 横並び728×90 or レスポンシブ */
.banner-zone {
  width: 100%;
  background: var(--bg-raised);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 12px; letter-spacing: .15em;
  position: relative; overflow: hidden;
}
.banner-zone::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(200,168,75,.03) 6px, rgba(200,168,75,.03) 7px);
}
.banner-zone span { position: relative; z-index: 1; }

.banner-zone--leaderboard { height: 90px; margin: 1.5rem 0; }    /* 728×90 */
.banner-zone--rectangle   { height: 250px; min-width: 300px; }    /* 300×250 */
.banner-zone--sidebar     { height: 600px; }                      /* 160×600 */

/* 2カラム: コンテンツ＋サイドバー */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar-sticky { position: sticky; top: 80px; }
.sidebar-widgets { display: flex; flex-direction: column; gap: 1.5rem; }

/* =========================================
   SECTION HEADINGS
   ========================================= */
.sec-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.8rem;
}
.sec-head h2 { font-size: 18px; color: var(--gold); letter-spacing: .2em; }
.sec-line { flex: 1; height: 1px; background: var(--border); }

/* =========================================
   GENRE GRID
   ========================================= */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.genre-card {
  background: var(--bg-surface);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: block;
}
.genre-card:hover { background: var(--gold-faint); text-decoration: none; }
.genre-card .icon  { font-size: 20px; display: block; margin-bottom: 8px; }
.genre-card .name  { font-size: 13px; color: var(--text-primary); letter-spacing: .08em; display: block; margin-bottom: 3px; }
.genre-card .count { font-size: 11px; color: var(--gold); opacity: .6; }

/* =========================================
   KEYWORD TAGS
   ========================================= */
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-tag {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Shippori Mincho', serif;
  font-size: 12px; padding: 5px 12px;
  border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
  letter-spacing: .05em;
  text-decoration: none; display: inline-block;
}
.kw-tag:hover { background: var(--gold-faint); color: var(--gold); border-color: var(--border-hover); text-decoration: none; }

/* =========================================
   ARTICLE LIST
   ========================================= */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.article-item {
  background: var(--bg-surface);
  padding: 1.2rem;
  display: flex; gap: 12px;
  cursor: pointer; transition: background .2s;
  text-decoration: none;
}
.article-item:hover { background: var(--gold-faint); text-decoration: none; }
.article-num { font-family: 'Zen Antique', serif; font-size: 22px; color: var(--gold-dim); min-width: 28px; line-height: 1; }
.article-title { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; letter-spacing: .04em; }
.article-meta  { font-size: 11px; color: var(--gold); opacity: .55; letter-spacing: .1em; }

/* =========================================
   COMMENT SECTION
   ========================================= */
.comments-wrap { margin-top: 3rem; }
.comment-form { background: var(--bg-raised); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 2rem; border-radius: var(--radius); }
.comment-form h3 { font-size: 15px; color: var(--gold); letter-spacing: .15em; margin-bottom: 1.2rem; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 12px; color: var(--text-secondary); letter-spacing: .1em; margin-bottom: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Shippori Mincho', serif;
  font-size: 14px; padding: 10px 14px;
  border-radius: var(--radius); outline: none;
  transition: border-color .2s;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--border-hover); }
.form-row textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; letter-spacing: .05em; }

.btn-submit {
  background: var(--gold-faint);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; padding: 10px 28px;
  border-radius: var(--radius); cursor: pointer;
  letter-spacing: .15em; transition: all .2s;
}
.btn-submit:hover { background: rgba(200,168,75,.2); border-color: var(--border-hover); }

.comment-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.comment-item { background: var(--bg-surface); padding: 1.2rem 1.5rem; }
.comment-meta { display: flex; gap: 1rem; margin-bottom: .5rem; }
.comment-name { font-size: 13px; color: var(--gold); opacity: .8; }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-body { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* =========================================
   STATIC PAGES (会社概要・PP)
   ========================================= */
.static-page { max-width: 780px; margin: 0 auto; padding: 4rem 1.5rem; }
.static-page h1 { font-size: 26px; color: var(--gold); letter-spacing: .2em; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.static-page h2 { font-size: 17px; color: var(--gold); letter-spacing: .15em; margin: 2.5rem 0 1rem; }
.static-page p  { font-size: 14px; color: var(--text-secondary); margin-bottom: 1rem; }
.static-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.static-page li { font-size: 14px; color: var(--text-secondary); margin-bottom: .4rem; }

.company-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.company-table th,
.company-table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 13px; text-align: left; }
.company-table th { background: var(--bg-raised); color: var(--gold); opacity: .8; width: 30%; letter-spacing: .08em; font-weight: 400; }
.company-table td { color: var(--text-secondary); }

/* =========================================
   HERO
   ========================================= */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero-eyebrow { font-size: 11px; letter-spacing: .6em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(42px,7vw,72px); color: var(--text-primary); letter-spacing: .25em; }
.hero-title em { color: var(--gold); font-style: normal; }
.hero-subtitle { font-size: 13px; color: var(--text-muted); letter-spacing: .3em; margin: .6rem 0 2rem; }
.hero-divider { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto 2.5rem; }

/* Search */
.search-wrap { max-width: 540px; margin: 0 auto 1rem; position: relative; }
.search-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--gold-dim);
  color: var(--text-primary);
  font-family: 'Shippori Mincho', serif;
  font-size: 15px; padding: 14px 52px 14px 20px;
  border-radius: var(--radius); outline: none;
  transition: border-color .2s;
  letter-spacing: .05em;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--border-hover); }
.search-btn {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52px;
  background: rgba(200,168,75,.12);
  border: none; border-left: 1px solid var(--gold-dim);
  color: var(--gold); font-size: 16px; cursor: pointer;
  transition: background .2s;
}
.search-btn:hover { background: rgba(200,168,75,.22); }
.search-hint { font-size: 12px; color: var(--text-muted); letter-spacing: .15em; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .banner-zone--sidebar { display: none; }
}

/* =========================================
   BANNER RESPONSIVE
   PC: leaderboard表示 / mobile: 非表示
   SP: mobile banner表示 / PC: 非表示
   ========================================= */

/* PC用バナー（デフォルト表示） */
.banner-pc   { display: block; }
.banner-sp   { display: none; }

/* スマホ（768px以下）でPC用を隠してSP用を表示 */
@media (max-width: 768px) {
  .banner-pc  { display: none !important; }
  .banner-sp  { display: block; }

  /* SP用バナーラッパー */
  .banner-zone--mobile {
    width: 100%;
    max-width: 320px;
    margin: 0.8rem auto;
    height: auto;
    min-height: 50px;
    overflow: hidden;
  }

  /* サイドバーもSPでは折りたたむ */
  .sidebar-sticky {
    position: static;
  }
}
