/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0b3d91;
  --primary-dark: #07265c;
  --primary-light: #2861c9;
  --accent: #ff6b2b;
  --accent-light: #ff8a56;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-dark: #0d1a2e;
  --text: #1a2233;
  --text-sub: #596274;
  --text-light: #8b92a3;
  --border: #e3e8f0;
  --shadow-sm: 0 2px 8px rgba(13, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 26, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 26, 46, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--trans); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 43, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 43, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 18px 40px; font-size: 17px; }
.btn-block { width: 100%; }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: all var(--trans);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 32px; }

/* WordPress 管理バー対応（ログイン中のみ body.admin-bar が付く） */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(11, 61, 145, 0.3);
}
.logo-text { font-size: 20px; letter-spacing: 0.05em; font-family: 'Roboto', sans-serif; color: var(--primary); }

.nav { flex: 1; }
.nav ul { display: flex; gap: 32px; justify-content: center; }
.nav a { font-weight: 500; font-size: 15px; color: var(--text); position: relative; }
.nav a:hover { color: var(--primary); }
.nav a::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--trans);
}
.nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--trans); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(40, 97, 201, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 43, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 40px;
}
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 40px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #fff, #c3d4f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-num::after { content: '+'; color: var(--accent); }
.stat-label { font-size: 13px; opacity: 0.75; }

/* ヒーロービジュアル */
.hero-visual { position: relative; }
.video-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.6s ease;
}
.video-card:hover { transform: rotate(0deg) scale(1.02); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a3a6b, #2861c9);
  border-radius: 12px;
  overflow: hidden;
  display: grid; place-items: center;
}
.video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.08) 49%, rgba(255,255,255,0.08) 51%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(255,255,255,0.08) 49%, rgba(255,255,255,0.08) 51%, transparent 51%);
  background-size: 30px 30px;
}
.play-button {
  width: 72px; height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform var(--trans);
  position: relative; z-index: 2;
}
.play-button:hover { transform: scale(1.1); }
.play-button svg { width: 28px; height: 28px; color: var(--primary); margin-left: 4px; }
.video-title {
  position: absolute; bottom: 48px; left: 16px;
  color: #fff; font-weight: 700; font-size: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  z-index: 2;
}
.video-progress {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  z-index: 2;
}
.video-progress span {
  display: block;
  height: 100%;
  width: 65%;
  background: var(--accent);
  border-radius: 2px;
}
.video-meta { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lang-badge {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-alt);
  color: var(--text-sub);
  border-radius: 999px;
  font-weight: 500;
}

.float-card {
  position: absolute;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  animation: float 4s ease-in-out infinite;
}
.float-card-1 {
  top: -20px; right: -20px;
  animation-delay: 0s;
}
.float-card-2 {
  bottom: -30px; left: -30px;
  animation-delay: 1.5s;
}
.float-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 900;
}
.float-card-2 .float-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.float-title { font-size: 13px; font-weight: 700; }
.float-sub { font-size: 11px; color: var(--text-sub); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== 共通セクション ===== */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 43, 0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.section-title.white { color: #fff; }
.highlight {
  background: linear-gradient(transparent 65%, rgba(255, 107, 43, 0.25) 65%);
}
.highlight-alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-top: 20px;
  line-height: 1.9;
}

/* ===== 課題セクション ===== */
.problem { background: var(--bg-alt); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.problem-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.problem-card:hover::before { transform: scaleX(1); }
.problem-num {
  font-size: 48px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ===== 特徴セクション ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-item {
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.1), rgba(40, 97, 201, 0.15));
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--primary);
  margin-bottom: 24px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-item h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}
.feature-item p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
}

/* ===== 料金セクション ===== */
.plans { background: var(--bg-alt); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.plan-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--trans);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan-featured {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.plan-featured:hover { transform: scale(1.05) translateY(-6px); }
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 43, 0.4);
}
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-num {
  font-size: 38px;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
}
.plan-featured .price-num { font-size: 42px; }
.price-unit { font-size: 14px; color: var(--text-sub); }
.plan-featured .price-unit { color: rgba(255,255,255,0.75); }
.plan-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.plan-featured .plan-sub {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.15);
}
.plan-features { margin-bottom: 32px; }
.plan-features li { padding: 8px 0; font-size: 14px; }
.plan-featured .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.plan-featured .btn-primary:hover { background: var(--accent); color: #fff; }
.plans-note {
  text-align: center;
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 13px;
}

/* ===== 導入事例 ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.case-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all var(--trans);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: rgba(255, 107, 43, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  width: fit-content;
  font-weight: 600;
}
.case-card blockquote {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  flex: 1;
}
.case-meta {
  font-size: 12px;
  color: var(--text-light);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--trans);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 24px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--trans);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 28px 24px; color: var(--text-sub); font-size: 14px; line-height: 1.9; }

/* ===== お問い合わせ ===== */
.contact {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 107, 43, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  color: #fff;
  position: relative;
}
.contact-inner {
  max-width: 780px;
  margin: 0 auto;
}
.contact-head { text-align: center; margin-bottom: 48px; }
.contact-lead {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.85;
  margin-top: 20px;
}
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 20px; }
.contact-form label > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.contact-form label > span em {
  color: var(--accent);
  font-style: normal;
  margin-left: 4px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all var(--trans);
  background: #fff;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15);
}
.form-textarea textarea { resize: vertical; min-height: 120px; }
.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-sub);
}
.form-success {
  display: none;
  padding: 16px 20px;
  background: #e6f7ed;
  color: #0a7a38;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.form-success.show { display: block; animation: slideIn 0.5s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== フッター ===== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 13px; opacity: 0.65; line-height: 1.8; }
.footer-nav h4 { font-size: 14px; color: #fff; margin-bottom: 20px; font-weight: 700; }
.footer-nav ul li { margin-bottom: 10px; font-size: 14px; opacity: 0.7; }
.footer-nav a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { text-align: center; padding-top: 24px; font-size: 12px; opacity: 0.5; }

/* ===== アニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-6px); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 24px;
    flex-direction: column;
    transform: translateY(-120%);
    transition: transform var(--trans);
  }
  body.admin-bar .nav { top: calc(72px + 46px); }
  .nav.active { transform: translateY(0); }
  .nav ul { flex-direction: column; gap: 20px; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 32px 24px; }
  .float-card-1 { right: 0; top: -10px; }
  .float-card-2 { left: 0; bottom: -10px; }
}

/* ---- 追加セクション ---- */
.problem-note {
  margin-top: 48px;
  padding: 28px 32px;
  background: #fff;
  border-left: 4px solid var(--color-primary, #ff6b1a);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.problem-note strong { color: var(--color-primary, #ff6b1a); }

.feature-item.feature-highlight {
  background: linear-gradient(135deg, #fff5ee 0%, #ffffff 100%);
  border: 2px solid var(--color-primary, #ff6b1a);
}

.difference { background: #fafafa; }
.diff-grid {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.diff-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.diff-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.diff-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary, #ff6b1a);
  color: #fff;
  font-weight: 900;
  font-family: 'Roboto', sans-serif;
  flex-shrink: 0;
}
.diff-head h3 { font-size: 22px; margin: 0; }
.diff-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.diff-col {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 24px;
}
.diff-col h4 {
  font-size: 16px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  color: #666;
}
.diff-col-tackman {
  background: #fff5ee;
}
.diff-col-tackman h4 {
  color: var(--color-primary, #ff6b1a);
  border-bottom-color: var(--color-primary, #ff6b1a);
}
.diff-col ul { list-style: none; padding: 0; margin: 0; }
.diff-col li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}
.diff-col li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
}
.diff-col li.diff-neg,
.diff-col li.diff-pos {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #ddd;
  font-weight: 700;
}
.diff-col li.diff-neg { color: #c33; }
.diff-col li.diff-neg::before { background: #c33; }
.diff-col li.diff-pos { color: var(--color-primary, #ff6b1a); }
.diff-col li.diff-pos::before { background: var(--color-primary, #ff6b1a); }

.cases-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

@media (max-width: 768px) {
  .diff-body { grid-template-columns: 1fr; }
  .diff-card { padding: 24px 20px; }
  .diff-head h3 { font-size: 18px; }
  .problem-note { padding: 20px 22px; font-size: 15px; }
}

/* ---------- WordPress用の追加コンポーネント ---------- */

/* お知らせ一覧 */
.news-list { list-style: none; padding: 0; margin: 40px 0; }
.news-item { border-bottom: 1px solid #eee; }
.news-item:first-child { border-top: 1px solid #eee; }
.news-link {
  display: flex;
  gap: 24px;
  padding: 20px 8px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  align-items: baseline;
}
.news-link:hover { background: #fafafa; }
.news-date {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
  min-width: 100px;
}
.news-title { font-size: 15px; line-height: 1.6; }

/* ブログ一覧 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f6f6f6; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-date {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #888;
  font-weight: 700;
}
.blog-card-title { font-size: 17px; line-height: 1.5; margin: 6px 0 10px; }
.blog-card-title a { color: #222; text-decoration: none; }
.blog-card-title a:hover { color: var(--color-primary, #ff6b1a); }
.blog-card-excerpt { font-size: 14px; line-height: 1.7; color: #555; margin: 0; }

/* 詳細ページ共通 */
.single-post { padding: 20px 0 40px; }
.single-breadcrumb { font-size: 13px; margin-bottom: 24px; }
.single-breadcrumb a { color: #888; text-decoration: none; }
.single-breadcrumb a:hover { color: var(--color-primary, #ff6b1a); }
.single-date {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
}
.single-title {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.4;
  margin: 0 0 20px;
  font-weight: 900;
}
.single-thumb { margin: 32px 0; }
.single-thumb img { width: 100%; height: auto; display: block; border-radius: 12px; }
.single-body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.single-body h2 { font-size: 24px; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.single-body h3 { font-size: 20px; margin: 32px 0 12px; }
.single-body p { margin: 0 0 20px; }
.single-body ul, .single-body ol { margin: 0 0 20px; padding-left: 24px; }
.single-body li { margin-bottom: 6px; }
.single-body a { color: var(--color-primary, #ff6b1a); }
.single-body img { max-width: 100%; height: auto; border-radius: 8px; }
.single-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: #fafafa;
  border-left: 4px solid var(--color-primary, #ff6b1a);
  font-style: italic;
}
.single-cats { margin-bottom: 16px; }
.single-cat {
  display: inline-block;
  padding: 3px 10px;
  margin-right: 6px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
}
.single-cat:hover { border-color: var(--color-primary, #ff6b1a); color: var(--color-primary, #ff6b1a); }

/* ページネーション */
.pagination { text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination a,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #555;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}
.pagination .current {
  background: var(--color-primary, #ff6b1a);
  color: #fff;
  border-color: var(--color-primary, #ff6b1a);
}
.pagination a:hover { border-color: var(--color-primary, #ff6b1a); color: var(--color-primary, #ff6b1a); }

/* btn-sm（ヘッダーCTA用を一覧フィルタでも使う） */
.btn-sm { padding: 6px 14px; font-size: 13px; }

@media (max-width: 768px) {
  .news-link { flex-direction: column; gap: 4px; padding: 16px 4px; }
  .news-date { min-width: 0; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}


/* =====================================================================
 * Gutenberg ブロックエディタ互換 — block-patterns.php からの出力対応
 * - .wp-block-group が付与する余計な flex/margin を相殺
 * - hero-visual を持たないシングルカラム構成に対応
 * ===================================================================== */

/* wp-block-group のデフォルト flex を block 化（既存 .container 等のレイアウト維持） */
.wp-block-group.container,
.wp-block-group.section,
.wp-block-group.section-head,
.wp-block-group.hero-text,
.wp-block-group.hero-inner,
.wp-block-group.problem-card {
  display: block;
}

/* hero-inner: hero-visual を削除したのでシングルカラム化 */
.wp-block-group.hero-inner,
.hero-inner {
  display: block;
  grid-template-columns: none;
  max-width: 800px;
}

/* hero-text の wp-block-group ラッパー */
.wp-block-group.hero-text {
  max-width: 720px;
}

/* hero-title の <span> 廃止に伴うフォールバック — <br> ベースでもCSSが効くように */
.hero-title { white-space: normal; }

/* hero-stats: Gutenberg group flex-wrap で2カラムを保つ */
.wp-block-group.hero-stats {
  display: flex !important;
  gap: 40px;
  flex-wrap: wrap;
}
.wp-block-group.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wp-block-group.stat .stat-num,
.wp-block-group.stat .stat-label {
  margin: 0;
}

/* problem-grid: wp-block-group ラップでも grid を維持 */
.wp-block-group.problem-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* section-head 内段落のマージン正規化 */
.wp-block-group.section-head > * { margin-left: auto; margin-right: auto; }
.wp-block-group.section-head .section-tag { margin-bottom: 12px; }
.wp-block-group.section-head .section-title { margin-bottom: 16px; }

/* hero-cta: wp-block-buttons の標準スタイルを上書き */
.wp-block-buttons.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 48px;
}
.wp-block-buttons.hero-cta .wp-block-button { margin: 0; }
.wp-block-buttons.hero-cta .wp-block-button__link {
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all var(--trans, .25s);
}
/* primary（オレンジ塗り） */
.wp-block-button.hero-btn-primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
}
.wp-block-button.hero-btn-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 43, 0.45);
}
/* ghost（透過） */
.wp-block-button.hero-btn-ghost .wp-block-button__link {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.wp-block-button.hero-btn-ghost .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* paragraph block のデフォルト margin を hero/problem 内で吸収 */
.hero-text > .wp-block-paragraph,
.problem-card > .wp-block-paragraph,
.section-head > .wp-block-paragraph {
  margin: 0 0 16px;
}

/* problem-card 内ヘディングのデフォルトマージン */
.problem-card .wp-block-heading {
  margin: 0 0 16px;
}

/* セクション内ヒーロー — .hero-bg div を撤廃したので暗い背景を直接適用 */
.wp-block-group.section.hero {
  position: relative;
  padding: 120px 0 80px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(40, 97, 201, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 43, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
}
/* グリッド模様の上乗せ装飾 */
.wp-block-group.section.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* hero 内のテキストカラーを明示（暗背景の上で白く） */
.wp-block-group.section.hero,
.wp-block-group.section.hero .hero-eyebrow,
.wp-block-group.section.hero .hero-title,
.wp-block-group.section.hero .hero-lead,
.wp-block-group.section.hero .stat-label {
  color: #fff;
}

/* モバイル: hero / problem の余白とフォント */
@media (max-width: 768px) {
  .wp-block-group.section.hero { padding: 100px 0 64px; }
  .wp-block-group.hero-stats { gap: 24px; }
}
