/*
Theme Name: LifeUp
Theme URI: https://life-up-lab.com
Description: ミニマル・クリーン・ゆったりした読書体験を提供するWordPressテーマ
Author: LifeUp Lab
Version: 2.0.0
License: GPL v2 or later
Text Domain: lifeuplay
*/

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --color-primary: #c9a97a;
  --color-primary-light: #f5f0e8;
  --color-text: #333333;
  --color-text-muted: #888888;
  --color-bg: #ffffff;
  --color-bg-light: #fafaf8;
  --color-border: #ebebeb;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 300px;
  --header-height: 70px;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================================
   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-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

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

.site-main {
  flex: 1;
  padding: 60px 0 80px;
}

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 60px;
  align-items: start;
}

.content-area {
  min-width: 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1;
  white-space: nowrap;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

.site-title a:hover {
  opacity: 0.7;
}

.site-description {
  display: none;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-navigation a {
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  border-bottom-color: var(--color-text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ============================================================
   Article Cards
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-thumbnail {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--color-bg-light);
}

.post-card-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 16px 0 0;
}

.post-card-category {
  font-size: 11px;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.post-card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.post-card-thumbnail.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumbnail.no-thumb::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  padding: 0 0 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.page-description {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: none;
  color: var(--color-text-muted);
}

/* ============================================================
   Single Post
   ============================================================ */
.single-post-header {
  margin-bottom: 48px;
}

.single-post-eyecatch {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--color-bg-light);
  margin-bottom: 32px;
}

.single-post-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.single-post-category {
  font-size: 11px;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-post-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.single-post-title {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================================
   Article Body
   ============================================================ */
.entry-content {
  font-size: 15.5px;
  line-height: 2.0;
  color: var(--color-text);
  max-width: var(--content-width);
}

.entry-content p {
  margin: 0 0 1.8em;
}

.entry-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 2.5em 0 1em;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  letter-spacing: 0.02em;
}

.entry-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 2em 0 0.8em;
  letter-spacing: 0.02em;
}

.entry-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.8em 1.5em;
  list-style: revert;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-primary);
  font-size: 15px;
  color: var(--color-text-muted);
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.entry-content a:hover {
  opacity: 0.75;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2em auto;
}

.entry-content code {
  font-size: 0.875em;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.entry-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5em;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 0.875em;
  line-height: 1.6;
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
}

.entry-content th,
.entry-content td {
  padding: 0.8em 1em;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-bg-light);
  font-weight: 600;
}

/* ============================================================
   Table of Contents
   ============================================================ */
.toc-box {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 2em 0 2.5em;
  max-width: var(--content-width);
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.toc-list a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.toc-list a:hover {
  color: var(--color-primary);
}

.toc-list .toc-h3 {
  padding-left: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ============================================================
   SNS Share
   ============================================================ */
.share-section {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.share-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 8px 20px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
}

.share-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   Related Posts
   ============================================================ */
.related-posts {
  margin-top: 64px;
}

.related-posts-title {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

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

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.sidebar-widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.profile-widget {
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.category-list li {
  border-bottom: 1px solid var(--color-border);
}

.category-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.category-list a:hover {
  color: var(--color-primary);
}

.category-list .count {
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  padding: 2px 7px;
  border-radius: 20px;
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.recent-post-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-bg-light);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.recent-post-item:hover .recent-post-thumb img {
  transform: scale(1.05);
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.recent-post-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.recent-post-title a:hover {
  color: var(--color-primary);
}

.recent-post-date {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright {
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.04em;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404 .error-code {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 400;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404 .error-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-404 .error-text {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 12px 32px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ============================================================
   Search
   ============================================================ */
.search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-right: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}

.search-form input[type="search"]:focus {
  border-color: var(--color-primary);
}

.search-form button[type="submit"] {
  padding: 12px 20px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity var(--transition);
}

.search-form button[type="submit"]:hover {
  opacity: 0.85;
}

.search-results-info {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.search-results-info strong {
  color: var(--color-text);
}

/* ============================================================
   WordPress Core Classes
   ============================================================ */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 1em auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 6px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .sep {
  color: var(--color-border);
}

/* ============================================================
   No Posts / Empty State
   ============================================================ */
.no-posts {
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ============================================================
   Page Content
   ============================================================ */
.page-content-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.page-content-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ============================================================
   Post Navigation
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.nav-previous,
.nav-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.nav-label {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-title {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  transition: color var(--transition);
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
  color: var(--color-primary);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sidebar {
    position: static;
  }

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

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

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .site-main {
    padding: 40px 0 60px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-post-title {
    font-size: 1.35rem;
  }

  .entry-content {
    font-size: 15px;
  }

  .entry-content h2 {
    font-size: 1.15rem;
  }

  .main-navigation ul {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-navigation ul.is-open {
    display: flex;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    padding: 12px 20px;
    border-bottom: none;
    font-size: 15px;
  }

  .menu-toggle {
    display: flex;
  }

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

  .nav-next {
    text-align: left;
  }
}

/* ============================================================
   Front Page (front-page.php) Styles
   ============================================================ */

/* ─── CSS Variables (front-page scope) ─── */
:root {
  --fp-gold:       #c9a97a;
  --fp-gold-light: #f5ede0;
  --fp-gold-dark:  #a0804f;
  --fp-text:       #2a2a2a;
  --fp-text-muted: #888;
  --fp-bg:         #ffffff;
  --fp-bg-soft:    #fafaf8;
  --fp-border:     #e8e4de;
  --fp-serif:      'Noto Serif JP', serif;
  --fp-sans:       'Noto Sans JP', sans-serif;
}

/* ─── HERO ─── */
.fp-hero {
  background: var(--fp-bg-soft);
  padding: 96px 32px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fp-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px;
  background: var(--fp-gold);
  opacity: .5;
}
.fp-hero-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fp-gold);
  margin-bottom: 28px;
  margin-top: 20px;
}
.fp-hero-title {
  font-family: var(--fp-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--fp-text);
  margin-bottom: 24px;
}
.fp-hero-title em {
  font-style: normal;
  color: var(--fp-gold);
}
.fp-hero-sub {
  font-size: 14px;
  color: var(--fp-text-muted);
  line-height: 2;
  max-width: 480px;
  margin: 0 auto 40px;
}
.fp-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--fp-gold);
  color: var(--fp-gold);
  padding: 13px 36px;
  font-size: 13px;
  letter-spacing: .12em;
  transition: background .2s, color .2s;
  font-family: var(--fp-sans);
  text-decoration: none;
}
.fp-btn-ghost:hover { background: var(--fp-gold); color: #fff; }
.fp-btn-ghost::after { content: '→'; font-size: 12px; }

/* ─── SECTION COMMON ─── */
.fp-section { padding: 88px 32px; }
.fp-section-alt { background: var(--fp-bg-soft); }
.fp-section-inner { max-width: 1100px; margin: 0 auto; }
.fp-section-header { text-align: center; margin-bottom: 56px; }
.fp-section-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fp-gold);
  margin-bottom: 14px;
}
.fp-section-title {
  font-family: var(--fp-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.6;
}
.fp-section-line {
  width: 36px; height: 1px;
  background: var(--fp-gold);
  margin: 18px auto 0;
  opacity: .6;
}

/* ─── CARD GRID ─── */
.fp-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
.fp-card { cursor: pointer; }
.fp-card-link { text-decoration: none; color: inherit; display: block; }
.fp-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--fp-bg-soft);
}
.fp-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.fp-card:hover .fp-card-thumb img { transform: scale(1.04); }
.fp-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--fp-bg-soft);
}
.fp-card-cat {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--fp-gold);
  margin-bottom: 8px;
}
.fp-card-cat a {
  color: inherit;
  text-decoration: none;
}
.fp-card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--fp-text);
  margin-bottom: 8px;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-card-title a {
  color: inherit;
  text-decoration: none;
}
.fp-card:hover .fp-card-title { color: var(--fp-gold-dark); }
.fp-card-date { font-size: 12px; color: var(--fp-text-muted); }

/* ─── CATEGORY GRID ─── */
.fp-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.fp-cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 16px;
  border: 1px solid var(--fp-border);
  background: var(--fp-bg);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.fp-cat-item:hover { border-color: var(--fp-gold); transform: translateY(-2px); }
.fp-cat-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.fp-cat-name { font-size: 12px; letter-spacing: .05em; color: var(--fp-text-muted); }

/* ─── HOSHI NO CARTE ─── */
.fp-hoshi {
  background: #0f0c07;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}

/* ========================================
   サイドバー完全リセット（強制上書き）
   ======================================== */

/* ウィジェット全体 */
#secondary .widget,
.widget-area .widget,
aside .widget {
  background: #fafaf8 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  border-radius: 0 !important;
}

/* ウィジェットタイトル前後のアイコンを完全に消す */
#secondary .widget-title::before,
#secondary .widget-title::after,
.widget-area .widget-title::before,
.widget-area .widget-title::after,
aside .widget-title::before,
aside .widget-title::after,
.widgettitle::before,
.widgettitle::after {
  content: '' !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ウィジェットタイトル本体 */
#secondary .widget-title,
#secondary .widgettitle,
.widget-area .widget-title,
.widget-area .widgettitle,
aside .widget-title,
aside .widgettitle {
  font-family: 'Noto Serif JP', serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #2a2a2a !important;
  padding: 0 0 10px 0 !important;
  margin: 0 0 14px 0 !important;
  border: none !important;
  border-bottom: 1px solid #e8e4de !important;
  background: none !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  display: block !important;
}

/* リスト */
#secondary .widget ul,
.widget-area .widget ul,
aside .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#secondary .widget ul li,
.widget-area .widget ul li,
aside .widget ul li {
  padding: 7px 0 !important;
  border-bottom: 1px solid #e8e4de !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

#secondary .widget ul li:last-child,
.widget-area .widget ul li:last-child,
aside .widget ul li:last-child {
  border-bottom: none !important;
}

#secondary .widget ul li a,
.widget-area .widget ul li a,
aside .widget ul li a {
  color: #888 !important;
  text-decoration: none !important;
}

#secondary .widget ul li a:hover,
.widget-area .widget ul li a:hover,
aside .widget ul li a:hover {
  color: #c9a97a !important;
}

/* アイコン系をすべて非表示 */
.widget .dashicons,
.widget .material-icons,
.widget i.fa,
.widget i[class^="fa-"],
.widget span.widget-icon,
.widget .title-icon {
  display: none !important;
}

/* 検索フォーム */
.widget_search .search-form,
.widget_search form {
  display: flex !important;
  gap: 0 !important;
}

.widget_search .search-field,
.widget_search input[type="search"],
.widget_search input[type="text"] {
  flex: 1 !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid #e8e4de !important;
  border-right: none !important;
  font-size: 13px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  background: #fff !important;
  color: #2a2a2a !important;
  outline: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
}

.widget_search .search-submit,
.widget_search input[type="submit"],
.widget_search button[type="submit"] {
  height: 36px !important;
  padding: 0 14px !important;
  background: #2a2a2a !important;
  color: #fff !important;
  border: none !important;
  font-size: 12px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  white-space: nowrap !important;
}

.widget_search .search-form label {
  display: block !important;
  margin: 0 !important;
  flex: 1 !important;
}

/* コメントウィジェットを非表示（不要） */
.widget_recent_comments {
  display: none !important;
}
.fp-hoshi::before {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦';
  position: absolute; top: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em;
  color: rgba(201,169,122,.25);
  white-space: nowrap;
}
.fp-hoshi::after {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦';
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em;
  color: rgba(201,169,122,.25);
  white-space: nowrap;
}
.fp-hoshi-inner {
  max-width: 680px; margin: 0 auto;
  text-align: center;
  position: relative; z-index: 1;
}
.fp-hoshi-badge {
  display: inline-block;
  border: 1px solid rgba(201,169,122,.4);
  color: var(--fp-gold);
  font-size: 10px;
  letter-spacing: .22em;
  padding: 6px 20px;
  margin-bottom: 36px;
}
.fp-hoshi-title {
  font-family: var(--fp-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  color: #f5e8d0;
  line-height: 1.7;
  letter-spacing: .06em;
  margin-bottom: 24px;
}
.fp-hoshi-title strong {
  display: block;
  font-weight: 600;
  color: var(--fp-gold);
  font-size: 1.1em;
}
.fp-hoshi-desc {
  font-size: 14px;
  color: rgba(245,232,208,.55);
  line-height: 2.1;
  margin-bottom: 48px;
}
.fp-hoshi-plans {
  display: flex; align-items: center; gap: 32px;
  justify-content: center; margin-bottom: 36px;
  flex-wrap: wrap;
}
.fp-hoshi-plan {
  border: 1px solid rgba(201,169,122,.3);
  padding: 32px 40px;
  text-align: center;
  min-width: 200px;
}
.fp-hoshi-plan-label {
  font-size: 10px; letter-spacing: .2em;
  color: var(--fp-gold); margin-bottom: 14px;
}
.fp-hoshi-plan-price {
  font-family: var(--fp-serif);
  font-size: 2rem; color: #f5e8d0;
  margin-bottom: 10px; line-height: 1;
}
.fp-hoshi-plan-price span {
  font-size: .8rem; color: rgba(245,232,208,.45);
  margin-left: 2px;
}
.fp-hoshi-plan-desc {
  font-size: 12px; color: rgba(245,232,208,.4);
  margin-bottom: 24px; letter-spacing: .06em;
}
.fp-hoshi-note {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(245,232,208,.25);
  letter-spacing: .06em;
}
.fp-btn-gold {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fp-gold);
  color: #0f0c07;
  padding: 16px 48px;
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 600;
  transition: background .2s;
  text-decoration: none;
}
.fp-btn-gold:hover { background: var(--fp-gold-dark); }
.fp-btn-gold::after { content: '→'; }

/* ─── PROFILE ─── */
.fp-profile-wrap {
  display: grid; grid-template-columns: 200px 1fr; gap: 64px;
  align-items: center; max-width: 800px; margin: 0 auto;
}
.fp-profile-avatar-col {
  display: flex; justify-content: center;
}
.fp-profile-avatar-img {
  width: 120px !important; height: 120px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.fp-profile-label { font-size: 10px; letter-spacing: .2em; color: var(--fp-gold); margin-bottom: 12px; }
.fp-profile-name {
  font-family: var(--fp-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.fp-profile-text { font-size: 14px; color: var(--fp-text-muted); line-height: 2.1; }
.fp-profile-link {
  display: inline-block; margin-top: 20px;
  font-size: 12px; color: var(--fp-gold);
  letter-spacing: .1em; border-bottom: 1px solid var(--fp-gold);
  padding-bottom: 2px;
  text-decoration: none;
}

/* ─── HERO ANIMATION ─── */
@keyframes fp-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fp-hero-label { animation: fp-fadeUp .7s ease both .1s; }
.fp-hero-title { animation: fp-fadeUp .7s ease both .2s; }
.fp-hero-sub   { animation: fp-fadeUp .7s ease both .3s; }
.fp-btn-ghost  { animation: fp-fadeUp .7s ease both .4s; }

/* ─── RESPONSIVE (front-page) ─── */
@media (max-width: 900px) {
  .fp-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .fp-profile-wrap { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .fp-profile-avatar-col { justify-content: center; }
}
@media (max-width: 640px) {
  .fp-section { padding: 64px 20px; }
  .fp-hero { padding: 72px 20px 64px; }
  .fp-card-grid { grid-template-columns: 1fr; gap: 36px; }
  .fp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-hoshi { padding: 72px 20px; }
}

/* ============================================================
   Widget Default Style Reset
   ============================================================ */
.widget * { box-sizing: border-box; }
.widget-title { font-family: var(--font-serif) !important; font-size: .95rem !important; font-weight: 600 !important; color: var(--color-text) !important; border: none !important; padding: 0 0 12px !important; margin: 0 0 16px !important; border-bottom: 1px solid var(--color-border) !important; background: none !important; }
.widget ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.widget ul li { padding: 8px 0 !important; border-bottom: 1px solid var(--color-border) !important; font-size: 13px !important; line-height: 1.6 !important; }
.widget ul li:last-child { border-bottom: none !important; }
.widget ul li a { color: var(--color-text-muted) !important; text-decoration: none !important; transition: color .2s !important; }
.widget ul li a:hover { color: var(--color-primary) !important; }
/* ウィジェットのアイコン（Cocoonや他テーマの残骸）を非表示 */
.widget-title::before, .widget-title::after { display: none !important; }
.widget .dashicons { display: none !important; }
/* サイドバー全体 */
.sidebar { font-size: 14px !important; }
.sidebar .widget { background: var(--color-bg-light) !important; border: none !important; padding: 24px !important; margin-bottom: 24px !important; box-shadow: none !important; }

/* ============================================================
   Search Widget
   ============================================================ */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search .search-field { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--color-border); border-right: none; font-size: 13px; font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); outline: none; }
.widget_search .search-field:focus { border-color: var(--color-primary); }
.widget_search .search-submit { height: 38px; padding: 0 16px; background: var(--color-text); color: #fff; border: none; font-size: 12px; font-family: var(--font-sans); cursor: pointer; letter-spacing: .06em; transition: background .2s; }
.widget_search .search-submit:hover { background: var(--color-primary); }
/* デフォルトのsearch-formスタイルをリセット */
.search-form label { margin: 0; display: block; }

/* ========================================
   サイドバー（lu-プレフィックス・Cocoon非依存）
   ======================================== */
.lu-widget {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d8d4ce;
}
.lu-widget:last-child { border-bottom: none; }

.lu-widget-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 14px;
  padding: 0;
}

/* 検索 */
.lu-search-form { display: flex; }
.lu-search-field {
  flex: 1; height: 34px; padding: 0 10px;
  border: 1px solid #d8d4ce;
  font-size: 13px; font-family: var(--sans);
  background: var(--bg); color: var(--text);
  outline: none;
}
.lu-search-field:focus { border-color: var(--gold); }
.lu-search-btn {
  height: 34px; padding: 0 14px;
  background: var(--text); color: #fff;
  border: none; font-size: 12px;
  font-family: var(--sans); cursor: pointer;
  letter-spacing: .04em;
}

/* プロフィール */
.lu-profile { display: flex; gap: 12px; align-items: center; }
.lu-profile-avatar { width: 50px !important; height: 50px !important; border-radius: 50% !important; }
.lu-profile-name { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.lu-profile-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* カテゴリ */
.lu-cat-list { list-style: none; padding: 0; margin: 0; }
.lu-cat-item { border-bottom: 1px solid #d8d4ce; }
.lu-cat-item:last-child { border-bottom: none; }
.lu-cat-item a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13px; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.lu-cat-item a:hover { color: var(--gold); }
.lu-cat-count { font-size: 11px; color: #bbb; }

/* 最新記事 */
.lu-recent-list { list-style: none; padding: 0; margin: 0; }
.lu-recent-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.lu-recent-item:last-child { margin: 0; padding: 0; border: none; }
.lu-recent-item a { display: flex; gap: 10px; text-decoration: none; color: inherit; }
.lu-recent-thumb { width: 60px; height: 60px; flex-shrink: 0; overflow: hidden; }
.lu-recent-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; }
.lu-recent-body { flex: 1; }
.lu-recent-title { font-size: 12px; line-height: 1.6; color: var(--text); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lu-recent-date { font-size: 11px; color: var(--text-muted); margin: 0; }
