/*
Theme Name: Hypnosis Sister
Theme URI: https://hypnosis-world.example.com/
Author: 紗良 (Sara)
Author URI: https://hypnosis-world.example.com/
Description: ヒプノシスワールドの世界観を体現した、ダークファンタジー催眠ADV「ヒプノシス・シスター」公式テーマ。紗良とジョリアンが支配する淫靡な世界を、美しく、妖艶に表現します。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hypnosis-sister
Tags: dark, fantasy, game, anime, adult, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   ヒプノシスワールド カラーパレット
   ========================================== */
:root {
  /* メインカラー: 紗良の黒髪と闇 */
  --hs-primary: #1a0a1f;
  --hs-primary-light: #2d1a3d;
  --hs-primary-dark: #0d0510;
  
  /* アクセントカラー: 洗脳の紫 */
  --hs-accent: #8b4db8;
  --hs-accent-light: #a366cc;
  --hs-accent-dark: #6b3a8f;
  
  /* セカンダリカラー: 淫靡なピンク */
  --hs-secondary: #e91e63;
  --hs-secondary-light: #ff4081;
  --hs-secondary-dark: #c2185b;
  
  /* テキストカラー */
  --hs-text-primary: #f0e6f6;
  --hs-text-secondary: #c4b5d0;
  --hs-text-muted: #8e7a9e;
  
  /* 背景カラー */
  --hs-bg-primary: #0d0510;
  --hs-bg-secondary: #1a0a1f;
  --hs-bg-tertiary: #2d1a3d;
  
  /* ボーダー・シャドウ */
  --hs-border: #3d2a4d;
  --hs-shadow: rgba(139, 77, 184, 0.3);
  --hs-shadow-heavy: rgba(139, 77, 184, 0.6);
  
  /* 特殊効果 */
  --hs-glow: #8b4db8;
  --hs-hypnosis-gradient: linear-gradient(135deg, #8b4db8 0%, #e91e63 100%);
  --hs-dark-gradient: linear-gradient(180deg, #0d0510 0%, #1a0a1f 100%);
  
  /* フォント */
  --hs-font-primary: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  --hs-font-heading: 'Noto Serif JP', 'Yu Mincho', serif;
}

/* ==========================================
   リセット & ベーススタイル
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--hs-font-primary);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--hs-text-primary);
  background: var(--hs-bg-primary);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(139, 77, 184, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* スキップリンクを完全に非表示 */
.skip-link,
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: none !important;
}

/* WordPress管理バーの調整 */
#wpadminbar {
  display: none !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

/* その他の不要なボタンを非表示 */
.wp-block-button,
.edit-link {
  display: none !important;
}

/* ==========================================
   タイポグラフィ
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hs-font-heading);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--hs-text-primary);
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 0 20px var(--hs-glow);
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--hs-accent);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--hs-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--hs-accent-light);
  text-shadow: 0 0 10px var(--hs-glow);
}

/* ==========================================
   レイアウト
   ========================================== */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* ==========================================
   ヘッダー
   ========================================== */
.site-header {
  background: var(--hs-bg-secondary);
  border-bottom: 2px solid var(--hs-accent);
  box-shadow: 0 4px 20px var(--hs-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-family: var(--hs-font-heading);
  margin: 0;
}

.site-title a {
  color: var(--hs-text-primary);
  text-shadow: 0 0 15px var(--hs-glow);
  transition: all 0.3s ease;
}

.site-title a:hover {
  text-shadow: 0 0 25px var(--hs-glow), 0 0 40px var(--hs-secondary);
}

.site-description {
  font-size: 0.9rem;
  color: var(--hs-text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================
   ナビゲーション
   ========================================== */
.main-navigation {
  display: flex;
  gap: 2rem;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--hs-text-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.main-navigation a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hs-hypnosis-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-navigation a:hover::before {
  width: 80%;
}

.main-navigation a:hover {
  color: var(--hs-accent-light);
  background: rgba(139, 77, 184, 0.1);
}

/* ==========================================
   フッター
   ========================================== */
.site-footer {
  background: var(--hs-bg-secondary);
  border-top: 2px solid var(--hs-accent);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 -4px 20px var(--hs-shadow);
}

.site-footer p {
  margin: 0;
  color: var(--hs-text-secondary);
}

/* ==========================================
   記事一覧
   ========================================== */
.posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--hs-bg-secondary);
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--hs-shadow-heavy);
  border-color: var(--hs-accent);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.post-card:hover .post-thumbnail {
  filter: brightness(1.2);
}

.post-content-wrapper {
  padding: 1.5rem;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.post-title a {
  color: var(--hs-text-primary);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
  margin-bottom: 1rem;
}

.post-excerpt {
  color: var(--hs-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   個別記事
   ========================================== */
.single-post .entry-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--hs-accent);
}

.entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--hs-hypnosis-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-content {
  background: var(--hs-bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--hs-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   サイドバー
   ========================================== */
.sidebar {
  background: var(--hs-bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--hs-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hs-accent);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hs-border);
}

.widget li:last-child {
  border-bottom: none;
}

/* ==========================================
   ボタン
   ========================================== */
.btn,
button,
input[type="submit"] {
  background: var(--hs-hypnosis-gradient);
  color: var(--hs-text-primary);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--hs-shadow);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--hs-shadow-heavy);
  filter: brightness(1.2);
}

/* ==========================================
   フォーム
   ========================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--hs-bg-tertiary);
  border: 1px solid var(--hs-border);
  border-radius: 4px;
  color: var(--hs-text-primary);
  font-family: var(--hs-font-primary);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--hs-accent);
  box-shadow: 0 0 15px var(--hs-shadow);
}

/* ==========================================
   特殊エフェクト: ヒプノシスグロー
   ========================================== */
.hypnosis-glow {
  animation: hypnosisGlow 3s ease-in-out infinite;
}

@keyframes hypnosisGlow {
  0%, 100% {
    text-shadow: 0 0 10px var(--hs-glow), 0 0 20px var(--hs-glow);
  }
  50% {
    text-shadow: 0 0 20px var(--hs-glow), 0 0 40px var(--hs-secondary), 0 0 60px var(--hs-secondary);
  }
}

/* ==========================================
   特殊エフェクト: パルスエフェクト
   ========================================== */
.pulse-effect {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (max-width: 768px) {
  .site-header .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .posts-list {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .entry-title {
    font-size: 1.8rem;
  }
}

/* ==========================================
   ユーティリティクラス
   ========================================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
