/*
Theme Name: yuta.kmusiclife.com
Theme URI: https://yuta.kmusiclife.com
Author: 小西裕太 (Yuta Konishi)
Author URI: https://yuta.kmusiclife.com
Description: Personal portfolio and blog theme for Yuta Konishi
Version: 1.1.5
License: Private
Text Domain: yuta-kmusiclife
*/

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { border: none; background: none; padding: 0; font-size: inherit; font-weight: inherit; font-family: inherit; cursor: pointer; color: inherit; }
button:focus, button:focus-visible, a:focus, a:focus-visible { outline: none; }

/* ========================================
   Navigation
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled,
.site-header.menu-open {
  border-bottom-color: #e8e8e8;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #111;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #111;
  transition: all 0.25s;
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  color: #777;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.nav-link:hover { color: #111; }
.nav-link.active { color: #111; border-bottom-color: #111; }
.mobile-menu { display: none; }
.mobile-menu-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 24px;
  font-size: 15px;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #f5f5f5;
}

@media (max-width: 767px) {
  .nav-inner { padding: 0 20px; }
  .nav-logo { font-size: 16px; }
  .hamburger { display: flex; }
  .desktop-nav { display: none; }
  .mobile-menu {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 199;
    padding: 8px 0 40px;
    overflow-y: auto;
    border-top: 1px solid #e8e8e8;
  }
  .mobile-menu.hidden { display: none; }
}

/* ========================================
   Footer
======================================== */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 40px 48px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #333;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-link {
  font-size: 12px;
  color: #999;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.15s;
}
.footer-link:hover { color: #333; }
.footer-copy {
  font-size: 11px;
  color: #ccc;
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 20px;
}

@media (max-width: 639px) {
  .site-footer { padding: 32px 20px 24px; }
  .footer-row { align-items: flex-start; gap: 24px; }
  .footer-nav { gap: 8px 20px; }
}

/* ========================================
   Article Body (WordPress content)
======================================== */
.article-body h2, .article-body h3, .article-body h4 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.article-body h2 { font-size: 20px; margin: 44px 0 18px; }
.article-body h3 { font-size: 18px; margin: 36px 0 14px; }
.article-body h4 { font-size: 16px; margin: 28px 0 12px; }
.article-body p  { margin-bottom: 26px; }
.article-body a  { color: #2563eb; text-decoration: underline; }
.article-body strong { font-weight: 700; }

/* images & figures */
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 6px; display: block; }
.article-body figcaption, .article-body .wp-element-caption {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  line-height: 1.7;
}
.article-body .wp-block-image { margin: 32px 0; }
.article-body .wp-block-image img { width: 100%; height: auto; border-radius: 6px; display: block; }
.article-body .wp-block-image.is-resized { margin-left: auto; margin-right: auto; }
.article-body .wp-block-image.is-resized img { width: auto; max-width: 100%; }

/* blockquote */
.article-body blockquote, .article-body .wp-block-quote {
  border-left: 3px solid #ddd;
  padding: 16px 24px;
  margin: 32px 0;
  color: #666;
  font-style: italic;
  background: #fafafa;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* lists */
.article-body ul, .article-body ol, .article-body .wp-block-list {
  margin: 0 0 26px 1.5em;
  padding: 0;
}
.article-body li { margin-bottom: 8px; line-height: 1.9; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li > ul, .article-body li > ol { margin-top: 8px; margin-bottom: 0; }

/* table */
.article-body table, .article-body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.article-body .wp-block-table { margin: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body table th, .article-body table td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.article-body table th { background: #f5f5f5; font-weight: 600; color: #333; }
.article-body table td { color: #555; }
.article-body table tbody tr:nth-child(even) td { background: #fafafa; }
.article-body .wp-block-table.is-style-stripes table { border: none; }
.article-body .wp-block-table.is-style-stripes th,
.article-body .wp-block-table.is-style-stripes td { border: none; border-bottom: 1px solid #eee; }
.article-body .has-text-align-center { text-align: center; }
.article-body .has-text-align-right { text-align: right; }

/* gallery */
.article-body .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  list-style: none;
  padding: 0;
}
.article-body .wp-block-gallery figure { margin: 0; flex: 1 1 calc(50% - 4px); min-width: 120px; }
.article-body .wp-block-gallery img { width: 100%; height: auto; display: block; border-radius: 4px; object-fit: cover; }

/* YouTube / embed */
.article-body .wp-block-embed { margin: 28px 0; width: 100%; }
.article-body .wp-block-embed .wp-block-embed__wrapper { width: 100%; }
.article-body .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.article-body .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
.article-body > iframe[src*="youtube"],
.article-body > iframe[src*="google.com/maps"] {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 6px;
  display: block;
  margin: 28px 0;
}

/* WordPress internal post embed */
.article-body .wp-block-embed__wrapper iframe.wp-embedded-content { display: none; }
.article-body .wp-block-embed__wrapper blockquote.wp-embedded-content {
  border-left: 3px solid #e0e0e0;
  padding: 12px 16px;
  margin: 0;
  background: #fafafa;
  border-radius: 4px;
  font-style: normal;
}
.article-body .wp-block-embed__wrapper blockquote.wp-embedded-content a {
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.article-body .wp-block-embed__wrapper blockquote.wp-embedded-content a:hover { color: #2563eb; }

/* buttons */
.article-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.article-body .wp-block-button__link,
.article-body .wp-element-button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.article-body .wp-block-button__link:hover { opacity: 0.8; }

/* Bootstrap grid */
.article-body .wp-bootstrap-blocks-row,
.article-body .row { display: flex; flex-wrap: wrap; margin-left: -8px; margin-right: -8px; }
.article-body .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; box-sizing: border-box; }
.article-body .col-12 { width: 100%; }
.article-body .col-9  { width: 75%; }
.article-body .col-8  { width: 66.666%; }
.article-body .col-7  { width: 58.333%; }
.article-body .col-6  { width: 50%; }
.article-body .col-5  { width: 41.666%; }
.article-body .col-4  { width: 33.333%; }
.article-body .col-3  { width: 25%; }

/* hr */
.article-body hr { border: none; border-top: 1px solid #e0e0e0; margin: 40px 0; }
.article-body .has-small-font-size { font-size: 13px; }

@media (max-width: 640px) {
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 16px; }
  .article-body h4 { font-size: 15px; }
  .article-body table { font-size: 12px; }
  .article-body table th, .article-body table td { padding: 8px 10px; }
  .article-body .wp-block-gallery figure { flex: 1 1 100%; }
  .article-body .row > [class*="col-"],
  .article-body [class*="col-md-"] { width: 100%; }
}
@media (min-width: 641px) {
  .article-body .col-md-9  { width: 75%; }
  .article-body .col-md-8  { width: 66.666%; }
  .article-body .col-md-7  { width: 58.333%; }
  .article-body .col-md-6  { width: 50%; }
  .article-body .col-md-5  { width: 41.666%; }
  .article-body .col-md-4  { width: 33.333%; }
  .article-body .col-md-3  { width: 25%; }
}

/* ========================================
   Top Page - Profile Section
======================================== */
.top-profile {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 48px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: center;
  border-bottom: 1px solid #ebebeb;
}
.top-profile-left {}
.top-profile-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.profile-photo-link {
  display: block;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.25s;
}
.profile-photo-link:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.profile-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.profile-photo-link:hover img { transform: scale(1.07); }
.top-location {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #bbb;
  margin-bottom: 8px;
}
.top-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #111;
  line-height: 1;
  margin-bottom: 10px;
}
.top-name-bar {
  width: 32px;
  height: 2px;
  background: #111;
}
.top-bio {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 2.1;
  color: #555;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.top-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 32px;
}
.top-tag {
  font-size: 11px;
  color: #888;
  background: #f3f3f3;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.4;
}
.top-profile-btn {
  display: inline-block;
  border: 1px solid #111;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-family: 'Noto Sans JP', sans-serif;
  color: #111;
  transition: all 0.2s;
}
.top-profile-btn:hover { background: #111; color: #fff; }

/* Topics */
.top-topics {}
.top-topic-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  transition: background 0.15s;
}
.top-topic-item:hover { background: #fafafa; }
.top-topic-label {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.top-topic-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: #ccc;
  letter-spacing: 0.08em;
}
.top-topic-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  margin: 4px 0 0;
}

/* Top sections */
.top-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px;
}
.top-latest { padding-bottom: 100px; }
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}
.section-heading-inner {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}
.section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: #ccc;
}
.see-all {
  font-size: 12px;
  color: #aaa;
  font-family: 'Noto Sans JP', sans-serif;
  transition: color 0.15s;
  margin-left: auto;
}
.see-all:hover { color: #333; }

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.work-card:hover { border-color: #ccc; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.work-card-accent { height: 3px; }
.work-card-body { padding: 18px 20px 20px; }
.work-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.work-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.work-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #aaa;
}
.work-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.6;
  margin: 0 0 6px;
}
.work-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

/* Latest articles */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}

@media (max-width: 1023px) {
  .top-profile { padding: 56px 32px 48px; gap: 0 40px; }
  .profile-photo-link { width: 96px; height: 96px; }
  .top-name { font-size: 48px; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .top-section { padding: 48px 32px; }
  .top-latest { padding-bottom: 72px; }
}

@media (max-width: 767px) {
  .top-profile { padding: 40px 20px; grid-template-columns: 1fr; gap: 40px 0; }
  .top-profile-header { align-items: center; gap: 16px; }
  .profile-photo-link { width: 80px; height: 80px; }
  .top-name { font-size: clamp(32px, 8vw, 44px); }
  .top-bio { font-size: 14px; }
  .top-topics { border-top: 1px solid #ebebeb; padding-top: 32px; }
  .section-title { font-size: 17px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work-card-body { padding: 14px 14px 16px; }
  .work-title { font-size: 13px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .top-section { padding: 40px 20px; }
  .top-latest { padding-bottom: 60px; }
}

/* ========================================
   Article Card
======================================== */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card-thumb {
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #f5f5f5;
  margin-bottom: 12px;
}
.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}
.article-card:hover .article-card-thumb img { transform: scale(1.05); }
.article-card-date {
  font-size: 11px;
  color: #bbb;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 6px;
}
.article-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
  color: #1a1a1a;
  letter-spacing: 0.03em;
  margin: 0;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card:hover .article-card-title { color: #000; }
.article-card-bar {
  margin-top: 10px;
  height: 1px;
  background: #111;
  width: 0%;
  transition: width 0.3s;
}
.article-card:hover .article-card-bar { width: 100%; }

/* ========================================
   Single Post
======================================== */
.single-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 48px 0;
}
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #bbb;
  flex-wrap: wrap;
}
.breadcrumb-link { font-size: 12px; color: #bbb; transition: color 0.15s; }
.breadcrumb-link:hover { color: #555; }
.cat-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-tag {
  font-size: 11px;
  color: #888;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
}
.single-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0 0 16px;
}
.single-meta {
  display: flex;
  gap: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 28px;
}
.single-featured-img {
  overflow: hidden;
  border-radius: 6px;
}
.single-featured-img img { width: 100%; height: auto; display: block; }
.single-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 48px 100px;
}
.single-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2.1;
  color: #333;
  letter-spacing: 0.04em;
}
.single-footer-bar {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid #ebebeb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-btn {
  display: inline-block;
  border: 1px solid #ddd;
  padding: 10px 20px;
  font-size: 12px;
  color: #777;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.back-btn:hover { border-color: #111; color: #111; }
.single-watermark {
  font-size: 12px;
  color: #ddd;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

/* Related articles */
.related-section {
  border-top: 1px solid #ebebeb;
  background: #fafafa;
  padding: 56px 48px 80px;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
.related-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.related-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: #ccc;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}

/* Two-column layout (with supplement sidebar) */
.single-content-wrap.has-sidebar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: start;
}
.single-content-wrap.has-sidebar .single-header {
  max-width: none;
  padding: 48px 0 0;
}
.single-content-wrap.has-sidebar .single-main {
  max-width: none;
  padding: 36px 0 100px;
}
.single-sidebar {
  position: sticky;
  top: 72px;
  padding: 36px 0 60px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.single-sidebar-inner {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #faf7f2;
}

@media (max-width: 1023px) {
  .single-header { padding: 48px 32px 0; }
  .single-main { padding: 36px 32px 100px; }
  .single-content-wrap.has-sidebar {
    padding: 0 32px;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .single-content-wrap.has-sidebar .single-header {
    padding: 48px 0 0;
  }
  .single-content-wrap.has-sidebar .single-main {
    padding: 36px 0 40px;
  }
  .single-sidebar {
    position: static;
    max-height: none;
    padding: 0 0 60px;
  }
}
@media (max-width: 639px) {
  .single-header { padding: 32px 20px 0; }
  .single-title { font-size: clamp(20px, 5.5vw, 26px); }
  .single-main { padding: 28px 20px 72px; }
  .single-body { font-size: 15px; }
  .single-content-wrap.has-sidebar {
    padding: 0 20px;
  }
  .single-content-wrap.has-sidebar .single-header {
    padding: 32px 0 0;
  }
  .single-content-wrap.has-sidebar .single-main {
    padding: 28px 0 32px;
  }
  .related-section { padding: 40px 20px 60px; }
  .related-title { font-size: 16px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

/* ========================================
   Archive / Category Pages
======================================== */
.archive-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 32px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.archive-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
  line-height: 1;
}
.archive-en {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: #ccc;
  letter-spacing: 0.08em;
}
.archive-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px 80px;
}
.archive-filter {
  overflow-x: auto;
  margin-bottom: 40px;
  border-bottom: 1px solid #e8e8e8;
}
.archive-filter-inner {
  display: flex;
  min-width: max-content;
  align-items: center;
}
.filter-tab {
  padding: 10px 18px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #aaa;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.filter-tab:hover { color: #555; }
.filter-tab.active { font-weight: 600; color: #111; border-bottom-color: #111; }
.filter-count {
  margin-left: auto;
  padding-left: 16px;
  font-size: 12px;
  color: #ddd;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.archive-article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.archive-article-thumb {
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #f5f5f5;
  margin-bottom: 14px;
}
.archive-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.archive-article-card:hover .archive-article-thumb img { transform: scale(1.04); }
.archive-article-date {
  font-size: 11px;
  color: #bbb;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 8px;
}
.archive-article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.15s;
}
.archive-article-card:hover .archive-article-title { color: #000; }
.archive-article-bar {
  margin-top: 12px;
  height: 1px;
  background: #111;
  width: 0%;
  transition: width 0.35s;
}
.archive-article-card:hover .archive-article-bar { width: 100%; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-numbers li {
  list-style: none;
}
li .page-numbers,
li.page-numbers {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #777;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.15s;
}
.page-numbers:hover { border-color: #111; color: #111; }
.page-numbers.current { background: #111; color: #fff; border-color: #111; }
.page-numbers.dots { border-color: transparent; }

@media (max-width: 1023px) {
  .archive-header { padding: 48px 32px 32px; }
  .archive-main { padding: 32px 32px 80px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
}
@media (max-width: 639px) {
  .archive-header { padding: 48px 20px 32px; }
  .archive-title { font-size: clamp(22px, 6vw, 28px); }
  .archive-en { font-size: clamp(16px, 5vw, 22px); }
  .archive-main { padding: 32px 20px 80px; }
  .archive-grid { grid-template-columns: 1fr; gap: 40px 0; }
}

/* ========================================
   WordPress Pages (page.php)
======================================== */
.wp-page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 48px 0;
}
.wp-page-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0 0 16px;
}
.wp-page-featured-img {
  overflow: hidden;
  border-radius: 6px;
  margin-top: 12px;
}
.wp-page-featured-img img { width: 100%; height: auto; display: block; }
.wp-page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 48px 100px;
}
.wp-page-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2.1;
  color: #333;
  letter-spacing: 0.04em;
}
.wp-page-footer-bar {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid #ebebeb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1023px) {
  .wp-page-header { padding: 48px 32px 0; }
  .wp-page-main { padding: 36px 32px 100px; }
}
@media (max-width: 639px) {
  .wp-page-header { padding: 32px 20px 0; }
  .wp-page-title { font-size: clamp(20px, 5.5vw, 26px); }
  .wp-page-main { padding: 28px 20px 72px; }
  .wp-page-body { font-size: 15px; }
}

/* ========================================
   404 Page
======================================== */
.not-found {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 48px 160px;
  text-align: center;
}
.not-found-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: #ebebeb;
  line-height: 1;
  letter-spacing: 0.1em;
}
.not-found-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 24px 0 12px;
}
.not-found-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #999;
  line-height: 2;
  margin-bottom: 40px;
}
.not-found-btn {
  display: inline-block;
  border: 1px solid #111;
  padding: 12px 36px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.1em;
  color: #111;
  transition: all 0.2s;
}
.not-found-btn:hover { background: #111; color: #fff; }

@media (max-width: 639px) {
  .not-found { padding: 80px 20px 120px; }
  .not-found-number { font-size: 80px; }
}

/* ========================================
   Book Promotion Banner
======================================== */
.book-promo {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 340px;
  background: #fff;
  border: 1px solid #e0dcd6;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}
.book-promo.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.book-promo-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  z-index: 1;
  transition: color 0.15s;
}
.book-promo-close:hover { color: #333; }
.book-promo-link {
  display: block;
  padding: 16px 18px 14px;
  text-decoration: none;
  color: inherit;
}
.book-promo-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.book-promo-img {
  width: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.book-promo-text {
  flex: 1;
  min-width: 0;
}
.book-promo-badge {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #8b7355;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.book-promo-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 4px;
}
.book-promo-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: #888;
  line-height: 1.6;
  margin: 0;
}
.book-promo-cta {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ede8;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #8b7355;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transition: color 0.15s;
}
.book-promo-link:hover .book-promo-cta { color: #5a4a35; }

@media (max-width: 639px) {
  .book-promo {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}
