/*
Theme Name: wigcare
Theme URI: https://wigcare.jp
Author: wigcare.jp
Description: ウィッグのケア情報サイト wigcare.jp 専用テーマ。Shippori Mincho + Noto Sans JP を用いたミニマル・エディトリアルデザイン。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: wigcare
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --rose:        #D4826F;
  --rose-dark:   #A85E4E;
  --rose-light:  rgba(212,130,111,0.18);
  --rose-pale:   rgba(212,130,111,0.08);
  --rose-mid:    rgba(212,130,111,0.38);
  --bg:          #ffffff;
  --bg-soft:     #FEF7F5;
  --bg-mid:      #FEF2EF;
  --text:        #211C1A;
  --text-mid:    #7A6D69;
  --text-light:  #B0A09C;
  --border:      #EDE5E2;
  --pad-x:       80px;
  --pad-x-md:    40px;
  --pad-x-sm:    20px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo { text-decoration: none; line-height: 1; display: flex; flex-direction: column; flex-shrink: 0; align-self: center; justify-content: center; }
.site-logo .site-logo-img {
  height: 40px !important; width: auto !important; display: block; object-fit: contain;
}
.site-logo-sub {
  font-size: 10px; color: var(--text-light);
  letter-spacing: 0.08em; display: block; margin-top: 2px;
}
.nav-menu {
  display: flex; gap: 36px; list-style: none;
}
.nav-menu a {
  font-size: 13px; color: var(--text-mid);
  letter-spacing: 0.06em; transition: color 0.2s;
}
.nav-menu a:hover { color: var(--rose); }
.nav-actions {
  display: flex; gap: 20px; align-items: center;
}
.nav-actions a {
  font-size: 12px; color: var(--text-mid);
  transition: color 0.2s;
}
.nav-actions a:hover { color: var(--rose); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: var(--text-mid);
  font-size: 22px; line-height: 1;
}
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--border);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-list {
  list-style: none; padding: 0; margin: 0;
}
.mobile-nav-list li a {
  display: block;
  padding: 16px var(--pad-x-sm);
  font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-nav-list li a:hover { color: var(--rose); }
.mobile-nav-divider {
  height: 6px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-util {
  display: block;
  padding: 14px var(--pad-x-sm);
  font-size: 13px; color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-nav-util:hover { color: var(--rose); }

/* ═══════════════════════════════════════════
   HERO (front page only)
═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 620px; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block; min-height: 620px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%, rgba(255,255,255,0.93) 28%,
    rgba(255,255,255,0.60) 52%, rgba(255,255,255,0.12) 75%,
    transparent 88%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 100px 24px 100px 80px; max-width: 680px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.hero-eyebrow-line { width: 28px; height: 1px; background: var(--rose); }
.hero-eyebrow-text {
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--rose); font-weight: 500;
}
.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 46px; font-weight: 700; line-height: 1.55; white-space: nowrap;
  color: var(--text); margin-bottom: 28px; letter-spacing: -0.01em;
}
.hero-title em { color: var(--rose); font-style: normal; }
.hero-title::after,
.hero-title em::after {
  content: none !important;
}
.hero-desc {
  font-size: 15px; line-height: 2.1; color: var(--text-mid);
  margin-bottom: 48px; font-weight: 300; max-width: 440px;
}
.hero-cta { display: flex; gap: 16px; align-items: center; }
.hero-link {
  font-size: 13px; color: var(--text-mid); cursor: pointer; letter-spacing: 0.06em;
}
.hero-newest {
  position: absolute; bottom: 40px; right: var(--pad-x); z-index: 10;
  background: var(--bg); padding: 20px 24px;
  box-shadow: 0 8px 40px rgba(212,130,111,0.14);
  border-left: 3px solid var(--rose); max-width: 320px;
  text-decoration: none; display: block;
  transition: box-shadow 0.2s;
}
.hero-newest:hover { box-shadow: 0 8px 48px rgba(212,130,111,0.26); }
.hero-newest-label {
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--rose); margin-bottom: 6px; font-weight: 500;
}
.hero-newest-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.65; color: var(--text);
}
.hero-newest-date { font-size: 10px; color: var(--text-light); margin-top: 8px; }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  padding: 15px 36px; background: var(--rose); color: #fff; border: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em;
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(212,130,111,0.4);
  transition: box-shadow 0.2s, transform 0.2s; text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(212,130,111,0.5);
  transform: translateY(-1px); color: #fff;
}
.btn-outline {
  display: inline-block;
  padding: 12px 28px; background: transparent;
  border: 1px solid var(--rose); color: var(--rose);
  font-size: 12px; letter-spacing: 0.08em;
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s, color 0.2s; text-decoration: none;
  border-radius: 40px;
}
.btn-outline:hover { background: var(--rose); color: #fff; }

/* ═══════════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════════ */
.section { padding: 80px var(--pad-x); }
.section-head {
  display: flex; align-items: baseline;
  gap: 20px; margin-bottom: 40px;
}
.section-line {
  width: 24px; height: 1px; background: var(--rose);
  margin-bottom: 6px; flex-shrink: 0;
}
.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px; font-weight: 500; color: var(--text);
}
.section-head-row {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 40px;
}
.section-head-row .section-head { margin-bottom: 0; }
.section-more {
  font-size: 12px; color: var(--rose);
  letter-spacing: 0.1em; text-decoration: none;
}
.section-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   CATEGORY GRID
═══════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-card {
  padding: 28px 24px 24px; cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.25s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
  display: flex; flex-direction: column;
}
.cat-card:nth-child(1) { background: var(--bg); }
.cat-card:nth-child(2) { background: var(--bg-soft); }
.cat-card:nth-child(3) { background: var(--bg-mid); }
.cat-card:nth-child(4) { background: var(--bg); }
.cat-card:hover { background: var(--rose-pale); border-color: var(--rose-mid); transform: translateY(-2px); }
.cat-en {
  font-size: 9px; font-weight: 700;
  color: var(--rose); letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.cat-rule {
  width: 20px; height: 1px;
  background: var(--rose); margin-bottom: 16px;
  opacity: 0.6;
}
.cat-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; font-weight: 500;
  line-height: 1.6; color: var(--text);
  flex: 1; margin-bottom: 16px;
}
.cat-count { font-size: 11px; color: var(--text-light); letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════
   ARTICLE CARDS
═══════════════════════════════════════════ */
.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.article-card {
  cursor: pointer; background: var(--bg); overflow: hidden;
  transition: box-shadow 0.25s; text-decoration: none; display: block;
  border: 1px solid transparent;
}
.article-card:hover {
  box-shadow: 0 8px 32px rgba(212,130,111,0.16);
  border-color: rgba(212,130,111,0.2);
}
.article-card:hover .article-thumbnail img { transform: scale(1.04); }
.article-card-featured { grid-row: 1 / 3; }

.article-thumbnail { overflow: hidden; position: relative; aspect-ratio: 16/9; }
.article-thumbnail img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.article-thumbnail-big { }
.article-thumbnail-sm  { }
/* Placeholder when no image */
.article-thumbnail-placeholder {
  background: repeating-linear-gradient(
    45deg, rgba(212,130,111,0.07) 0, rgba(212,130,111,0.07) 5px,
    transparent 5px, transparent 22px
  ), rgba(212,130,111,0.04);
  border-bottom: 1px solid rgba(212,130,111,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--rose); letter-spacing: 0.06em;
}

.article-card-body { padding: 16px 20px 20px; }
.article-card-body-big { padding: 28px 28px 32px; }
.article-card-cat {
  font-size: 10px; color: var(--rose);
  letter-spacing: 0.18em; margin-bottom: 8px; font-weight: 500;
}
.article-card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 500;
  line-height: 1.7; color: var(--text);
}
.article-card-title-big { font-size: 20px; margin-bottom: 12px; }
.article-card-date { font-size: 12px; color: var(--text-mid); }
.article-card-badge {
  display: inline-block; margin-left: 8px;
  padding: 2px 8px; background: rgba(212,130,111,0.14);
  color: var(--rose); border-radius: 20px; font-size: 9px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════
   ARTICLES LIST PAGE (archive)
═══════════════════════════════════════════ */
.page-header {
  background: var(--bg-soft);
  padding: 56px var(--pad-x) 48px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 12px; color: var(--text-light);
  margin-bottom: 16px; display: flex; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: var(--rose); }

.page-eyebrow {
  display: flex; align-items: center;
  gap: 16px; margin-bottom: 14px;
}
.page-eyebrow-line { width: 28px; height: 1px; background: var(--rose); }
.page-eyebrow-text {
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--rose); font-weight: 500;
}
.page-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 36px; font-weight: 500; color: var(--text);
}
.page-desc {
  font-size: 14px; line-height: 2.0; color: var(--text-mid);
  font-weight: 300; max-width: 560px; margin-top: 16px;
}

/* Category filter tabs */
.cat-filter {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.cat-filter-btn {
  padding: 8px 20px; font-size: 12px; letter-spacing: 0.06em;
  background: var(--bg); color: var(--text-mid);
  border: 1px solid var(--border);
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.18s; border-radius: 20px;
}
.cat-filter-btn.active,
.cat-filter-btn:hover {
  background: var(--rose); color: #fff;
  border-color: var(--rose);
}
.cat-filter-count {
  font-size: 12px; color: var(--text-light); align-self: center;
  margin-left: auto;
}

/* 4-column article grid for archive */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.archive-card {
  cursor: pointer; background: var(--bg); overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.2s;
  text-decoration: none; display: block;
  border: 1px solid var(--border);
}
.archive-card:hover {
  border-color: rgba(212,130,111,0.4);
  box-shadow: 0 4px 20px rgba(212,130,111,0.12);
}
.archive-card:hover .archive-thumbnail img { transform: scale(1.04); }
.archive-thumbnail { overflow: hidden; aspect-ratio: 16/9; }
.archive-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.archive-thumbnail-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-thumbnail-placeholder {
  height: 160px;
  background: repeating-linear-gradient(45deg, rgba(212,130,111,0.07) 0, rgba(212,130,111,0.07) 5px, transparent 5px, transparent 20px), rgba(212,130,111,0.04);
}
.archive-card-body { padding: 18px 20px 22px; }
.archive-card-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.archive-card-cat {
  font-size: 9px; color: var(--rose);
  letter-spacing: 0.16em; font-weight: 500;
}
.archive-card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px; font-weight: 600;
  line-height: 1.7; color: var(--text); margin-bottom: 12px;
}
.archive-card-date { font-size: 11px; color: var(--text-light); }

/* Pagination */
.pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 8px; margin-top: 64px;
}
.page-num {
  width: 36px; height: 36px; font-size: 13px;
  background: var(--bg); color: var(--text-mid);
  border: 1px solid var(--border);
  cursor: pointer; font-family: 'Noto Sans JP', sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; text-decoration: none;
}
.page-num.current,
.page-num:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.page-dots { font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════════ */
.single-header {
  background: var(--bg-soft);
  padding: 40px var(--pad-x) 44px;
  border-bottom: 1px solid var(--border);
}
.single-header > .breadcrumb {
  margin-bottom: 20px;
}
/* Header 2カラムレイアウト */
.single-header-inner {
  display: flex;
  gap: 48px;
  align-items: stretch;
}
.single-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.single-header-right {
  width: 420px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(33, 28, 26, 0.10);
}
.single-header-eyecatch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.single-header-eyecatch-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, rgba(212,130,111,0.07) 0, rgba(212,130,111,0.07) 5px, transparent 5px, transparent 22px), rgba(212,130,111,0.04);
}
.sp-eyecatch-wrap { display: none; }

.single-tags {
  display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.single-tag {
  font-size: 9px; padding: 4px 12px;
  background: rgba(212,130,111,0.14);
  color: var(--rose); border-radius: 20px; font-weight: 500;
}
.single-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px; font-weight: 600;
  color: var(--text); line-height: 1.6;
  max-width: 800px; margin-bottom: 20px;
}
.single-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--text-light);
}

/* Article layout: main + sidebar */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 56px var(--pad-x) 80px;
  max-width: 1260px; margin: 0 auto;
}

/* Article body typography */
.article-body { font-size: 1rem; }
.article-body h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem; font-weight: 600; color: var(--text);
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(212,130,111,0.25);
}
.article-body h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin: 2rem 0 0.75rem;
}
.article-body p {
  line-height: 2.0; color: var(--text);
  font-weight: 400; margin-bottom: 1.2rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.4rem; margin-bottom: 1.2rem;
}
.article-body li {
  line-height: 1.9; color: var(--text);
  font-weight: 400; margin-bottom: 0.25rem;
}
.article-body strong { font-weight: 700; color: var(--text); }
.article-body blockquote {
  border-left: 4px solid var(--rose);
  background: var(--bg-mid);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.9;
}
.article-body blockquote p { margin: 0; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.article-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0; font-size: 0.875rem;
}
.article-body th {
  background: var(--bg-soft); padding: 10px 14px;
  text-align: left; border: 1px solid var(--border);
  font-weight: 700; color: var(--text);
}
.article-body td {
  padding: 10px 14px; border: 1px solid var(--border);
  color: var(--text-mid); font-weight: 300;
}
.article-body img { max-width: 100%; border-radius: 2px; margin: 1rem 0; }
.article-body a { color: var(--rose); text-decoration: underline; }

/* Eye-catch image */
.article-eyecatch {
  width: 100%; height: 380px;
  object-fit: cover; display: block; margin-bottom: 40px;
}
.article-eyecatch-placeholder {
  width: 100%; height: 380px; margin-bottom: 40px;
  background: repeating-linear-gradient(45deg, rgba(212,130,111,0.07) 0, rgba(212,130,111,0.07) 5px, transparent 5px, transparent 22px), rgba(212,130,111,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--rose); letter-spacing: 0.08em;
}

/* Supervisor box */
.supervisor-section { margin-top: 48px; margin-bottom: 48px; }
.supervisor-section-label {
  font-size: 11px; font-weight: 700; color: var(--text);
  letter-spacing: 0.1em; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.supervisor-label-link {
  font-size: 11px; font-weight: 400; color: var(--rose);
  letter-spacing: 0.04em; text-decoration: none;
}
.supervisor-label-link:hover { text-decoration: underline; }
.supervisor-box {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 24px 28px; display: flex; gap: 20px;
  align-items: flex-start; margin-bottom: 16px;
}
/* タイトル下監修者ボックス */
.supervisor-section--title {
  background: var(--bg); border: 1px solid var(--border);
  padding: 20px 28px; margin-top: 24px; margin-bottom: 0;
}
.supervisor-section--title .supervisor-section-label {
  margin-bottom: 14px;
}
.supervisor-section--title .supervisor-box {
  background: none; border: none; padding: 0; margin-bottom: 0;
}
.supervisor-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(212,130,111,0.18);
  border: 2px solid rgba(212,130,111,0.3);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--rose);
}
.supervisor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.supervisor-role {
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--rose); margin-bottom: 4px; font-weight: 500;
}
.supervisor-name {
  font-size: 15px; font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; color: var(--text); margin-bottom: 2px;
}
.supervisor-credential { font-size: 11px; color: var(--text-light); margin-bottom: 10px; }
.supervisor-bio { font-size: 13px; color: var(--text-mid); line-height: 1.9; font-weight: 300; }
.supervisor-link {
  display: inline-block; margin-top: 10px;
  font-size: 12px; color: var(--rose);
  border-bottom: 1px solid rgba(212,130,111,0.4);
}

/* Sidebar */
.sidebar { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.sidebar-box {
  border: 1px solid var(--border); padding: 22px;
}
.sidebar-box-title {
  font-size: 11px; font-weight: 700; color: var(--text);
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.toc-item {
  display: flex; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; align-items: flex-start;
}
.toc-item a { font-size: 12px; color: var(--text-mid); line-height: 1.6; transition: color 0.2s; }
.toc-item a:hover { color: var(--rose); }
.toc-num { font-size: 10px; color: var(--rose); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.sidebar-cat-item {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-mid);
  display: flex; justify-content: space-between;
  cursor: pointer; transition: color 0.2s;
  text-decoration: none;
}
.sidebar-cat-item:hover { color: var(--rose); }

/* SP用 記事下ウィジェット */
.sp-bottom-widgets { display: none; }

/* 新着記事 */
.sidebar-recent-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-mid);
  transition: color 0.2s;
}
.sidebar-recent-item:last-child { border-bottom: none; }
.sidebar-recent-item:hover { color: var(--rose); }
.sidebar-recent-thumb {
  width: 54px; height: 54px;
  object-fit: cover; flex-shrink: 0; border-radius: 2px;
}
.sidebar-recent-thumb-placeholder {
  width: 54px; height: 54px;
  flex-shrink: 0; border-radius: 2px;
  background: var(--bg-mid);
}
.sidebar-recent-title {
  font-size: 12px; line-height: 1.65;
}

/* Related articles */
.related-section { margin-top: 48px; }
.related-title {
  font-size: 16px; font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; color: var(--text); margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: border-color 0.2s;
  text-decoration: none; display: block;
}
.related-card:hover { border-color: rgba(212,130,111,0.4); }
.related-card-thumb {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
}
.related-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.related-card-placeholder { width: 100%; height: 100%; background: rgba(212,130,111,0.06); }
.related-card-body { padding: 14px 16px 18px; }
.related-card-cat { font-size: 10px; color: var(--rose); letter-spacing: 0.12em; margin-bottom: 6px; }
.related-card-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.75; color: var(--text);
}
.sp-view-all-btn {
  display: block; text-align: center;
  margin-top: 16px; padding: 11px;
  border: 1px solid var(--rose); color: var(--rose);
  font-size: 13px; letter-spacing: 0.08em;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.sp-view-all-btn:hover { background: var(--rose); color: #fff; }

/* ═══════════════════════════════════════════
   SEARCH PAGE
═══════════════════════════════════════════ */
.search-form-wrap {
  position: relative; margin-bottom: 48px;
}
.search-input {
  width: 100%; padding: 20px 24px 20px 56px;
  font-size: 16px; font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid var(--border); background: var(--bg-soft);
  color: var(--text); letter-spacing: 0.04em;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; border-radius: 0;
  -webkit-appearance: none;
}
.search-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212,130,111,0.12);
}
.search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--text-light); pointer-events: none;
}
.search-clear {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--text-light); transition: color 0.2s;
}
.search-clear:hover { color: var(--rose); }
.search-suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.search-suggestion {
  padding: 6px 16px; font-size: 12px; color: var(--text-mid);
  border: 1px solid var(--border); cursor: pointer;
  background: var(--bg); border-radius: 20px;
  transition: all 0.18s; font-family: 'Noto Sans JP', sans-serif;
}
.search-suggestion:hover { border-color: var(--rose); color: var(--rose); }
.search-results-count { font-size: 12px; color: var(--text-light); margin-bottom: 24px; }
mark { background: rgba(212,130,111,0.2); color: var(--rose-dark); padding: 0 2px; border-radius: 2px; font-weight: 700; }

/* Search result card */
.search-result {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.search-result:hover { padding-left: 8px; }
.search-result-thumb { width: 90px; height: 68px; flex-shrink: 0; overflow: hidden; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-thumb-placeholder { width: 90px; height: 68px; background: rgba(212,130,111,0.08); flex-shrink: 0; }
.search-result-cat { font-size: 9px; color: var(--rose); letter-spacing: 0.16em; margin-bottom: 6px; font-weight: 500; }
.search-result-title { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--text); margin-bottom: 6px; }
.search-result-excerpt { font-size: 12px; color: var(--text-mid); line-height: 1.8; font-weight: 300; }
.search-result-date { font-size: 11px; color: var(--text-light); margin-top: 6px; }

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.members-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.member-card {
  background: var(--bg); border: 1px solid var(--border);
  padding: 36px 32px; display: flex; flex-direction: column;
  position: relative;
}
.member-card-featured { border-color: rgba(212,130,111,0.35); }
.member-card-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--rose);
}
.member-role-en {
  font-size: 9px; letter-spacing: 0.2em;
  color: var(--rose); font-weight: 500; margin-bottom: 20px;
}
.member-top { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.member-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: rgba(212,130,111,0.12);
  border: 2px solid rgba(212,130,111,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--rose);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-family: 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.member-credential {
  display: inline-block; padding: 3px 12px;
  background: rgba(212,130,111,0.12); border-radius: 20px;
  font-size: 11px; color: var(--rose);
}
.member-role-label { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: 0.04em; }
.member-bio { font-size: 13px; line-height: 2.0; color: var(--text-mid); font-weight: 300; flex-grow: 1; }
.member-salon-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 10px 20px;
  border: 1px solid var(--rose); color: var(--rose);
  font-size: 12px; letter-spacing: 0.08em;
  width: fit-content; transition: background 0.2s, color 0.2s;
  border-radius: 40px;
}
.member-salon-link:hover { background: var(--rose); color: #fff; }

.supervisor-note {
  max-width: 1100px; margin: 32px auto 0;
  padding: 20px 28px; background: var(--bg-mid);
  border: 1px solid rgba(212,130,111,0.2);
  display: flex; gap: 16px; align-items: flex-start;
}
.supervisor-note-icon { color: var(--rose); font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.supervisor-note p { font-size: 13px; color: var(--text-mid); line-height: 1.9; font-weight: 300; }

.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 860px; }
.policy-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.policy-desc { font-size: 12px; color: var(--text-mid); line-height: 1.9; font-weight: 300; }

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 400px; gap: 64px; max-width: 1000px; }
.contact-intro { font-size: 14px; color: var(--text-mid); line-height: 2.0; font-weight: 300; margin-bottom: 32px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-icon { width: 36px; height: 36px; background: var(--rose-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.contact-info-label { font-size: 11px; color: var(--text-light); margin-bottom: 2px; }
.contact-info-val { font-size: 13px; color: var(--text); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.06em; }
.form-label span { color: var(--rose); margin-left: 4px; font-size: 10px; }
.form-input, .form-select, .form-textarea {
  padding: 14px 16px; font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; border-radius: 0; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(212,130,111,0.12);
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 11px; color: var(--text-light); }
.form-submit { align-self: flex-start; }

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  margin: 0 var(--pad-x) 80px;
  background: linear-gradient(135deg, rgba(212,130,111,0.12) 0%, rgba(212,130,111,0.05) 100%);
  border: 1px solid rgba(212,130,111,0.2);
  padding: 56px 72px;
  display: flex; justify-content: space-between; align-items: center;
}
.cta-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.cta-desc { font-size: 14px; color: var(--text-mid); line-height: 1.9; font-weight: 300; }
.cta-action { flex-shrink: 0; margin-left: 48px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad-x) 32px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto; gap: 32px;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { display: inline-block; text-decoration: none; }
.footer-logo-img { height: 28px; width: auto; display: block; }
.footer-tagline { font-size: 11px; color: var(--text-light); margin: 0; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-util-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-util-nav a { font-size: 11px; color: var(--text-light); text-decoration: none; transition: color 0.2s; }
.footer-util-nav a:hover { color: var(--rose); }
.footer-copy { font-size: 11px; color: var(--text-light); }

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(33,28,26,0.48);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.is-open {
  opacity: 1; pointer-events: all;
}
.search-overlay-inner {
  background: var(--bg); padding: 40px 40px 32px;
  width: 100%; max-width: 600px;
  position: relative;
  box-shadow: 0 24px 64px rgba(33,28,26,0.18);
}
.search-overlay-form {
  display: flex; gap: 0;
}
.search-overlay-input {
  flex: 1; padding: 16px 20px;
  font-size: 16px; font-family: 'Noto Sans JP', sans-serif;
  border: 2px solid var(--border); border-right: none;
  background: var(--bg-soft); color: var(--text);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; border-radius: 0;
}
.search-overlay-input:focus { border-color: var(--rose); }
.search-overlay-submit {
  padding: 16px 24px;
  background: var(--rose); color: #fff;
  border: none; cursor: pointer;
  font-size: 13px; font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em; transition: background 0.2s;
}
.search-overlay-submit:hover { background: var(--rose-dark); }
.search-overlay-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: var(--text-light); transition: color 0.2s;
}
.search-overlay-close:hover { color: var(--rose); }
.search-overlay-hints {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 16px;
}
.search-overlay-hint-label { font-size: 11px; color: var(--text-light); }
.search-overlay-hint {
  padding: 4px 14px; font-size: 12px;
  color: var(--text-mid); background: var(--bg-soft);
  border: 1px solid var(--border); cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 20px; transition: all 0.18s;
}
.search-overlay-hint:hover { border-color: var(--rose); color: var(--rose); }
@media (max-width: 768px) {
  .search-overlay { padding-top: 80px; }
  .search-overlay-inner { padding: 32px 20px 24px; margin: 0 16px; }
}

/* ═══════════════════════════════════════════
   NOTICE / INFO BOX
═══════════════════════════════════════════ */
.info-box {
  padding: 20px 24px; background: var(--bg-mid);
  border: 1px solid rgba(212,130,111,0.2);
  display: flex; gap: 14px; align-items: flex-start;
  margin: 24px 0;
}
.info-box-icon { color: var(--rose); flex-shrink: 0; font-size: 16px; margin-top: 1px; }
.info-box p { font-size: 13px; color: var(--text-mid); line-height: 1.9; font-weight: 300; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .nav-menu { gap: 20px; }
  .hero-content { padding: 80px var(--pad-x); }
  .hero-title { font-size: 44px; }
  .hero-newest { right: var(--pad-x); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card-featured { grid-row: auto; }
  .article-thumbnail-big { }
  .cta-banner { padding: 40px 48px; }
  .single-layout { grid-template-columns: 1fr 240px; gap: 36px; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .nav-inner { height: 60px; }
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .site-logo-sub { display: none; }
  .site-logo .site-logo-img { height: 36px !important; }
  .hero {
    min-height: 500px;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
  }
  .hero-bg img {
    object-fit: cover;
    object-position: 35% top;
    width: 100%;
    height: 100%;
    min-height: unset;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.0) 0%,
      rgba(255,255,255,0.0) 25%,
      rgba(255,255,255,0.92) 55%,
      rgba(255,255,255,1.0) 100%
    );
  }
  .hero-eyebrow { display: none; }
  .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 28px;
    max-width: 100%;
    background: transparent;
  }
  .hero-title { font-size: 28px; white-space: normal; margin-bottom: 14px; }
  .hero-newest { display: none; }
  .hero-desc {
    display: block;
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 20px;
  }
  .hero-cta {
    display: flex;
    justify-content: center;
  }
  .section { padding: 48px var(--pad-x); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-label { font-size: 13px; }
  .cat-card { padding: 20px 16px 18px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card-featured { grid-row: auto; }
  .cta-banner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-action { margin-left: 0; }
  .article-card-body-big { padding: 16px 20px 20px; }
  .article-card-title-big { font-size: 14px; margin-bottom: 0; }
  .article-card-date { display: none; }
  .single-layout { grid-template-columns: 1fr; padding: 40px var(--pad-x) 60px; }
  .sidebar { display: none; }
  .sp-bottom-widgets { display: flex; flex-direction: column; gap: 16px; margin-top: 48px; }
  .sp-bottom-widgets .sidebar-box-title { font-size: 16px; font-weight: 700; letter-spacing: 0; }
  .section-title { font-size: 18px; }
  .single-header { padding: 32px var(--pad-x) 28px; }
  .single-header-inner { display: block; }
  .single-header-right { display: none; }
  .sp-eyecatch-wrap { display: block; margin-bottom: 32px; }
  .sp-eyecatch-wrap .article-eyecatch { height: 220px; margin-bottom: 0; }
  .sp-eyecatch-wrap .article-eyecatch-placeholder { height: 180px; margin-bottom: 0; }
  .single-title { font-size: 22px; }
  .related-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 32px var(--pad-x) 28px; }
  .page-title { font-size: 28px; }
  .policy-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { align-items: flex-start; }
  .footer-util-nav { justify-content: flex-start; gap: 12px 16px; }
  .members-grid { grid-template-columns: 1fr; }
}

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

.hero-title em::after {
  content: none !important;
  display: none !important;
}

/* ── インライン目次（モバイル含む全画面） ── */
.toc-box-inline {
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 40px;
  background: var(--bg-soft);
}
.toc-box-inline .toc-box-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   目次（TOC）表示制御
   - PC（769px以上）: 本文内目次を非表示、サイドバー目次のみ表示
   - モバイル（768px以下）: 本文内目次を表示、サイドバー目次は非表示
   ============================================ */

@media (min-width: 769px) {
  .toc-box-inline {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sidebar .toc-box,
  .sidebar #tocList,
  #sidebar .toc-box,
  #sidebar #tocList {
    display: none !important;
  }

  .toc-box-inline {
    display: block;
    background: #faf8f7;
    border: 1px solid #e8e0dc;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 32px;
    font-size: 0.9rem;
  }

  .toc-box-inline .toc-box-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e0dc;
  }

  #tocListInline {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #tocListInline li {
    margin: 6px 0;
    line-height: 1.5;
  }

  #tocListInline li a {
    color: #555;
    text-decoration: none;
    font-size: 0.875rem;
  }

  #tocListInline li a:hover {
    color: #D4826F;
    text-decoration: underline;
  }

  #tocListInline li.toc-h3 {
    padding-left: 16px;
  }
}
