/* ==================================================
   SST Theme Stylesheet v1.0.0
   SELFサポートツール情報サイト（nagasaki-sst.com）
   処方連携（yakure.org）と同じ設計・配色のみ差し替え
   ================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Variables ----- */
/* 配色: SELFサポートツールのアイコン色 #E02E24 をアクセントに、
   本文側はディープスレートでまとめる（処方連携のネイビー×ティールと区別する） */
:root {
  --color-primary: #24303f;
  --color-primary-light: #38495f;
  --color-primary-dark: #161e28;
  --color-accent: #e02e24;
  --color-accent-light: #f04a40;
  --color-accent-dark: #b3231b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;
  --color-bg-softer: #eef1f5;
  --color-text: #1b2330;
  --color-text-muted: #4b5666;
  --color-text-dim: #6f7a8a;
  --color-border: #e3e7ed;
  --color-border-strong: #c9d0da;

  --font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter', 'Noto Sans JP', sans-serif;

  --container-max: 1200px;
  --container-narrow: 820px;
  --header-h: 72px;

  --shadow-xs: 0 1px 2px rgba(22, 30, 40, 0.04);
  --shadow-sm: 0 2px 6px rgba(22, 30, 40, 0.06);
  --shadow-md: 0 6px 20px rgba(22, 30, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(22, 30, 40, 0.15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Base ----- */
body {
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.75;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--color-text); }
a { transition: color var(--trans-fast); }
a:hover { color: var(--color-accent-dark); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; width: 100%; }
.container-narrow { max-width: var(--container-narrow); }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
  word-wrap: normal !important;
}
.skip-link { position: absolute; top: -40px; left: 8px; z-index: 999; background: var(--color-primary); color: #fff; padding: 8px 16px; border-radius: 0 0 4px 4px; }
.skip-link:focus { top: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 4px 14px rgba(224, 46, 36, 0.35); }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; box-shadow: 0 8px 20px rgba(224, 46, 36, 0.45); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-outline:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-nav { padding: 9px 18px; font-size: 14px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-h);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 10px; color: var(--color-primary); flex-shrink: 0; white-space: nowrap; }
.site-branding img, .site-branding .custom-logo-link img { max-height: 40px; width: auto; flex-shrink: 0; }
.site-title { font-size: 20px; font-weight: 900; color: var(--color-primary); letter-spacing: 0.02em; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.primary-menu { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.primary-menu li { flex-shrink: 0; }
.primary-menu li a {
  display: block;
  padding: 8px 10px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.primary-menu li a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.primary-menu li.current-menu-item > a,
.primary-menu li.current-page-ancestor > a { color: var(--color-primary); font-weight: 700; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--color-text);
  margin: 5px 0; border-radius: 2px;
  transition: all var(--trans);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 100px 0 140px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 55%, #e6f5f4 100%);
  overflow: hidden;
}
.hero-bg-shape {
  position: absolute; top: -200px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(224, 46, 36, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 54, 93, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 54, 93, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero-container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px;
  align-items: center;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(224, 46, 36, 0.1);
  border-radius: var(--radius-pill);
}
.product-brand-image{
  margin: 0 0 24px;
  text-align: center;
}
.product-brand-image img{
  display: block;
  max-width: 1024px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
@media (max-width: 640px){
  .product-brand-image img{ max-width: 704px; }
}
.hero-title {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--color-primary);
  word-break: keep-all;
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.hero-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  word-break: keep-all;
}
.hero-lead-line {
  display: block;
  white-space: nowrap;
}
.hero-trial-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin: -24px 0 20px;
  font-size: 15px; font-weight: 700;
  color: var(--color-accent-dark);
}
.hero-trial-note::before {
  content: ''; display: inline-block;
  width: 18px; height: 18px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 11h-2V6h2v7zm0 4h-2v-2h2v2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 11h-2V6h2v7zm0 4h-2v-2h2v2z'/></svg>") center / contain no-repeat;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; font-size: 13px; color: var(--color-text-dim); flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ''; display: inline-block;
  width: 16px; height: 16px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / contain no-repeat;
}

.hero-image-frame {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--trans-slow);
}
.hero-image-frame:hover { transform: translateY(-4px); }
.hero-image-chrome {
  display: flex; gap: 6px; padding: 10px 14px;
  background: linear-gradient(180deg, #f7fafc, #edf2f7);
  border-bottom: 1px solid var(--color-border);
}
.hero-image-chrome span { width: 11px; height: 11px; border-radius: 50%; }
.hero-image-chrome span:nth-child(1) { background: #ff5f57; }
.hero-image-chrome span:nth-child(2) { background: #febc2e; }
.hero-image-chrome span:nth-child(3) { background: #28c840; }

/* ----- Sections ----- */
.section-header { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(224, 46, 36, 0.1);
  border-radius: var(--radius-pill);
}
.section-header h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--color-primary); }
.section-header p { font-size: 17px; color: var(--color-text-muted); }
.section-footer { text-align: center; margin-top: 56px; }

/* ----- Features Grid ----- */
.features-overview { padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--trans);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(224, 46, 36, 0.3);
}
.feature-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--color-primary); }
.feature-card p { color: var(--color-text-muted); line-height: 1.85; font-size: 15px; }

/* ----- Screenshots ----- */
.screenshots { padding: 120px 0; background: var(--color-bg-alt); position: relative; }
.screenshot-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.screenshot-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--trans);
  opacity: 0;
  transform: translateY(20px);
}
.screenshot-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }
.screenshot-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.screenshot-img { padding: 12px; background: linear-gradient(180deg, #f7fafc, #fff); }
.screenshot-img img { border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.screenshot-caption { padding: 28px 32px 32px; border-top: 1px solid var(--color-border); }
.screenshot-caption h4 { font-size: 20px; margin-bottom: 8px; color: var(--color-primary); }
.screenshot-caption p { color: var(--color-text-muted); font-size: 15px; line-height: 1.8; }

/* ----- Workflow ----- */
.workflow { padding: 120px 0; }
.workflow-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
.workflow-steps li {
  padding: 40px 32px;
  background: linear-gradient(180deg, #fff, #f7fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  position: relative;
  transition: all var(--trans);
}
.workflow-steps li:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.step-number {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.workflow-steps li h3 { font-size: 20px; margin-bottom: 12px; color: var(--color-primary); }
.workflow-steps li p { color: var(--color-text-muted); font-size: 15px; line-height: 1.85; }

/* ----- CTA ----- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(79, 209, 197, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-container { position: relative; z-index: 1; }
.cta h2 { font-size: 40px; font-weight: 800; margin-bottom: 18px; color: #fff; letter-spacing: -0.02em; }
.cta p { font-size: 18px; margin-bottom: 44px; opacity: 0.85; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ----- Page ----- */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(224, 46, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-size: 44px; font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; }
.page-date-badge, .post-date-badge {
  display: inline-block;
  color: var(--color-accent-dark);
  font-family: var(--font-en);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(224, 46, 36, 0.12);
  border-radius: var(--radius-pill);
}
.breadcrumbs { color: var(--color-text-dim); font-size: 13px; margin-bottom: 12px; }

.page-content { padding: 72px 0 96px; }
.page-content h2 {
  font-size: 28px;
  margin: 56px 0 20px;
  padding-left: 16px;
  border-left: 5px solid var(--color-accent);
  color: var(--color-primary);
  line-height: 1.4;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 22px; margin: 40px 0 16px; color: var(--color-primary); }
.page-content h4 { font-size: 18px; margin: 28px 0 12px; color: var(--color-primary); }
.page-content p { margin-bottom: 20px; font-size: 16px; line-height: 1.9; }
.page-content a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--color-primary); }
.page-content ul, .page-content ol { margin: 0 0 24px 1.5em; }
.page-content ul li, .page-content ol li { margin-bottom: 8px; list-style: inherit; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content strong { color: var(--color-primary); font-weight: 700; }
.page-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-muted);
}
.page-content code {
  background: var(--color-bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 14px;
  color: var(--color-primary);
}
.page-content pre {
  background: var(--color-primary-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 24px 0;
}
.page-content pre code { background: transparent; color: inherit; padding: 0; }
.page-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.page-content th, .page-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.page-content th { background: var(--color-bg-alt); font-weight: 700; color: var(--color-primary); border-bottom: 2px solid var(--color-border-strong); }
.page-content tr:last-child td { border-bottom: 0; }
.page-content img { border-radius: var(--radius-sm); margin: 24px 0; box-shadow: var(--shadow-sm); }
.page-content hr { border: 0; height: 1px; background: var(--color-border); margin: 40px 0; }

/* Buttons inside page content (via shortcode/Gutenberg buttons) */
/* 文字色と下線を明示しないと、上の .page-content a（濃赤・下線）が残って
   赤地に赤文字になり読めなくなる */
.page-content .wp-block-button .wp-block-button__link {
  background-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 700;
  transition: background-color var(--trans);
}
.page-content .wp-block-button .wp-block-button__link:hover,
.page-content .wp-block-button .wp-block-button__link:focus {
  background-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}
/* 枠線だけのボタン（is-style-outline）も読めるようにする */
.page-content .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border-strong);
}
.page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ----- FAQ (details/summary) ----- */
.page-content details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--trans);
}
.page-content details[open] { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.page-content details summary {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px;
}
.page-content details summary::-webkit-details-marker,
.page-content details summary::marker { display: none; content: ''; }
.page-content details summary::after {
  content: '+';
  color: var(--color-accent);
  font-size: 28px; font-weight: 300;
  line-height: 1;
  transition: transform var(--trans);
}
.page-content details[open] summary::after { transform: rotate(45deg); }
.page-content details > *:not(summary) {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
}

/* ----- Posts list ----- */
.posts-list { display: flex; flex-direction: column; gap: 32px; }
.post-summary {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.post-summary:last-child { border-bottom: 0; }
.post-date { display: block; color: var(--color-accent-dark); font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 8px; }
.post-title { font-size: 24px; margin-bottom: 12px; }
.post-title a { color: var(--color-primary); transition: color var(--trans-fast); }
.post-title a:hover { color: var(--color-accent); }
.post-excerpt { color: var(--color-text-muted); margin-bottom: 12px; }
.post-more { color: var(--color-accent-dark); font-weight: 700; font-size: 14px; }

.pagination { display: flex; justify-content: center; margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--trans-fast);
}
.pagination .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.post-nav { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--color-border); gap: 16px; }
.post-nav a { color: var(--color-accent-dark); font-weight: 500; }
.post-nav-next { margin-left: auto; text-align: right; }

.no-posts { color: var(--color-text-muted); text-align: center; padding: 40px 0; }

/* ----- 404 ----- */
.error-code {
  font-family: var(--font-en);
  font-size: 120px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ----- Contact ----- */
.contact-section {
  position: relative;
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
  overflow: hidden;
}
.contact-bg-shape {
  position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(224, 46, 36, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-section .container { position: relative; z-index: 1; }

.contact-header { text-align: center; margin-bottom: 48px; }
.contact-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  background: rgba(224, 46, 36, 0.12);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.contact-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.contact-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 56px 56px 40px;
  overflow: hidden;
}
.contact-card-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 60%, var(--color-accent-light) 100%);
}

.contact-card-header {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.contact-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(224, 46, 36, 0.35);
}
.contact-card-title {
  font-size: 24px;
  color: var(--color-primary);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.contact-card-org {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-rows {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  transition: all var(--trans-fast);
}
.contact-row:hover {
  background: #edf7f6;
  transform: translateX(2px);
}
.contact-row-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: #fff;
  color: var(--color-accent-dark);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.contact-row-body {
  flex: 1;
  min-width: 0;
}
.contact-row-label {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-row-value {
  display: block;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--color-text);
  word-break: break-word;
}
.contact-row-value a {
  color: var(--color-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans-fast);
}
.contact-row-value a:hover { border-bottom-color: var(--color-accent); }
.contact-row-highlight {
  display: inline-block;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}

.contact-card-action {
  text-align: center;
  padding: 8px 0 0;
}
.contact-send-btn {
  min-width: 240px;
}

.contact-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.8;
}
.contact-note strong {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .contact-section { padding: 60px 0 80px; }
  .contact-title { font-size: 30px; }
  .contact-subtitle { font-size: 15px; }
  .contact-card { padding: 40px 24px 28px; border-radius: var(--radius); }
  .contact-card-title { font-size: 20px; }
  .contact-row { padding: 14px 16px; gap: 14px; }
  .contact-row-icon { width: 40px; height: 40px; }
  .contact-row-value { font-size: 15px; }
  .contact-row-highlight { font-size: 16px; }
  .contact-send-btn { width: 100%; }
}

/* ----- Architecture / FAQ page ----- */
.arch-page{background:#fafbfc}
.arch-body{padding:40px 0 80px;background:#fafbfc}
.arch-section{padding:0;background:transparent;margin-bottom:32px}
.arch-page .arch-section > .container,
.arch-page .arch-section > .container-narrow{
  max-width:1000px;
  background:#fff;
  border-radius:20px;
  padding:48px;
  box-shadow:0 4px 20px rgba(26,54,93,0.06);
}

.arch-h2{
  font-size:26px;color:var(--color-primary);
  margin-bottom:16px;
  display:flex;align-items:center;gap:12px;
  padding:0;border-left:0;
}
.arch-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;
  background:linear-gradient(135deg,var(--color-accent) 0%,var(--color-accent-light) 100%);
  color:#fff;border-radius:12px;
  font-size:18px;font-weight:800;
  box-shadow:0 4px 14px rgba(56,178,172,0.35);
  flex-shrink:0;
}
.arch-lead{
  color:var(--color-text-muted);
  font-size:15px;margin-bottom:32px;
  line-height:1.9;
}
.arch-lead strong{color:var(--color-primary)}

/* Benefits */
.arch-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}
.arch-benefit{
  text-align:center;padding:28px 20px;
  background:linear-gradient(180deg,#fff,#f7fafc);
  border:1px solid var(--color-border);
  border-radius:16px;
  transition:transform 0.2s;
}
.arch-benefit:hover{transform:translateY(-4px)}
.arch-benefit-icon{
  width:72px;height:72px;margin:0 auto 16px;
  background:linear-gradient(135deg,var(--color-accent) 0%,var(--color-accent-light) 100%);
  color:#fff;border-radius:20px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(56,178,172,0.3);
}
.arch-benefit h3{font-size:18px;color:var(--color-primary);margin-bottom:8px}
.arch-benefit p{font-size:14px;color:var(--color-text-muted);line-height:1.8}

/* Steps */
.arch-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:24px}
.arch-step{
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:16px;
  padding:24px 20px;
  position:relative;
}
.arch-step::after{
  content:'→';position:absolute;right:-14px;top:50%;
  transform:translateY(-50%);
  color:var(--color-accent);font-size:24px;font-weight:700;
  z-index:1;
}
.arch-step:last-child::after{display:none}
.arch-step-num{
  display:inline-block;
  background:var(--color-primary);color:#fff;
  padding:2px 10px;border-radius:100px;
  font-size:11px;font-weight:700;
  margin-bottom:12px;
}
.arch-step h4{font-size:15px;color:var(--color-primary);margin-bottom:8px;line-height:1.5}
.arch-step p{font-size:13px;color:var(--color-text-muted)}

/* Diagram wrap */
.arch-diagram{
  background:linear-gradient(180deg,#fafbfc,#f0f5fa);
  border-radius:16px;
  padding:24px 16px;
  margin:24px 0;
}
.arch-diagram svg{display:block;max-width:100%;height:auto;margin:0 auto}

/* Notes */
.arch-note{
  border-radius:12px;
  padding:20px 24px;
  margin-top:16px;
}
.arch-note strong{display:block;margin-bottom:6px;font-size:14px}
.arch-note ul{list-style:none;padding:0;margin:0;font-size:14px;color:var(--color-text-muted)}
.arch-note li{padding:4px 0;position:relative;padding-left:18px}
.arch-note li::before{
  content:'●';position:absolute;left:0;top:4px;
  font-size:10px;
}
.arch-note-teal{background:#e6f7f5}
.arch-note-teal strong{color:#2c7a7b}
.arch-note-teal li::before{color:var(--color-accent)}
.arch-note-purple{background:#f3edff}
.arch-note-purple strong{color:#553c9a}
.arch-note-purple li::before{color:#805ad5}

/* Compare cards */
.arch-compare{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.arch-compare-card{
  padding:32px;border-radius:16px;
  border:2px solid var(--color-border);
  background:#fff;
}
.arch-compare-cloud{border-color:var(--color-accent);background:linear-gradient(180deg,#fff,#f0fdfa)}
.arch-compare-onprem{border-color:#805ad5;background:linear-gradient(180deg,#fff,#f9f5ff)}
.arch-compare-card h3{font-size:22px;margin-bottom:12px;display:flex;align-items:center;gap:10px}
.arch-compare-cloud h3{color:var(--color-accent-dark)}
.arch-compare-onprem h3{color:#553c9a}
.arch-tag{
  display:inline-block;padding:4px 12px;
  font-size:12px;font-weight:700;border-radius:100px;
  margin-bottom:16px;
  font-family:var(--font-en);
  letter-spacing:0.1em;
}
.arch-compare-cloud .arch-tag{background:#e6f7f5;color:var(--color-accent-dark)}
.arch-compare-onprem .arch-tag{background:#f3edff;color:#553c9a}
.arch-compare-card ul{list-style:none;padding:0;margin:0}
.arch-compare-card li{padding:8px 0;border-bottom:1px solid rgba(0,0,0,0.06);font-size:14px}
.arch-compare-card li:last-child{border:0}
.arch-compare-card li strong{display:block;font-size:12px;color:var(--color-text-dim);margin-bottom:2px;letter-spacing:0.05em}

/* FAQ */
.faq-page{background:#fafbfc}
.faq-body{padding:48px 0 100px;background:#fafbfc}
.arch-faq-list{display:flex;flex-direction:column;gap:14px}
.arch-faq-item{
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:12px;
  padding:22px 26px;
  transition:all var(--trans);
}
.arch-faq-item:hover{
  border-color:var(--color-accent);
  box-shadow:var(--shadow-sm);
}
.arch-faq-q{
  font-weight:700;color:var(--color-primary);
  font-size:16px;margin:0 0 12px;
  display:flex;align-items:start;gap:12px;
  line-height:1.6;
}
.arch-faq-q::before{
  content:'Q';flex-shrink:0;
  width:28px;height:28px;
  background:var(--color-accent);color:#fff;
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;
  font-family:var(--font-en);
}
.arch-faq-a{
  color:var(--color-text-muted);font-size:15px;
  display:flex;align-items:start;gap:12px;
  line-height:1.85;
  margin:0;
}
.arch-faq-a::before{
  content:'A';flex-shrink:0;
  width:28px;height:28px;
  background:var(--color-bg-alt);color:var(--color-primary);
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;
  font-family:var(--font-en);
}
.faq-cta{
  text-align:center;
  margin-top:48px;
  padding:32px;
  background:var(--color-bg-alt);
  border-radius:var(--radius);
}
.faq-cta p{margin-bottom:16px;color:var(--color-text-muted)}

@media (max-width:820px){
  .arch-benefits,.arch-steps{grid-template-columns:1fr 1fr}
  .arch-step::after{display:none}
  .arch-compare{grid-template-columns:1fr}
}
@media (max-width:640px){
  .arch-body{padding:20px 0 60px}
  .arch-page .arch-section > .container,
  .arch-page .arch-section > .container-narrow{padding:28px 20px;border-radius:14px}
  .arch-section{margin-bottom:20px}
  .arch-benefits,.arch-steps{grid-template-columns:1fr}
  .arch-h2{font-size:22px}
  .arch-num{width:36px;height:36px;font-size:16px}
  .arch-compare-card{padding:24px}
  .arch-diagram{padding:16px 8px}
  .arch-faq-item{padding:18px 20px}
  .arch-faq-q{font-size:15px}
  .arch-faq-a{font-size:14px}
}

/* ----- License Issuance ----- */
.license-page{background:#fafbfc}
.license-body{padding:40px 0 80px;background:#fafbfc}

/* 定価バッジ */
.license-price-badge{
  display:inline-flex;align-items:center;gap:14px;
  background:linear-gradient(135deg,#fef5e7 0%,#feebc8 100%);
  border:2px solid #ed8936;
  border-radius:100px;
  padding:10px 28px;
  margin-bottom:24px;
  box-shadow:0 4px 14px rgba(237,137,54,0.15);
}
.license-price-badge .price-label{
  font-size:13px;font-weight:700;
  color:#9c4221;
  letter-spacing:0.1em;
}
.license-price-badge .price-value{
  font-size:22px;font-weight:800;
  color:#c05621;
  font-family:var(--font-en);
  letter-spacing:-0.02em;
}

/* CF7 フォームの各行
 *   Contact Form 7 の自動整形により .form-row の中身が <p> 1つにまとめられるため、
 *   grid（180px / 1fr）にすると中身がまるごと 180px 側の列に入ってしまい、
 *   入力欄も解説文(small)も 180〜200px 幅で折り返されていた。
 *   行はブロック表示にして全幅を使い、入力欄だけ従来どおりの幅に留める。 */
.license-form-wrap .yakure-form p{margin-bottom:16px}
.license-form-wrap .yakure-form .form-row{
  display:block;
  padding:14px 0;
  border-bottom:1px dashed var(--color-border);
}
/* 入力欄は読みやすい幅で止める（解説文はここに縛られず全幅で折り返す） */
.license-form-wrap .yakure-form .form-row .wpcf7-form-control-wrap{
  display:block;
  max-width:420px;
}
.license-form-wrap .yakure-form .form-row .wpcf7-form-control-wrap .wpcf7-list-item{
  max-width:none;
}
.license-form-wrap .yakure-form .form-row:last-child{border-bottom:0}
.license-form-wrap .yakure-form .form-row > label:first-child,
.license-form-wrap .yakure-form .form-row .form-label{
  font-weight:700;
  color:var(--color-primary);
  font-size:15px;
  padding-top:0;
  margin-bottom:6px;
  display:flex;align-items:center;gap:8px;
}
.license-form-wrap .yakure-form .req{
  display:inline-block;
  background:#e53e3e;color:#fff;
  padding:2px 8px;
  font-size:10px;font-weight:700;
  border-radius:4px;
  letter-spacing:0.05em;
}
.license-form-wrap .yakure-form small{
  display:block;
  font-size:12px;
  color:var(--color-text-dim);
  margin-top:6px;
  line-height:1.6;
}
.license-form-wrap .yakure-form .wpcf7-list-item{
  display:inline-flex;align-items:center;margin-right:16px;margin-left:0;
}
.license-form-wrap .yakure-form .wpcf7-list-item label{
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:500;
}
.license-form-wrap .yakure-form select{
  padding:12px 14px;
  border:1px solid var(--color-border-strong);
  border-radius:var(--radius-sm);
  font-size:15px;
  background:#fff;
  min-width:200px;
}
.license-form-wrap .yakure-form select:focus{
  outline:0;border-color:var(--color-accent);
  box-shadow:0 0 0 3px rgba(56,178,172,0.15);
}
.license-form-wrap .yakure-form .submit-row{
  text-align:center;
  padding:24px 0 8px;
  border-bottom:0 !important;
}
/* 送信ボタン行では入力欄の幅制限を解除 */
.license-form-wrap .yakure-form .submit-row .wpcf7-form-control-wrap{max-width:none}

/* 確認画面（2ステップフロー） */
.license-confirm-view{
  animation:fadeIn 0.3s ease-out;
}
@keyframes fadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
.license-confirm-title{
  display:flex;align-items:center;gap:10px;
  font-size:17px;color:var(--color-primary);
  padding:14px 20px;
  background:#e6f7f5;
  border-radius:10px;
  margin-bottom:24px;
  font-weight:700;
}
.license-confirm-title::before{
  content:'';display:inline-block;
  width:24px;height:24px;
  background:var(--color-accent);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='white'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z' fill='white'/></svg>") center/contain no-repeat;
}
.license-confirm-summary{margin-bottom:28px}
.confirm-row{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--color-border);
  align-items:start;
}
.confirm-row:first-child{border-top:1px solid var(--color-border)}
.confirm-label{
  font-size:13px;font-weight:700;
  color:var(--color-text-dim);
  letter-spacing:0.03em;
}
.confirm-value{
  font-size:15.5px;
  color:var(--color-text);
  word-break:break-word;
  line-height:1.7;
}
.confirm-empty{color:var(--color-text-dim);font-size:13px}
.license-confirm-note{
  background:#fef5e7;
  border-left:4px solid #ed8936;
  border-radius:8px;
  padding:14px 18px;
  margin-bottom:20px;
  font-size:13px;
  color:#744210;
  line-height:1.8;
}
.license-confirm-buttons{
  display:flex;gap:14px;justify-content:center;
  padding-top:8px;
  flex-wrap:wrap;
}

/* エラー強調 */
.form-row.is-error input,
.form-row.is-error select,
.form-row.is-error textarea{
  border-color:#e53e3e !important;
  box-shadow:0 0 0 3px rgba(229,62,62,0.1);
}

/* フッター注意書き */
.license-bottom-notices{
  margin-top:24px;
  display:flex;flex-direction:column;gap:14px;
}
.license-bottom-note{
  background:#fff;
  border:1px solid var(--color-border);
  border-radius:12px;
  padding:20px 24px;
  display:flex;gap:14px;
  font-size:14px;
  color:var(--color-text-muted);
  line-height:1.9;
}
.license-bottom-mark{
  flex-shrink:0;
  width:28px;height:28px;
  background:var(--color-accent);
  color:#fff;
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:700;font-size:14px;
}
.license-bottom-note p{margin:0 0 8px}
.license-bottom-note p:last-child{margin:0}
.license-bottom-note strong{color:var(--color-primary)}
.license-bottom-contact{
  margin-top:10px !important;
  padding:12px 16px;
  background:var(--color-bg-alt);
  border-radius:8px;
  font-size:13.5px;
}
.license-bottom-contact a{color:var(--color-accent-dark);text-decoration:underline;text-underline-offset:2px}

.license-intro{
  background:#fff;
  border-radius:20px;
  padding:32px 36px;
  box-shadow:0 4px 20px rgba(26,54,93,0.06);
  display:flex;gap:24px;
  align-items:flex-start;
  margin-bottom:24px;
}
.license-intro-icon{
  flex-shrink:0;
  width:72px;height:72px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--color-accent) 0%,var(--color-accent-light) 100%);
  color:#fff;
  border-radius:20px;
  box-shadow:0 8px 24px rgba(56,178,172,0.3);
}
.license-intro h2{
  font-size:20px;color:var(--color-primary);
  margin-bottom:12px;border:0;padding:0;
}
.license-flow{
  list-style:none;padding:0;margin:0;
  counter-reset:license-step;
}
.license-flow li{
  position:relative;
  padding:8px 0 8px 36px;
  color:var(--color-text-muted);
  font-size:15px;
  line-height:1.8;
  counter-increment:license-step;
}
.license-flow li::before{
  content:counter(license-step);
  position:absolute;left:0;top:8px;
  width:24px;height:24px;
  background:var(--color-accent);
  color:#fff;
  border-radius:50%;
  font-size:12px;font-weight:800;
  font-family:var(--font-en);
  display:inline-flex;align-items:center;justify-content:center;
}

/* ご利用の流れ 手順①のダウンロードボタン */
.license-download{
  text-align:center;
  margin:0 0 28px;
}

.license-notice{
  background:#fef5e7;
  border-left:4px solid var(--color-accent);
  border-radius:8px;
  padding:20px 24px;
  margin-bottom:32px;
}
.license-notice strong{
  display:block;color:#9c4221;font-size:14px;margin-bottom:10px;
}
.license-notice ul{
  list-style:disc;padding-left:22px;margin:0;
  color:#744210;font-size:14px;line-height:1.9;
}
.license-notice li strong{
  display:inline;color:#9c4221;margin:0;
}

.license-form-wrap{
  background:#fff;
  border-radius:20px;
  padding:40px 44px;
  box-shadow:0 4px 20px rgba(26,54,93,0.06);
  margin-bottom:24px;
}
.license-form-title{
  font-size:20px;
  color:var(--color-primary);
  margin-bottom:24px;
  padding-bottom:16px;
  border-bottom:2px solid var(--color-border);
  display:flex;align-items:center;
}

.license-support{
  background:#f0fdfa;
  border-radius:12px;
  padding:24px 28px;
  text-align:center;
}
.license-support > p{
  font-size:14px;
  color:var(--color-text-muted);
  margin-bottom:16px;
}
.license-support-contacts{
  display:flex;
  justify-content:center;
  gap:32px;
  flex-wrap:wrap;
}
.license-support-contacts div{
  display:flex;flex-direction:column;align-items:center;gap:2px;
}
.license-support-contacts small{
  font-size:11px;
  font-weight:700;
  color:var(--color-text-dim);
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-family:var(--font-en);
}
.license-support-contacts strong{
  font-size:16px;
  color:var(--color-primary);
}
.license-support-contacts span{
  font-size:12px;color:var(--color-text-dim);
}

@media (max-width:640px){
  .license-body{padding:20px 0 60px}
  .license-intro{
    flex-direction:column;
    padding:28px 24px;
    gap:16px;
  }
  .license-intro-icon{width:56px;height:56px}
  .license-form-wrap{padding:28px 20px;border-radius:14px}
  .license-support-contacts{flex-direction:column;gap:16px}
  .license-form-wrap .yakure-form .form-row{
    padding:12px 0;
  }
  .license-form-wrap .yakure-form .form-row .wpcf7-form-control-wrap{
    max-width:none;
  }
  .license-form-wrap .yakure-form .form-row > label:first-child,
  .license-form-wrap .yakure-form .form-row .form-label{
    font-size:14px;
  }
  .license-price-badge{padding:8px 20px}
  .license-price-badge .price-value{font-size:18px}
  .license-bottom-note{padding:16px 20px;font-size:13px}
  .confirm-row{grid-template-columns:1fr;gap:4px;padding:12px 0}
  .confirm-label{font-size:11px}
  .confirm-value{font-size:14.5px}
  .license-confirm-buttons{flex-direction:column}
  .license-confirm-buttons .btn{width:100%}
}

/* ----- Coming Soon ----- */
.coming-soon {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 100px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e6f5f4 100%);
  overflow: hidden;
  text-align: center;
}
.coming-soon-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.coming-soon-shape-1 {
  top: -200px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(224, 46, 36, 0.18) 0%, transparent 60%);
  animation: coming-float 12s ease-in-out infinite;
}
.coming-soon-shape-2 {
  bottom: -200px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26, 54, 93, 0.12) 0%, transparent 60%);
  animation: coming-float 14s ease-in-out infinite reverse;
}
@keyframes coming-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}
.coming-soon-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 54, 93, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 54, 93, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.coming-soon-inner {
  position: relative; z-index: 1;
  max-width: 680px;
}
.coming-soon-page-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.coming-soon-icon {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: #fff;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px rgba(224, 46, 36, 0.4);
  animation: coming-pulse 3s ease-in-out infinite;
}
@keyframes coming-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 40px rgba(224, 46, 36, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 24px 48px rgba(224, 46, 36, 0.5); }
}
.coming-soon-eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em;
  padding: 6px 14px;
  background: rgba(224, 46, 36, 0.12);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.coming-soon-title {
  font-family: var(--font-en);
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 70%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.coming-soon-subtitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.coming-soon-description {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 36px;
}
.coming-soon-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.coming-soon-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: coming-bounce 1.4s ease-in-out infinite;
}
.coming-soon-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--color-accent-light); }
.coming-soon-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--color-primary); }
@keyframes coming-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-12px); opacity: 1; }
}
.coming-soon-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.coming-soon-contact {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.8;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: inline-block;
}
.coming-soon-contact strong { color: var(--color-primary); font-weight: 700; }

@media (max-width: 640px) {
  .coming-soon-title { font-size: 56px; }
  .coming-soon-subtitle { font-size: 18px; }
  .coming-soon-description { font-size: 15px; }
  .coming-soon-actions { flex-direction: column; align-items: stretch; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-primary-dark);
  color: #cbd5e0;
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-branding { margin-bottom: 20px; }
.footer-logo-img {
  max-height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-desc { color: #a0aec0; font-size: 14px; line-height: 1.85; }
.footer-nav-block h4, .footer-supporter h4 {
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-menu li { margin-bottom: 12px; }
.footer-menu a { color: #cbd5e0; font-size: 14px; transition: color var(--trans-fast); }
.footer-menu a:hover { color: var(--color-accent-light); }
.footer-address { font-style: normal; color: #a0aec0; font-size: 14px; line-height: 1.9; }
.footer-address strong { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #a0aec0;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ----- Contact Form 7 ----- */
.yakure-form { max-width: 680px; }
.yakure-form p { margin-bottom: 18px; }
.yakure-form label { display: block; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; font-size: 14px; }
.yakure-form input[type="text"],
.yakure-form input[type="email"],
.yakure-form input[type="tel"],
.yakure-form input[type="url"],
.yakure-form textarea,
.yakure-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px;
  background: #fff;
  transition: all var(--trans-fast);
}
.yakure-form input:focus, .yakure-form textarea:focus, .yakure-form select:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(224, 46, 36, 0.15);
}
.yakure-form textarea { min-height: 160px; resize: vertical; }
.yakure-form input[type="submit"], .yakure-form button[type="submit"] {
  background: var(--color-accent);
  color: #fff;
  border: 0;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: 0 4px 14px rgba(224, 46, 36, 0.35);
}
.yakure-form input[type="submit"]:hover, .yakure-form button[type="submit"]:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(224, 46, 36, 0.45);
}
.wpcf7-response-output { margin-top: 20px !important; padding: 14px 18px !important; border-radius: var(--radius-sm) !important; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .hero { padding: 80px 0 100px; }
  .features-overview, .screenshots, .workflow { padding: 100px 0; }
}
@media (max-width: 820px) {
  .hero-container { grid-template-columns: 1fr; gap: 50px; }
  .hero-content { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-meta { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-layout { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 80px; }
  .hero-title { font-size: 36px; }
  .hero-title-line { white-space: normal; }
  .hero-lead { font-size: 16px; }
  .hero-lead-line { white-space: normal; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-lg { padding: 14px 24px; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 15px; }
  .features-overview, .screenshots, .workflow, .cta { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .cta h2 { font-size: 28px; }
  .cta p { font-size: 16px; }
  .page-title { font-size: 30px; }
  .page-hero { padding: 56px 0 40px; }
  .page-content { padding: 48px 0 72px; }
  .page-content h2 { font-size: 22px; }

  .nav-toggle { display: block; order: 2; }
  .site-nav .primary-menu {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 12px;
    gap: 2px;
  }
  .site-nav.is-open .primary-menu { display: flex; }
  .site-nav.is-open .primary-menu li a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .btn-nav { display: none; }
}


/* ==================================================
   SST 固有セクション
   （処方連携テーマには無い「SELFとは」「オプション機能」「ダウンロード」用）
   ================================================== */

/* ----- SELFとは ----- */
.about-self { padding: 110px 0 90px; background: var(--color-bg-alt); }
.about-self .section-header { margin-bottom: 40px; }
.lead-text {
  font-size: 17px;
  line-height: 2;
  color: var(--color-text-muted);
  text-align: center;
}
.lead-text + .lead-text { margin-top: 20px; }

/* ----- オプション機能 ----- */
.options-section { padding: 120px 0; background: var(--color-bg-softer); }
.options-section .feature-card { background: #fff; }

/* カード見出しの横に付く小さなラベル（NEW / 有料オプション） */
.card-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ----- ダウンロード ----- */
.download-section { padding: 120px 0; }
.download-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--trans);
}
.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.download-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg-softer);
  color: var(--color-accent);
}
.download-card:hover .download-icon { background: var(--color-accent); color: #fff; }
.download-body h3 { font-size: 18px; margin-bottom: 4px; color: var(--color-primary); }
.download-body p { font-size: 14px; color: var(--color-text-dim); }

/* ----- FAQ（固定ページ用） ----- */
.faq-list { display: grid; gap: 16px; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px 28px;
  box-shadow: var(--shadow-xs);
}
.faq-item h3 {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
}
.faq-item h3::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
  font-family: var(--font-en);
}
.faq-item p {
  color: var(--color-text-muted);
  padding-left: 28px;
  position: relative;
}
.faq-item p::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-text-dim);
  font-weight: 800;
  font-family: var(--font-en);
}

/* ----- 連絡先ボックス（固定ページ用） ----- */
.contact-box {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.contact-box dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 20px; }
.contact-box dt { font-weight: 700; color: var(--color-primary); }
.contact-box dd { color: var(--color-text-muted); }

@media (max-width: 900px) {
  .download-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-self, .options-section, .download-section { padding: 72px 0; }
  .contact-box dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contact-box dd { margin-bottom: 12px; }
}


/* ==================================================
   ヘッダー／フッターのブランディング
   （処方連携テーマ側は header/footer の更新にCSSが追いついておらず、
     .ndda-logo-img / .footer-ndda-logo の指定が無いまま。ここで補う）
   ================================================== */
.ndda-logo-img { max-height: 38px; width: auto; flex-shrink: 0; }
.site-org-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-org-name {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  font-weight: 500;
}
.site-product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.footer-branding { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-ndda-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
}
.footer-product { display: flex; flex-direction: column; line-height: 1.35; }
.footer-product-name { font-size: 17px; font-weight: 800; color: #fff; }
.footer-product-en {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-address a { color: #cbd5e0; }
.footer-address a:hover { color: var(--color-accent-light); }

@media (max-width: 640px) {
  .site-org-name { display: none; }
  .site-product-name { font-size: 14px; }
  .ndda-logo-img { max-height: 30px; }
}


/* ----- マニュアル一覧 ----- */
/* .page-content の中に置くので、本文用のリスト装飾（・と下線）を打ち消す */
.page-content .manual-list,
.manual-list { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.page-content .manual-list li,
.manual-list li { margin: 0; list-style: none; }
.page-content .manual-item,
.manual-item { text-decoration: none; color: inherit; }
.manual-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: all var(--trans);
}
.manual-item:hover {
  transform: translateX(4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.manual-no {
  flex-shrink: 0;
  min-width: 46px;
  padding: 6px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--color-bg-softer);
  color: var(--color-primary);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all var(--trans);
}
.manual-item:hover .manual-no { background: var(--color-accent); color: #fff; }
.manual-title {
  flex: 1 1 auto;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}
.manual-type {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.manual-arrow { flex-shrink: 0; color: var(--color-text-dim); display: flex; }
.manual-item:hover .manual-arrow { color: var(--color-accent); }

.section-footer .btn + .btn { margin-left: 12px; }

/* ----- SELF本体へのリンク ----- */
.about-self .section-footer { margin-top: 36px; }

@media (max-width: 640px) {
  .manual-item { gap: 12px; padding: 14px 16px; }
  .manual-type { display: none; }
  .manual-title { font-size: 15px; }
  .section-footer .btn + .btn { margin-left: 0; margin-top: 12px; }
}

.faq-item p + p { margin-top: 10px; }
.faq-item .faq-link { padding-left: 28px; }
.faq-item .faq-link::before { content: none; }
.faq-item .faq-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.faq-item .faq-link a:hover { color: var(--color-accent); text-decoration: underline; }
