/* ============================================================
   aniyua.css
   aniyua 独自ページ専用スタイル
   読み込み対象: front-page.php / home.php / page-about.php /
                page-privacy.php / page-contact.php のみ
   通常の投稿・カスタム投稿ページには読み込まない
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ============ CSS変数 ============ */
:root {
  --pink: #FF6B9D;
  --pink-light: #FFB3D1;
  --pink-pale: #FFF0F7;
  --purple: #C77DFF;
  --purple-light: #E0AAFF;
  --purple-pale: #F5EEFF;
  --yellow: #FFE66D;
  --yellow-light: #FFF3B0;
  --mint: #4ECDC4;
  --mint-light: #A8E6E0;
  --coral: #FF8B94;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --gray: #888888;
  --dark: #333333;
  --gradient-main: linear-gradient(135deg, #FF6B9D 0%, #C77DFF 50%, #4ECDC4 100%);
  --gradient-pink: linear-gradient(135deg, #FF6B9D 0%, #FFB3D1 100%);
  --gradient-purple: linear-gradient(135deg, #C77DFF 0%, #E0AAFF 100%);
  --shadow-pink: 0 8px 30px rgba(255, 107, 157, 0.3);
  --shadow-purple: 0 8px 30px rgba(199, 125, 255, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Cocoon既存要素のリセット（aniyuaページのみ） ============ */
/* Cocoon のデフォルトヘッダー・フッターを非表示にして aniyua 独自のものを使う */
#header,
#navi,
#footer,
.wrap,
.header-container,
.header-container-in,
#navi-in,
.footer-container,
.footer-container-in {
  display: none !important;
}

/* Cocoon のメインコンテナを全幅にリセット */
#container,
#content,
#main,
#primary,
.content-in,
.main-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

#secondary,
.sidebar {
  display: none !important;
}

/* WordPress 管理バーの高さ分のずれを補正 */
.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ============ リセット & ベース ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  color: var(--dark);
  background-color: #FFFBFE;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============ スクロールバー ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pink-pale); }
::-webkit-scrollbar-thumb {
  background: var(--gradient-pink);
  border-radius: 10px;
}

/* ============ 選択時スタイル ============ */
::selection {
  background: var(--pink-light);
  color: var(--dark);
}

/* ============ リンク ============ */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ============ 画像 ============ */
img { max-width: 100%; display: block; }

/* ============ ヘッダー ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(255, 107, 157, 0.15);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo .logo-icon {
  font-size: 2rem;
  animation: logoSpin 3s ease-in-out infinite;
  -webkit-text-fill-color: initial;
}

@keyframes logoSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--dark);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.site-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-xl);
}

.site-nav a:hover::before { opacity: 1; }
.site-nav a:hover { color: white; transform: translateY(-2px); }

.site-nav a span {
  position: relative;
  z-index: 1;
}

.nav-cta {
  background: var(--gradient-main);
  color: white !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-pink);
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3); }
  50% { box-shadow: 0 8px 40px rgba(255, 107, 157, 0.6); }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: var(--transition);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  padding: 15px 40px;
  border-radius: var(--radius-xl);
  background: var(--pink-pale);
  transition: var(--transition);
  width: 80%;
  text-align: center;
}

.mobile-menu a:hover {
  background: var(--gradient-main);
  color: white;
  transform: scale(1.05);
}

/* ============ フローティング装飾 ============ */
.floating-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-item {
  position: absolute;
  opacity: 0.12;
  font-size: 2rem;
  animation: floatAround linear infinite;
}

@keyframes floatAround {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-10vh) rotate(360deg); }
}

/* ============ ヒーローセクション ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #FFF0F7 0%,
    #F5EEFF 30%,
    #E8FBFA 60%,
    #FFF0F7 100%
  );
  z-index: 0;
}

/* キラキラエフェクト */
.sparkles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: sparkleAnim ease-in-out infinite;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* 波形背景 */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-xl);
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 25px;
  animation: badgeBounce 2s ease-in-out infinite;
  box-shadow: var(--shadow-pink);
}

@keyframes badgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-title .line1 {
  display: block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleFadeIn 1s ease-out 0.2s both;
}

.hero-title .line2 {
  display: block;
  color: var(--dark);
  animation: titleFadeIn 1s ease-out 0.4s both;
}

@keyframes titleFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 40px;
  animation: titleFadeIn 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  animation: titleFadeIn 1s ease-out 0.8s both;
}

/* ============ ボタン ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--pink);
  border: 2px solid var(--pink-light);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--pink-pale);
  transform: translateY(-3px);
  border-color: var(--pink);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple-light);
}

.btn-outline:hover {
  background: var(--purple-pale);
  border-color: var(--purple);
}

/* ============ セクション共通 ============ */
section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-pale);
  color: var(--pink);
  border-radius: var(--radius-xl);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-tag.purple {
  background: var(--purple-pale);
  color: var(--purple);
}

.section-tag.mint {
  background: rgba(78, 205, 196, 0.1);
  color: var(--mint);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-title .highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
}

/* ============ カード共通 ============ */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.2);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

/* 画像読み込み失敗時のフォールバック */
.img-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  width: 100%;
  height: 100%;
}
.img-fallback.slide-fallback { font-size: 5rem; }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient-main);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-new {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: var(--radius-xl);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 900;
  animation: newBadgePop 1.5s ease-in-out infinite;
}

@keyframes newBadgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.card-body {
  padding: 20px;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--dark);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--pink);
}

.card-price span {
  font-size: 0.75rem;
  font-weight: 400;
}

/* ============ グリッドレイアウト ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============ イベントセクション ============ */
.events-section {
  background: linear-gradient(180deg, #FFF0F7 0%, white 100%);
  padding: 0;
}

.event-card {
  border-left: 4px solid var(--pink);
}

.event-card:hover {
  border-left-color: var(--purple);
}

.event-countdown {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.countdown-item {
  text-align: center;
  background: var(--pink-pale);
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 50px;
}

.countdown-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--pink);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--gray);
  font-weight: 700;
}

/* ============ グッズセクション ============ */
.goods-section {
  background: linear-gradient(180deg, white 0%, #F5EEFF 100%);
  padding: 0;
}

.goods-card {
  border-radius: var(--radius);
}

.goods-card .card-image-wrapper {
  aspect-ratio: 1/1;
}

.goods-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.goods-tag {
  background: var(--purple-pale);
  color: var(--purple);
  border-radius: var(--radius-xl);
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.heart-btn {
  background: none;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--pink-light);
}

.heart-btn:hover,
.heart-btn.active {
  background: var(--pink-pale);
  border-color: var(--pink);
  color: var(--pink);
  transform: scale(1.2);
}

/* ============ 特集バナー ============ */
.feature-banner {
  background: var(--gradient-main);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.feature-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: bannerOrb 6s ease-in-out infinite;
}

.feature-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: bannerOrb 4s ease-in-out infinite reverse;
}

@keyframes bannerOrb {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(20px, -10px); }
}

.feature-banner .section-inner {
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.banner-text {
  flex: 1;
  color: white;
  position: relative;
  z-index: 1;
}

.banner-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
}

.banner-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.7;
}

.banner-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.banner-icon-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  cursor: pointer;
}

.banner-icon-item:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-5px);
}

.banner-icon-item .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.banner-icon-item span:last-child {
  font-size: 0.75rem;
  color: white;
  font-weight: 700;
}

/* ============ 人気ランキング ============ */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

.ranking-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-pink);
}

.ranking-num {
  font-size: 1.8rem;
  font-weight: 900;
  min-width: 45px;
  text-align: center;
  line-height: 1;
}

.ranking-num.gold { color: #FFD700; }
.ranking-num.silver { color: #C0C0C0; }
.ranking-num.bronze { color: #CD7F32; }
.ranking-num.other { color: var(--gray); font-size: 1.3rem; }

.ranking-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}

.ranking-info { flex: 1; }

.ranking-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ranking-sub {
  font-size: 0.75rem;
  color: var(--gray);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ タブコンポーネント ============ */
.tab-container {
  margin-bottom: 40px;
}

.tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--pink-pale);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
  border-radius: 10px 10px 0 0;
}

.tab-btn:hover { color: var(--pink); }

.tab-btn.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
  background: var(--pink-pale);
}

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============ フィルターボタン ============ */
.filter-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 20px;
  background: white;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  transform: scale(1.05);
}

/* ============ 新着記事ティッカーバー ============ */
.notice-bar {
  background: linear-gradient(90deg, #ff6b9d 0%, #c77dff 50%, #4ecdc4 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
  height: 40px;
  display: flex;
  align-items: stretch;
}

.notice-bar-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.notice-label {
  flex-shrink: 0;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.notice-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50px, black calc(100% - 30px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 50px, black calc(100% - 30px), transparent 100%);
}

.notice-track {
  display: inline-flex;
  align-items: center;
  height: 40px;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  padding-left: 40px;
  flex-shrink: 0;
}

.notice-track:hover {
  animation-play-state: paused;
}

.notice-item {
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 40px;
  text-decoration: none;
  padding: 0 8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.notice-item:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.notice-sep {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  padding: 0 12px;
  flex-shrink: 0;
  line-height: 40px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ カレンダー風イベント ============ */
.event-timeline {
  position: relative;
  padding-left: 30px;
}

.event-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-pink);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  animation: slideInLeft 0.5s ease-out;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 18px;
  width: 14px;
  height: 14px;
  background: var(--pink);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--pink-light);
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ============ スタッツカウンター ============ */
.stats-section {
  background: white;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--pink-pale);
  transition: var(--transition);
}

.stat-item:nth-child(2) { background: var(--purple-pale); }
.stat-item:nth-child(3) { background: rgba(78, 205, 196, 0.1); }
.stat-item:nth-child(4) { background: var(--yellow-light); }

.stat-item:hover { transform: translateY(-5px); }

.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 700;
}

/* ============ フォーム ============ */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-label .required {
  background: var(--pink);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============ フッター ============ */
.site-footer {
  background: linear-gradient(135deg, #2D1B2E 0%, #1A1025 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
}

.footer-top {
  padding: 60px 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
  background: var(--gradient-main);
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--pink-light);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '✦';
  font-size: 0.5rem;
  color: var(--pink);
  opacity: 1;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--pink-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ============ トップへ戻るボタン ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-pink);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  animation: backTopPulse 2s ease-in-out infinite;
}

@keyframes backTopPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4); }
  50% { box-shadow: 0 8px 50px rgba(255, 107, 157, 0.7); }
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ============ ローディング ============ */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #FFF0F7, #F5EEFF);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 3rem;
  animation: loaderSpin 1s ease-in-out infinite;
}

@keyframes loaderSpin {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.2); }
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  animation: loaderDot 0.8s ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  background: var(--purple);
  animation-delay: 0.15s;
}

.loader-dot:nth-child(3) {
  background: var(--mint);
  animation-delay: 0.3s;
}

@keyframes loaderDot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============ パンくずリスト ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  padding: 20px 0 10px;
}

.breadcrumb a {
  color: var(--pink);
  font-weight: 700;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep {
  color: var(--pink-light);
  font-size: 0.7rem;
}

/* ============ ページヒーロー ============ */
.page-hero {
  background: var(--gradient-main);
  padding: 140px 30px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 0;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

/* ============ カーソルエフェクト ============ */
.cursor-trail {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  transition: transform 0.1s ease;
}

/* ============ 吹き出し ============ */
.speech-bubble {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 15px 20px;
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--pink-light);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 20px;
  border: 6px solid transparent;
  border-top-color: var(--pink-light);
}

/* ============ 人気タグ ============ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tag-item:hover { transform: scale(1.05); }

.tag-pink { background: var(--pink-pale); color: var(--pink); }
.tag-purple { background: var(--purple-pale); color: var(--purple); }
.tag-mint { background: rgba(78, 205, 196, 0.1); color: var(--mint); }
.tag-yellow { background: var(--yellow-light); color: #a07a00; }

/* ============ ニュースレター ============ */
.newsletter-section {
  background: var(--gradient-main);
  padding: 60px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section h2 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.newsletter-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

/* ============ アニメーション追加 ============ */

/* パーティクルエフェクト */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100px) rotate(720deg) scale(1.5); }
}

/* ハートアニメーション */
.heart-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  font-size: 1.5rem;
  animation: heartPop 1.5s ease-out forwards;
}

@keyframes heartPop {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-60px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.5); }
}

/* スクロール進行バー */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-main);
  z-index: 10001;
  transition: width 0.1s ease;
  border-radius: 0 4px 4px 0;
}

/* アコーディオン */
.accordion-item {
  border: 2px solid var(--pink-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.open {
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
}

.accordion-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  background: white;
  transition: var(--transition);
}

.accordion-header:hover { background: var(--pink-pale); }

.accordion-arrow {
  font-size: 0.8rem;
  color: var(--pink);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
  background: var(--pink-pale);
}

.accordion-item.open .accordion-body {
  max-height: 300px;
  padding: 16px 20px;
}

/* スターレーティング */
.star-rating {
  display: flex;
  gap: 3px;
  color: var(--yellow);
  font-size: 0.9rem;
}

/* tiltカード */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* Rainbow テキスト */
.rainbow-text {
  background: linear-gradient(90deg, #FF6B9D, #C77DFF, #4ECDC4, #FFE66D, #FF6B9D);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

/* ============ バッジ ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-pink   { background: var(--pink-pale);   color: var(--pink); }
.badge-purple { background: var(--purple-pale);  color: var(--purple); }
.badge-mint   { background: rgba(78,205,196,.1); color: var(--mint); }
.badge-yellow { background: var(--yellow-light); color: #a07a00; }

/* ============ ページネーション ============ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  border: 2px solid var(--pink-light);
  color: var(--gray);
}

.page-num:hover,
.page-num.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
}

/* ============ 検索バー ============ */
.search-bar {
  display: flex;
  gap: 10px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--pink-light);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: transparent;
}

.search-bar button {
  background: var(--gradient-main);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: 8px 20px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  transform: scale(1.05);
}

/* ============ アニメーション汎用 ============ */
.bounce {
  animation: bounceAnim 1.5s ease-in-out infinite;
}

@keyframes bounceAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-banner .section-inner { flex-direction: column; gap: 30px; }
  .site-nav a { padding: 7px 11px; font-size: 0.78rem; }
  .header-inner { padding: 12px 20px; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-inner { padding: 60px 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; }
  .notice-label { padding: 0 10px; font-size: 0.7rem; }
  .notice-item  { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .banner-icons { grid-template-columns: repeat(3, 1fr); }
  .notice-label { display: none; }
  .notice-item  { font-size: 0.74rem; }
}

/* ============================================================
   投稿記事ページ（single.php）専用スタイル
============================================================ */

/* ---- ヒーローエリア ---- */
.single-hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-top: 0;
}

.single-hero-img {
  width: 100%;
  height: 100%;
}

.single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.single-hero-gradient {
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  opacity: 0.9;
}

.single-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 60px;
  z-index: 2;
}

.single-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-main);
  color: white;
  border-radius: var(--radius-xl);
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.single-title {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: white;
  line-height: 1.4;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.single-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

/* ---- レイアウト ---- */
.single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ---- 記事本文エリア ---- */
.single-article {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  margin-bottom: 30px;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* ---- 本文タイポグラフィ ---- */
.single-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--dark);
}

.single-content h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 40px 0 16px;
  padding: 12px 20px;
  background: var(--pink-pale);
  border-left: 5px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--dark);
}

.single-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 32px 0 12px;
  padding: 8px 0 8px 16px;
  border-left: 4px solid var(--purple);
  color: var(--dark);
}

.single-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--pink);
}

.single-content p {
  margin-bottom: 20px;
}

.single-content a {
  color: var(--pink);
  text-decoration: underline;
  font-weight: 700;
}

.single-content a:hover {
  color: var(--purple);
}

.single-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 20px auto;
  box-shadow: var(--shadow-card);
}

.single-content ul,
.single-content ol {
  padding-left: 1.8em;
  margin-bottom: 20px;
}

.single-content li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.single-content ul li::marker {
  color: var(--pink);
}

.single-content ol li::marker {
  color: var(--purple);
  font-weight: 700;
}

.single-content blockquote {
  background: var(--purple-pale);
  border-left: 5px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}

.single-content blockquote p {
  margin: 0;
}

.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.single-content table th {
  background: var(--gradient-main);
  color: white;
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
}

.single-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--pink-pale);
}

.single-content table tr:nth-child(even) td {
  background: var(--pink-pale);
}

.single-content pre,
.single-content code {
  background: #2D1B2E;
  color: #FFB3D1;
  border-radius: 8px;
  font-size: 0.88rem;
}

.single-content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.single-content code {
  padding: 2px 8px;
}

/* ---- シェアボタン ---- */
.single-share {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px dashed var(--pink-light);
}

.single-share-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

.single-share-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.share-x {
  background: #000;
  color: white;
}
.share-x:hover { background: #333; transform: translateY(-2px); }

.share-line {
  background: #06C755;
  color: white;
}
.share-line:hover { background: #05a848; transform: translateY(-2px); }

.share-copy {
  background: var(--pink-pale);
  color: var(--pink);
  border: 2px solid var(--pink-light);
}
.share-copy:hover { background: var(--gradient-main); color: white; border-color: transparent; transform: translateY(-2px); }

/* ---- 前後記事ナビ ---- */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 2px solid transparent;
}

.post-nav-item:hover {
  border-color: var(--pink-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pink);
}

.post-nav-empty {
  background: transparent;
  box-shadow: none;
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
}

.post-nav-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- 関連記事 ---- */
.single-related {
  margin-bottom: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border: 2px solid transparent;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--pink-light);
  box-shadow: var(--shadow-pink);
}

.related-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
  transform: scale(1.06);
}

.related-thumb-fallback {
  font-size: 2.5rem;
}

.related-body {
  padding: 14px;
}

.related-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 6px;
}

.related-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-date {
  font-size: 0.72rem;
  color: var(--gray);
}

/* ---- サイドバー ---- */
.single-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 著者ボックス */
.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.author-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--pink-light);
  object-fit: cover;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.author-bio {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.6;
}

/* 目次 */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item {
  display: block;
  font-size: 0.82rem;
  color: var(--dark);
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  line-height: 1.5;
}

.toc-item:hover {
  background: var(--pink-pale);
  border-left-color: var(--pink);
  color: var(--pink);
}

.toc-h3 { padding-left: 22px; font-size: 0.78rem; color: var(--gray); }
.toc-h4 { padding-left: 36px; font-size: 0.74rem; color: var(--gray); }

/* 新着記事（サイドバー） */
.sidebar-recent-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pink-light);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.sidebar-recent-item:last-child { border-bottom: none; }

.sidebar-recent-item:hover .sidebar-recent-title {
  color: var(--pink);
}

.sidebar-recent-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-fallback { font-size: 1.5rem; }

.sidebar-recent-info { flex: 1; }

.sidebar-recent-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.sidebar-recent-date {
  font-size: 0.7rem;
  color: var(--gray);
}

/* カテゴリ（サイドバー） */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--pink-pale);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-cat-item:hover {
  background: var(--gradient-main);
  color: white;
}

.sidebar-cat-count {
  background: var(--pink);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.sidebar-cat-item:hover .sidebar-cat-count {
  background: rgba(255,255,255,0.3);
}

/* ---- レスポンシブ（記事ページ） ---- */
@media (max-width: 1024px) {
  .single-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .single-hero {
    height: 320px;
  }

  .single-hero-content {
    padding: 24px 20px;
  }

  .single-title {
    font-size: 1.3rem;
  }

  .single-wrap {
    padding: 0 16px 60px;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
  }

  .single-article {
    padding: 24px 20px;
  }

  .single-post-nav {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .single-content h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .single-hero {
    height: 260px;
  }

  .single-share-btns {
    flex-direction: column;
  }

  .share-btn {
    justify-content: center;
  }
}