/* ================================================================
   Bespoke Partner — WordPress Theme CSS
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --surface:  #f0f5fb;
  --glass:    rgba(0,0,0,0.04);
  --border:   rgba(0,0,0,0.1);
  --gold:     #b8860b;
  --gold-lt:  #d4a843;
  --blue:     #2563eb;
  --blue-lt:  #3b82f6;
  --text:     #0f172a;
  --muted:    #64748b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 100px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* カスタムロゴ対応 */
.nav-logo img,
.custom-logo-link img {
  height: 88px;
  width: auto;
  display: block;
}
.custom-logo-link { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-lang a {
  color: var(--muted) !important;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 12px;
  transition: background .2s, color .2s !important;
}
.nav-lang a.active {
  background: var(--gold);
  color: #000 !important;
  font-weight: 700;
}
.nav-lang a:not(.active):hover { color: var(--text) !important; }
.nav-lang span { color: var(--border); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px !important;
  letter-spacing: 0.08em;
}
.nav-cta:hover { opacity: 0.9; }

/* ─── DROPDOWN ─── */
.nav-links li { position: relative; }

.has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  backdrop-filter: blur(16px);
  z-index: 200;
  list-style: none;
}

.has-dropdown:hover .dropdown { display: block; }

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

.dropdown li { display: block; }
.dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 13px;
  color: var(--muted) !important;
  white-space: nowrap;
  transition: color .2s, background .2s;
  letter-spacing: 0.04em;
}
.dropdown a:hover {
  color: var(--text) !important;
  background: rgba(0,0,0,0.04);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #000;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(212,168,67,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,168,67,0.35); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(0,0,0,0.25); background: rgba(0,0,0,0.05); }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
  animation: drift 12s ease-in-out infinite alternate;
}
.orb1 { width: 600px; height: 600px; background: var(--blue); top: -10%; left: -10%; animation-delay: 0s; }
.orb2 { width: 500px; height: 500px; background: var(--gold); bottom: -15%; right: -5%; animation-delay: -4s; }
.orb3 { width: 350px; height: 350px; background: #a855f7; top: 30%; right: 20%; animation-delay: -8s; opacity: 0.06; }

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50fr 46fr;
  gap: 48px;
  align-items: flex-start;
}

/* ─── SLIDESHOW ─── */
.hero-visual { position: relative; margin-top: 80px; }
.slideshow-wrapper {
  position: relative;
  height: 430px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,37,100,0.12);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }

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

.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dot {
  height: 8px; width: 8px; border-radius: 4px;
  background: rgba(0,0,0,0.15); border: none; cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease; padding: 0;
}
.dot.active { width: 28px; background: var(--gold); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(59,130,246,0.10));
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(212,168,67,0.18);
}
.hero-badge-text {
  background: linear-gradient(90deg, #b8860b, #d4a843, #2563eb, #d4a843, #b8860b);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}

.hero-label { font-size: 26px; }

h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.8;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 560px;
}
.grad-text {
  background: linear-gradient(135deg, var(--gold-lt), var(--blue-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-lt);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 5%;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: #475569;
  max-width: 560px;
  line-height: 1.9;
}

/* ─── SERVICES ─── */
#services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.services-bottom-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.services-bottom-row .service-card {
  flex: 0 0 calc(33.333% - 16px);
}

.service-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  transition: background .25s;
}
.service-card:hover { background: rgba(0,0,0,0.02); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}
.icon-gold   { background: rgba(212,168,67,0.12); }
.icon-blue   { background: rgba(59,130,246,0.12); }
.icon-purple { background: rgba(168,85,247,0.12); }
.icon-green  { background: rgba(34,197,94,0.12); }

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
}

/* ─── ABOUT ─── */
#about .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }
.about-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
}
.about-card + .about-card { margin-top: 16px; }
.about-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.about-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.about-card-title { font-size: 15px; font-weight: 700; }
.about-card-body  { font-size: 13px; color: var(--muted); line-height: 1.8; }

.about-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
}
.check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── FLOW ─── */
#flow { background: var(--surface); }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 60px;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.flow-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: border-color .25s, box-shadow .25s;
}
.flow-step:hover .step-num {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,67,0.25);
}
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.step-desc  { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─── STRENGTHS ─── */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.strength-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.strength-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,67,0.25);
}
.strength-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.strengths-grid .strength-card:nth-child(1) { background: linear-gradient(135deg, rgba(184,134,11,0.10), rgba(212,168,67,0.03)); border-color: rgba(184,134,11,0.25); }
.strengths-grid .strength-card:nth-child(1)::after { background: linear-gradient(90deg, #b8860b, #d4a843); }
.strengths-grid .strength-card:nth-child(1) .strength-number { color: #b8860b; }
.strengths-grid .strength-card:nth-child(2) { background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(59,130,246,0.03)); border-color: rgba(37,99,235,0.25); }
.strengths-grid .strength-card:nth-child(2)::after { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.strengths-grid .strength-card:nth-child(2) .strength-number { color: #2563eb; }
.strengths-grid .strength-card:nth-child(3) { background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(168,85,247,0.03)); border-color: rgba(168,85,247,0.25); }
.strengths-grid .strength-card:nth-child(3)::after { background: linear-gradient(90deg, #a855f7, #c084fc); }
.strengths-grid .strength-card:nth-child(3) .strength-number { color: #a855f7; }
.strengths-grid .strength-card:nth-child(4) { background: linear-gradient(135deg, rgba(20,184,166,0.10), rgba(20,184,166,0.03)); border-color: rgba(20,184,166,0.25); }
.strengths-grid .strength-card:nth-child(4)::after { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.strengths-grid .strength-card:nth-child(4) .strength-number { color: #14b8a6; }
.strengths-grid .strength-card:nth-child(5) { background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.03)); border-color: rgba(239,68,68,0.25); }
.strengths-grid .strength-card:nth-child(5)::after { background: linear-gradient(90deg, #ef4444, #f87171); }
.strengths-grid .strength-card:nth-child(5) .strength-number { color: #ef4444; }
.strengths-grid .strength-card:nth-child(6) { background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(99,102,241,0.03)); border-color: rgba(99,102,241,0.25); }
.strengths-grid .strength-card:nth-child(6)::after { background: linear-gradient(90deg, #6366f1, #818cf8); }
.strengths-grid .strength-card:nth-child(6) .strength-number { color: #6366f1; }

.strength-number {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}
.strength-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; white-space: nowrap; }
.strength-desc  { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ─── COLUMN CARDS ─── */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.column-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.column-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
}
.column-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.column-card:hover .column-thumb img { transform: scale(1.08); }
.column-body { padding: 16px 20px; }
.column-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.column-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--text);
}
.column-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.column-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ─── COMPANY INFO ─── */
#company { background: var(--bg); }

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 60px;
  font-size: 15px;
}
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table tr:first-child { border-top: 1px solid var(--border); }
.company-table th {
  width: 220px;
  padding: 24px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 24px 20px;
  color: var(--text);
  line-height: 1.9;
}
.company-table td ol {
  margin: 0;
  padding-left: 1.4em;
}
.company-table td ol li { margin-bottom: 4px; }

/* ─── CONTACT ─── */
#contact {
  background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(59,130,246,0.06));
}

.contact-box {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  backdrop-filter: blur(12px);
  max-width: 700px;
  margin: 0 auto;
}
.contact-box .section-title { font-size: clamp(24px, 3vw, 38px); }
.contact-box .section-desc  { max-width: 100%; margin: 20px auto 40px; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.contact-item    { text-align: center; }
.contact-label   { font-size: 11px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 8px; }
.contact-value   { font-size: 15px; font-weight: 600; color: var(--text); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.footer-left  { display: flex; align-items: center; gap: 12px; }
.footer-copy  { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  padding: 6px 11px;
  line-height: 1;
  transition: background .2s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--glass); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }

/* ─── FADE-IN ANIMATION ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   PAGE HEADER（コラム一覧・記事ページ共通）
   ================================================================ */
.page-header {
  padding: 160px 5% 60px;
  background: var(--surface);
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}
.page-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   ARCHIVE（コラム一覧）
   ================================================================ */
.column-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5%;
  position: relative;
  z-index: 1;
}

/* 検索ボックス */
.search-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 5% 0;
  position: relative;
  z-index: 1;
}
.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.search-box-wrap input[type="search"],
#search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.search-box-wrap input[type="search"]:focus,
#search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.1);
}
.search-box-wrap input[type="search"]::placeholder,
#search-input::placeholder { color: var(--muted); }

.year-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.year-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.year-btn:hover { border-color: rgba(0,0,0,0.25); color: var(--text); }
.year-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
}

.search-info {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 5%;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.page-num, .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.page-num:hover, .page-numbers:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text);
}
.page-num.active, .page-numbers.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 700;
  pointer-events: none;
}
.page-numbers.dots { border: none; }

.back-wrap {
  text-align: center;
  padding-bottom: 60px;
  margin-top: 24px;
}

/* ================================================================
   SINGLE POST（記事詳細ページ）
   ================================================================ */

/* 記事ヘッダー */
.post-header {
  padding: 140px 5% 56px;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.post-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-decoration: none;
}
.post-category-badge:hover { background: rgba(184,134,11,0.18); }

.post-header h1.post-title {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: none;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-meta svg { flex-shrink: 0; }

/* アイキャッチ画像 */
.post-thumbnail-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5% 0;
  position: relative;
  z-index: 1;
}
.post-thumbnail-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 40px rgba(0,37,100,0.1);
}

/* 記事本文 */
.post-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 5% 80px;
  position: relative;
  z-index: 1;
}

/* ─── 記事コンテンツ（entry-content）スタイル ─── */
.entry-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.entry-content p {
  margin-bottom: 1.6em;
}
.entry-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  margin: 2.5em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.entry-content h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}
.entry-content h3 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  margin: 2em 0 0.7em;
  color: var(--text);
  line-height: 1.4;
}
.entry-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 1.6em 0 0.6em;
  color: var(--gold);
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.6em 1.6em;
  line-height: 1.9;
}
.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.5em;
}
.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.entry-content a:hover { color: var(--blue-lt); }
.entry-content strong { font-weight: 700; color: var(--text); }
.entry-content em { font-style: italic; }

.entry-content blockquote {
  margin: 2em 0;
  padding: 20px 28px;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.entry-content blockquote p { margin: 0; }

.entry-content figure { margin: 2em 0; }
.entry-content figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.entry-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
}
.entry-content table th,
.entry-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  line-height: 1.7;
}
.entry-content table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--gold);
}
.entry-content table tr:hover td { background: rgba(0,0,0,0.015); }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3em 0;
}

.entry-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}
.entry-content pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.7;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* 記事フッター（タグ・ナビ） */
.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.post-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.post-tag:hover { border-color: var(--gold); color: var(--gold); }

/* 前後の記事ナビ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.post-nav-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s;
}
.post-nav-item:hover {
  border-color: rgba(184,134,11,0.3);
  transform: translateY(-2px);
}
.post-nav-dir {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.post-nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

/* 関連記事 */
.related-posts {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5% 80px;
  position: relative;
  z-index: 1;
}
.related-posts-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.related-posts-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 記事CTAボックス */
.post-cta-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 5% 80px;
  position: relative;
  z-index: 1;
}
.post-cta-inner {
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.post-cta-inner .section-title { font-size: 22px; margin-bottom: 12px; }
.post-cta-inner .section-desc  { font-size: 15px; margin: 0 auto 28px; }

/* ================================================================
   PRICING セクション
   ================================================================ */
.pricing-box {
  max-width: 720px;
  margin: 60px auto 0;
  text-align: center;
}
.pricing-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 24px;
}
.pricing-note {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* ================================================================
   PAGE（固定ページ）
   ================================================================ */
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 5%;
  position: relative;
  z-index: 1;
}

/* ================================================================
   404 PAGE
   ================================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  z-index: 1;
}
.error-404-inner { max-width: 600px; }
.error-404-code {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-lt), var(--blue-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
}
.error-404-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}
.error-404-desc {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.9;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  #about .section-inner { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-bottom-row .service-card { flex: 0 0 calc(50% - 12px); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 100px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 8px 0 20px;
    z-index: 99;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }

  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    color: var(--text) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    letter-spacing: 0.04em;
  }
  .nav-links > li > a:hover { background: var(--glass); }

  .nav-links > li > a.nav-cta {
    margin: 12px 24px;
    text-align: center;
    border-radius: 8px;
    border-bottom: none;
    font-size: 14px !important;
    padding: 14px 24px !important;
  }
  .nav-links > li > .nav-lang {
    margin: 12px 24px;
    display: inline-flex;
  }

  .has-dropdown > a::after { display: none; }
  .nav-links .has-dropdown .dropdown {
    display: block;
    position: static;
    transform: none;
    background: var(--surface);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: unset;
  }
  .nav-links .has-dropdown .dropdown a {
    padding: 11px 40px;
    font-size: 13px;
    color: var(--muted) !important;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .hero-label { font-size: 15px; }
  h1 { font-size: 15px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: block; margin-top: 32px; }
  .hero-stats  { gap: 28px; }
  .contact-box { padding: 40px 24px; }
  footer { flex-direction: column; text-align: center; }
  .flow-steps::before { display: none; }

  /* Archive */
  .column-grid  { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  /* Company table */
  .company-table th { width: 120px; font-size: 13px; }
  .company-table td { font-size: 13px; }

  /* Single */
  .post-thumbnail-wrap img { height: 240px; }
  .post-nav { grid-template-columns: 1fr; }
  .contact-box { padding: 32px 20px; }
  .post-cta-inner { padding: 32px 20px; }
}

@media (max-width: 960px) and (min-width: 769px) {
  .column-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   WordPress Gutenberg / ブロックエディタ互換
   ================================================================ */
.wp-block-image img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}
.wp-block-quote {
  border-left: 4px solid var(--gold);
  background: var(--surface);
  padding: 20px 28px;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
}
.wp-block-quote p { color: var(--muted); margin: 0; }
.wp-block-quote cite { font-size: 13px; color: var(--muted); }
.wp-block-separator { border-color: var(--border); }
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table td,
.wp-block-table th {
  border: 1px solid var(--border);
  padding: 12px 16px;
}
