/*
Theme Name: Silent Voice Theme
Author: sewn。
Description: Silent Voiceの優しい世界観を表現するカスタムテーマ
Version: 2.0
*/

/* ==============================
   ベーススタイル
============================== */

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

body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.7;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

a {
  color: #6A5ACD;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header,
footer {
  background-color: #eee;
  padding: 20px;
  text-align: center;
}

/* ==============================
   セクション & 見出し
============================== */

h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #6A5ACD;
  text-align: center;
  margin: 40px 0 20px;
}

section {
  padding: 40px 20px;
  margin: 30px auto;
  max-width: 900px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.03);
}

section h2 {
  color: #6A5ACD;
  font-size: 1.8rem;
  font-weight: 600;
  border-bottom: 2px solid #6A5ACD;
  padding-bottom: 5px;
  margin-bottom: 16px;
}

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

.site-footer {
  background: #f5f7f8;
  padding: 25px 15px;
  text-align: center;
  font-size: 16px;
  color: #444;
  border-top: 1px solid #ddd;
}

.site-footer p {
  margin: 5px 0;
}

/* ==============================
   投稿フォームページ（投稿フォーム）
============================== */

.sv-form-wrapper {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sv-form-wrapper h1 {
  color: #6A5ACD;
  margin-bottom: 30px;
}

.sv-form-wrapper input,
.sv-form-wrapper textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.sv-form-wrapper button {
  width: 100%;
  padding: 14px;
  background: #6A5ACD;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
}

.sv-form-wrapper button:hover {
  opacity: 0.85;
}

/* ==============================
   Silent Voice：光の世界観（一覧ページ）
============================== */

/* ▼ 投稿一覧ページ専用：背景 */
body.page-template-template-silentvoice-list {
  background: linear-gradient(
    180deg,
    #faf8ff 0%,
    #ffffff 40%,
    #f7f4ff 100%
  ) !important;
  padding-top: 40px;
}

/* メインカード */
body.page-template-template-silentvoice-list .vote-card {
  max-width: 900px !important;
  margin: 80px auto !important;

  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;

  padding: 60px 50px !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 35px rgba(123, 97, 255, 0.15) !important;
  border-left: none !important;
}

/* 一覧タイトル */
body.page-template-template-silentvoice-list .vote-card h1 {
  text-align: center !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  margin-bottom: 40px !important;

  background: linear-gradient(90deg, #805bff, #a96bff) !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
}

/* 個別投稿カード */
body.page-template-template-silentvoice-list .sv-post {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 22px !important;
  padding: 30px !important;
  margin-bottom: 35px !important;

  box-shadow:
    0 2px 12px rgba(140, 120, 255, 0.12),
    inset 0 0 18px rgba(255, 255, 255, 0.4) !important;

  border-left: 6px solid #805bff !important;
}

/* 投稿タイトル */
body.page-template-template-silentvoice-list .sv-post h3 {
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  color: #444 !important;
}

/* 投稿テキスト */
body.page-template-template-silentvoice-list .sv-post p {
  font-size: 15px !important;
  margin: 6px 0;
  color: #444 !important;
}

/* 投票ボタン */
body.page-template-template-silentvoice-list .vote-button {
  background: linear-gradient(90deg, #805bff, #a97bff) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: 0.25s !important;
}

body.page-template-template-silentvoice-list .vote-button:hover {
  opacity: 0.85 !important;
  transform: translateY(-2px) !important;
}

/* 投票済ボタン */
body.page-template-template-silentvoice-list .vote-button.voted {
  background-color: #ccc !important;
  color: #333 !important;
  cursor: not-allowed !important;
}

/* 投票数 */
body.page-template-template-silentvoice-list .vote-count {
  font-size: 14px !important;
  margin-left: 12px !important;
  color: #555 !important;
}

/* =========================================
   Silent Voice：スマホ最適化（レスポンシブ調整）
   ========================================= */
@media (max-width: 768px) {

  /* 全体の背景余白調整 */
  body.page-template-template-silentvoice-list {
    background: linear-gradient(
      180deg,
      #faf8ff 0%,
      #ffffff 40%,
      #f7f4ff 100%
    );
    padding: 0;
  }

  /* 大枠カード */
  .vote-card {
    margin: 40px 12px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  /* タイトル */
  .vote-card h1 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  /* 投稿カード */
  .sv-post {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .sv-post h3 {
    font-size: 18px;
  }

  .sv-post p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 投票ボタン（スマホ用中央寄せ） */
  .vote-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* 投票数ラベル */
  .vote-count {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    margin-left: 0;
  }

  /* ヘッダーメニュー（投稿一覧／投稿フォーム） */
  .nav-links {
    font-size: 15px;
  }

  .nav-links a {
    display: block;
    margin: 6px 0;
  }
}

/* スマホの黒い「・」を消す（ナビゲーションリスト） */
.nav-links {
  list-style: none;
  padding-left: 0;
}

.nav-links li {
  list-style: none;
}

/* ナビゲーション（投稿一覧／投稿フォーム）の黒い点を消す */
.site-header nav ul,
.site-header nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* ナビのリンクを横並びではなく中央揃えの縦並びに */
.site-header nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.site-header nav a {
  text-decoration: none;
  color: #6A5ACD;
  font-size: 16px;
  font-weight: 500;
}

.site-header nav a:hover {
  opacity: 0.7;
}

/* Silent Voice：ナビゲーションの黒ポチを完全に消す */
.site-header ul,
.site-header li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 全ページの黒い点（ul/liのデフォルトマーカー）を完全に消す */
ul, li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Silent Voice ナビゲーションの黒い点を完全に消す */
.site-header ul,
.site-header li,
.site-header nav ul,
.site-header nav li {
    list-style-type: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WordPress管理バー(admin bar)には影響させないための保護 */
#wpadminbar li {
    list-style: none !important;
}

/* sv-nav の黒丸を完全に消す */
.sv-nav ul,
.sv-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sv-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.site-header {
  outline: 2px solid red;
}

.sv-nav {
  outline: 2px solid blue;
}

/* WordPressログイン時に表示される編集ガイド点を強制的に消す */
body.logged-in .block-editor-block-list__layout ul li::marker,
body.logged-in ul.wp-block li::marker,
body.logged-in li::marker {
    display: none !important;
    font-size: 0 !important;
    content: "" !important;
}

/* ======================
   投票後ボタンのスタイル
====================== */
.vote-button.voted {
  background: #b8b8b8 !important;
  color: #555 !important;
  cursor: not-allowed !important;
  border: none !important;
  pointer-events: none !important;
  transition: none !important;
}

.vote-button.voted {
    background: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
