@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP&display=swap');
@import url("https://use.typekit.net/lfx2xpr.css");
/*
Theme Name: merylomm
Theme URI: https://blog.merylomm.work/
Author: merylomm
Author URI: https://blog.merylomm.work/
Description: merylomm オリジナルブログテーマ - ナチュラル＆ミニマルデザイン
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: merylomm
Tags: blog, custom-menu, featured-images, one-column, two-columns
*/

/* ==============================
   CSS Variables
============================== */
:root {
  --color-bg: #FBF9F1;
  --color-bg-white: #ffffff;
  --color-bg-gray: #E5E1DA;
  --color-bg-brown: #44322E;
  --color-text: #555555;
  --color-text-light: #927F5F;
  --color-accent: #927F5F;
  --color-accent-teal: #058EBC;
  --color-tag-bg: #FBF9F1;
  --color-tag-active: #058EBC;
  --color-border: #058EBC;
  --font-logo: "circe-rounded", "LINE Seed JP", sans-serif;
  --font-heading: "LINE Seed JP", sans-serif;
  --font-nav: "LINE Seed JP", sans-serif;
  --font-body: "LINE Seed JP", 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(58, 53, 48, 0.10);
  --shadow-card: 0 2px 16px rgba(58, 53, 48, 0.10);
  --transition: 0.25s ease;
  --max-width: 1280px;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  letter-spacing: 0.088em;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.72;
}

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

ul {
  list-style: none;
}

/* ==============================
   Container
============================== */
#site-header,
#site-footer {
  flex-shrink: 0;
}

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

/* ==============================
   Main Content
============================== */
#site-main {
  flex: 1;
  min-width: 0;
}

#site-main,
.hero-section {
  flex: 1;
}

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

/* ==============================
   Header / Navigation
============================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-gray);
  height: 64px;
  display: flex;
  align-items: center;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
}

.site-logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  height: 38px;
  width: auto;
}

@media (max-width: 768px) {
  #site-header .container {
    padding: 0 16px;
  }
}

/* Nav */
#primary-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#primary-nav>ul {
  display: flex;
  align-items: flex-start;
  padding-top: 8px
}

#primary-nav>a {
  font-family: var(--font-nav);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  transition: color var(--transition);
}

#primary-nav>a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.nav-mail-icon {
  display: flex;
  align-items: center;
  padding: 7px;
  border-radius: 50%;
}

.nav-mail-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-bg-brown);
  border-radius: 99px;
  /* 線の先を丸く */
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* ✕ アニメーション */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile menu - 上からシュッとアニメーション */
#mobile-nav {
  display: block;
  position: fixed;
  background: var(--color-bg-gray);
  z-index: 99;
  overflow-y: auto;
  padding: 24px;
  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  top: 64px;
  left: 70px;
  right: 0;
  bottom: 0;
}

#mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.mobile-nav-search {
  padding: 16px 12px;
}

.mobile-search-wrap {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border-radius: 24px;
  padding: 10px 16px;
  gap: 8px;
}

.mobile-search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text);
  outline: none;
}

.mobile-search-wrap input::placeholder {
  color: var(--color-text-light);
}

.mobile-search-wrap button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  padding: 0;
}

.mobile-nav-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media (min-width: 769px) {
  #mobile-nav {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #primary-nav {
    display: none !important;
  }
}


/* ==============================
   Mega Menu / Dropdown
============================== */
.nav-item {
  position: relative;
  padding: 0 16px;
  font-size: 0.88rem;
}

.nav-item.has-dropdown>a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  margin-top: -3px;
  transition: transform var(--transition);
}

.nav-item.has-dropdown:hover>a::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(58, 53, 48, 0.14);
  padding: 20px;
  min-width: 200px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  /* 追加 */
  transform: translateX(-50%) translateY(-12px);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s ease;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  /* 追加 */
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 矢印 */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--color-bg-white);
  box-shadow: -2px -2px 4px rgba(58, 53, 48, 0.06);
}

/* 新着記事ドロップダウン */
.dropdown-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 300px;
}

.dropdown-post-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: opacity var(--transition);
}

.dropdown-post-link:hover {
  opacity: 0.72;
}

.dropdown-post-list-footer a {
  display: block;
  background: var(--color-accent-teal);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 8px 4px;
  margin-top: 16px;
  width: 100%;
}

.dropdown-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.dropdown-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-post-title {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.dropdown-post-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* カテゴリドロップダウン */
.dropdown-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-category-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 4px 0;
  transition: color var(--transition);
}

.dropdown-category-parent:hover {
  color: var(--color-accent);
  opacity: 1;
}

.dropdown-category-children {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.dropdown-category-children a {
  font-size: 0.82rem;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.dropdown-category-children a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* タグドロップダウン */
.dropdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 240px;
}

/* ==============================
   Hero / Slider
============================== */
.hero-section {
  position: relative;
  background: var(--color-bg-gray);
  overflow: hidden;
  padding: 32px 0 40px;
}

.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  gap: 16px;
  padding: 0;
  /* transformで制御するため幅を広く */
  width: max-content;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 500px;
  width: 500px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-slide {
    flex: 0 0 85vw;
    width: 85vw;
  }
}

.hero-slide>a {
  display: block;
  position: relative;
  border-radius: 64px 24px 64px 24px;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* カテゴリ → 右上 */
.hero-slide-category {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  background: var(--color-bg-brown);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 0.88rem;
  CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
  padding: 8px 24px;
  border-radius: 0 0 0 24px;
}

/* タイトルオーバーレイ（画像の上） */
.hero-slide-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(30, 25, 20, 0.72) 0%, transparent 100%);
  border-radius: 0;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 0;
  color: #fff;
}

.hero-slide-title a {
  color: #fff;
}

/* 日付・タグ → 画像の下 */
.hero-slide-content {
  padding: 12px 16px;
}

.hero-slide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.hero-slide-date {
  color: var(--color-accent-teal);
  font-family: var(--font-nav);
  font-weight: 600;
}

.tag-pill {
  background: var(--color-accent-teal);
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.58rem;
  white-space: nowrap;
}

.tag-pill:hover {
  border-color: var(--color-accent-teal);
  opacity: .8;
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.slider-dot.is-active {
  background: var(--color-text);
}

@media (max-width: 768px) {
  .hero-slide-title {
    font-size: 0.88rem;
  }

  .hero-slide-meta {
    font-size: 0.65rem;
  }
}

@media (max-width: 600px) {
  .hero-slide {
    flex: 0 0 85vw;
    width: 85vw;
  }
}

/* ==============================
   Wave Dividers
============================== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ==============================
   Sections Common
============================== */
.section-bg {
  background: var(--color-bg);
}

.section-white {
  background: var(--color-bg-white);
}

.section-gray {
  background: var(--color-bg-gray);
}

.section-inner {
  padding: 60px 48px 70px;
}

.category-section {
  padding: 60px 48px 70px;
}

.tags-section {
  padding: 0 48px 60px;
}

.archives-section {
  padding: 0 48px 80px;
}

@media (max-width: 768px) {
  .section-inner {
    padding: 40px 24px 50px;
  }

  .category-section {
    padding: 40px 24px 50px;
  }

  .tags-section {
    padding: 0 24px 40px;
  }

  .archives-section {
    padding: 0 24px 60px;
  }
}

.section-heading {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }
}

/* ==============================
   New Articles Grid
============================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  display: block;
  overflow: hidden;
}

.article-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-tag-bg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(58, 53, 48, 0.14);
  opacity: 1;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

.article-card-cat {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(58, 53, 48, 0.72);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 0 0 12px 0;
}

.article-card-body {
  padding: 10px 0;
}

.article-card-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================
   Category Section
============================== */
.category-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .category-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .category-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.category-group {}

.category-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.category-parent::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.category-children {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-child {
  font-size: 0.85rem;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.category-child:hover {
  color: var(--color-accent);
  opacity: 1;
}

.category-grandchild {
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding-left: 16px;
  transition: color var(--transition);
}

.category-grandchild:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ==============================
   Tags Section
============================== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-link {
  display: inline-block;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.7rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tag-link:hover, .tag-link.is-active {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}

.tags-more-btn {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent-teal);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity var(--transition);
  margin-top: 4px;
}

.tags-more-btn:hover {
  opacity: 0.85;
}

/* ==============================
   Archives Section
============================== */
.archives-table {
  width: 100%;
}

.archive-year-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 8px;
}

.archive-year {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  min-width: 72px;
  flex-shrink: 0;
}

.archive-months {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.archive-month-link {
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.archive-month-link:hover {
  background: var(--color-tag-bg);
  color: var(--color-accent);
  opacity: 1;
}

/* ==============================
   Back to Top
============================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* ==============================
   Footer
============================== */
#site-footer {
  background: var(--color-bg-gray);
  padding: 24px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-family: var(--font-nav);
}

/* ==============================
   Single Post / Page
============================== */
.post-main {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.post-header {
  padding: 48px 0 32px;
}

.post-header-category {
  display: inline-block;
  background: var(--color-tag-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.post-header-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
}

.post-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-light);
  font-size: 0.82rem;
}

.post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/7;
}

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

.post-content {
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.post-content h3 {
  font-size: 1.0.88rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.post-content p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.post-content img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.post-content a {
  color: var(--color-accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .post-content {
    max-width: 100%;
  }

  .post-header-title {
    font-size: 1.25rem;
  }

  .post-header-meta {
    gap: 8px;
    font-size: 0.72rem;
  }

  .post-header-meta .tag-link {
    border: none;
    padding: 0;
  }
}

/* ==============================
   Utility
============================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==============================
   Code Block
============================== */
.post-content pre {
  position: relative;
  background: #2b2b2b;
  color: #f8f8f2;
  border-radius: var(--radius-sm);
  padding: 40px 20px 20px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 24px 0;
  max-height: 400px;
  overflow-y: auto;
}

.post-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85em;
}

.post-content :not(pre)>code {
  background: var(--color-bg-gray);
  color: var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* コピーボタン */
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-body);
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.code-copy-btn.is-copied {
  background: var(--color-accent-teal);
}

/* ==============================
   OGP Card
============================== */
.ogp-card {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--color-bg-white);
  text-decoration: none !important;
}

.ogp-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  opacity: 1;
}

.ogp-card-image {
  flex-shrink: 0;
  width: 180px;
}

.ogp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}

.ogp-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  justify-content: center;
}

.ogp-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.ogp-card-description {
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.ogp-card-domain {
  font-size: 0.72rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

@media (max-width: 600px) {
  .ogp-card {
    flex-direction: column;
  }

  .ogp-card-image {
    width: 100%;
    height: 160px;
  }
}

/* ==============================
   Archive / Category
============================== */
.archive-header {
  padding: 48px 0 40px;
}

.archive-title {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
}

.archive-description {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ページネーション */
.pagination {
  margin-top: 30px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.775rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
  margin: 0 4px;
}

.pagination .page-numbers:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  opacity: 1;
}

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

.no-posts {
  padding: 60px 0;
  color: var(--color-text-light);
  text-align: center;
}

/* ==============================
   Breadcrumb
============================== */
.breadcrumb {
  padding: 16px 0 0;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.breadcrumb-item a {
  color: var(--color-text-light);
  transition: color var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.breadcrumb-item.current {
  color: var(--color-text);
}

/* 区切り文字 */
.breadcrumb-item:not(:last-child)::after {
  content: '>';
  margin-left: 4px;
  color: var(--color-text-light);
}

/* ==============================
   2カラムレイアウト
============================== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  align-items: start;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  #sidebar {
    position: static;
  }
}

/* ==============================
   Sidebar
============================== */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 88px;
}

.sidebar-widget-title {
  background: var(--color-bg-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-logo);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-light);
  margin-bottom: 16px;
  padding: 4px 12px;
}

/* 最新記事 */
.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-link {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
}

.sidebar-post-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.sidebar-post-body {
  flex: 1;
  min-width: 0;
  line-height: 1;
}

.sidebar-post-title {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.sidebar-post-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-accent-teal);
}

/* カテゴリ */
.sidebar-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.sidebar-category-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text);
  padding: 8px 0;
  transition: color var(--transition);
}

.sidebar-category-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.sidebar-category-link span:nth-child(2) {
  flex: 1;
}

.sidebar-category-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-tag-bg);
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-category-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.sidebar-category-children {
  padding: 0 0 8px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-category-child-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  padding: 4px 0;
  transition: color var(--transition);
}

.sidebar-category-child-link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.sidebar-category-child-link span:nth-child(2) {
  flex: 1;
}

/* タグ */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==============================
   Article list Page
============================== */
.articles-grid-4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .articles-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .articles-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
   Contact Page
============================== */
.contact-container {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 720px;
}

.contact-form-wrap {
  margin-top: 40px;
}

/* CF7 フォームスタイル */
.wpcf7-form p {
  margin-bottom: 24px;
}

.wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: var(--color-accent);
}

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

.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}

.wpcf7-form input[type="submit"]:hover {
  opacity: 0.8;
}

/* バリデーションメッセージ */
.wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #e05a5a;
  margin-top: 4px;
  display: block;
}

.wpcf7-response-output {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.wpcf7-mail-sent-ok {
  background: #edf7ed;
  border: 1px solid #a3d9a3;
  color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  color: #c62828;
}

/* ==============================
   Category & Tag Page
============================== */
.cat-tag-section {
  padding: 48px 0;
}

.cat-tag-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
