/*
Theme Name: 戦国着せ替えクロニクル
Theme URI: https://senchro.jp
Author: 株式会社IKUSABA
Author URI: https://senchro.jp
Description: 戦国！着せ替えクロニクル公式テーマ - 和風・墨絵テイスト
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: senchro
*/

:root {
  --ink: #1a1208;
  --ink-mid: #2d2416;
  --ink-light: #4a3f2f;
  --parchment: #f5f0e8;
  --parchment-dark: #e8dfc8;
  --gold: #c8a84b;
  --gold-bright: #e8c86a;
  --red: #8b1a1a;
  --red-bright: #c0392b;
}

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

body {
  background-color: var(--ink);
  color: var(--parchment);
  font-family: 'Noto Serif JP', serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── ナビゲーション ── */
nav#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(26,18,8,0.95), transparent);
  transition: background 0.3s, border-bottom 0.3s;
}

nav#site-nav.scrolled {
  background: rgba(13,10,6,0.97);
  border-bottom: 1px solid rgba(200,168,75,0.15);
}

.nav-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
  transition: color 0.3s, opacity 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red) !important;
  color: var(--parchment) !important;
  padding: 8px 20px !important;
  border: 1px solid var(--red-bright) !important;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--red-bright) !important; }
.nav-cta::after { display: none !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(139,26,26,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 20% 50%, rgba(45,36,22,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 80% 40%, rgba(45,36,22,0.6) 0%, transparent 70%),
    linear-gradient(170deg, #0d0a06 0%, #1a1208 40%, #2d1e0e 100%);
}

.hero-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  opacity: 0.18;
}

.hero-mist {
  position: absolute;
  bottom: 30%;
  left: -10%; right: -10%;
  height: 200px;
  background: linear-gradient(to top,
    transparent,
    rgba(245,240,232,0.04) 30%,
    rgba(245,240,232,0.08) 50%,
    rgba(245,240,232,0.04) 70%,
    transparent
  );
  filter: blur(20px);
  animation: mistDrift 12s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  from { transform: translateX(-3%) scaleY(0.9); opacity: 0.7; }
  to   { transform: translateX(3%) scaleY(1.1); opacity: 1; }
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
    rgba(200,168,75,0.03) 0px, rgba(200,168,75,0.03) 1px,
    transparent 1px, transparent 120px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-kamon {
  width: 80px; height: 80px;
  margin: 0 auto 32px;
  opacity: 0.7;
  animation: kamonSpin 30s linear infinite;
}

@keyframes kamonSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.6em;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--parchment);
  text-shadow: 0 0 60px rgba(200,168,75,0.2);
  margin-bottom: 8px;
  animation: fadeUp 1.2s ease both;
}

.hero-title-sub {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 32px;
  animation: fadeUp 1.4s ease both;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.7);
  max-width: 480px;
  margin: 0 auto 48px;
  animation: fadeUp 1.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1.8s ease both;
}

/* ── ボタン ── */
.btn-primary {
  background: var(--red);
  color: var(--parchment);
  padding: 16px 40px;
  border: 1px solid var(--red-bright);
  font-family: 'Shippori Mincho', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,26,26,0.4); color: var(--parchment); }

.btn-secondary {
  background: transparent;
  color: var(--gold);
  padding: 16px 40px;
  border: 1px solid var(--gold);
  font-family: 'Shippori Mincho', serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(200,168,75,0.1); transform: translateY(-2px); color: var(--gold); }

/* ── セクション共通 ── */
.site-section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.6em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.4;
  max-width: 60px;
}
.section-label::after { background: linear-gradient(270deg, transparent, var(--gold)); }

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--parchment);
}

/* ── 特徴カード ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 60px;
}

.feature-card {
  background: rgba(45,36,22,0.4);
  border: 1px solid rgba(200,168,75,0.15);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.feature-card:hover { background: rgba(45,36,22,0.7); transform: translateY(-4px); }
.feature-card:hover::before { height: 100%; }

.feature-icon {
  width: 56px; height: 56px;
  background: rgba(200,168,75,0.1);
  border: 1px solid rgba(200,168,75,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(245,240,232,0.65);
  letter-spacing: 0.05em;
}

/* ── クラファン ── */
.crowdfund-box {
  background: linear-gradient(135deg, rgba(139,26,26,0.15), rgba(26,18,8,0.9));
  border: 1px solid rgba(139,26,26,0.4);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.crowdfund-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse, rgba(200,168,75,0.05) 0%, transparent 60%);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 48px;
  text-align: left;
}

.reward-item {
  background: rgba(200,168,75,0.07);
  border: 1px solid rgba(200,168,75,0.2);
  padding: 24px 20px;
}

.reward-num {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 8px;
}

.reward-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.reward-desc {
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(245,240,232,0.6);
}

/* ── お知らせ ── */
.news-list { margin-top: 48px; }

.news-item {
  display: grid;
  grid-template-columns: 120px 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(200,168,75,0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.news-item:hover { padding-left: 12px; }
.news-item:hover .news-title { color: var(--gold); }

.news-date {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.4);
}

.news-tag {
  display: inline-block;
  background: rgba(200,168,75,0.12);
  border: 1px solid rgba(200,168,75,0.3);
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  text-align: center;
}

.news-title { font-size: 0.9rem; letter-spacing: 0.05em; line-height: 1.6; transition: color 0.3s; }

/* ── フッター ── */
#site-footer {
  background: #0d0a06;
  border-top: 1px solid rgba(200,168,75,0.15);
  padding: 60px 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 32px;
  display: block;
  text-decoration: none;
}

.footer-nav { display: flex; justify-content: center; gap: 32px; list-style: none; margin-bottom: 32px; flex-wrap: wrap; }
.footer-nav a { color: rgba(245,240,232,0.5); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.2em; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }

.footer-copy { font-size: 0.68rem; color: rgba(245,240,232,0.25); letter-spacing: 0.2em; }

/* ── スクロールアニメーション ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ブログ一覧 ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.blog-card {
  background: rgba(45,36,22,0.4);
  border: 1px solid rgba(200,168,75,0.15);
  overflow: hidden;
  transition: all 0.4s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(200,168,75,0.4); }

.blog-card-thumb {
  width: 100%; height: 200px;
  background: rgba(45,36,22,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid rgba(200,168,75,0.1);
  overflow: hidden;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: 24px; }
.blog-card-date { font-size: 0.7rem; color: rgba(245,240,232,0.4); letter-spacing: 0.2em; margin-bottom: 8px; }
.blog-card-title { font-family: 'Shippori Mincho', serif; font-size: 1rem; font-weight: 700; line-height: 1.6; color: var(--parchment); }

/* ── モバイル対応 ── */
@media (max-width: 768px) {
  nav#site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .site-section { padding: 72px 24px; }
  .crowdfund-box { padding: 40px 24px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .hero-title { font-size: 2.8rem; }
}
