/*
Theme Name: C.dance school Blog
Theme URI: https://cdanceschool.com
Author: k.yamaoka
Author URI: https://cdanceschool.com
Description: C.dance school 公式ブログテーマ。メインサイトのデザインに統一したピンク×ラベンダーグレースタイル。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cdance-blog
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================
   Design Tokens — C.dance school
   ========================================== */
:root {
  /* Brand Colors (matching main site) */
  --pink:       #e8456a;
  --pink-dark:  #c8284f;
  --pink-mid:   #f4a0b0;
  --pink-light: #fce8ec;
  --gold:       #c8a050;

  /* Backgrounds */
  --bg:         #f0eef8;   /* oklch(0.96 0.018 275) */
  --bg2:        #f7f6fb;   /* oklch(0.98 0.008 275) */
  --surface:    #ffffff;

  /* Foreground */
  --fg:         #3d2025;   /* oklch(0.28 0.02 20) */
  --fg-dim:     #8a6e72;   /* oklch(0.55 0.02 20) */
  --fg-light:   #c0a8aa;

  /* Borders */
  --border:     #e8e2ef;

  /* Shadows — pink-tinted like main site */
  --shadow-sm:  0 2px 12px rgba(232,69,106,0.06);
  --shadow:     0 4px 24px rgba(232,69,106,0.10);
  --shadow-lg:  0 8px 36px rgba(232,69,106,0.16);
  --shadow-hover: 0 12px 44px rgba(232,69,106,0.22);

  /* Shape */
  --radius:     20px;
  --radius-sm:  12px;
  --radius-xs:  8px;
  --radius-pill: 50px;

  /* Transition */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s var(--ease);

  /* Layout */
  --content-max: 1100px;
  --sidebar-w:   300px;
  --gap:         28px;

  /* Typography — same as main site */
  --font-body:   'M PLUS Rounded 1c', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-display:'Prompt', 'M PLUS Rounded 1c', sans-serif;
  --font-mono:   'SFMono-Regular', 'Consolas', monospace;
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--pink);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--pink-dark); }

ul, ol { padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ==========================================
   Layout
   ========================================== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.site-main { flex: 1; padding: 48px 0 72px; }

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

/* ==========================================
   Header — glass nav like main site
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 238, 248, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 226, 239, 0.8);
  box-shadow: 0 2px 16px rgba(232,69,106,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

/* Branding */
.site-branding { flex-shrink: 0; display: flex; align-items: center; }

.site-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}
.site-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}
.site-title a:hover { color: var(--pink); }

.site-logo {
  height: 36px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-description {
  font-size: .72rem;
  color: var(--fg-dim);
  font-weight: 500;
}

/* Blog label badge */
.header-blog-badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  flex-shrink: 0;
}

/* Navigation */
.main-navigation { flex: 1; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.nav-menu li { position: relative; }

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--fg-dim);
  font-size: .88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--pink);
  background: var(--pink-light);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .sub-menu a {
  color: var(--fg);
  padding: 8px 14px;
}
.nav-menu .sub-menu a:hover {
  color: var(--pink);
  background: var(--pink-light);
}

/* Header CTA button */
.nav-cta {
  flex-shrink: 0;
  display: inline-block;
  background: var(--pink);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(232,69,106,0.35);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,69,106,0.45);
}

/* Header search */
.header-search { flex-shrink: 0; }
.header-search .search-form { display: flex; align-items: center; gap: 0; }
.header-search .search-field {
  width: 0;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg);
  font-size: .88rem;
  font-family: var(--font-body);
  transition: all var(--transition);
  outline: none;
}
.header-search .search-field::placeholder { color: var(--fg-light); }
.header-search:focus-within .search-field,
.header-search .search-field:not([value=""]) {
  width: 160px;
  padding: 8px 12px;
  border-bottom-color: var(--pink);
}
.header-search .search-submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.header-search .search-submit:hover { color: var(--pink); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==========================================
   Section Eyebrow — same as main site
   ========================================== */
.section-eyebrow {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

/* ==========================================
   Page Header / Archive Title
   ========================================== */
.page-header-block {
  background: linear-gradient(135deg, #e8456a 0%, #c8284f 100%);
  color: #fff;
  padding: 52px 0 48px;
  margin-bottom: 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-block::before {
  content: '♡';
  position: absolute;
  font-size: 160px;
  color: rgba(255,255,255,.08);
  right: 5%;
  bottom: -20px;
  line-height: 1;
  pointer-events: none;
}
.page-header-block .section-eyebrow {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.page-header-block .page-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.page-header-block .page-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
}

/* ==========================================
   Breadcrumb
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: var(--fg-light);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--fg-dim); }

/* ==========================================
   Post Cards (Archive / Index)
   ========================================== */
.posts-grid { display: flex; flex-direction: column; gap: 20px; }

.post-card-outer { display: block; }

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.post-card-thumbnail {
  overflow: hidden;
  background: var(--pink-light);
}
.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.06); }

.post-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

/* Category badges — pill like main site */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.category-badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink);
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.category-badge:hover { background: var(--pink); color: #fff; }

.post-card .entry-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--fg);
}
.post-card .entry-title a { color: inherit; }
.post-card .entry-title a:hover { color: var(--pink); }

.entry-excerpt {
  font-size: .88rem;
  color: var(--fg-dim);
  line-height: 1.85;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: var(--fg-light);
}
.entry-meta a { color: var(--fg-light); }
.entry-meta a:hover { color: var(--pink); }
.entry-meta .sep { color: var(--border); }
.meta-icon { vertical-align: middle; margin-right: 3px; }

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 800;
  color: var(--pink);
  margin-top: 12px;
  transition: gap var(--transition);
}
.read-more-link:hover { gap: 10px; color: var(--pink-dark); }

/* Sticky post */
.sticky .post-card { border: 2px solid var(--pink); }
.sticky-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  letter-spacing: .08em;
}

/* ==========================================
   Pagination
   ========================================== */
.pagination { margin-top: 36px; display: flex; justify-content: center; }
.page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 800;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  transition: all var(--transition);
}
.page-numbers a:hover { background: var(--pink-light); border-color: var(--pink-mid); color: var(--pink); }
.page-numbers .current { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 0 4px 16px rgba(232,69,106,.3); }
.page-numbers .dots { border: none; background: none; }

/* ==========================================
   Single Post
   ========================================== */
.single-post-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Hero image */
.post-hero {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.post-hero-meta {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 32px 40px;
  z-index: 1;
  color: #fff;
}
.post-hero-meta .post-categories { margin-bottom: 10px; }
.post-hero-meta .category-badge {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.post-hero-meta .entry-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #fff;
}
.post-hero-meta .entry-meta { color: rgba(255,255,255,.8); }
.post-hero-meta .entry-meta a { color: rgba(255,255,255,.75); }

/* No-hero fallback header */
.post-header-text { padding: 36px 40px 0; }
.post-header-text .entry-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.post-header-text .entry-meta {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

/* ==========================================
   Post Entry Content
   ========================================== */
.entry-content { padding: 36px 40px; max-width: 100%; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.35;
  margin: 2em 0 .75em;
  color: var(--fg);
}
.entry-content h2 {
  font-size: 1.4rem;
  padding-left: 14px;
  border-left: 4px solid var(--pink);
}
.entry-content h3 {
  font-size: 1.2rem;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.entry-content h4 { font-size: 1.05rem; }

.entry-content p { margin-bottom: 1.5em; }

.entry-content a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.entry-content a:hover { color: var(--pink-dark); }

.entry-content ul, .entry-content ol { margin-bottom: 1.5em; padding-left: 1.6em; }
.entry-content li { margin-bottom: .4em; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  background: var(--pink-light);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--fg-dim);
}
.entry-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: .82rem;
  font-style: normal;
  font-weight: 700;
  color: var(--fg-light);
}

.entry-content pre {
  background: #3d2025;
  color: #fce8ec;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.7;
  margin: 1.8em 0;
  position: relative;
}
.entry-content code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 2px 7px;
  border-radius: 6px;
}
.entry-content pre code { background: none; color: inherit; padding: 0; border-radius: 0; }

.entry-content table {
  width: 100%;
  margin: 1.8em 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.entry-content th {
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  padding: 12px 16px;
  text-align: left;
  font-size: .9rem;
}
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--bg); }

.entry-content img { border-radius: var(--radius-sm); margin: 1.8em auto; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption {
  text-align: center;
  font-size: .8rem;
  color: var(--fg-light);
  margin-top: 8px;
}
.entry-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.2em 0;
}

/* ==========================================
   Post Footer
   ========================================== */
.post-footer { padding: 0 40px 36px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--fg-dim);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.tag-badge:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Author Box */
.author-box {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 24px;
  align-items: flex-start;
}
.author-avatar img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--pink-light);
  object-fit: cover;
  flex-shrink: 0;
}
.author-info .author-name {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 4px;
}
.author-info .author-name a { color: var(--fg); }
.author-info .author-name a:hover { color: var(--pink); }
.author-info .author-bio { font-size: .86rem; color: var(--fg-dim); line-height: 1.8; }

/* Post Navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.nav-previous, .nav-next {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--transition);
}
.nav-previous:hover, .nav-next:hover { border-color: var(--pink-mid); box-shadow: var(--shadow-sm); }
.nav-next { text-align: right; }
.nav-label { display: block; font-size: .72rem; color: var(--fg-light); margin-bottom: 4px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nav-title { font-size: .9rem; font-weight: 800; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-previous a, .nav-next a { display: block; color: inherit; }
.nav-previous a:hover .nav-title, .nav-next a:hover .nav-title { color: var(--pink); }

/* ==========================================
   Comments
   ========================================== */
.comments-area {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-top: 20px;
}
.comments-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.comment-list { list-style: none; padding: 0; }
.comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author-avatar img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pink-light); }
.comment-author-name { font-weight: 800; font-size: .93rem; }
.comment-date { font-size: .78rem; color: var(--fg-light); }
.comment-body { font-size: .9rem; line-height: 1.8; }
.comment-reply-link { font-size: .8rem; color: var(--pink); margin-top: 8px; display: inline-block; font-weight: 700; }
.children { list-style: none; padding-left: 28px; margin-top: 0; }

/* Comment Form */
.comment-respond { margin-top: 28px; }
.comment-reply-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.comment-form { display: grid; gap: 14px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form label { display: block; font-size: .82rem; font-weight: 800; margin-bottom: 5px; color: var(--fg-dim); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-light);
  background: var(--surface);
}
.comment-form textarea { height: 120px; resize: vertical; }

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: .92rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232,69,106,.3);
}
.comment-form .submit:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,69,106,.4);
}

/* ==========================================
   Sidebar
   ========================================== */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.widget:hover { box-shadow: var(--shadow); }

.widget-title {
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pink-light);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Widget */
.widget_search .search-form { display: flex; }
.widget_search .search-field {
  flex: 1;
  padding: 9px 14px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font-size: .88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.widget_search .search-field:focus { border-color: var(--pink); }
.widget_search .search-submit {
  padding: 9px 14px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.widget_search .search-submit:hover { background: var(--pink-dark); }

/* Recent Posts Widget */
.widget_recent_entries ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.widget_recent_entries li { display: flex; gap: 10px; align-items: flex-start; }
.widget_recent_entries .post-thumb {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pink-light);
}
.widget_recent_entries .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget_recent_entries a {
  color: var(--fg);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.widget_recent_entries a:hover { color: var(--pink); }
.widget_recent_entries .post-date { display: block; font-size: .74rem; color: var(--fg-light); margin-top: 2px; }

/* Categories Widget */
.widget_categories ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.widget_categories li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--fg-dim);
  font-size: .88rem;
  font-weight: 700;
  transition: all var(--transition);
}
.widget_categories li a:hover { background: var(--pink-light); color: var(--pink); padding-left: 18px; }
.widget_categories .cat-count {
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: .72rem;
  color: var(--fg-light);
  font-weight: 800;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget_tag_cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .8rem !important;
  color: var(--fg-dim);
  font-weight: 700;
  transition: all var(--transition);
}
.widget_tag_cloud a:hover { background: var(--pink); color: #fff; border-color: var(--pink); }

/* Archive Widget */
.widget_archive ul { list-style: none; padding: 0; }
.widget_archive li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: .88rem;
  font-weight: 700;
}
.widget_archive li:last-child a { border-bottom: none; }
.widget_archive li a:hover { color: var(--pink); }

/* Instagram Widget (decorative) */
.widget-instagram {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  text-align: center;
}
.widget-instagram .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.widget-instagram a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  padding: 10px 20px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.25);
  transition: all var(--transition);
}
.widget-instagram a:hover { background: rgba(255,255,255,.25); }

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  background: var(--fg);
  color: #a89092;
}

.footer-widgets {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-widget-title {
  font-size: .78rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.footer-about .site-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.footer-about p {
  font-size: .84rem;
  line-height: 1.9;
  color: #a89092;
}

.footer-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: #a89092;
  font-size: .86rem;
  font-weight: 700;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-nav a::before { content: "♡"; font-size: .72rem; color: var(--pink); opacity: .7; }
.footer-nav a:hover { color: #fff; }

.footer-recent ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-recent a {
  color: #a89092;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-recent a:hover { color: #fff; }
.footer-recent .post-date { font-size: .74rem; color: #5e4648; display: block; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .8rem;
  color: #5e4648;
}
.footer-bottom a { color: #5e4648; font-weight: 700; }
.footer-bottom a:hover { color: var(--pink); }
.footer-bottom-links { display: flex; gap: 20px; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,69,106,.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--pink-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(232,69,106,.5);
}

/* Mobile float CTA */
.mobile-cta-float {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(232,69,106,.5);
}
.mobile-cta-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================
   Reading Progress Bar
   ========================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  z-index: 9999;
  transition: width .1s linear;
}

/* ==========================================
   404 / Search / No Results
   ========================================== */
.error-404-wrapper,
.no-results-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 60px 40px;
  text-align: center;
}
.error-404-wrapper h1 {
  font-size: 5.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--pink);
  line-height: 1;
  margin-bottom: 16px;
}
.error-404-wrapper h2 { font-size: 1.4rem; margin-bottom: 10px; }
.error-404-wrapper p { color: var(--fg-dim); margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--pink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: .92rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(232,69,106,.3);
}
.btn:hover {
  background: var(--pink-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,69,106,.4);
}

/* Page */
.page-content-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ==========================================
   Utility
   ========================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.highlight-text { color: var(--pink); font-weight: 800; }

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto; }

/* ==========================================
   Animations (matching main site)
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumbnail { width: 100%; aspect-ratio: 16/8; }

  /* Mobile nav */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(240, 238, 248, 0.97);
    backdrop-filter: blur(16px);
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(232,69,106,.1);
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 16px; font-size: .95rem; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }

  .header-inner { height: 56px; }
  .site-main { padding: 28px 0 60px; }
  .post-navigation { grid-template-columns: 1fr; }
  .comment-form-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .entry-content { padding: 20px 20px; }
  .post-header-text { padding: 20px 20px 0; }
  .post-footer { padding: 0 20px 20px; }
  .post-hero-meta { padding: 20px; }
  .author-box { flex-direction: column; }
  .comments-area { padding: 24px 20px; }
  .mobile-cta-float { display: block; }
  .back-to-top { bottom: 80px; }

  .error-404-wrapper,
  .no-results-wrapper { padding: 44px 24px; }
}

@media (max-width: 480px) {
  :root { --gap: 16px; }
  .post-card-body { padding: 16px; }
  .widget { padding: 18px; }
}

/* ==========================================
   Hide Comments
   ========================================== */
.comments-area,
.comment-respond {
  display: none !important;
}

/* ==========================================
   Footer Trial Section
   ========================================== */
.footer-trial {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.footer-trial::before {
  content: '♡';
  position: absolute;
  font-size: 220px;
  color: rgba(255,255,255,.06);
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.footer-trial-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-trial-text { flex: 1; min-width: 200px; }
.footer-trial-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 8px 0;
  font-family: var(--font-display);
  line-height: 1.2;
}
.footer-trial-desc {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.8;
}

.footer-trial-price {
  text-align: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 20px 32px;
}
.footer-trial-price .price {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1;
}
.footer-trial-price .price-note {
  font-size: .76rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

.footer-trial-cta { flex-shrink: 0; }
.footer-trial-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: #fff;
  color: var(--pink) !important;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: all var(--transition);
}
.footer-trial-btn:hover {
  background: var(--pink-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  color: var(--pink) !important;
}
.footer-trial-btn i { color: #06C755; font-size: 1.3em; }

@media (max-width: 768px) {
  .footer-trial { padding: 40px 0; }
  .footer-trial-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-trial-price { width: 100%; }
  .footer-trial-cta { width: 100%; }
  .footer-trial-btn { width: 100%; justify-content: center; }
}

/* ==========================================
   Related Posts
   ========================================== */
.related-posts {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-top: 20px;
}
.related-posts-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-post-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  color: inherit;
  text-decoration: none;
}
.related-post-card:hover {
  border-color: var(--pink-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.related-post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--pink-light);
}
.related-post-body { padding: 12px 14px; }
.related-post-title {
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-card:hover .related-post-title { color: var(--pink); }
.related-post-date { font-size: .74rem; color: var(--fg-light); }

@media (max-width: 768px) {
  .related-posts { padding: 20px; }
  .related-posts-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   News / お知らせ Page Template
   ========================================== */
.news-timeline { padding: 8px 0 60px; }

.news-year-group { margin-bottom: 36px; }
.news-year {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pink);
  font-family: var(--font-display);
  border-bottom: 3px solid var(--pink-light);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.news-item:hover { background: var(--bg2); }

.news-date { flex-shrink: 0; width: 72px; }
.news-month {
  font-size: .82rem;
  font-weight: 800;
  color: var(--fg-dim);
}
.news-body { flex: 1; }
.news-title {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 4px;
}
.news-title a { color: var(--fg); }
.news-title a:hover { color: var(--pink); }

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .news-item:hover { background: none; }
}
