@charset "utf-8";
/*
Theme Name: momo
Author: dsmart
Description: Clean modern design inspired by momoniji.com
Version: v4.0.0
*/

/* ===== DESIGN PHILOSOPHY =====
Tone: Clean, modern content site with good readability
Typography: Sans-serif for body, display font for headings
Color: Dark backgrounds + Yellow-green accent
Motion: Subtle transitions for better UX
Differentiation: Clean layouts with clear hierarchy
================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  /* Color System - Inspired by momoniji.com */
  --pointcolor: #dde6b6;

  --bg-deepest: #111;
  --bg-deep: #111;
  --bg-surface: #222;
  --bg-elevated: #333;

  --text-primary: #fff;
  --text-secondary: #fff;
  --text-tertiary: #999;

  --accent-red: #dde6b6;
  --accent-red-dim: #c5d19a;
  --accent-red-glow: rgba(221, 230, 182, 0.15);

  --border-subtle: #333;
  --border-visible: #444;

  /* Typography */
  --font-display: 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

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

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
blockquote, a, pre, abbr, address, cite, code, del, dfn, em, img,
ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd,
ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details,
figcaption, figure, footer, header, hgroup, menu, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

/* ===== BASE STYLES ===== */
html {
  background: var(--bg-deepest);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  width: 100%;
  height: 100%;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ===== LAYOUT ===== */
.wrapper {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ===== HEADER ===== */
header {
  background: var(--bg-deep);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1000;
}

.header-logo {
  text-align: center;
}

.header-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  padding: 10px 0;
}

.header-title a {
  color: var(--accent-red);
  text-decoration: none;
}

.header-title a:hover {
  color: var(--text-primary);
}

.subtitle {
  display: none;
}

/* ===== NAVIGATION ===== */
.menu {
  background: var(--bg-surface);
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 9998;
  margin: 0 auto;
}

.menu a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 15px;
  margin: 0 4px;
  border: 1px solid transparent;
  display: inline-block;
}

.menu a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: var(--accent-red-glow);
}

/* ===== BREADCRUMB ===== */
#cp_breadcrumb {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 5px;
  background-color: var(--bg-surface);
}

#cp_breadcrumb:after {
  content: "";
  width: 1px;
  height: 1px;
  display: block;
  clear: both;
}

#cp_breadcrumb .breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

#cp_breadcrumb li {
  float: left;
  margin-right: 25px;
  position: relative;
}

#cp_breadcrumb li::after {
  content: '>';
  position: relative;
  right: -15px;
}

#cp_breadcrumb li:last-child {
  margin-right: 0;
}

#cp_breadcrumb li:last-child::after {
  display: none;
}

#cp_breadcrumb a {
  color: var(--text-primary);
}

#cp_breadcrumb span {
  float: left;
  position: relative;
  width: auto;
  max-width: 500px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* ===== ARTICLE PAGE ===== */
#single-article {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  max-width: 740px;
  border: none;
}

.single-post-title {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  color: var(--text-secondary);
  background: transparent;
  padding: 20px 10px;
  margin: 0;
  border-bottom: none;
  border-radius: 0;
}

/* Tags & Categories */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 30px;
  margin: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.post-categories li {
  list-style: none;
  margin: 0;
}

.post-categories li a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  border-radius: 0;
}

.post-categories li a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: var(--accent-red-glow);
}

/* Date */
.single-time {
  padding: 8px 10px 15px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-tertiary);
  background: transparent;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.single-time .material-symbols-outlined {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Featured Image */
#featured-image {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 5px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#featured-image img {
  width: 100%;
  max-width: 640px;
  height: 480px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border: none;
}

/* Article Content */
.post-content {
  padding: 20px 10px 30px;
  margin: 30px auto 0 auto;
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  background: transparent;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--text-secondary);
  margin: 40px 0 15px 0;
  padding: 10px 0;
  border: none;
  background: none;
  border-radius: 0;
}

.post-content h2:first-child,
.post-content h2:first-of-type {
  margin-top: 0;
}

.post-content h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content p {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
}

.post-content a {
  color: var(--accent-red);
  border-bottom: 1px solid var(--accent-red-dim);
}

.post-content a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.post-content img {
  width: 100%;
  height: auto;
  margin: 30px 0;
  border: 1px solid var(--border-subtle);
  display: block;
}

.article-image {
  margin: 3px 0;
  border: none;
  background: transparent;
  padding: 0;
}

.article-image img {
  width: 100%;
  margin: 0;
  border: none;
  display: block;
}

/* More Read Button */
.more-read {
  margin: 40px 0;
  padding: 0 30px 40px 30px;
}

.more-read a {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-primary);
  border: 3px solid var(--accent-red);
  font-weight: 400;
  position: relative;
  overflow: hidden;
  border-radius:calc(infinity * 1px);
}

.more-read a:hover {
  background: var(--bg-elevated);
  color: var(--accent-red);
  border-color: var(--accent-red);
  border-width: 3px;
}

/* Review Section */
.review-comment {
  padding: 20px;
  margin: 0 0 20px 0;
  background: var(--bg-elevated);
}

.review-comment h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  text-transform: uppercase;
}

.review-comment p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ===== POST GRID ===== */
.posts-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
  margin: 0 auto;
  max-width: 100%;
}

.posts-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  height: 380px;
  display: flex;
  flex-direction: column;
}

.posts-container:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.posts-container .thum-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.posts-container .thum-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.1);
}

.posts-container:hover .thum-img img {
  filter: brightness(1) contrast(1.15);
}

.posts-container > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-title {
  padding: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section Headings */
.detail {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 0;
  margin: 30px 0 18px 0;
  border: none;
  border-radius: 0;
}

/* ===== SEARCH FORM ===== */
.searchform {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  gap: 0;
}

.searchform input[type="search"] {
  width: 70%;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  border-right: none;
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 11px;
}

.searchform input[type="search"]::placeholder {
  color: var(--text-tertiary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.searchform input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-red);
  background: var(--bg-elevated);
}

.searchform input[type="submit"] {
  width: 25%;
  height: 32px;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 0;
  color: #000;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
}

.searchform input[type="submit"]:hover {
  background: transparent;
  color: var(--accent-red);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-deep);
  border-top: 2px solid var(--accent-red);
  padding: 30px 0;
  margin: 60px auto 0;
  max-width: 900px;
  text-align: center;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  border: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-red);
  border: none;
}

.copyright {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}

/* ===== PAGINATION ===== */
.pagination {
  text-align: center;
  margin: 40px 0;
}

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

.pagination li {
  display: inline-block;
  list-style: none;
}

.page-numbers li {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin: 0 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
}

.page-numbers li:hover,
.page-numbers li.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #000;
}

.pagination a {
  display: block;
  color: var(--text-secondary);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
}

.pagination a:hover,
.pagination .current {
  color: #000;
  border: none;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 13px;
  background: var(--bg-elevated);
}

th {
  background: var(--bg-deep);
  color: var(--accent-red);
  padding: 12px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid var(--border-subtle);
}

td {
  padding: 12px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

table td a {
  color: var(--accent-red);
  border-bottom: 1px solid transparent;
}

table td a:hover {
  border-bottom-color: var(--accent-red);
}

/* ===== MOBILE HAMBURGER MENU ===== */
.drawer_hidden {
  display: none;
}

.drawer_open {
  display: none;
}

.nav_content {
  display: none;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media screen and (max-width: 640px) {
  /* ヘッダー固定（追従） */
  header {
    position: sticky;
    top: 0;
    background: var(--bg-deep);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }

  .header-logo {
    position: relative;
    padding: 0 60px 0 0;
  }

  .header-title {
    font-size: 24px;
    padding: 16px 12px;
  }

  .menu {
    display: none;
  }

  /* Mobile Navigation */
  .nav {
    display: block;
  }

  .drawer_open {
    display: flex;
    height: 48px;
    width: 48px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    background: transparent;
  }

  .drawer_open span,
  .drawer_open span:before,
  .drawer_open span:after {
    content: '';
    display: block;
    height: 2px;
    width: 22px;
    background: var(--accent-red);
    position: absolute;
    transition: all 0.3s ease;
  }

  .drawer_open span:before {
    bottom: 7px;
  }

  .drawer_open span:after {
    top: 7px;
  }

  #drawer_input:checked ~ .drawer_open span {
    background: transparent;
  }

  #drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
  }

  #drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav_content {
    width: 80%;
    position: fixed;
    top: 0;
    right: -80%;
    z-index: 99;
    background: var(--bg-deep);
    border-left: 3px solid var(--accent-red);
    height: 100vh;
    display: block;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
  }

  #drawer_input:checked ~ .nav_content {
    right: 0;
  }

  .nav_list {
    list-style: none;
    padding: 80px 0 40px 0;
    margin: 0;
  }

  .nav_item {
    margin: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav_item a {
    display: block;
    padding: 20px 24px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
  }

  .nav_item a:hover,
  .nav_item a:active {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    padding-left: 28px;
  }

  .single-post-title {
    font-size: 18px;
    padding: 15px 15px 12px;
  }

  .post-categories {
    padding: 15px 20px;
  }

  .single-time {
    padding: 6px 15px 12px;
    font-size: 11px;
  }

  #featured-image {
    margin: 0 auto 3px;
    padding: 0 18px;
  }

  #featured-image img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  .article-image {
    margin: 2px 0;
  }

  .post-content {
    padding: 15px 18px 20px;
    margin: 20px auto 0 auto;
    font-size: 13px;
  }

  .post-content h2 {
    font-size: 13px;
    margin: 20px 0 12px 0;
    padding: 12px 10px;
  }

  .more-read {
    padding: 0 20px 30px 20px;
  }

  .posts-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 15px;
  }

  .posts-container {
    height: 260px;
  }

  .posts-container .thum-img {
    height: 180px;
  }

  .post-title {
    font-size: 10px;
    padding: 12px;
    -webkit-line-clamp: 2;
  }

  .detail {
    font-size: 18px;
    padding: 8px 0;
    margin: 20px 0 15px 0;
  }

  .searchform input[type="search"] {
    width: 65%;
  }

  .searchform input[type="submit"] {
    width: 30%;
    font-size: 14px;
  }

  #cp_breadcrumb {
    font-size: 10px;
    padding: 10px 12px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #cp_breadcrumb span {
    max-width: 200px;
  }

  #cp_breadcrumb li {
    margin-right: 15px;
  }

  #cp_breadcrumb li::after {
    right: -8px;
  }

  /* Recent Posts Label */
  .recent-posts-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    padding: 15px 0 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* Mobile Contents Grid */
  .contents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 5px 15px 20px;
    margin: 0 auto;
  }

  .contents .post {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    height: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

  .contents .post:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
  }

  .contents .post .thumbnail {
    width: 100%;
    height: 190px;
    overflow: hidden;
  }

  .contents .post .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
  }

  .contents .post:hover .thumbnail img {
    filter: brightness(1) contrast(1.15);
  }

  .contents .post .title {
    padding: 12px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    text-transform: uppercase;
    flex: 1;
    overflow: hidden;
  }

  .contents .post .title a {
    color: var(--text-primary);
    border: none;
    pointer-events: none;
  }

  .contents .post .post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
  }

  .contents .post .kigi {
    display: none;
  }

  .contents .post .time {
    display: none;
  }

  .contents .post .post-partition {
    display: contents;
  }

  .contents .post .posts-partition {
    display: contents;
  }

  /* Pagination Mobile */
  .pagination {
    padding: 20px 12px;
    margin: 30px 0;
  }

  .pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    margin: 0 2px;
  }
}

/* ===== DESKTOP GRID ===== */
@media screen and (min-width: 641px) {
  .recent-posts-label {
    font-size: 10px;
    padding: 25px 0 5px;
  }

  .contents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 0 30px;
    margin: 0 auto;
  }

  .contents .post {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

  .contents .post:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
  }

  .contents .post .thumbnail {
    width: 100%;
    height: 260px;
    overflow: hidden;
  }

  .contents .post .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.1);
  }

  .contents .post:hover .thumbnail img {
    filter: brightness(1) contrast(1.15);
  }

  .contents .post .title {
    padding: 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    text-transform: uppercase;
    flex: 1;
    overflow: hidden;
  }

  .contents .post .title a {
    color: var(--text-primary);
    border: none;
    pointer-events: none;
  }

  .contents .post .post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
  }

  .contents .post .kigi {
    display: none;
  }

  .contents .post .time {
    display: none;
  }

  .nav {
    display: none;
  }
}

/* ===== POPULAR POSTS (人気記事) ===== */
.main-midasi {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: left;
  background: var(--bg-deepest);
  color: var(--text-primary);
  padding: 20px 0;
  margin: 50px 0 25px 0;
  border-left: 5px solid var(--accent-red);
  padding-left: 16px;
  position: relative;
}

.main-midasi::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-red);
}

.main-midasi::after {
  content: 'TOP 10';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.1;
  letter-spacing: 5px;
}

/* ===== POPULAR TAGS (人気タグ) ===== */
.popular-tags-section {
  margin: 40px 0;
  padding: 0;
}

.popular-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.popular-tags-wrapper > div {
  display: inline-block;
}

.popular-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.popular-tag:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-red);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.popular-tag .tag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.popular-tag:hover .tag-count {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--accent-red);
  color: var(--accent-red);
}

@media (max-width: 600px) {
  /* セクション全般のモバイル調整 */
  .popular-tags-section {
    padding: 0 15px;
  }

  .popular-tags-wrapper {
    gap: 8px;
  }

  .popular-tag {
    padding: 8px 12px;
    font-size: 13px;
  }

  .popular-tag .tag-count {
    min-width: 20px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
  }
}

.main-rankings {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 60px 0;
  margin: 0 auto;
  max-width: 100%;
  background: var(--bg-deepest);
  counter-reset: ranking;
}

.main-ranking {
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  overflow: hidden;
  position: relative;
  min-height: 140px;
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  align-items: center;
  counter-increment: ranking;
}

.main-ranking::before {
  content: counter(ranking);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 700;
}

.main-ranking:nth-child(1)::before,
.main-ranking:nth-child(2)::before,
.main-ranking:nth-child(3)::before {
  color: var(--accent-red);
}

.main-ranking:hover {
  background: var(--bg-elevated);
}

.main-ranking-image {
  width: 200px;
  height: 120px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.main-ranking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-ranking-title {
  padding: 20px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.main-ranking-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

@media (max-width: 600px) {
  .main-midasi {
    font-size: 22px;
    letter-spacing: 1.8px;
    padding: 16px 0 16px 12px;
    margin: 35px 0 18px 0;
    border-left-width: 4px;
  }

  .main-midasi::before {
    width: 4px;
  }

  .main-midasi::after {
    font-size: 32px;
    right: 10px;
    letter-spacing: 3px;
    opacity: 0.08;
  }

  .main-ranking {
    grid-template-columns: 50px 140px 1fr;
    min-height: 100px;
  }

  .main-ranking::before {
    font-size: 22px;
    padding: 0 10px;
  }

  .main-ranking-image {
    width: 140px;
    height: 90px;
  }

  .main-ranking-title {
    padding: 15px;
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
}

/* ===== TAG SECTION (SAMPLE STYLE) ===== */
.tga {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 20px 0 5px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.tga:before {
  content: "Tags:";
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.tga a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-visible);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin: 3px 4px 3px 0;
  border-bottom: 1px solid var(--border-visible);
}

.tga a:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-red);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid var(--accent-red);
}

/* ===== WORK INFO SIMPLE ===== */
.work-info-simple {
  background: transparent;
  border: none;
  padding: 15px 0 0 0;
  margin: 20px auto 0 auto;
  max-width: 640px;
}

.work-info-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: none;
}

.work-info-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  min-width: 80px;
  flex-shrink: 0;
}

.work-info-value {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-body);
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 600px) {
  .work-info-simple {
    padding: 0px 18px 0 18px;
    margin: 15px 0 0 0;
  }

  .work-info-item {
    padding: 6px 0;
  }

  .work-info-label {
    font-size: 12px;
    min-width: 70px;
  }

  .work-info-value {
    font-size: 13px;
  }
}

/* ===== READING NOTICE BOX ===== */
.reading-notice-box {
  background: transparent;
  border: 2px solid var(--border-visible);
  padding: 15px;
  margin: 15px auto;
  max-width: 640px;
}

.reading-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-visible);
}

.reading-notice-icon {
  color: var(--accent-red);
  font-size: 14px;
  font-weight: 700;
}

.reading-notice-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  line-height: 1.4;
  flex: 1;
}

.reading-notice-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reading-notice-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reading-notice-label {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reading-notice-value {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-body);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .reading-notice-box {
    border: none;
    border-top: 2px solid var(--border-visible);
    border-bottom: 2px solid var(--border-visible);
    padding: 12px 18px;
    margin: 15px 0;
  }

  .reading-notice-header {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .reading-notice-icon {
    font-size: 12px;
  }

  .reading-notice-title {
    font-size: 13px;
  }

  .reading-notice-content {
    gap: 10px;
  }

  .reading-notice-label {
    font-size: 9px;
  }

  .reading-notice-value {
    font-size: 12px;
  }
}

/* ===== UPDATE INFO SECTION (更新情報・お知らせ) ===== */
.update-info-section {
  margin: 50px auto;
  padding: 40px 30px;
  background: #292929;
  max-width: 640px;
}

.update-info-section h2 {
  margin-bottom: 30px !important;
  text-align: center;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--text-secondary);
}

.update-info-box {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.update-info-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.update-info-item:last-of-type {
  border-bottom: none;
}

.update-info-label {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
}

.update-info-value {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-body);
  line-height: 1.8;
}

/* モバイル対応 */
@media (max-width: 600px) {
  .update-info-section {
    margin: 30px 18px;
    padding: 25px 18px;
  }

  .update-info-section h2 {
    margin-bottom: 20px !important;
    padding: 0;
  }

  .update-info-box {
    padding: 0;
  }

  .update-info-item {
    padding: 20px 0;
  }

  .update-info-label {
    font-size: 14px;
  }

  .update-info-value {
    font-size: 14px;
  }
}

/* ===== POST CONTENT SECTIONS ===== */

/* Hide empty paragraphs */
p:empty {
  display: none;
}

/* Hide unnecessary br tags */
br:only-child {
  display: none;
}

p > br:only-child {
  display: none;
}

/* Hide br tags after meta tags */
meta + br {
  display: none;
}

/* Ensure meta tags don't affect layout */
meta {
  display: none !important;
}

/* Hide empty paragraphs around specific sections */
.work-info-simple + p:empty,
.work-details-box + p:empty,
.reading-notice-box + p:empty,
.update-info-section + p:empty,
.related-posts-section + p:empty,
section + p:empty,
article + p:empty {
  display: none;
}

/* ===== DATA TABLE (SAMPLE STYLE) ===== */
.data {
  font-size: 14px;
  width: 100%;
  max-width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  background: var(--bg-surface);
  border-radius: 5px;
  overflow: hidden;
}

.data th {
  font-weight: 400;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  border-bottom: solid 2px var(--accent-red);
  width: 200px;
  padding: 12px 15px;
  text-align: left;
  background: var(--bg-deep);
  color: var(--text-secondary);
}

.data td {
  font-weight: 400;
  font-family: var(--font-body);
  border-bottom: solid 1px var(--border-visible);
  padding: 12px 15px;
  color: var(--text-primary);
}

.data tr:last-child td {
  border-bottom: none;
}

/* ===== REVIEWS SECTION (SAMPLE STYLE) ===== */
.reviews {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 30px 0;
  padding: 20px;
  background-color: var(--bg-surface);
  border-radius: 5px;
}

.reviews h2 {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  color: var(--accent-red);
  position: relative;
  border: none;
  background: none;
  padding: 0 0 10px 0;
}

.reviews h2:after {
  content: "";
  background-color: var(--accent-red);
  width: 120px;
  height: 2px;
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.reviews .review-comment,
.reviews dl {
  display: block;
  margin: 0 0 15px;
  padding: 15px 0;
  border-top: dotted 1px var(--border-visible);
  width: 100%;
}

.reviews .review-comment:first-of-type,
.reviews dl:first-of-type {
  border-top: none;
}

.reviews .review-comment h3,
.reviews dl dt {
  display: block;
  margin: 0 0 10px;
  padding: 0 10px;
  border-left: 4px solid var(--accent-red);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.reviews .review-comment p,
.reviews dl dd {
  display: block;
  margin: 0;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
}

/* ===== ORIGINAL CONTENT SECTIONS ===== */
.original-content-sections {
  margin: 40px 0;
  padding: 0;
}

.original-section {
  margin: 20px 0;
  padding: 0;
  background: #292929;
}

.original-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  text-align: center;
  background: transparent;
  color: var(--text-primary);
  padding: 20px 25px 12px 25px;
  margin: 0;
  border: none;
}

.original-section p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 0 25px 20px 25px;
  margin: 0;
  text-align: left;
}

@media (max-width: 600px) {
  .tga {
    gap: 0;
    padding: 15px 18px 5px;
    margin: 0;
  }

  .tga:before {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .tga a {
    padding: 5px 10px;
    font-size: 10px;
    margin: 2px 3px 2px 0;
  }

  .post-content h2 {
    font-size: 16px;
    padding: 8px 0;
    margin: 20px 0 12px 0;
  }

  .data {
    font-size: 12px;
    margin: 15px 0;
  }

  .data th {
    padding: 10px 8px;
    width: 35%;
    font-size: 11px;
  }

  .data td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .reviews {
    padding: 15px;
    margin: 20px 0;
  }

  .reviews h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .reviews h2:after {
    width: 90px;
  }

  .reviews .review-comment,
  .reviews dl {
    padding: 12px 0;
    margin: 0 0 10px;
  }

  .reviews .review-comment h3,
  .reviews dl dt {
    font-size: 13px;
    padding: 0 8px;
    border-left-width: 3px;
  }

  .reviews .review-comment p,
  .reviews dl dd {
    font-size: 12px;
    padding: 0 8px;
  }

  .original-section h2 {
    font-size: 16px;
    padding: 16px 18px 10px 18px;
    letter-spacing: 0.5px;
  }

  .original-section p {
    font-size: 13px;
    line-height: 1.7;
    padding: 0 18px 16px 18px;
  }
}

/* ===== UTILITY ===== */
.sidebar {
  display: none;
}

.kigi {
  display: none;
}

.time {
  display: none;
}

/* ===== MISC ===== */
input, button, textarea {
  font-family: var(--font-body);
}

input:focus, button:focus, textarea:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-red);
  color: #000;
}

::-moz-selection {
  background: var(--accent-red);
  color: #000;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  margin: 50px 0;
  padding: 30px 10px;
  background: #292929;
}

.reviews-section h2 {
  margin-bottom: 30px !important;
}

.review-comment {
  padding: 20px 0;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-red);
  padding-left: 20px;
}

.review-comment:last-child {
  margin-bottom: 0;
}

.review-comment h3 {
  font-size: 16px !important;
  margin-bottom: 12px !important;
}

.review-comment p {
  font-size: 14px;
  line-height: 1.8;
}

/* ===== FAQ SECTION ===== */
.faq-section-wrapper {
  margin: 50px 0;
  padding: 40px 30px;
  background: #292929;
}

.faq-section-wrapper h2 {
  margin-bottom: 30px !important;
}

.faq-item {
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.faq-question {
  margin-bottom: 10px !important;
}

.faq-answer {
  line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .reviews-section,
  .faq-section-wrapper {
    margin: 30px 0;
    padding: 25px 15px;
  }

  .reviews-section h2,
  .faq-section-wrapper h2 {
    margin-bottom: 20px !important;
  }

  .review-comment {
    padding: 20px 0;
    padding-left: 15px;
  }

  .faq-item {
    padding: 20px 0;
  }
}

/* ===== FIXED PAGES (About, Privacy, Contact) ===== */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 10px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 15px 0;
}

.page-content p {
  margin: 0 0 20px 0;
  color: var(--text-secondary);
}

.page-content ul {
  margin: 0 0 20px 20px;
  color: var(--text-secondary);
}

.page-content li {
  margin: 8px 0;
  line-height: 1.7;
}

.page-content a {
  color: var(--accent-red);
  border-bottom: 1px solid var(--accent-red-dim);
  text-decoration: none;
}

.page-content a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Mobile responsive */
@media screen and (max-width: 640px) {
  .page-content {
    padding: 15px 18px 20px;
    font-size: 13px;
  }

  .page-content h2 {
    font-size: 16px;
    margin: 25px 0 15px 0;
  }

  .page-content h3 {
    font-size: 14px;
    margin: 20px 0 12px 0;
  }

  .page-content p {
    margin: 0 0 15px 0;
  }

  .page-content ul {
    margin: 0 0 15px 15px;
  }
}

/* Section intro text for better AEO */
.section-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 15px auto 25px;
  max-width: 720px;
  line-height: 1.7;
  text-align: center;
}

@media screen and (max-width: 640px) {
  .section-intro {
    font-size: 12px;
    margin: 10px 15px 20px;
    text-align: left;
  }
}

/* Contact page specific styles */
.contact-intro {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid var(--accent-red);
}

.contact-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.contact-notice {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.contact-notice h3 {
  color: var(--accent-red);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
}

.contact-notice ul {
  margin: 15px 0 0 20px;
}

.contact-notice li {
  margin: 8px 0;
  line-height: 1.7;
}

.contact-form-section {
  background: var(--bg-surface);
  padding: 25px;
  border-radius: 8px;
  margin: 40px 0 30px;
  border: 2px solid var(--accent-red);
}

.contact-form-section h3 {
  color: var(--accent-red);
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.form-instruction {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* Comments section - centered for contact page */
#comments {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 10px;
}

.comment-respond {
  background: var(--bg-surface);
  padding: 30px;
  border-radius: 8px;
  margin: 0 auto;
}

.comment-reply-title {
  font-size: 18px;
  color: var(--accent-red);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.comment-form {
  max-width: 100%;
}

.comment-form p {
  margin-bottom: 20px;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-deep);
  border: 1px solid var(--border-visible);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}

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

.comment-form input[type="submit"] {
  background: var(--accent-red);
  color: var(--bg-deep);
  border: none;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  margin: 0 auto;
}

.comment-form input[type="submit"]:hover {
  background: var(--accent-red-dim);
  transform: translateY(-2px);
}

.comment-notes {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.required {
  color: var(--accent-red);
}

/* Comment list styles */
.commentlist {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.comment {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.comment-author {
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.comment-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 15px;
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Mobile responsive for contact and comments */
@media screen and (max-width: 640px) {
  .contact-intro,
  .contact-notice,
  .contact-form-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .contact-intro p,
  .contact-notice p {
    font-size: 13px;
  }

  .contact-notice h3,
  .contact-form-section h3 {
    font-size: 15px;
  }

  #comments {
    padding: 15px 10px;
  }

  .comment-respond {
    padding: 20px 15px;
  }

  .comment-reply-title {
    font-size: 16px;
  }

  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .comment-form input[type="submit"] {
    padding: 12px 30px;
    font-size: 14px;
  }
}
