/*
Theme Name: 業務改善ラボ
Theme URI: https://gyomukaizen-lab.com
Author: 上野謙泰
Description: AI業務改善コンサルティング「業務改善ラボ」公式テーマ。ダークジオメトリック デザイン、スクロールモーション、SEO/AEO/GEO最適化対応。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gyomukaizen-lab
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --bg-dark: #17181c;
  --bg-dark-alt: #1b1c20;
  --bg-darker: #131416;
  --bg-darkest: #111215;
  --accent: #4CAF50;
  --accent-hover: #43A047;
  --accent-glow: rgba(76, 175, 80, 0.12);
  --accent-soft: rgba(76, 175, 80, 0.08);
  --text-primary: #e0e0e0;
  --text-secondary: #999;
  --text-muted: #666;
  --text-dim: #444;
  --border-light: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(76, 175, 80, 0.12);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-bg-hover: rgba(255, 255, 255, 0.04);
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Poppins', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-ja);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================
   Scroll Animation Base
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(19, 20, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--accent-glow);
  transition: background var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.site-logo .accent { color: var(--accent); }

.nav-menu {
  display: none;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-menu { display: flex; }
}
.nav-menu a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.header-cta {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.header-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 21, 0.98);
  z-index: 99;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 18px;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ============================================
   Geometric Background (Tessellation)
   ============================================ */
.geo-section {
  position: relative;
  overflow: hidden;
}
.geo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.geo-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.geo-section .section-content {
  position: relative;
  z-index: 1;
}

/* Seam glow pulse animation */
@keyframes seam-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.geo-bg .seam-glow {
  animation: seam-pulse 4s ease-in-out infinite;
}

/* ============================================
   Sections Common
   ============================================ */
.section {
  padding: 80px 0;
}
@media (max-width: 767px) {
  .section { padding: 48px 0; }
}
.section-dark { background: var(--bg-dark); }
.section-dark-alt { background: var(--bg-dark-alt); }
.section-darkest { background: var(--bg-darkest); }

.section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .section-title { font-size: 22px; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
@media (max-width: 767px) {
  .hero { padding-top: 100px; padding-bottom: 48px; min-height: auto; }
}
.hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 12px;
}
.hero-title .accent { color: var(--accent); }
@media (min-width: 768px) {
  .hero-title { font-size: 44px; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 26px; }
}
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 100px; }
.stat-number {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.btn-ghost:hover { color: var(--accent); }
@media (max-width: 767px) {
  .btn-primary { width: 100%; justify-content: center; padding: 16px; }
}

/* ============================================
   Problem Cards
   ============================================ */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .problems-grid { grid-template-columns: repeat(3, 1fr); }
}
.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--transition), border-color var(--transition);
}
.problem-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-glow);
}
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--accent);
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Service Cards
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 24px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-2px);
}
.service-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(76, 175, 80, 0.12);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.service-price {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.service-arrow {
  float: right;
  color: var(--text-dim);
  font-size: 18px;
  margin-top: -30px;
}

/* ============================================
   Industry Cards
   ============================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
.industry-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.industry-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}
.industry-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}
.industry-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 4px;
}
.industry-card p {
  font-size: 13px;
  color: var(--text-muted);
}
.industry-add {
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  grid-column: 1 / -1;
}

/* ============================================
   Stats / Numbers
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-card .number {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.stat-card .label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   CTA Band
   ============================================ */
.cta-band {
  background: var(--bg-darkest);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .cta-band h2 { font-size: 20px; }
}
.cta-band p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.cta-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-content { grid-template-columns: 200px 1fr; }
}
.about-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 48px;
  color: var(--accent);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 4px;
}
.about-text .title {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-glow);
}
.blog-card-thumb {
  width: 100%;
  height: 180px;
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 32px;
  overflow: hidden;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body { padding: 20px; }
.blog-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 8px;
  line-height: 1.5;
}
.blog-card-date {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   Contact Form
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 6px;
}
.form-group .required {
  font-size: 11px;
  color: var(--accent);
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-ja);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--accent-glow);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   Single Post / Page
   ============================================ */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 120px;
}
.entry-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.entry-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.entry-content p {
  margin-bottom: 20px;
  line-height: 1.9;
  color: #bbb;
}
.entry-content ul, .entry-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.entry-content li {
  margin-bottom: 8px;
  color: #bbb;
  list-style: disc;
}
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}
.entry-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  font-size: 12px;
  color: var(--text-dim);
  padding: 100px 0 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ============================================
   Author Box (E-E-A-T)
   ============================================ */
.author-box {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 48px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.author-info h4 { font-size: 15px; color: #ccc; margin-bottom: 2px; }
.author-info .role { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.author-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   HYBRID: Light Reading Mode for Blog Articles
   body.single-post / body.blog-light
   ============================================================ */
body.blog-light {
  background: #fbfbf9;
  color: #2d2d2d;
}
body.blog-light .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ebebeb;
}
body.blog-light .site-logo { color: #1a1a1a; }
body.blog-light .nav-menu a { color: #555; }
body.blog-light .nav-menu a:hover { color: var(--accent); }
body.blog-light .mobile-toggle span { background: #1a1a1a; }
body.blog-light .mobile-nav { background: rgba(255,255,255,0.98); }
body.blog-light .mobile-nav a { color: #2d2d2d; border-bottom-color: #ebebeb; }

body.blog-light .breadcrumb { color: #999; }
body.blog-light .breadcrumb a { color: #777; }

/* Article container - optimized for reading */
.article-light {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}
.article-light .article-header { margin-bottom: 40px; }
.article-light .article-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.article-light h1 {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
@media (max-width: 767px) {
  .article-light h1 { font-size: 24px; }
  .article-light { padding-top: 100px; }
}
.article-light .article-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Article summary box (AEO optimization - answers question upfront) */
.article-summary {
  background: #f4f8f4;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.article-summary .summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-summary p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* Table of Contents */
.toc-box {
  background: #f7f7f5;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 32px 0;
}
.toc-box .toc-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.toc-box ol { padding-left: 20px; }
.toc-box li { margin-bottom: 8px; }
.toc-box a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
}
.toc-box a:hover { color: var(--accent); text-decoration: underline; }

/* Article body - readable typography */
.article-body {
  font-size: 17px;
  line-height: 2;
  color: #333;
}
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
  line-height: 1.5;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #2a2a2a;
  margin: 36px 0 14px;
}
.article-body p { margin-bottom: 24px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 10px; list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a { color: #2e7d32; text-decoration: underline; }
.article-body strong { font-weight: 700; color: #1a1a1a; }
.article-body img { border-radius: 10px; margin: 32px 0; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: #f7f9f7;
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: #555;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  border: 1px solid #e5e5e5;
  padding: 12px 16px;
  text-align: left;
}
.article-body th { background: #f4f8f4; font-weight: 700; color: #333; }

/* Author box - light version */
body.blog-light .author-box {
  background: #f7f7f5;
  border: 1px solid #eaeaea;
}
body.blog-light .author-info h4 { color: #1a1a1a; }
body.blog-light .author-info p { color: #666; }

/* In-article CTA */
.inline-cta {
  background: linear-gradient(135deg, #1b2a2a, #1a3a2a);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}
.inline-cta h4 { font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 8px; }
.inline-cta p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }

/* Related posts */
.related-posts {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.related-posts h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}
body.blog-light .related-posts h3 { color: #1a1a1a; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
body.blog-light .related-grid .blog-card {
  background: #fff;
  border: 1px solid #eaeaea;
}
body.blog-light .related-grid .blog-card h3 { color: #2a2a2a; font-size: 14px; }
body.blog-light .related-grid .blog-card-cat { color: var(--accent); }
body.blog-light .related-grid .blog-card-thumb { background: #f0f0ee; }

body.blog-light .site-footer {
  background: #1a1b1f;
}

/* ============================================================
   Lead Magnet Box (Document Download + Email Capture)
   ============================================================ */
.lead-magnet {
  background: var(--card-bg);
  border: 1px solid var(--accent-glow);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
}
body.blog-light .lead-magnet {
  background: #f4f8f4;
  border: 1px solid #d4e8d4;
}
.lead-magnet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 700px) {
  .lead-magnet-grid { grid-template-columns: 1fr 1.2fr; }
}
.lead-magnet-visual {
  text-align: center;
  font-size: 48px;
  color: var(--accent);
}
.lead-magnet-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
body.blog-light .lead-magnet-content h3 { color: #1a1a1a; }
.lead-magnet-content p {
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}
body.blog-light .lead-magnet-content p { color: #555; }
.lead-magnet-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lead-magnet-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 15px;
}
body.blog-light .lead-magnet-form input[type="email"] {
  background: #fff;
  border: 1px solid #d4d4d4;
  color: #333;
}

/* ============================================================
   Form States (success / error)
   ============================================================ */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.form-message.success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.form-message.error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid #d05050;
  color: #e08080;
}
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Contact form layout */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0;
}
.form-privacy a { color: var(--accent); }

/* Diagnosis steps */
.diagnosis-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}
@media (min-width: 700px) { .diagnosis-steps { grid-template-columns: repeat(3, 1fr); } }
.diag-step {
  text-align: center;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  position: relative;
}
.diag-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.diag-step h4 { font-size: 15px; color: #ccc; margin-bottom: 6px; }
.diag-step p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   ENHANCED ANIMATIONS & INTERACTIONS (performance-safe)
   transform/opacity only · GPU-composited · reduced-motion aware
   ============================================================ */

/* --- Directional scroll reveals (share .visible toggle) --- */
.reveal-left  { opacity: 0; transform: translateX(-36px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-right { opacity: 0; transform: translateX(36px);  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-scale { opacity: 0; transform: scale(.94);        transition: opacity .6s ease-out, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none; }

/* Smoother default fade-up with spring-like easing */
.fade-up { transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }

/* --- Card hover: lift + accent glow (single element at a time = cheap) --- */
.problem-card, .service-card, .industry-card, .blog-card, .stat-card {
  will-change: transform;
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.problem-card:hover, .stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76,175,80,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(76,175,80,0.15);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), -3px 0 16px rgba(76,175,80,0.25);
}
.industry-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(76,175,80,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 24px rgba(76,175,80,0.12);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
body.blog-light .blog-card:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,0.1);
  border-color: rgba(76,175,80,0.4);
}

/* --- Icon micro-interactions on card hover --- */
.problem-icon, .industry-icon { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.problem-card:hover .problem-icon { transform: scale(1.12) rotate(-4deg); }
.industry-card:hover .industry-icon { transform: translateY(-3px) scale(1.1); }

/* --- Service card arrow slides on hover --- */
.service-arrow { transition: transform .35s cubic-bezier(.16,1,.3,1), color .35s ease; }
.service-card:hover .service-arrow { transform: translateX(6px); color: var(--accent); }

/* --- Primary button: shine sweep + lift --- */
.btn-primary { position: relative; overflow: hidden; will-change: transform; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(76,175,80,0.35); }
.btn-primary:active { transform: translateY(0) scale(.98); }

/* --- Ghost button arrow nudge --- */
.btn-ghost svg { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.btn-ghost:hover svg { transform: translateX(5px); }

/* --- Header CTA pulse-ready --- */
.header-cta { position: relative; overflow: hidden; }
.header-cta::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.header-cta:hover::after { left: 140%; }

/* --- Card cursor-follow spotlight (driven by --mx/--my from JS) --- */
.problem-card, .service-card, .industry-card {
  position: relative;
}
.problem-card::before, .service-card::before, .industry-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(76,175,80,0.10), transparent 60%);
}
.problem-card:hover::before, .service-card:hover::before, .industry-card:hover::before { opacity: 1; }
.service-card::before { border-radius: 0 var(--radius) var(--radius) 0; }

/* --- Geo background junction dots: gentle staggered twinkle (HERO ONLY for perf) --- */
@keyframes geo-twinkle { 0%,100% { opacity: .25; } 50% { opacity: .7; } }
.hero .geo-bg circle { animation: geo-twinkle 5s ease-in-out infinite; transform-box: fill-box; }
.hero .geo-bg circle:nth-child(odd) { animation-delay: 1.2s; }
.hero .geo-bg circle:nth-child(3n) { animation-delay: 2.4s; }
.hero .geo-bg circle:nth-child(4n) { animation-delay: 3.6s; }

/* --- Geo background parallax target --- */
.geo-bg { will-change: transform; }

/* --- Form field focus glow --- */
.form-group input, .form-group select, .form-group textarea,
.lead-magnet-form input, .dp-fg input {
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.lead-magnet-form input:focus {
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

/* --- Hero label: subtle blink-in cursor feel --- */
@keyframes hero-line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-label::after {
  content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent);
  margin-left: 10px; vertical-align: middle; transform-origin: left center;
  animation: hero-line-grow .8s cubic-bezier(.16,1,.3,1) .3s both;
}

/* --- Section label accent line --- */
.section-label { position: relative; display: inline-block; }

/* --- Diagnosis step number: pop on section reveal --- */
.diag-step { transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease; }
.diag-step:hover { transform: translateY(-4px); border-color: rgba(76,175,80,0.3); }
.diag-step .step-num { transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.diag-step:hover .step-num { transform: scale(1.1); }

/* --- Nav links smoother --- */
.nav-menu a { transition: color .3s ease; }
.nav-menu a::after { transition: width .35s cubic-bezier(.16,1,.3,1); }

/* --- Scroll progress bar (top of page) --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left center; z-index: 101;
  background: linear-gradient(90deg, var(--accent), #7BC97F);
  will-change: transform;
}

/* --- Lead magnet hover --- */
.lead-magnet { transition: border-color .35s ease, box-shadow .35s ease; }
.lead-magnet:hover { border-color: rgba(76,175,80,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* --- Inline article CTA hover --- */
.inline-cta { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.inline-cta:hover { transform: translateY(-3px); }

/* ============================================================
   Respect reduced motion — disable all enhancements
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal-left, .reveal-right, .reveal-scale, .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .geo-bg circle { animation: none !important; }
  .hero-label::after { animation: none; }
  .btn-primary::after, .header-cta::after { display: none; }
  .scroll-progress { display: none; }
  * { scroll-behavior: auto !important; }
}

/* Touch devices: disable cursor spotlight (no hover) */
@media (hover: none) {
  .problem-card::before, .service-card::before, .industry-card::before { display: none; }
}
/* ============================================================
   共通ページヘッダー（page.php / 英語ラベル → H1 → サブ文）
   ※ style.css の末尾に追記してください
   ============================================================ */
.page-hero {
  position: relative;
  text-align: center;
  padding: 140px 0 56px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .page-hero { padding: 110px 0 40px; }
}

/* 背景の微細なグロー演出 */
.page-hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(76,175,80,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }

/* 英語ラベル（緑） */
.page-hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}
/* ラベル両脇の装飾ライン（アニメーションで伸びる） */
.page-hero-label::before,
.page-hero-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transform: scaleX(0);
  transition: transform .8s cubic-bezier(.16,1,.3,1) .4s;
}
.page-hero-label::before { right: 100%; margin-right: 14px; transform-origin: right center; }
.page-hero-label::after  { left: 100%;  margin-left: 14px;  transform-origin: left center; }
.page-hero-label.visible::before,
.page-hero-label.visible::after { transform: scaleX(1); }

/* H1 */
.page-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .page-hero-title { font-size: 42px; }
}
@media (max-width: 767px) {
  .page-hero-title { font-size: 28px; }
}

/* サブ文 */
.page-hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .page-hero-sub { font-size: 14px; }
}

/* ヘッダーがある場合、本文の上部paddingをリセット（ヘッダーで余白確保済み） */
.entry-content.has-page-hero {
  padding-top: 0;
}
.entry-content.has-page-hero > div {
  max-width: 760px;
  margin: 0 auto;
}

/* 一覧ページ等で幅広コンテンツを使う場合の解除クラス */
.entry-content.has-page-hero.is-wide > div {
  max-width: var(--max-width);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-label::before,
  .page-hero-label::after { transition: none; transform: scaleX(1); }
}
.entry-content .sv-detail-cta, .entry-content .ind-cta-btn { color: #fff; }