/*
Theme Name: ANOINE
Theme URI: https://anoine.example.com
Author: ANOINE
Author URI: https://anoine.example.com
Description: ANOINE用の高速・レスポンシブなカスタムテーマ。白と黒を基調にしたやさしくスタイリッシュなデザイン。
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anoine-blog
Tags: blog, custom-post-type, responsive, lightweight, japanese, minimal
*/

/* ========================================
   Font: Klee One（ペン・手書き風・OFL無料）
   ARペン行楷書に近い雰囲気。テーマ内に同梱（外部読み込みなし）
======================================== */
@font-face {
  font-family: "Klee One";
  src: url("assets/fonts/KleeOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Klee One";
  src: url("assets/fonts/KleeOne-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}



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

:root {
  /* Soft monochrome palette */
  --color-black: #000000;
  --color-near-black: #2c2c2c;
  --color-dark: #3d3d3d;
  --color-gray: #6b6b6b;
  --color-muted: #8a8a8a;
  --color-light-gray: #c8c8c8;
  --color-border: #e8e8e8;
  --color-bg-soft: #f7f7f7;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-white: #ffffff;

  --color-text: var(--color-black);
  --color-text-muted: var(--color-gray);
  --color-accent: var(--color-near-black);
  --color-breadcrumb-bg: #f0f0f0;
  --color-breadcrumb-text: var(--color-dark);

  --font-sans: "Klee One", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Hiragino Sans", sans-serif;
  --max-width: 1100px;
  --max-width-wide: 1100px;
  --header-height: 88px;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-near-black);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-black);
  opacity: 0.75;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ========================================
   Header — black background, white text
======================================== */
.site-header {
  background: #000;
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  position: relative;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

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

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

.custom-logo-link img {
  max-height: 42px;
  width: auto;
}

/* ---- Global navigation (desktop) ---- */
.main-nav {
  display: block;
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  max-height: none;
  height: auto;
  width: auto;
  transform: none;
  border: none;
}

.main-nav > .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav .menu-item {
  position: relative;
  list-style: none;
}

.main-nav a {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.35rem 0;
  display: inline-block;
  position: relative;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

/* Left-to-right underline on top-level hover */
.main-nav > .menu > .menu-item > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav > .menu > .menu-item > a:hover::before,
.main-nav > .menu > .current-menu-item > a::before,
.main-nav > .menu > .current-menu-ancestor > a::before {
  width: 100%;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
  color: #fff;
  opacity: 0.95;
}

/* Desktop submenu */
.main-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 10rem;
  background: #111;
  padding: 0.35rem 0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
  margin: 0;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.main-nav .sub-menu .menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-nav .sub-menu .menu-item:last-child {
  border-bottom: none;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.6rem 1.15rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #fff !important;
  position: relative;
}

.main-nav .sub-menu a::before {
  display: none !important;
}

.main-nav .sub-menu a::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  bottom: 0.35rem;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .sub-menu a:hover::after {
  width: calc(100% - 2.3rem);
}

.main-nav .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.main-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  vertical-align: middle;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, 0.7);
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  position: relative;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              width 0.2s ease;
  transform-origin: center;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
  transform: translateY(7.25px) rotate(45deg);
}
.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
  transform: translateY(-7.25px) rotate(-45deg);
}

/* ========================================
   Hero under header
======================================== */
.hero-section {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg-soft);
  line-height: 0;
}

.hero-section .hero-link {
  display: block;
  line-height: 0;
}

.hero-section .hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

/* PC: show desktop, hide mobile */
.hero-section .hero-img--desktop {
  display: block;
}
.hero-section .hero-img--mobile {
  display: none;
}

/* ========================================
   Breadcrumbs — soft gray background
======================================== */
.breadcrumb-wrap {
  background-color: var(--color-breadcrumb-bg);
  color: var(--color-breadcrumb-text);
  padding: 0.7rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.breadcrumb-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow: hidden;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 40%;
  overflow: hidden;
}

.breadcrumb li:last-child {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  opacity: 0.4;
  font-weight: 300;
  margin-left: 0.05rem;
  flex-shrink: 0;
}

.breadcrumb a,
.breadcrumb .current {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.breadcrumb .current {
  color: var(--color-near-black);
  font-weight: 500;
}

/* ========================================
   Main Content
======================================== */
.site-main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* ========================================
   Category filter — pill style, soft
======================================== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.category-nav a {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: transparent;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.category-nav a:hover {
  border-color: var(--color-light-gray);
  color: var(--color-black);
  opacity: 1;
}

.category-nav a.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  opacity: 1;
}

/* ========================================
   Vertical Blog Cards — grid layout
   PC: 4列 / スマホ: 2列
======================================== */
.blog-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.blog-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-soft);
  flex-shrink: 0;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 1rem 1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.45rem;
  text-transform: none;
}

.blog-card__category a {
  color: var(--color-muted);
}

.blog-card__category a:hover {
  color: var(--color-black);
  opacity: 1;
}

.blog-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.blog-card__title a {
  color: var(--color-black);
}

.blog-card__title a:hover {
  opacity: 0.65;
}

.blog-card__meta {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.blog-card__excerpt {
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ========================================
   Single Post — calm reading experience
======================================== */
.single-post {
  background: transparent;
}

.single-post__thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

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

.single-post__content {
  padding: 0;
}

.single-post__title {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.single-post__meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  letter-spacing: 0.03em;
}

.single-post__meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.single-post__body {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-dark);
}

.single-post__body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.single-post__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-near-black);
}

.single-post__body p {
  margin-bottom: 1.35rem;
}

.single-post__body ul,
.single-post__body ol {
  margin: 0 0 1.35rem 1.4rem;
}

.single-post__body li {
  margin-bottom: 0.35rem;
}

.single-post__body img {
  border-radius: var(--radius-sm);
  margin: 1.75rem 0;
}

.single-post__body blockquote {
  border-left: 2px solid var(--color-light-gray);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--color-gray);
  font-style: normal;
}

.single-post__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-light-gray);
}

.single-post__body a:hover {
  text-decoration-color: var(--color-black);
  opacity: 1;
}

/* Category label on single */
.single-post .blog-card__category {
  margin-bottom: 0.75rem;
}

/* ========================================
   Pagination
======================================== */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.pagination .nav-links {
  margin-top: 0;
  width: 100%;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: #fff;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  text-decoration: none;
}

.pagination a:hover,
.nav-links a:hover {
  color: #fff;
  background: #000;
  border-color: #000;
  opacity: 1;
  transform: translateY(-1px);
}

.pagination .current,
.nav-links .current {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pagination .prev,
.pagination .next,
.nav-links .prev,
.nav-links .next {
  font-size: 1.1rem;
  min-width: 2.5rem;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #fff;
  color: var(--color-dark);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.25s ease;
}

.pagination a.page-numbers:hover,
.nav-links a.page-numbers:hover {
  color: #fff;
  background: #000;
  border-color: #000;
  opacity: 1;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: #000;
  color: #fff;
  border-color: #000;
}

.pagination .dots,
.nav-links .dots,
.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: 1.5rem;
  color: var(--color-muted);
}

/* ========================================
   Footer — soft, quiet
======================================== */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.55);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-top: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: #fff;
  opacity: 1;
}

/* No posts */
.no-posts {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.no-posts h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-near-black);
  margin-bottom: 0.75rem;
}

.no-posts a {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--color-dark);
}

.no-posts a:hover {
  border-color: var(--color-black);
  color: var(--color-black);
  opacity: 1;
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1024px) and (min-width: 769px) {
  .blog-card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    order: 2;
  }

  .site-branding {
    order: 1;
  }

  /* Disable L→R underline on mobile top-level */
  .main-nav > .menu > .menu-item > a::before {
    display: none;
  }

  /* Full-screen panel under header */
  .main-nav {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    max-height: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s;
    z-index: 90;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 80;
    pointer-events: none;
  }

  .main-nav > .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .main-nav > .menu > .menu-item {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: -1px;
  }

  .main-nav > .menu > .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: #fff !important;
    line-height: 1.4;
    width: 100%;
  }

  .main-nav .menu-item-has-children > a::after {
    border: none !important;
    content: "+";
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    margin-left: auto;
    padding-left: 1rem;
    color: #fff;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    flex-shrink: 0;
  }

  .main-nav .menu-item-has-children.is-submenu-open > a::after {
    content: "−";
  }

  .main-nav .sub-menu {
    position: static;
    transform: none !important;
    left: auto;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav .menu-item-has-children.is-submenu-open > .sub-menu {
    max-height: 320px;
  }

  .main-nav .sub-menu .menu-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav .sub-menu a {
    padding: 0.9rem 1.5rem 0.9rem 2.25rem;
    font-size: 0.875rem;
    color: #fff !important;
  }

  .main-nav .sub-menu a::after {
    display: none !important;
  }

  .main-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
  }

  .single-post__title {
    font-size: 1.35rem;
  }

  .breadcrumb-wrap {
    padding: 0.5rem 0;
  }

  .breadcrumb-inner {
    overflow: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .breadcrumb {
    flex-wrap: nowrap;
    gap: 0.2rem;
    width: 100%;
    overflow: hidden;
  }

  /* ホーム・親/子カテゴリーは確保し、タイトルは残り幅いっぱいまで表示して… */
  .breadcrumb li {
    min-width: 0;
    overflow: hidden;
  }

  .breadcrumb li:not(:last-child) {
    flex: 0 0 auto;
    max-width: none;
  }

  .breadcrumb li:first-child {
    flex: 0 0 auto;
  }

  /* タイトル：右側いっぱいまで伸ばして省略 */
  .breadcrumb li:last-child {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .breadcrumb li:not(:last-child)::after {
    flex-shrink: 0;
    margin-left: 0.1rem;
  }

  .breadcrumb a,
  .breadcrumb .current {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
  }


  .blog-card-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .blog-card__body {
    padding: 0.75rem 0.75rem 0.9rem;
  }

  .blog-card__title {
    font-size: 0.85rem;
  }

  .blog-card__excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.75rem;
  }

  .pagination a,
  .pagination span,
  .nav-links a,
  .nav-links span {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
  }

  .hero-section .hero-img {
    max-height: 240px;
  }

  .hero-section .hero-img--desktop {
    display: none;
  }
  .hero-section .hero-img--mobile {
    display: block;
  }

  .site-main {
    padding: 1.75rem 1.25rem 3rem;
  }

  .blog-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 60px;
    padding: 0 1.15rem;
  }

  :root {
    --header-height: 72px;
  }

  .site-title {
    font-size: 0.95rem;
  }

  .category-nav a {
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
  }
}

/* ========================================
   Print
======================================== */
@media print {
  .site-header,
  .hero-section,
  .breadcrumb-wrap,
  .site-footer,
  .menu-toggle,
  .category-nav {
    display: none !important;
  }

  .site-main {
    max-width: 100%;
    padding: 0;
  }

  .single-post__title {
    font-size: 1.4rem;
  }
}


/* ========================================
   Static pages / Contact / Sitemap
======================================== */
.static-page .single-post__content {
  padding: 0;
}

.sitemap-section {
  margin-bottom: 2.5rem;
}

.sitemap-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

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

.sitemap-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
}

.sitemap-list a {
  color: var(--color-near-black);
  text-decoration: none;
}

.sitemap-list a:hover {
  opacity: 0.65;
}

.sitemap-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.privacy-updated {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.contact-notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.contact-notice--success {
  background: #f0faf0;
  color: #1a5c1a;
  border: 1px solid #c8e6c8;
}

.contact-notice--error {
  background: #fdf0f0;
  color: #8a1f1f;
  border: 1px solid #f0c8c8;
}

/* お問い合わせフォーム: コンテンツ幅に揃える */
.contact-form {
  margin-top: 1.5rem;
  max-width: 100%;
  width: 100%;
}

.contact-form__row {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-dark);
  letter-spacing: 0.04em;
}

.contact-form .required {
  color: #c44;
  font-size: 0.75rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form input[type="password"],
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form select {
  cursor: pointer;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  padding-right: 2.25rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-near-black);
}

.contact-form input[type="checkbox"] {
  width: auto;
  min-height: auto;
  display: inline-block;
  margin-right: 0.35rem;
  -webkit-appearance: checkbox;
  appearance: auto;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

.contact-panel {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

.contact-panel[hidden] {
  display: none !important;
}

.contact-zip-wrap {
  display: block;
  width: 100%;
}

.contact-zip-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  min-height: 1.1em;
}

/* 郵便番号・URL も他フィールドと同じ全幅 */
#corp_zip,
#collab_url,
#contact_type {
  width: 100%;
  max-width: 100%;
}

#corp_pref,
#corp_city {
  background: #f7f7f7;
}

#corp_pref[readonly],
#corp_city[readonly] {
  cursor: default;
}

@media (max-width: 768px) {
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form input[type="url"],
  .contact-form input[type="password"],
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px; /* iOSの自動ズーム防止 */
    min-height: 2.85rem;
  }

  .contact-form select {
    padding-right: 2.25rem;
  }

  #corp_zip,
  #collab_url,
  #contact_type {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* 確認画面 */
.contact-step--confirm[hidden],
.contact-step--input[hidden] {
  display: none !important;
}

.contact-confirm__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.contact-confirm__lead {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
}

.contact-confirm__list {
  margin: 0 0 2rem;
  padding: 1.25rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.contact-confirm__list dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

.contact-confirm__list dt:first-child {
  margin-top: 0;
}

.contact-confirm__list dd {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--color-near-black);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-confirm__list dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-form__submit--confirm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-form__btn {
  display: inline-block;
  padding: 0.75rem 2.25rem;
  background: #000;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-form__btn:hover,
.contact-form__btn:focus {
  color: #fff !important;
  background: #222;
  opacity: 1;
}

.contact-form__btn--secondary {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

.contact-form__btn--secondary:hover,
.contact-form__btn--secondary:focus {
  color: #000 !important;
  background: #f5f5f5 !important;
  opacity: 1;
}

/* 会員ゲート内ボタン（グローバル a:hover の色上書きを防止） */
.member-gate a.contact-form__btn {
  color: #fff !important;
}
.member-gate a.contact-form__btn:hover,
.member-gate a.contact-form__btn:focus {
  color: #fff !important;
  opacity: 1;
}
.member-gate a.contact-form__btn--secondary {
  color: #000 !important;
}
.member-gate a.contact-form__btn--secondary:hover,
.member-gate a.contact-form__btn--secondary:focus {
  color: #000 !important;
  opacity: 1;
}

/* ========================================
   Member-only articles
======================================== */
.member-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.member-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.member-section__more {
  text-align: center;
  margin-top: 1.75rem;
}

.member-section__more a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.blog-card--member .blog-card__image {
  position: relative;
}

.blog-card__lock {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.blog-card__lock-inline {
  margin-right: 0.25rem;
  font-size: 0.9em;
}

.member-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.member-gate {
  margin-top: 1.5rem;
  padding: 1.75rem 1.25rem;
  background: #f7f7f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.member-gate__lead {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.member-gate__note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0.75rem 0 1.25rem;
}

.member-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.archive-title {
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.75rem;
  letter-spacing: 0.06em;
}

/* ========================================
   News / お知らせ
======================================== */
.news-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.news-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.news-section__more {
  text-align: center;
  margin-top: 1.5rem;
}

.news-section__more a {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-item {
  border-bottom: 1px solid #eee;
}

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

/* 常に2段: 1行目=日付+種類 / 2行目=タイトル */
.news-item__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  color: var(--color-near-black);
  text-decoration: none;
  transition: background 0.2s ease;
}

.news-item__link:hover {
  background: #fafafa;
  opacity: 1;
}

.news-item__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.news-item__date {
  font-size: 0.8rem;
  color: #b0b0b0;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1.4;
}

.news-item__title {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #222;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.news-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #eee;
  color: #333;
  flex-shrink: 0;
  line-height: 1.4;
}

.news-type-badge a {
  color: inherit;
  text-decoration: none;
}

.news-type-badge--koshin {
  background: #e8f1ff;
  color: #4a7fd4;
}

.news-type-badge--jyuyo {
  background: #fde8e8;
  color: #c81e1e;
}

.news-type-badge--fuguai {
  background: #fef3c7;
  color: #92400e;
}

.news-type-badge--sonota {
  background: #f3f4f6;
  color: #4b5563;
}

.single-news .news-type-badge {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .news-item__link {
    padding: 1.05rem 1rem 1.1rem;
    gap: 0.5rem;
  }

  .news-item__date {
    font-size: 0.78rem;
  }

  .news-item__title {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .news-type-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.6rem;
  }
}



.sitemap-subheading {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.04em;
}

.sitemap-updated {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}
