/* ============================================
   SHIRITAI Service Site - Stylesheet v4
   Design: Warm Craft
   Inspired by: karte.io — organic dots, dark sections, bold typography
   Brand: #E34D12 (orange)
   No gradients. No heavy shadows. CSS craft only.
   ============================================ */

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

:root {
  --primary: #E34D12;
  --primary-hover: #C93F0A;
  --primary-light: #FFF4EF;
  --primary-bg: rgba(227, 77, 18, 0.06);

  --accent-gold: #F5A623;
  --accent-peach: #FDDEC0;

  --bg: #ffffff;
  --bg-sub: #FAF9F7;
  --bg-dark: #1C1917;
  --bg-dark-sub: #292524;

  --text: #1C1917;
  --text-sub: #78716C;
  --text-muted: #A8A29E;
  --white: #fff;

  --border: #E7E5E4;
  --border-light: #F5F5F4;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  /* keep-all は韓国語向けの指定で、日本語では見出しがどこでも折り返せなくなる。
     行が入り切らなくなってから overflow-wrap で無理に切るため、
     /trial/ のスマートフォン表示では見出しが横に20pxはみ出していた。
     禁則は html の line-break: strict で効かせる */
  word-break: normal;
  overflow-wrap: break-word;
}

.section-title,
.hero-title,
.mid-cta-title {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 620px;
  line-height: 1.95;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.section-header .section-label {
  justify-content: center;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
  position: relative;
}

.bg-light {
  background: var(--bg-sub);
}

.bg-warm {
  background: var(--bg-sub);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-sub);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-links a::after { display: none; }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 24px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  margin-left: 16px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s var(--ease);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-jp);
  position: relative;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  font-weight: 500;
  padding: 14px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.btn-dark {
  background: var(--text);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--bg-dark-sub);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
}

.btn-white:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 40px; font-size: 0.95rem; }
.btn-xl { padding: 18px 48px; font-size: 1rem; }

.btn-icon {
  font-size: 1em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 160px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Decorative dots — repurposed from hero-shapes */
.hero-shapes {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-shape {
  position: absolute;
}

.hero-shape-1 {
  width: 24px;
  height: 6px;
  background: var(--primary);
  opacity: 0.12;
  border-radius: 3px;
  top: 22%;
  right: 9%;
  transform: rotate(-15deg);
}

.hero-shape-2 {
  width: 10px;
  height: 10px;
  background: var(--accent-gold);
  opacity: 0.3;
  border-radius: 3px;
  top: 62%;
  right: 4%;
  transform: rotate(30deg);
}

.hero-shape-3 {
  width: 20px;
  height: 4px;
  background: var(--accent-peach);
  opacity: 0.5;
  border-radius: 2px;
  bottom: 28%;
  left: 5%;
  transform: rotate(10deg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 36px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  animation: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: 0;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-sub);
  margin-bottom: 40px;
  line-height: 1.9;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ---- Trial CTA (editorial, not AI-cliché) ---- */
.btn-trial {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 14px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 12px 32px -12px rgba(227, 77, 18, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-trial::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.btn-trial:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -12px rgba(227, 77, 18, 0.65);
}
.btn-trial-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-trial-badge-num {
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}
.btn-trial-badge-label {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.16em;
  opacity: 0.92;
}
.btn-trial-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 2px 0;
}
.btn-trial-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}
.btn-trial-sub {
  font-size: 0.74rem;
  font-weight: 500;
  opacity: 0.82;
  letter-spacing: 0.01em;
}
.btn-trial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease), background 0.2s;
  flex-shrink: 0;
}
.btn-trial:hover .btn-trial-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.28);
}

/* ---- Secondary: Document download ---- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-download svg { color: var(--primary); transition: transform 0.2s; }
.btn-download:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-download:hover svg { transform: translateY(-2px); }

/* ---- Tertiary: inline pricing link ---- */
.hero-subtext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-subtext-link:hover { color: var(--primary); }
.hero-subtext-link:hover svg { transform: translateX(2px); }
.hero-subtext-link svg { transition: transform 0.2s; }

/* ============================================
   HERO CHAT DEMO
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Decorative dot near chat demo */
.hero-visual::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border-radius: 50%;
  top: -6%;
  right: -2%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  bottom: 8%;
  left: -4%;
  opacity: 0.15;
  pointer-events: none;
}

.hero-chat-demo {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-chat-header {
  background: var(--primary);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-chat-header-logo {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-chat-reload {
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.hero-chat-reload:hover {
  color: rgba(255,255,255,0.8);
}

.hero-chat-body {
  padding: 18px;
  min-height: 260px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.hero-chat-msg {
  max-width: 85%;
  padding: 11px 15px;
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-chat-msg.user {
  background: var(--primary);
  color: var(--white);
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  font-weight: 500;
}

.hero-chat-msg.bot {
  background: var(--bg-sub);
  color: var(--text);
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
}

.hero-chat-msg.bot::before {
  content: 'SHIRITAI';
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  letter-spacing: 0.06em;
}

.hero-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 17px;
  background: var(--bg-sub);
  border-radius: 16px 16px 16px 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-chat-typing.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-chat-typing span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}

.hero-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.hero-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

.hero-chat-powered {
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-top: 1px solid var(--border-light);
}

.hero-chat-powered strong {
  color: var(--primary);
  font-weight: 700;
}

.hero-chat-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-chat-input-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hero-chat-send:hover {
  background: var(--primary-hover);
}

.hero-chat-nav {
  display: flex;
  border-top: 1px solid var(--border-light);
  background: var(--bg-sub);
}

.hero-chat-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-chat-nav-item.active {
  color: var(--primary);
}

.hero-chat-nav-item svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   TRUSTED BY
   ============================================ */
.trusted-by {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.trusted-by-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.trusted-by-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: logo-scroll 25s linear infinite;
}

.trusted-by-logos img {
  height: 32px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.3;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.trusted-by-logos img:hover {
  filter: grayscale(0%);
  opacity: 0.75;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   CHALLENGES
   ============================================ */
.challenges {
  background: var(--bg-sub);
  overflow: hidden;
}

.challenges-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.challenge-item {
  padding: 44px 44px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.challenge-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.challenge-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.challenge-item::before {
  content: '';
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
  margin-bottom: 18px;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease), width 0.3s var(--ease);
}

.challenge-item:hover::before {
  opacity: 1;
  width: 32px;
}

.challenge-item-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.55;
  letter-spacing: 0;
}

.challenge-item-desc {
  font-size: 0.98rem;
  color: var(--text-sub);
  line-height: 1.9;
}

/* Legacy challenge styles — disabled to avoid conflicts
.challenge-col {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
}

.challenge-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.challenge-col-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.challenge-col-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.challenge-item:last-child { border-bottom: none; }

.challenge-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.challenge-icon svg { width: 18px; height: 18px; }

.challenge-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

.challenge-text small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}
end of legacy */

/* ============================================
   SOLUTION BANNER
   ============================================ */
.solution-banner {
  margin-top: 56px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative circle on banner */
.solution-banner::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.04;
  top: -50px;
  right: -30px;
  pointer-events: none;
}

.solution-banner::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gold);
  opacity: 0.05;
  bottom: -20px;
  left: 10%;
  pointer-events: none;
}

.solution-banner-text {
  position: relative;
  z-index: 1;
}

.solution-banner-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.solution-banner-desc {
  font-size: 0.95rem;
  opacity: 0.6;
}

.solution-banner .btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.about-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* Connecting line behind steps */
.about-flow::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 13%;
  right: 13%;
  height: 2px;
  border-top: 2px dashed var(--border);
  pointer-events: none;
}

.about-flow-step {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  width: 200px;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
  position: relative;
  z-index: 1;
}

.about-flow-step:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.about-flow-step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border: 2px solid rgba(227, 77, 18, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.about-flow-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-flow-step-desc {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.about-flow-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-top: 20px;
  z-index: 1;
}

/* ============================================
   VALUE CARDS
   ============================================ */
.value-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 44px 40px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.value-card-number {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.025);
  position: absolute;
  top: 8px;
  right: 20px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.value-card-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.value-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.value-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
}

.value-card-desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.85;
}

.value-card-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-card-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.value-card-point::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E34D12'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ============================================
   MID CTA
   ============================================ */
.mid-cta {
  background: var(--bg-dark);
  padding: 96px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

/* Decorative shapes on CTA */
.mid-cta::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 50px;
  border-radius: 25px;
  background: var(--primary);
  opacity: 0.03;
  top: -15px;
  left: -60px;
  pointer-events: none;
  transform: rotate(-8deg);
}

.mid-cta::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--accent-gold);
  opacity: 0.04;
  bottom: 15%;
  right: 8%;
  pointer-events: none;
  transform: rotate(20deg);
}

.mid-cta-title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.mid-cta-text {
  font-size: 1.05rem;
  opacity: 0.5;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   SCENE CARDS / FEATURES GRID
   ============================================ */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0;
  text-align: left;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}

.scene-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.scene-card-illust {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-card-illust img {
  width: clamp(104px, 18vw, 148px);
  height: clamp(104px, 18vw, 148px);
  max-width: 42%;
  max-height: 72%;
  object-fit: contain;
}

.scene-card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-light);
}

.scene-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.scene-card:hover .scene-card-thumb img {
  transform: scale(1.04);
}

.scene-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scene-card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* .scene-card は2種類の中身がある。
   ① トップ（front-page）: カード直下に見出し・説明文 → 見出し側で左右24pxを持つ
   ② 活用シーン一覧: .scene-card-body（padding 22px 24px 24px）の中に見出し
   共通指定で padding を付けると②が左右48px＋上20pxの二重余白になるので、
   ①だけに効くよう直下の子に限定する。 */
.scene-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--text);
}

.scene-card > .scene-card-title {
  padding: 20px 24px 0;
}

.scene-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin: 0 0 16px;
}

.scene-card-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scene-card-link-arrow {
  transition: transform 0.2s var(--ease);
}

.scene-card:hover .scene-card-link-arrow {
  transform: translateX(4px);
}

.scene-card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.85;
}

.scene-card > .scene-card-desc {
  padding: 0 24px 24px;
}

/* ============================================
   DARK SECTION (Features on index)
   ============================================ */
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
}

/* Decorative shapes on dark section */
.section-dark::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 60px;
  border-radius: 30px;
  background: var(--primary);
  opacity: 0.03;
  top: -20px;
  left: -80px;
  pointer-events: none;
  transform: rotate(-12deg);
}

.section-dark::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: var(--accent-gold);
  opacity: 0.03;
  bottom: -30px;
  right: -20px;
  pointer-events: none;
  transform: rotate(15deg);
}

.section-dark .section-label {
  color: var(--accent-gold);
}

.section-dark .section-label::before {
  background: var(--accent-gold);
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.section-dark .section-title {
  color: white;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .scene-card {
  background: white;
  color: var(--text);
  border-color: transparent;
}

.section-dark .scene-card:hover {
  border-color: var(--primary);
}

.section-dark .scene-card-desc {
  color: var(--text-sub);
}

.section-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-dark .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

/* ============================================
   FEATURE ROWS (features.html)
   ============================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 88px;
}

.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-image { order: -1; }

.feature-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.03);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.4;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.9;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.feature-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-sub);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feature-image img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ============================================
   CASE STUDIES
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.case-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.case-card-industry {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.case-card-company {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-card-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 18px;
}

.case-card-results {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.case-card-result { text-align: center; }

.case-card-result-number {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.case-card-result-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 28px 44px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease);
}

.pricing-card:hover {
  border-color: var(--primary);
}

.pricing-card.recommended {
  border-color: var(--primary);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.pricing-price { margin-bottom: 22px; }

.pricing-price-amount {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-price-currency { font-size: 0.95rem; font-weight: 700; }
.pricing-price-period { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.pricing-features {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.pricing-feature::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E34D12'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.pricing-initial {
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
}

.pricing-initial-label { font-size: 0.85rem; color: var(--text-sub); }
.pricing-initial-amount { font-family: var(--font-en); font-size: 1.6rem; font-weight: 800; }
.pricing-initial-note { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   FLOW STEPS
   ============================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-top: 2px dashed var(--border);
}

.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.flow-step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.flow-step-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.flow-step-desc { font-size: 0.78rem; color: var(--text-sub); line-height: 1.7; }

.flow-step-duration {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 10px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-info-text strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.contact-info-text span { font-size: 0.82rem; color: var(--text-sub); }

.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-label .required {
  background: var(--primary);
  color: var(--white);
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  /* 16px未満だとiPhoneが入力時に画面を勝手に拡大する。
     後ろの要素セレクタでの16px指定はこのクラス指定に負けていた */
  font-size: 16px;
  font-family: var(--font-jp);
  transition: border-color 0.2s var(--ease);
  background: var(--bg);
  color: var(--text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8A29E' d='M6 8.825L1.175 4l.825-.825L6 7.175 10 3.175l.825.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ----- Contact Form 7 normalization ----- */
.contact-form .wpcf7,
.contact-form .wpcf7-form { width: 100%; }
.contact-form .wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
}
.contact-form .wpcf7-form-control-wrap > .form-input,
.contact-form .wpcf7-form-control-wrap > .form-select,
.contact-form .wpcf7-form-control-wrap > .form-textarea {
  display: block;
  width: 100%;
}
.contact-form .wpcf7-submit {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}
.contact-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--primary);
}
.contact-form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.contact-form .wpcf7 form.invalid .wpcf7-response-output,
.contact-form .wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1px solid var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.contact-form .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #16a34a;
  background: #f0fdf4;
  color: #166534;
}
.contact-form .hidden-fields-container {
  border: 0;
  padding: 0;
  margin: 0;
}

/* ============================================
   COLUMN / BLOG
   ============================================ */
.column-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.column-filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--text-sub);
  font-family: var(--font-jp);
}

.column-filter-btn:hover,
.column-filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

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

.column-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}

.column-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.column-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-card-thumb-icon {
  color: var(--primary);
  opacity: 0.15;
}

.column-card-thumb-icon svg { width: 40px; height: 40px; }

.column-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* カテゴリーと日付は 0.68rem（10.9px）で、スマートフォンだと読みにくかった。
   本文の下限を12pxとみて上げる。 */
.column-card-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.column-card-date {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.column-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
  /* 見出しグローバルの keep-all を打ち消し、幅いっぱいまで詰めて禁則処理つきで折り返す */
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  /* 2行までにして超過分は末尾を「…」で省略（カード高さも揃える） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3.2em;
}

.column-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Column Detail */
.column-detail { padding-top: 120px; padding-bottom: 80px; }

.column-detail-header { max-width: 760px; margin: 0 auto 40px; }

.column-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.column-detail-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
}

.column-detail-body { max-width: 760px; margin: 0 auto; }

.column-detail-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.column-detail-body h3 { font-size: 1.1rem; margin: 28px 0 12px; }

.column-detail-body p {
  margin-bottom: 18px;
  line-height: 2;
  color: var(--text-sub);
}

.column-detail-body ul { margin: 14px 0 20px 18px; list-style: disc; }
.column-detail-body ul li { margin-bottom: 6px; line-height: 1.8; color: var(--text-sub); }

.column-detail-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 14px 20px;
  background: var(--bg-sub);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-sub);
}

.column-detail-cta {
  max-width: 760px;
  margin: 48px auto 0;
  background: var(--bg-sub);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border);
}

.column-nav {
  max-width: 760px;
  margin: 36px auto 0;
  display: flex;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 80px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.footer-brand { margin-bottom: 12px; }
.footer-brand img { height: 24px; width: auto; }

.footer-brand-desc {
  font-size: 0.82rem;
  line-height: 1.75;
}

.footer-heading {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.82rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.72rem;
  font-family: var(--font-en);
}

/* 運営者の表記。これまで社名・所在地・法人番号は JSON-LD と外部リンクの中だけにあり、
   画面には1文字も出ていなかった。検索側も生成AIも、本文に書かれている事実を先に拾う。 */
.footer-operator {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-jp);
  opacity: 0.75;
}

.footer-parent-link { font-size: 0.78rem; }
.footer-parent-link a { color: rgba(255, 255, 255, 0.3); }
.footer-parent-link a:hover { color: rgba(255, 255, 255, 0.8); }

/* ============================================
   PAGE HERO (sub pages)
   ============================================ */
.page-hero {
  padding: 136px 0 56px;
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero .section-label { margin-bottom: 14px; }
.page-hero .section-subtitle { margin: 0 auto; }

/* Breadcrumb */
/* パンくず。ヘッダーが固定なので、上の余白もここで持つ
   （以前はテンプレートに style="padding-top:88px" を直書きしていた）。 */
.breadcrumb { padding: 102px 0 14px; font-size: 0.78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .breadcrumb-sep { margin: 0 6px; }
.breadcrumb [aria-current="page"] { color: var(--text-sub); }

/* 見つからなかったときの入口 */
.notfound-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
}
.notfound-link {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.notfound-link:hover { border-color: var(--primary); }
.notfound-link-title { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.notfound-link-desc { display: block; font-size: 0.86rem; color: var(--text-sub); line-height: 1.8; }
.notfound-search { margin-top: 28px; max-width: 480px; }
@media (max-width: 700px) {
  .notfound-links { grid-template-columns: 1fr; }
}

/* Hero stat numbers (sub pages) */
.hero-stat-number {
  font-family: var(--font-en);
  font-weight: 800;
}

/* ============================================
   GSAP INITIAL STATES
   ============================================ */
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-left { opacity: 0; transform: translateX(-30px); }
.fade-right { opacity: 0; transform: translateX(30px); }
.fade-in { opacity: 0; }
.scale-in { opacity: 0; transform: scale(0.95); }

/* ============================================
   FUNCTION LIST GRID
   ============================================ */
.bg-warm {
  background: var(--bg-sub);
}

.func-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.func-tab {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-jp);
}

.func-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.func-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

.func-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.func-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.func-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}

.func-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.func-item-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero { padding-top: 120px; padding-bottom: 72px; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-content .hero-subtext-link { justify-content: center; }
  .btn-trial { width: 100%; }
  .btn-download { width: 100%; justify-content: center; }
  .hero-chat-demo { max-width: 360px; margin: 0 auto; }
  .hero-visual::before,
  .hero-visual::after { display: none; }
  .challenges-list { grid-template-columns: 1fr 1fr; }
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .value-cards { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-image { order: 0; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps::before { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .solution-banner { flex-direction: column; text-align: center; padding: 32px 28px; }
  .about-flow::before { display: none; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  /* ---- Mobile typography scale-down ---- */
  .hero-title { font-size: 2.3rem; letter-spacing: 0; line-height: 1.25; }
  .hero-tagline { font-size: 1rem; line-height: 1.85; }
  .section-title { font-size: 1.55rem; letter-spacing: 0; }
  .section-subtitle { font-size: 0.95rem; line-height: 1.85; }
  .mid-cta-title { font-size: 1.5rem; }
  .mid-cta-text { font-size: 0.95rem; }
  .value-card-title { font-size: 1.1rem; }
  .value-card-desc { font-size: 0.92rem; }
  .challenge-item-title { font-size: 1.05rem; }
  .challenge-item-desc { font-size: 0.9rem; }
  .solution-banner-title { font-size: 1.2rem; }
  .sh-title { font-size: 1.45rem; }
  .trial-hero-tagline { font-size: 0.98rem; line-height: 1.9; }
  .trial-form-side-title { font-size: 1.55rem; }

  /* ---- Header / Nav ---- */
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px 24px 40px;
    gap: 4px;
    z-index: 999;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 32px -16px rgba(28, 25, 23, 0.12);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; background: #ffffff; }
  .nav-links a {
    padding: 16px 14px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links a:last-child { border-bottom: none; }
  .site-header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .menu-toggle { display: flex; }
  .challenges-list { grid-template-columns: 1fr; }
  .challenge-item:nth-child(odd) { border-right: none; }
  .func-grid { grid-template-columns: 1fr; }
  .func-tabs { gap: 6px; }
  .func-tab { padding: 8px 16px; font-size: 0.78rem; }
  .scenes-grid { grid-template-columns: 1fr; }
  .columns-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.recommended { border-width: 2px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .flow-steps { grid-template-columns: 1fr; gap: 32px; }
  .hero-chat-body { min-height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-initial { flex-direction: column; text-align: center; }
  .about-flow { flex-direction: column; align-items: center; }
  .about-flow-arrow { transform: rotate(90deg); }
  .section-header { margin-bottom: 48px; }
  .hero-shapes { display: none; }
  .mid-cta { padding: 72px 0; }
  .value-card { padding: 32px 28px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 100px; }
  .hero-title { font-size: 2.05rem; }
  .section-title { font-size: 1.4rem; }
  .mid-cta-title { font-size: 1.35rem; }
  .sh-title { font-size: 1.3rem; }
  .value-card-title { font-size: 1.05rem; }
  .challenge-item-title { font-size: 1rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .btn-lg { padding: 14px 32px; }
  .btn-xl { padding: 16px 36px; font-size: 0.92rem; }
  .column-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .column-filter-btn { white-space: nowrap; flex-shrink: 0; }
  .challenge-item { padding: 28px 22px; }
  .solution-banner { padding: 28px 20px; }
  .solution-banner-title { font-size: 1.05rem; }

  /* Hero trial button fits narrow screens */
  .btn-trial { padding: 12px 16px 12px 12px; gap: 14px; }
  .btn-trial-badge { padding: 6px 10px 6px 8px; }
  .btn-trial-badge-num { font-size: 1.8rem; }
  .btn-trial-title { font-size: 0.98rem; }
  .btn-trial-sub { font-size: 0.68rem; }
  .btn-trial-arrow { width: 32px; height: 32px; }
}

/* ============================================
   FEATURE ANIMATED MOCKS (features.html)
   ============================================ */
.feature-image.fx-stage {
  position: relative;
  padding: 28px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 20% 15%, rgba(227,77,18,0.07), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245,166,35,0.09), transparent 45%),
    #FFFDFB;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Floating chip labels */
.fx-chip {
  position: absolute;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(227,77,18,0.18);
  box-shadow: 0 4px 14px rgba(28,25,23,0.05);
  z-index: 2;
  animation: fxFloat 3.6s ease-in-out infinite;
}
.fx-chip-tl { top: 16px; left: 16px; }
.fx-chip-br { bottom: 16px; right: 16px; animation-delay: -1.8s; }
@keyframes fxFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ---- Shared chat frame ---- */
.fx-chat {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px -8px rgba(28,25,23,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.fx-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.fx-chat-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-chat-avatar.fx-avatar-ai { background: var(--primary); }
.fx-chat-avatar svg { width: 18px; height: 18px; }
.fx-chat-head-text { line-height: 1.2; flex: 1; min-width: 0; }
.fx-chat-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.fx-chat-status {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px;
}
.fx-chat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: fxPulseDot 1.8s ease-out infinite;
}
@keyframes fxPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.fx-chat-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.fx-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
}
.fx-bubble.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.fx-bubble.bot {
  align-self: flex-start;
  background: #F5F5F4;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.fx-bubble.fx-typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 14px;
  max-width: max-content;
}
.fx-bubble.fx-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: fxDot 1.2s ease-in-out infinite;
}
.fx-bubble.fx-typing span:nth-child(2) { animation-delay: 0.2s; }
.fx-bubble.fx-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes fxDot {
  0%,80%,100% { opacity: 0.3; transform: translateY(0); }
  40%         { opacity: 1;   transform: translateY(-3px); }
}

/* ---- F01: Chat reveal loop (3 Q&A turns) ---- */
.fx-anim-chat01 .fx-t1 { animation: fxTurn1 12s infinite ease-out; }
.fx-anim-chat01 .fx-t2 { animation: fxTurn2 12s infinite ease-out; }
.fx-anim-chat01 .fx-t3 { animation: fxTurn3 12s infinite ease-out; }
.fx-anim-chat01 .fx-t4 { animation: fxTurn4 12s infinite ease-out; }
.fx-anim-chat01 .fx-t5 { animation: fxTurn5 12s infinite ease-out; }
.fx-anim-chat01 .fx-t6 { animation: fxTurn6 12s infinite ease-out; }

@keyframes fxTurn1 {
  0%       { opacity: 0; transform: translateY(6px); }
  4%, 93%  { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxTurn2 {
  0%, 11%  { opacity: 0; transform: translateY(6px); }
  15%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxTurn3 {
  0%, 23%  { opacity: 0; transform: translateY(6px); }
  27%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxTurn4 {
  0%, 35%  { opacity: 0; transform: translateY(6px); }
  39%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxTurn5 {
  0%, 50%  { opacity: 0; transform: translateY(6px); }
  54%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxTurn6 {
  0%, 62%  { opacity: 0; transform: translateY(6px); }
  66%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}

/* ---- F02: Chat with inline media ---- */
.fx-bubble.has-media {
  padding: 8px;
  max-width: 72%;
}
.fx-bubble.has-media .fx-msg-text {
  padding: 0 4px 6px;
  font-size: 0.72rem;
  line-height: 1.5;
}
.fx-embed {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.fx-embed-img {
  height: 54px;
  background: linear-gradient(135deg, #FDDEC0, #FFB97C 60%, #F5A623);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
}
.fx-embed-img svg { width: 26px; height: 26px; }
.fx-embed-vid {
  height: 54px;
  background: linear-gradient(135deg, #2C2420, #1C1917);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.fx-embed-vid .fx-play {
  width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.fx-embed-time {
  position: absolute;
  bottom: 4px; right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 3px;
}
.fx-embed-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
}
.fx-embed-link-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fx-embed-link-icon svg { width: 14px; height: 14px; }
.fx-embed-link-meta { display: flex; flex-direction: column; min-width: 0; }
.fx-embed-link-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.fx-embed-link-url {
  font-family: var(--font-en);
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* F02 sequence animations */
.fx-anim-chat02 .fx-e1 { animation: fxTurn1 14s infinite ease-out; }
.fx-anim-chat02 .fx-e2 { animation: fxE2 14s infinite ease-out; }
.fx-anim-chat02 .fx-e3 { animation: fxE3 14s infinite ease-out; }
.fx-anim-chat02 .fx-e4 { animation: fxE4 14s infinite ease-out; }
.fx-anim-chat02 .fx-e5 { animation: fxE5 14s infinite ease-out; }
.fx-anim-chat02 .fx-e6 { animation: fxE6 14s infinite ease-out; }

@keyframes fxE2 {
  0%, 9%   { opacity: 0; transform: translateY(6px); }
  13%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxE3 {
  0%, 22%  { opacity: 0; transform: translateY(6px); }
  26%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxE4 {
  0%, 34%  { opacity: 0; transform: translateY(6px); }
  38%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxE5 {
  0%, 49%  { opacity: 0; transform: translateY(6px); }
  53%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxE6 {
  0%, 62%  { opacity: 0; transform: translateY(6px); }
  66%, 93% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-4px); }
}

/* ---- F03: Hybrid handoff ---- */
.fx-anim-name { position: relative; height: 0.95rem; overflow: hidden; }
.fx-anim-name .fx-name-ai,
.fx-anim-name .fx-name-human {
  display: block;
  position: absolute; inset: 0;
  opacity: 0;
}
.fx-anim-name .fx-name-ai    { animation: fxNameSwap 8s infinite; }
.fx-anim-name .fx-name-human { animation: fxNameSwap 8s infinite; animation-delay: -4s; }
@keyframes fxNameSwap {
  0%, 40%   { opacity: 1; transform: translateY(0); }
  48%, 95%  { opacity: 0; transform: translateY(-6px); }
  100%      { opacity: 1; transform: translateY(0); }
}

.fx-handoff {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: center;
}
.fx-handoff-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}
.fx-handoff-text {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.fx-bubble.human-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #FFF4EF;
  border: 1px solid rgba(227,77,18,0.18);
}
.fx-msg-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.fx-anim-chat03 .fx-bubble.user      { animation: fxCycle03a 8s infinite ease-out; }
.fx-anim-chat03 .fx-bubble.ai-msg    { animation: fxCycle03b 8s infinite ease-out; }
.fx-anim-chat03 .fx-handoff          { animation: fxCycle03c 8s infinite ease-out; }
.fx-anim-chat03 .fx-bubble.human-msg { animation: fxCycle03d 8s infinite ease-out; }

@keyframes fxCycle03a {
  0%        { opacity: 0; transform: translateY(6px); }
  5%, 93%   { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxCycle03b {
  0%, 14%   { opacity: 0; transform: translateY(6px); }
  20%, 93%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-4px); }
}
@keyframes fxCycle03c {
  0%, 30%   { opacity: 0; transform: scaleX(0.7); }
  36%, 93%  { opacity: 1; transform: scaleX(1); }
  100%      { opacity: 0; transform: scaleX(0.9); }
}
@keyframes fxCycle03d {
  0%, 42%   { opacity: 0; transform: translateY(6px); }
  48%, 93%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-4px); }
}

/* ---- F04: Install code ---- */
.fx-install {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.fx-code {
  background: #1C1917;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'SF Mono', 'Menlo', monospace;
  box-shadow: 0 6px 20px -6px rgba(28,25,23,0.25);
}
.fx-code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #292524;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fx-code-dots { display: flex; gap: 4px; }
.fx-code-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #44403C;
}
.fx-code-dots i:nth-child(1) { background: #EF4444; }
.fx-code-dots i:nth-child(2) { background: #F59E0B; }
.fx-code-dots i:nth-child(3) { background: #22C55E; }
.fx-code-file {
  font-size: 0.6rem;
  color: #A8A29E;
  letter-spacing: 0.05em;
}
.fx-code-body {
  padding: 10px 12px;
  font-size: 0.62rem;
  line-height: 1.8;
  color: #E7E5E4;
  min-height: 100px;
}
.fx-code-line { white-space: nowrap; overflow: hidden; }
.fx-tag  { color: #F97316; }
.fx-attr { color: #60A5FA; }
.fx-str  { color: #FCD34D; }

.fx-code-fade { opacity: 0.35; }
.fx-code-paste {
  position: relative;
  background: rgba(249,115,22,0.12);
  margin: 0 -12px;
  padding: 0 12px;
  opacity: 0;
  transform: translateX(-8px);
  animation: fxCodePaste 4s 0.8s infinite;
}
@keyframes fxCodePaste {
  0%       { opacity: 0; transform: translateX(-8px); }
  10%, 75% { opacity: 1; transform: translateX(0); }
  90%,100% { opacity: 0; transform: translateX(0); }
}

.fx-arrow {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fxArrowPulse 1.6s ease-in-out infinite;
}
.fx-arrow svg { width: 24px; height: 24px; }
@keyframes fxArrowPulse {
  0%,100% { transform: translateX(0); opacity: 0.6; }
  50%     { transform: translateX(4px); opacity: 1; }
}

.fx-site {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(28,25,23,0.1);
  position: relative;
}
.fx-site-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border-light);
}
.fx-site-dots { display: flex; gap: 4px; }
.fx-site-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #E7E5E4;
}
.fx-site-url {
  font-family: var(--font-en);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.fx-site-body {
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}
.fx-site-ln {
  height: 6px;
  background: var(--border-light);
  border-radius: 100px;
}
.fx-site-ln.w70 { width: 70%; }
.fx-site-ln.w90 { width: 90%; }
.fx-site-ln.w50 { width: 50%; }
.fx-site-ln.w80 { width: 80%; }

.fx-site-widget {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(227,77,18,0.35);
  opacity: 0;
  transform: scale(0.4);
  animation: fxWidgetPop 4s 2.0s infinite;
}
.fx-site-widget svg { width: 16px; height: 16px; }
@keyframes fxWidgetPop {
  0%       { opacity: 0; transform: scale(0.4); }
  15%      { opacity: 1; transform: scale(1.12); }
  25%, 80% { opacity: 1; transform: scale(1); }
  95%,100% { opacity: 0; transform: scale(0.6); }
}

/* ---- F05: Needs Ranking ---- */
.fx-needs {
  width: 100%; height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px -8px rgba(28,25,23,0.1);
  position: relative;
  z-index: 1;
  min-height: 0;
}
.fx-needs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.fx-needs-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.fx-needs-sub {
  font-family: var(--font-en);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.fx-needs-sub .fx-count-total {
  color: var(--primary);
  font-weight: 700;
}
.fx-rank-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  justify-content: space-around;
}
.fx-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fxRankIn 0.6s ease-out forwards;
}
.fx-rank:nth-child(1) { animation-delay: 0.15s; }
.fx-rank:nth-child(2) { animation-delay: 0.30s; }
.fx-rank:nth-child(3) { animation-delay: 0.45s; }
.fx-rank:nth-child(4) { animation-delay: 0.60s; }
.fx-rank:nth-child(5) { animation-delay: 0.75s; }
@keyframes fxRankIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fx-rank-num {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 20px;
}
.fx-rank-1 .fx-rank-num { color: var(--primary); }
.fx-rank-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.fx-rank-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-rank-bar {
  display: block;
  height: 5px;
  background: var(--bg-sub);
  border-radius: 3px;
  overflow: hidden;
}
.fx-rank-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #F5A623);
  border-radius: 3px;
  animation: fxRankFill 1.2s ease-out forwards;
}
.fx-rank:nth-child(1) .fx-rank-fill { animation-delay: 0.35s; }
.fx-rank:nth-child(2) .fx-rank-fill { animation-delay: 0.50s; }
.fx-rank:nth-child(3) .fx-rank-fill { animation-delay: 0.65s; }
.fx-rank:nth-child(4) .fx-rank-fill { animation-delay: 0.80s; }
.fx-rank:nth-child(5) .fx-rank-fill { animation-delay: 0.95s; }
@keyframes fxRankFill {
  from { width: 0; }
  to   { width: var(--w); }
}
.fx-rank-count {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  min-width: 26px;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-image.fx-stage {
    aspect-ratio: auto;
    min-width: 0;
    width: 100%;
    min-height: 0;
    padding: 20px;
  }
  .feature-image.fx-stage .fx-chat { height: auto; }
  .fx-install { grid-template-columns: 1fr; gap: 8px; }
  .fx-install .fx-arrow { transform: rotate(90deg); }
  .fx-code-body { min-height: auto; }
  .fx-needs { padding: 12px 14px; }
  .fx-rank-text { font-size: 0.66rem; }
}

/* ============================================
   HOW IT WORKS v2 — 3 step rows
   ============================================ */
.sh-flow {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 56px;
}
.sh-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.sh-row.reverse .sh-body { order: 2; }
.sh-row.reverse .sh-visual { order: 1; }
.sh-body { max-width: 480px; }
.sh-step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 18px;
}
.sh-step-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--primary);
}
.sh-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.sh-title .hl {
  background: linear-gradient(transparent 62%, #FFE7D6 62%);
  padding: 0 6px;
}
.sh-desc {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 2.1;
  margin-bottom: 28px;
}
.sh-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sh-bullet {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.sh-bullet::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,8 7,12 13,4'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Visual side — solid primary stage (URITAI pattern) */
.sh-visual {
  position: relative;
  aspect-ratio: 4 / 3.1;
  border-radius: 24px;
  background: var(--primary);
  overflow: hidden;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 64px -20px rgba(227, 77, 18, 0.35);
}
.sh-row.alt .sh-visual {
  background: linear-gradient(135deg, #FFF1E4 0%, #FFF8F2 100%);
  box-shadow: 0 24px 64px rgba(227, 77, 18, 0.06);
}
.sh-visual-num {
  position: absolute;
  font-family: var(--font-en);
  font-size: clamp(11rem, 24vw, 20rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.22);
  line-height: 0.82;
  letter-spacing: 0;
  top: -20px;
  right: 14px;
  pointer-events: none;
  user-select: none;
}
.sh-row.alt .sh-visual-num {
  color: rgba(227, 77, 18, 0.14);
}
.sh-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(28, 25, 23, 0.25), 0 6px 16px rgba(28, 25, 23, 0.08);
  overflow: hidden;
}
.sh-mock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FAFAF9;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sh-dots {
  display: inline-flex;
  gap: 4px;
}
.sh-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E7E5E4;
}
.sh-dots span:first-child { background: #F87171; }
.sh-dots span:nth-child(2) { background: #FBBF24; }
.sh-dots span:last-child { background: #4ADE80; }

/* STEP 01 — registration form */
.sh-field {
  padding: 14px 18px 0;
}
.sh-field-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.sh-field-input {
  padding: 10px 12px;
  background: #FAFAF9;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
}
.sh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sh-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}
.sh-mock-cta {
  margin: 18px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.sh-mock-cta span {
  transition: transform 0.25s var(--ease);
}
.sh-mock:hover .sh-mock-cta span { transform: translateX(4px); }

/* STEP 02 — learning */
.sh-learn {
  padding: 20px 20px 10px;
}
.sh-learn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.sh-chip {
  padding: 8px 14px;
  background: #FAFAF9;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  text-align: center;
}
.sh-chip-ai {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  flex: 0 0 60px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}
.sh-arrow-r {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 700;
}
.sh-progress {
  height: 6px;
  background: var(--bg-sub);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.sh-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #F5A623);
  border-radius: 3px;
  animation: shProgress 2.4s ease-out forwards;
  transform-origin: left;
}
@keyframes shProgress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.sh-learn-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sh-done {
  color: var(--primary);
  font-weight: 800;
}
.sh-learn-items {
  padding: 8px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 10px;
  padding-top: 14px;
}
.sh-learn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text);
}
.sh-learn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* STEP 03 — chat */
.sh-mock-chat .sh-chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sh-chat-b {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  border-radius: 14px;
}
.sh-chat-b.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.sh-chat-b.bot {
  align-self: flex-start;
  background: #FAFAF9;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Value card kicker (replaces illustration) */
.value-card-kicker {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .sh-flow { gap: 56px; }
  .sh-row { grid-template-columns: 1fr; gap: 32px; }
  .sh-row.reverse .sh-body { order: 1; }
  .sh-row.reverse .sh-visual { order: 2; }
  .sh-title { font-size: 1.6rem; }
  .sh-visual-num { font-size: 7rem; }
  .sh-mock { max-width: 100%; }
}

/* ============================================
   TRIAL PAGE
   ============================================ */
.trial-hero {
  padding: 140px 0 96px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.trial-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 50% 50%, rgba(227, 77, 18, 0.08) 0%, rgba(227, 77, 18, 0) 68%);
  pointer-events: none;
}
.trial-hero-inner {
  max-width: 860px;
  position: relative;
}
.trial-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.trial-hero-kicker-line {
  width: 42px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.trial-hero-kicker-text {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--primary);
}
.trial-hero-title {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 14px 18px;
  margin-bottom: 36px;
  line-height: 1;
  letter-spacing: 0;
}
.trial-hero-title-num {
  font-family: var(--font-en);
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 0.85;
  grid-row: 1 / 3;
  align-self: center;
}
.trial-hero-title-days {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0;
  align-self: end;
}
.trial-hero-title-main {
  grid-column: 2 / 4;
  font-family: var(--font-jp);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: 0;
}
.trial-hero-tagline {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 620px;
}
.trial-hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.trial-hero-benefit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.trial-hero-benefit svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* ---- Trial flow ---- */
.trial-flow-section {
  padding: 96px 0;
}
.trial-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.trial-flow-step {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px -12px rgba(28, 25, 23, 0.08);
  text-align: left;
  position: relative;
}
.trial-flow-step-num {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 20px;
}
.trial-flow-step-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.trial-flow-step-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-sub);
}
.trial-flow-arrow {
  align-self: center;
  width: 22px;
  height: 2px;
  background: var(--border);
  position: relative;
}
.trial-flow-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}

/* ---- Trial form ---- */
.trial-form-section {
  padding: 96px 0 120px;
  background: var(--bg-sub);
}
.trial-form-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
.trial-form-side {
  position: sticky;
  top: 100px;
}
.trial-form-side-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.trial-form-side-title {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 20px;
}
.trial-form-side-desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 36px;
}
.trial-form-promise {
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.trial-form-promise-title {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 14px;
}
.trial-form-promise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trial-form-promise-list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}
.trial-form-promise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3,8 7,12 13,4'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.trial-form-main {
  background: #fff;
  border-radius: 24px;
  padding: 48px 48px 56px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px -16px rgba(28, 25, 23, 0.1);
}
.form-section-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin: 8px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.form-section-label:first-child { margin-top: 0; }
.form-section-label + .form-row,
.form-section-label + .form-group {
  margin-top: 0;
}
.trial-form .form-row,
.trial-form-main .form-row,
.trial-form-main .wpcf7-form .form-row { margin-bottom: 20px; }
.trial-form .form-group,
.trial-form-main .form-group,
.trial-form-main .wpcf7-form .form-group { margin-bottom: 20px; }
.trial-form .form-row + .form-section-label,
.trial-form .form-group + .form-section-label,
.trial-form-main .form-row + .form-section-label,
.trial-form-main .form-group + .form-section-label {
  margin-top: 40px;
}
/* CF7 output inside trial form main container */
.trial-form-main .wpcf7-form p { margin: 0; }
.trial-form-main .wpcf7 .wpcf7-not-valid-tip {
  font-size: 0.82rem;
  color: #d14e50;
  margin-top: 6px;
}
.trial-form-main .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  font-size: 0.92rem;
  border-radius: 8px;
}
.trial-form-placeholder {
  padding: 28px;
  background: var(--bg-sub);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.9;
}

.form-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 4px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.form-check:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.form-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.form-agreement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin: 28px 0 24px;
  cursor: pointer;
}
.form-agreement input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.form-agreement-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Submit button (matches hero btn-trial rhythm) ---- */
.btn-trial-submit {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
  width: 100%;
  padding: 22px 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 14px 40px -14px rgba(227, 77, 18, 0.55);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  font-family: inherit;
}
.btn-trial-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -12px rgba(227, 77, 18, 0.65);
}
.btn-trial-submit-label {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0;
  grid-row: 1;
  grid-column: 1;
}
.btn-trial-submit-note {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.8;
  grid-row: 2;
  grid-column: 1;
}
.btn-trial-submit-arrow {
  grid-row: 1 / 3;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn-trial-submit:hover .btn-trial-submit-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 960px) {
  .trial-form-layout { grid-template-columns: 1fr; gap: 48px; }
  .trial-form-side { position: static; }
  .trial-flow { grid-template-columns: 1fr; }
  .trial-flow-arrow { display: none; }
}
@media (max-width: 768px) {
  .trial-hero { padding: 100px 0 72px; }
  .trial-hero-title {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px 14px;
  }
  .trial-hero-title-num { grid-row: 1; }
  .trial-hero-title-days { grid-row: 1; grid-column: 2; align-self: center; }
  .trial-hero-title-main { grid-column: 1 / 3; grid-row: 2; }
  .trial-form-main { padding: 32px 24px 40px; }
  .trial-form-section { padding: 64px 0 80px; }
  .form-checklist { grid-template-columns: 1fr; }
}

/* ============================================
   LEGAL PAGES (terms, privacy)
   ============================================ */
.legal-hero {
  padding: 140px 0 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.legal-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.legal-kicker::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.legal-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 16px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.legal-meta-item {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.legal-meta-item strong {
  color: var(--text-sub);
  font-weight: 700;
  margin-right: 6px;
}

.legal-body-section {
  padding: 72px 0 120px;
  background: var(--bg);
}
.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-intro {
  padding: 28px 32px;
  background: var(--bg-sub);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text);
  margin-bottom: 56px;
}
.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--text);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-body h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.legal-body h2 .legal-art-num {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  padding: 4px 10px;
  background: var(--primary-light);
  border-radius: 6px;
  line-height: 1;
}
.legal-body p {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 18px;
}
.legal-body ol,
.legal-body ul {
  padding-left: 22px;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body li {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text);
  padding-left: 4px;
}
.legal-body ol { list-style: decimal outside; }
.legal-body ul { list-style: disc outside; }
.legal-body ol::marker,
.legal-body ul::marker {
  color: var(--primary);
}
.legal-body strong {
  font-weight: 700;
  color: var(--text);
}
.legal-footnote {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: right;
}
.legal-footnote-jp {
  font-family: var(--font-jp);
  letter-spacing: 0.02em;
  color: var(--text-sub);
  font-size: 0.88rem;
}
.legal-toc {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.legal-toc-title {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 14px;
}
.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.legal-toc-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.5;
  transition: background 0.15s, color 0.15s;
}
.legal-toc-list a:hover {
  background: var(--bg-sub);
  color: var(--primary);
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}
.legal-layout .legal-body { padding: 0; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 8px;
  }
}
@media (max-width: 768px) {
  .legal-hero { padding: 100px 0 40px; }
  .legal-body-section { padding: 48px 0 80px; }
  .legal-body h2 { font-size: 1.1rem; margin: 40px 0 16px; padding-top: 24px; gap: 10px; flex-wrap: wrap; }
  .legal-intro { padding: 22px 22px; font-size: 0.95rem; }
  .legal-toc-list { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ — accordion style (pricing.html)
   ============================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--primary);
}
.faq-question {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--bg-sub); }
.faq-mark {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.faq-mark-q {
  background: var(--primary);
  color: #fff;
}
.faq-mark-a {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(227, 77, 18, 0.18);
}
.faq-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0;
}
.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-sub);
  color: var(--text-sub);
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: var(--primary);
}
.faq-answer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 4px 28px 26px;
  border-top: 1px dashed var(--border);
  margin-top: 0;
  animation: faqOpen 0.25s var(--ease);
}
.faq-item[open] .faq-answer { padding-top: 22px; }
.faq-answer-text {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--text-sub);
  margin: 2px 0 0;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .faq-question { padding: 18px 20px; gap: 14px; }
  .faq-answer { padding: 4px 20px 22px; gap: 14px; }
  .faq-item[open] .faq-answer { padding-top: 18px; }
  .faq-mark { width: 28px; height: 28px; font-size: 0.9rem; }
  .faq-chevron { width: 28px; height: 28px; }
  .faq-question-text { font-size: 0.98rem; }
  .faq-answer-text { font-size: 0.94rem; line-height: 1.9; }
}

/* ============================================
   v4 PATCH (2026-05-11) — fill missing template class styles
   Added by Claude to fix CSS gaps audited via tools/audit_template_css.py.
   Covers: column page sidebar layout, case-study cards on /scenes/,
   single-scene/case-study detail pages, features animations, pricing.
   ============================================ */


/* ============================================================
   Column page: main + sidebar grid (single-column.php)
   ============================================================ */

.cas-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .cas-column-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.cas-column-main { min-width: 0; }

/* When inside the layout, the article body should NOT impose 760px max-width */
.cas-column-layout .column-detail-header,
.cas-column-layout .column-detail-body,
.cas-column-layout .column-detail-cta,
.cas-column-layout .column-nav { max-width: none; margin-left: 0; margin-right: 0; }

/* Hero thumbnail */
.column-detail-thumb {
  margin: 24px 0 36px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-sub);
}
.column-detail-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}


/* ============================================================
   Right rail sidebar (cas_sidebar_render)
   No CTA card, no TOC duplicate — text-only related + popular lists.
   ============================================================ */

.cas-sidebar {
  /* 内スクロールをやめ、記事と一緒に普通に流れる。カラムは本文の高さまで伸ばし、
     下部のCTAブロックだけ sticky で追従させる土台にする。 */
  position: static;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 14px;
  align-self: stretch;
}
@media (max-width: 980px) {
  .cas-sidebar { position: static; max-height: none; overflow-y: visible; }
}
.cas-sidebar-block { padding: 0; background: transparent; border: 0; }
.cas-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E7E5E4;
}
.cas-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cas-sidebar-list-numbered { counter-reset: cas-pop; }
.cas-sidebar-list-numbered .cas-sidebar-item {
  counter-increment: cas-pop;
  display: flex;
  gap: 10px;
}
.cas-sidebar-list-numbered .cas-sidebar-item::before {
  content: counter(cas-pop) ".";
  color: #A8A29E;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  flex-shrink: 0;
  width: 16px;
}
.cas-sidebar-item a {
  display: block;
  text-decoration: none;
  color: #44403C;
  line-height: 1.55;
  font-size: 13px;
  transition: color .12s;
}
.cas-sidebar-item a:hover { color: var(--primary); text-decoration: underline; }
.cas-sidebar-item .cas-sidebar-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cas-sidebar-thumb { display: none; }
.cas-sidebar-thumb-empty { display: none; }
.cas-sidebar-toc-host { display: none !important; }


/* ============================================================
   In-body related card (cas_related_card_shortcode)
   Editorial pull, no rounded box.
   ============================================================ */

.cas-related-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0;
  padding: 18px 4px;
  border-top: 2px solid #1c1917;
  border-bottom: 1px solid #E7E5E4;
  text-decoration: none !important;
  color: #1c1917;
  background-image: none !important;
  transition: opacity .15s;
}
.cas-related-card:hover { opacity: 0.7; }
.cas-related-card-label {
  flex-shrink: 0;
  width: 96px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cas-related-card-body { flex: 1; min-width: 0; }
.cas-related-card-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: #1c1917;
  margin: 0;
}
.cas-related-card-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}
.cas-related-card-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}
@media (max-width: 600px) {
  .cas-related-card { gap: 12px; padding: 14px 4px; flex-wrap: wrap; }
  .cas-related-card-label { width: auto; font-size: 10px; }
  .cas-related-card-body { flex-basis: 100%; }
}


/* ============================================================
   /scenes/ archive layout + case study cards
   page-scenes.php uses:
     section.scenes-archive (scene cards)
     section.scenes-cases-section > .scenes-cases-grid > .scenes-case-card
   ============================================================ */

.scenes-archive { padding: 60px 0 80px; }

.scenes-cases-section {
  padding: 64px 0 80px;
  background: var(--bg-sub);
}
.scenes-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.scenes-case-card {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.scenes-case-card-link:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}
.scenes-case-card-industry {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.scenes-case-card-company {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--text);
}
.scenes-case-card-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.85;
  margin: 0 0 16px;
}
.scenes-case-card-link-text {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}


/* ============================================================
   Single scene / single case study detail pages
   single-scene.php + single-case-study.php
   ============================================================ */

.scene-detail { padding-top: 88px; padding-bottom: 80px; }
.scene-detail-wrap { max-width: 820px; margin: 0 auto; }
.scene-detail-header { margin: 32px 0 28px; }
.scene-detail-lead {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-sub);
}
.scene-detail-body { max-width: none; margin: 0; }


/* ============================================================
   Features page animations (page-features.php)
   GSAP-driven message stage demo
   ============================================================ */

/* (REMOVED 2026-05-11) — broken .feature-content grid override.
   Parent .feature-row is already a 2-col grid; .feature-content is the
   left text column wrapper and must remain a passive block. */

.fx-stage {
  position: relative;
  background: var(--bg-sub);
  border-radius: 12px;
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.fx-avatar-ai {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.fx-avatar-ai::before {
  content: "AI";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
}
.ai-msg, .human-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  background: #fff;
  border: 1px solid var(--border);
  word-break: break-word;
}
.ai-msg { align-self: flex-start; color: var(--text); }
.ai-msg::before {
  content: "AI";
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-right: 6px;
}
.human-msg {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.fx-rank-2, .fx-rank-3, .fx-rank-4, .fx-rank-5 {
  /* hooks for staged reveal — keep visible by default */
  opacity: 1;
}


/* ============================================================
   page-pricing: decorative dot texture
   ============================================================ */

.dot-texture {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(227, 77, 18, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}


/* ============================================================
   Article body: <mark> highlight, <table> handled by plugin's
   callout-front.css (loaded on column pages only). For scene/case
   detail pages we mirror table styling here so .scene-detail-body
   tables also render.
   ============================================================ */

.scene-detail-body mark {
  background: linear-gradient(transparent 60%, rgba(255, 217, 102, 0.6) 60%);
  color: inherit;
  padding: 0 2px;
  font-weight: 500;
}
.scene-detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.93rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.scene-detail-body table thead th {
  background: var(--bg-sub);
  color: var(--text);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border);
  font-size: 0.9rem;
}
.scene-detail-body table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sub);
  vertical-align: top;
  line-height: 1.75;
}
.scene-detail-body table tbody tr:last-child td { border-bottom: none; }
.scene-detail-body table tbody tr:nth-child(even) td { background: #FCFCFB; }
@media (max-width: 720px) {
  .scene-detail-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .scene-detail-body table thead th,
  .scene-detail-body table tbody td { white-space: normal; }
}

/* ============================================
   v4.1 PATCH (2026-05-11) — editor feedback fixes
   1. /scenes/ ページの section-label 前の横棒(::before)を消す
   2. 導入企業グリッドは2カラム
   3. サイドバー(関連記事/よく読まれている)のサムネ表示
   4. コラム一覧カードのサムネ高さを揃える(image fits container)
   ============================================ */

/* 1. /scenes/ page-hero と 導入企業セクションの ::before 横棒を非表示
      (他ページの section-label::before は残す — グローバル変更しない) */
.page-hero .section-label::before,
.scenes-cases-section .section-label::before {
  display: none;
}
.page-hero .section-label,
.scenes-cases-section .section-label {
  gap: 0;
}

/* 2. 導入企業グリッドは 2 カラム固定 */
.scenes-cases-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .scenes-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* 3. サイドバーのサムネを表示
      以前の `display:none` を上書き */
.cas-sidebar-thumb {
  display: block !important;
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-sub);
}
.cas-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cas-sidebar-thumb-empty {
  display: block !important;
  width: 64px;
  height: 48px;
  background: var(--bg-sub);
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.cas-sidebar-item a {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  background: none !important;
  background-image: none !important;
}
.cas-sidebar-item .cas-sidebar-text {
  flex: 1;
  min-width: 0;
}

/* 4. コラムカードのサムネ画像を 16/9 コンテナに合わせる */
.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   v4.2 PATCH (2026-05-11) — column layout dimensions revert fix
   仕様(過去に合意):
     - 本文(main) max-width: 740px
     - main↔sidebar gap: 60px
     - sidebar 幅: 320px
     - 合計 1120px → container を 1168px に拡張(padding 24×2込み)
     - 本文の文字色は黒寄り(--text = #1c1917)
   ============================================ */

/* column-detail だけ container を拡張して 740+60+320 を収める */
.column-detail .container {
  max-width: 1168px;
}

.cas-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 320px;
  gap: 60px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .cas-column-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }
}
@media (max-width: 980px) {
  .cas-column-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 本文の文字色を黒寄りに(過去合意): デフォルトの var(--text-sub)=#78716C を上書き */
.column-detail-body,
.scene-detail-body {
  color: var(--text);   /* #1c1917 */
}
.column-detail-body p,
.scene-detail-body p {
  color: var(--text);
}
.column-detail-body ul li,
.column-detail-body ol li,
.scene-detail-body ul li,
.scene-detail-body ol li {
  color: var(--text);
}

/* ============================================================
   v5.0 (2026-05-11) DEFINITIVE column page design
   Replaces all prior column-detail-body / cas-toc / cas-sidebar /
   cas-related-card rules. Ported from URITAI v3.4 with orange palette.

   仕様 (固定 — sync_local_theme.py 後も維持すること):
     - main 740px / gap 60px / sidebar 320px
     - 本文文字色 #1c1917 (近黒)
     - H2: 太い上ライン + 短いオレンジ accent
     - H3: オレンジ縦バー + 太字
     - 表: ダーク header + zebra
     - TOC: 装飾無しプレーン (前後左の縦線禁止)
     - cas-related-card: JIN風 ラベル飛び出しボックス + サムネ100×70
     - breadcrumb ↔ thumb は密(20px程度)、ふんだんな余白は禁止
   ============================================================ */

/* ----- Reset older shiritai column-detail-body rules ----- */
.column-detail-body { max-width: none !important; margin: 0 !important; }
.column-detail-header { max-width: none !important; margin: 0 0 28px !important; }
.column-detail-cta { max-width: none !important; }
.column-nav { max-width: none !important; }

/* ----- breadcrumb と thumb の間を密に ----- */
.column-detail { padding-top: 28px !important; padding-bottom: 80px !important; }
.column-detail-thumb {
  margin: 20px 0 32px !important;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-sub);
}
.column-detail-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.container.breadcrumb {
  padding-top: 88px;
  margin-bottom: 0 !important;
}
/* ============================================================
   Column AI Studio v3 — article body typography (SHIRITAI)
   Warm craft / orange. No rounded card boxes, no AI-flavored blocks.
   ============================================================ */

.column-detail-body {
  font-size: 16px;
  line-height: 1.95;
  color: #1c1917;
  letter-spacing: 0.01em;
  word-break: normal;
  /* anywhere は語の途中どこでも切ってよいという指定で、
     日本語でも英数字の途中で切れていた。長いURLだけ折る */
  overflow-wrap: break-word;
}
.column-detail-body > * + * { margin-top: 1.4em; }
.column-detail-body p { margin: 0; }
.column-detail-body p + p { margin-top: 1.4em; }

/* Links inside body text */
.column-detail-body a:not(.cas-related-card):not(.btn) {
  color: #E34D12;
  text-decoration: none;
  background-image: linear-gradient(#E34D12, #E34D12);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size .18s, color .18s;
}
.column-detail-body a:not(.cas-related-card):not(.btn):hover {
  color: #C93F0A;
  background-size: 100% 2px;
}

/* ─── H2 ─── Warm craft: short orange accent + thin gray rule */
.column-detail-body h2 {
  font-size: 26px;
  line-height: 1.5;
  font-weight: 800;
  color: #1c1917;
  margin: 64px 0 24px;
  padding: 0 0 14px;
  /* (REMOVED 2026-05-11) border-top — ユーザー指示「H2の上の黒線いらない」 */
  background-image: linear-gradient(to right, #E34D12 0 72px, #E7E5E4 72px 100%);
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  letter-spacing: 0.01em;
}
.column-detail-body > h2:first-child { margin-top: 0; }

/* ─── H3 ─── small blue diamond + bottom dashed thin rule */
.column-detail-body h3 {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 700;
  color: #1c1917;
  margin: 48px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #D6D3D1;
  letter-spacing: 0.01em;
}
.column-detail-body h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: #E34D12;
  margin-right: 12px;
  transform: translateY(-3px) rotate(45deg);
}

/* ─── H4 ─── subdued, thin left accent */
.column-detail-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1c1917;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid #E34D12;
}

/* ─── Marker / highlighter ─── soft yellow + brand-blue option */
.column-detail-body mark,
.column-detail-body .cas-marker {
  background: linear-gradient(transparent 62%, #FFF3C2 62%);
  padding: 0 2px;
  color: inherit;
  font-weight: 600;
}
.column-detail-body .cas-marker-blue {
  background: linear-gradient(transparent 62%, rgba(22, 103, 234, 0.15) 62%);
}

/* ─── Strong ─── heavy weight + navy */
.column-detail-body strong { font-weight: 700; color: #1c1917; }

/* ─── Lists ─── blue bar bullet, numbered uses solid navy square */
.column-detail-body ul,
.column-detail-body ol {
  padding: 0;
  margin: 1.4em 0;
}
.column-detail-body ul li,
.column-detail-body ol li {
  list-style: none;
  position: relative;
  margin: 0.6em 0;
  line-height: 1.85;
}
.column-detail-body ul li {
  padding-left: 26px;
}
.column-detail-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.85em;
  width: 12px; height: 2px;
  background: #E34D12;
}
.column-detail-body ol {
  counter-reset: cas-ol;
}
.column-detail-body ol li {
  padding-left: 38px;
  counter-increment: cas-ol;
}
.column-detail-body ol li::before {
  content: counter(cas-ol);
  position: absolute;
  left: 0; top: 4px;
  width: 24px; height: 24px;
  background: #1c1917;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-feature-settings: "tnum";
}
.column-detail-body li > ul,
.column-detail-body li > ol { margin: 0.4em 0 0.4em 0; }
.column-detail-body li > ul li::before { background: #D6D3D1; }

/* ─── Tables ─── SaaS clean, navy header, light blue zebra */
.column-detail-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 36px 0;
  background: #fff;
}
.column-detail-body table thead th {
  /* (CHANGED 2026-05-11) ユーザー指示「表のヘッダー列は黒字」 */
  background: #FAFAF9;
  color: #1c1917;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border: 0;
  border-bottom: 2px solid #1c1917;
  vertical-align: middle;
}
.column-detail-body table tbody th {
  background: #FFF4EF;
  color: #1c1917;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #E7E5E4;
  vertical-align: top;
  white-space: nowrap;
}
.column-detail-body table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #E7E5E4;
  vertical-align: top;
  color: #1c1917;
}
.column-detail-body table tbody tr:nth-child(even) td { background: #FCFCFB; }
.column-detail-body table caption {
  caption-side: top;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #78716C;
  letter-spacing: 0.06em;
  padding: 0 0 8px;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .column-detail-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Blockquote ─── soft blue-tinted bg, navy quote glyph */
.column-detail-body blockquote {
  position: relative;
  margin: 36px 0;
  padding: 20px 24px 20px 56px;
  background: #FAFAF9;
  color: #3a2d28;
  font-size: 15.5px;
  line-height: 1.85;
}
.column-detail-body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 16px; top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1;
  color: #E34D12;
  font-style: normal;
}
.column-detail-body blockquote p { margin: 0; }
.column-detail-body blockquote p + p { margin-top: 0.8em; }
.column-detail-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  color: #78716C;
  font-style: normal;
}
.column-detail-body blockquote cite::before { content: "— "; }

/* ─── Code (inline + block) ─── */
.column-detail-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #F5F5F4;
  padding: 0.15em 0.4em;
  color: #C93F0A;
}
.column-detail-body pre {
  margin: 28px 0;
  padding: 18px 20px;
  background: #1c1917;
  color: #F5F5F4;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.column-detail-body pre code { background: transparent; color: inherit; padding: 0; }

/* ─── Horizontal rule ─── */
.column-detail-body hr {
  border: 0;
  height: 1px;
  background: #E7E5E4;
  margin: 56px auto;
  width: 60%;
}

/* ─── Images / figures ─── */
.column-detail-body figure { margin: 32px 0; }
.column-detail-body figure img,
.column-detail-body img { max-width: 100%; height: auto; display: block; }
.column-detail-body figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: #78716C;
  line-height: 1.6;
  padding-left: 10px;
  border-left: 2px solid #E34D12;
}

/* ─── Internal-link / related card ─── editorial pull, NO rounded box */
.cas-related-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0;
  padding: 18px 4px;
  border-top: 2px solid #1c1917;
  border-bottom: 1px solid #E7E5E4;
  text-decoration: none !important;
  color: #1c1917;
  background-image: none !important;
  transition: opacity .15s;
}
.cas-related-card:hover { opacity: 0.7; }
.cas-related-card-label {
  flex-shrink: 0;
  width: 96px;
  font-size: 11px;
  font-weight: 800;
  color: #E34D12;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cas-related-card-body { flex: 1; min-width: 0; }
.cas-related-card-title {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.55;
  color: #1c1917;
  margin: 0;
}
.cas-related-card-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #78716C;
  letter-spacing: 0.04em;
}
.cas-related-card-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #E34D12;
}
@media (max-width: 600px) {
  .cas-related-card { gap: 12px; padding: 14px 4px; }
  .cas-related-card-label { width: auto; font-size: 10px; }
  .cas-related-card { flex-wrap: wrap; }
  .cas-related-card-body { flex-basis: 100%; }
}

/* ─── Anchored heading offset (already set elsewhere; reinforce) ─── */
.column-detail-body h2[id],
.column-detail-body h3[id],
.column-detail-body h4[id] { scroll-margin-top: 88px; }
/* ============================================================
   v3.1 patch (SHIRITAI) — TOC reset + sidebar thumbs + breadcrumb tighten
   ============================================================ */

/* --- TOC inside .column-detail-body: nullify all article-body inheritance --- */
.column-detail-body .cas-toc {
  margin: 20px 0 36px;
  padding: 0;
  font-size: 14px;
}
.column-detail-body .cas-toc-heading {
  font-size: 12px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid #D6D3D1;
  letter-spacing: 0.06em;
}
.column-detail-body .cas-toc-heading::before { content: none; }
.column-detail-body .cas-toc ul,
.column-detail-body .cas-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: cas-toc-h2;
}
.column-detail-body .cas-toc .cas-toc-list .cas-toc-list {
  margin: 2px 0 6px !important;
  padding-left: 18px !important;
  gap: 0;
  counter-reset: none;
}
.column-detail-body .cas-toc li,
.column-detail-body .cas-toc .cas-toc-item {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  position: relative;
}
.column-detail-body .cas-toc li::before,
.column-detail-body .cas-toc .cas-toc-item::before {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}
.column-detail-body .cas-toc a {
  display: block;
  padding: 1px 0 !important;
  text-decoration: none !important;
  background: none !important;
  background-image: none !important;
  color: #374151;
  line-height: 1.55 !important;
  font-size: 14px;
  transition: color .12s;
}
.column-detail-body .cas-toc a:hover {
  background: none !important;
  background-image: none !important;
  color: #E34D12;
  text-decoration: underline;
}
.column-detail-body .cas-toc-item.cas-toc-active > a {
  color: #E34D12;
  font-weight: 700;
}
.column-detail-body .cas-toc-h2 { counter-increment: cas-toc-h2; }
.column-detail-body .cas-toc-h2 > a {
  font-size: 14px;
  font-weight: 700;
  color: #1c1917;
  padding: 2px 0 !important;
}
.column-detail-body .cas-toc-h2 > a::before {
  content: counter(cas-toc-h2) ". ";
  color: #A8A29E;
  font-weight: 600;
  background: none !important;
  display: inline !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
}
.column-detail-body .cas-toc-h3 > a {
  font-size: 13px;
  color: #78716C;
  padding: 0 !important;
}
.column-detail-body .cas-toc-h3 > a::before {
  content: "";
  display: inline-block !important;
  width: 6px !important;
  height: 1px !important;
  background: #D6D3D1 !important;
  margin: 0 8px 4px 0 !important;
  vertical-align: middle;
  position: static !important;
}

/* --- Sidebar: thumbnail card grid (2col) + hover title --- */
.cas-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.cas-thumb-card { display: block; text-decoration: none; }
.cas-thumb-card-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #F5F5F4;
}
.cas-thumb-card-img.is-empty {
  background: linear-gradient(135deg, #F5F5F4, #E7E5E4);
}
.cas-thumb-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.cas-thumb-card:hover .cas-thumb-card-img img { transform: scale(1.06); }
.cas-thumb-card-overlay {
  position: absolute; inset: 0;
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(28,25,23,.80), rgba(28,25,23,.93));
  color: #fff;
  font-size: 11px; line-height: 1.45; font-weight: 600;
  opacity: 0; transition: opacity .25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cas-thumb-card:hover .cas-thumb-card-overlay { opacity: 1; }
.cas-thumb-card-cap {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  font-size: 12px; line-height: 1.5;
  color: #44403C;
  transition: color .2s ease;
}
.cas-thumb-card:hover .cas-thumb-card-cap { color: var(--primary); }
.cas-thumb-rank {
  position: absolute; top: 0; left: 0; z-index: 2;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,25,23,.82); color: #fff;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700;
  border-radius: 0 0 9px 0;
}

/* --- Sidebar CTA block: stays pinned while related/popular scroll past --- */
.cas-sidebar-sticky {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cas-sidebar-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: background .18s ease;
}
.cas-sidebar-banner-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
}
.cas-sidebar-banner-icon svg { width: 19px; height: 19px; }
.cas-sidebar-banner-body { flex: 1; min-width: 0; line-height: 1.35; }
.cas-sidebar-banner-title {
  display: block;
  font-size: 15px; font-weight: 800; letter-spacing: .01em;
}
.cas-sidebar-banner-sub {
  display: block;
  font-size: 11px; font-weight: 500; margin-top: 2px;
}
.cas-sidebar-banner-arrow {
  flex-shrink: 0;
  font-weight: 700;
  transition: transform .18s ease;
}
.cas-sidebar-banner:hover .cas-sidebar-banner-arrow { transform: translateX(3px); }

/* 資料請求：コーラル塗り（第一CTA） */
.cas-sidebar-banner-doc { background: var(--primary); color: #fff; }
.cas-sidebar-banner-doc:hover { background: var(--primary-dark, #d14e50); }
.cas-sidebar-banner-doc .cas-sidebar-banner-icon { background: rgba(255,255,255,.18); color: #fff; }
.cas-sidebar-banner-doc .cas-sidebar-banner-sub { color: rgba(255,255,255,.85); }

/* 無料診断：インク塗り（別種の動線として色で差別化） */
.cas-sidebar-banner-diag { background: #292524; color: #fff; }
.cas-sidebar-banner-diag:hover { background: #1c1917; }
.cas-sidebar-banner-diag .cas-sidebar-banner-icon { background: rgba(255,255,255,.14); color: #fff; }
.cas-sidebar-banner-diag .cas-sidebar-banner-sub { color: rgba(255,255,255,.72); }

/* --- Breadcrumb-to-title tighten --- */
.column-detail .breadcrumb {
  margin-bottom: 4px !important;
  padding-top: 16px !important;
}
.column-detail-header {
  margin-top: 12px;
  padding-top: 0 !important;
}
.column-detail-header .column-detail-meta {
  margin-bottom: 12px;
}
.column-detail-header .column-detail-title {
  margin-top: 8px;
}
/* ============================================================
   v3.2 patch (SHIRITAI) — breadcrumb gap kill + auto-card thumb
   ============================================================ */

.column-detail .breadcrumb {
  padding-top: 12px !important;
  margin-bottom: 0 !important;
}
.column-detail-header {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  padding-top: 0 !important;
}
.column-detail-meta {
  margin-bottom: 8px !important;
}
.column-detail-title {
  margin: 0 !important;
}

/* --- Auto-converted related card with thumbnail --- */
.cas-related-card { gap: 16px !important; }
.cas-related-card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  background: #F5F5F4;
}
.cas-related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cas-related-card-label {
  width: 80px !important;
}
@media (max-width: 600px) {
  .cas-related-card-thumb { width: 88px; height: 64px; }
}

/* ============================================================
   v3.3 patch — text color darken, hide hr, callout speech bubbles
   ============================================================ */

/* 1. text color: darker for readability */
.column-detail-body,
.column-detail-body p,
.column-detail-body li,
.column-detail-body td,
.column-detail-body th {
  color: #1c1917 !important;
}

/* 2. hide horizontal rule entirely (we use H2 top accent instead) */
.column-detail-body hr {
  display: none !important;
}

/* 3. callout / fukidashi speech-bubble style */
.column-detail-body .callout {
  display: flex;
  align-items: flex-start;       /* bubble shrinks to fit content */
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  position: relative;
}
.column-detail-body .callout-icon {
  flex-shrink: 0;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;                        /* image, label, name tightly stacked */
}
.column-detail-body .callout-icon::before {
  content: "";
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 2px solid currentColor;
  background-image: var(--callout-icon-image, none);
}
.column-detail-body .callout-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 99px;
  color: #fff;
  background: currentColor;
  line-height: 1.4;
  margin-top: 4px;
}
.column-detail-body .callout-name {
  margin-top: 2px;
}
.column-detail-body .callout-label::after {
  /* Trick: render label with background = currentColor, but text white.
     Use a child span override would be cleaner; CSS-only fallback below. */
}
.column-detail-body .callout-name {
  font-size: 12px;
  font-weight: 700;
  color: #1c1917;
}
.column-detail-body .callout-body {
  flex: 1;
  position: relative;
  padding: 22px 26px;
  background: #fff;
  border: 2px solid currentColor;
  border-radius: 14px;
  color: #1c1917;
}
.column-detail-body .callout-body::before,
.column-detail-body .callout-body::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 0;
  height: 0;
  border-style: solid;
}
/* outer triangle (border color) — anchored to icon center */
.column-detail-body .callout-body::before {
  top: 28px;
  left: -14px;
  border-width: 8px 14px 8px 0;
  border-color: transparent currentColor transparent transparent;
}
/* inner triangle (white fill, 2px inset) */
.column-detail-body .callout-body::after {
  top: 30px;
  left: -10px;
  border-width: 6px 12px 6px 0;
  border-color: transparent #fff transparent transparent;
}
.column-detail-body .callout-body > *:first-child { margin-top: 0; }
.column-detail-body .callout-body > *:last-child { margin-bottom: 0; }
.column-detail-body .callout-body p { margin: 0 0 8px; line-height: 1.85; }
.column-detail-body .callout-body p:last-child { margin-bottom: 0; }

/* color variants — set color on .callout to drive border + label bg */
.column-detail-body .callout-point    { color: #E34D12; }   /* SHIRITAI orange */
.column-detail-body .callout-check    { color: #1976D2; }   /* blue */
.column-detail-body .callout-caution  { color: #C62828; }   /* red */
.column-detail-body .callout-note     { color: #555; }      /* neutral grey */
.column-detail-body .callout-qa       { color: #2E7D32; }   /* green */

/* Force the label text to white (currentColor would make it invisible on bg) */
.column-detail-body .callout-label { color: #fff !important; }

/* Body text needs to override "color: currentColor" so paragraphs aren't tinted */
.column-detail-body .callout-body,
.column-detail-body .callout-body p,
.column-detail-body .callout-body li,
.column-detail-body .callout-body strong {
  color: #1c1917;
}

/* SHIRITAI default character icon */
.column-detail-body .callout {
  --callout-icon-image: url('/wp-content/themes/shiritai/assets/shiritai-character.png');
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
  .column-detail-body .callout {
    flex-direction: column;
    gap: 8px;
  }
  .column-detail-body .callout-icon {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .column-detail-body .callout-icon::before {
    width: 48px;
    height: 48px;
  }
  .column-detail-body .callout-body::before,
  .column-detail-body .callout-body::after {
    display: none;
  }
}

/* ============================================================
   v3.4 patch — main 740 / sidebar 320 / gap 60, responsive title
   ============================================================ */

/* Layout: fixed widths (referencing jinr.jp/blogcamp spec) */
.cas-column-layout {
  display: grid;
  grid-template-columns: 740px 320px !important;
  gap: 60px !important;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 1180px) {
  .cas-column-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 40px !important;
    max-width: 1080px;
  }
}
@media (max-width: 980px) {
  .cas-column-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    max-width: 740px;
  }
}

/* Sidebar fixed 320 */
.cas-column-sidebar { width: 320px; max-width: 100%; }

/* Title responsive — smaller cap */
.column-detail-title,
.column-detail-header .column-detail-title {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem) !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  /* 見出しグローバルの keep-all を打ち消し、幅いっぱいまで詰めて折り返す */
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-break: strict !important;
}

/* ============================================
   コラム一覧ツールバー（カテゴリフィルタ + 検索）
   ============================================ */

.column-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}

.column-toolbar .column-filters {
  margin-bottom: 0;
  justify-content: flex-start;
}

.column-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  padding: 2px 6px 2px 16px;
  transition: border-color 0.2s var(--ease);
}

.column-search:focus-within {
  border-color: var(--primary);
}

.column-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.85rem;
  font-family: var(--font-jp);
  color: var(--text);
  width: 190px;
  padding: 6px 0;
}

.column-search input::placeholder {
  color: var(--text-sub);
}

.column-search button {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
  color: var(--text-sub);
  transition: color 0.2s var(--ease);
}

.column-search button:hover {
  color: var(--primary);
}

a.column-filter-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 860px) {
  .column-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .column-search input {
    width: 100%;
    flex: 1;
  }
  .column-search {
    width: 100%;
  }
}

/* ============================================================
   2026-07-20 SHIRITAI独自化
   英字ラベル→会話の吹き出し / 飾り線・ゴースト数字・タイルの廃止
   ============================================================ */

/* セクションラベル: SHIRITAIの本質=会話、を設計言語に */
.section-label,
.section-dark .section-label,
.page-hero .section-label,
.scenes-cases-section .section-label {
  font-family: var(--font-jp);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 7px 18px 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.section-label::before { display: none !important; }
.section-label::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 10px solid var(--primary);
  border-bottom: 8px solid transparent;
}

/* 現場とお客さまの声(吹き出し) */
.voices-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
  max-width: 1060px;
  margin: 0 auto;
}
.voice-bubble {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  font-size: 1.0rem;
  line-height: 1.8;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.voice-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 30px;
  width: 15px;
  height: 15px;
  background: inherit;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transform: rotate(45deg);
  border-bottom-right-radius: 4px;
}
.voice-item--customer .voice-bubble {
  background: var(--primary-light);
  border-color: #F3CDBB;
}
.voice-item--customer .voice-bubble::after {
  left: auto;
  right: 30px;
  border-right-color: #F3CDBB;
  border-bottom-color: #F3CDBB;
}
.voice-who {
  display: block;
  margin-top: 14px;
  padding-left: 32px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
}
.voice-item--customer .voice-who {
  padding-left: 0;
  padding-right: 32px;
  text-align: right;
}
@media (max-width: 760px) {
  .voices-list { grid-template-columns: 1fr; gap: 26px; }
}

/* ゴースト数字・装飾数字の廃止 */
.sh-visual-num,
.value-card-number,
.feature-number,
.trial-flow-step-num { display: none !important; }

/* STEP表記は日本語 */
.sh-step-label {
  font-family: var(--font-jp);
  letter-spacing: 0.03em;
  text-transform: none;
}

/* カードのhover持ち上げを廃止 */
.value-card:hover,
.scene-card:hover,
.func-item:hover,
.challenge-item:hover,
.pricing-card:hover,
.flow-step:hover,
.faq-item:hover { transform: none; }

/* FAQのQ/A: 箱をやめて文字に */
.faq-mark {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  font-size: 1.02rem;
  font-weight: 800;
}
.faq-mark-q { color: var(--primary); }
.faq-mark-a { color: var(--text-sub); }

/* 機能一覧: タイルをやめて、まとまりの表に */
.func-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 60px;
  max-width: 1080px;
  margin: 0 auto;
}
.func-group { padding: 10px 0 20px; }
.func-group-title {
  font-size: 1.14rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.func-list { list-style: none; margin: 0; padding: 0; }
.func-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  line-height: 1.7;
}
.func-list li:last-child { border-bottom: none; }
.func-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  flex: none;
  position: relative;
  top: -1px;
}
.func-list b { font-weight: 700; white-space: nowrap; }
.func-note { color: var(--text-sub); font-size: 0.88rem; }
@media (max-width: 860px) {
  .func-groups { grid-template-columns: 1fr; gap: 6px; }
}

/* 料金カードに価格 */
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 20px;
}
.pricing-price-yen { font-size: 0.82rem; color: var(--text-sub); font-weight: 600; }
.pricing-price-num {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
}
.pricing-price-unit { font-size: 0.82rem; color: var(--text-sub); }

/* ============================================
   料金カードの文字（2026-08-16）
   プラン名13px・機能13px・色は薄いグレーで、
   カードの中がほとんど読めない状態だった。
   金額のないプランは行そのものが無く、高さも揃っていなかった。
   ============================================ */
.pricing-plan-name {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}
.pricing-price-ask {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
/* 金額の行の高さを揃えて、下の機能リストの開始位置を合わせる
   （実測：ライトだけ47px、他は40pxで6px下がっていた） */
.pricing-price { min-height: 47px; }
.pricing-feature {
  font-size: 0.95rem;
  color: var(--text);
  padding: 9px 0;
}
.pricing-note {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-top: 20px;
}

/* トライアルヒーローの日本語化 */
.trial-hero-title-main { font-size: clamp(1.9rem, 3.6vw, 2.9rem); display: inline-block; }

/* STEPラベル: 飾り線をやめて小さな吹き出しに */
.sh-step-label::before { display: none; }
.sh-step-label {
  background: var(--primary-light);
  color: var(--primary-dark, #C93F0A);
  border-radius: 999px;
  padding: 5px 14px 6px;
  font-size: 0.82rem;
  position: relative;
}
.sh-step-label::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -6px;
  border-left: 8px solid var(--primary-light);
  border-bottom: 6px solid transparent;
}

/* 機能グループ見出しのマーカー */
/* トップの機能一覧。機能名は詳細ページへのリンクにしてある。 */
.func-list li a { text-decoration: none; color: inherit; }
.func-list li a b { border-bottom: 1px solid transparent; transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
.func-list li a:hover b { color: var(--primary); border-bottom-color: var(--primary); }
.func-more { margin-top: 36px; text-align: center; }

.func-group-title .hl {
  background: linear-gradient(transparent 62%, var(--accent-peach) 62%);
  padding: 0 4px;
}

/* 料金の折り返し防止 */
.pricing-price { flex-wrap: nowrap; white-space: nowrap; }
.pricing-price-yen, .pricing-price-unit { white-space: nowrap; }
.pricing-price-num { font-size: clamp(1.5rem, 1.8vw, 1.9rem); }

/* ページヒーローの吹き出しがヘッダーに寄りすぎないように */
.page-hero .section-label { margin-top: 10px; }

/* FV: ボットからのひとこと+相談CTA */
.hero-consult { margin-top: 34px; }
.hero-consult-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.hero-consult-face {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: block;
}
.hero-consult-bubble {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.hero-consult-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-bottom-left-radius: 3px;
}
.hero-consult .hero-actions { margin-top: 0; }

/* ============================================================
   出現アニメーションのフォールバック
   .fade-* は既定で opacity:0 にしてあり、表示に戻しているのは
   外部CDN(cdnjs)から読む GSAP だけ。CDNに到達できない環境や
   JSを切っている環境では、本文が最後まで見えないままになる。
   その場合はアニメーションを諦めて中身を出す。
   （通常どおりGSAPが読めたときは .no-anim が付かないので影響なし）
   ============================================================ */
html:not(.js) .fade-up,
html:not(.js) .fade-left,
html:not(.js) .fade-right,
html:not(.js) .fade-in,
html.no-anim .fade-up,
html.no-anim .fade-left,
html.no-anim .fade-right,
html.no-anim .fade-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   v3.5 — 記事下の「あわせて読みたい記事」と、本文中の「質問→回答の実例」
   どちらも本文のエディトリアル調（1px罫線・余白・字面の強弱）に合わせる。
   影・大きな角丸・左の縦アクセント線・色ベタ塗りは使わない。
   ============================================================ */

/* ─── 記事下の関連記事 ─── 一覧と同じ column-card を2列で使う */
.column-related { margin: 72px 0 0; }
.column-related-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  padding: 0 0 10px;
  border-bottom: 2px solid #1c1917;
}
.column-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.column-related .column-card-title {
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .column-related { margin-top: 48px; }
  .column-related-grid { grid-template-columns: 1fr; }
}

/* ─── 本文中の「質問→回答の実例」 ─── 会話の記録をそのまま載せる体裁 */
.column-detail-body .cas-qa {
  margin: 36px 0;
  padding: 0;
  border-top: 2px solid #1c1917;
  border-bottom: 1px solid #E7E5E4;
  background: none;
}
.column-detail-body .cas-qa-note {
  margin: 0 !important;
  padding: 11px 0 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #78716C;
}
.column-detail-body .cas-qa-turn {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 15px 0;
  align-items: start;
}
.column-detail-body .cas-qa-turn + .cas-qa-turn { border-top: 1px solid #E7E5E4; }
/* wpautop が役割ラベルの直後に空の <p> を差し込むことがある。
   グリッドの列がひとつずれて本文が62px幅に潰れるので、空の段落は数えない。 */
.column-detail-body .cas-qa-turn > p:empty { display: none; }
.column-detail-body .cas-qa-note + .cas-qa-turn { padding-top: 12px; }
.column-detail-body .cas-qa-role {
  padding-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: #78716C;
}
.column-detail-body .cas-qa-answer .cas-qa-role { color: #E34D12; }
.column-detail-body .cas-qa-turn p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.85;
  color: #3a2d28;
}
.column-detail-body .cas-qa-turn p + p { margin-top: 0.8em !important; }
.column-detail-body .cas-qa-ask p {
  font-weight: 700;
  color: #1c1917;
}
.column-detail-body .cas-qa-turn ul,
.column-detail-body .cas-qa-turn ol { margin: 0.6em 0 0; }
.column-detail-body .cas-qa-turn li { font-size: 15px; }
.column-detail-body .cas-qa-meta {
  margin: 0 !important;
  padding: 0 0 13px;
  font-size: 12px;
  line-height: 1.7;
  color: #78716C;
}
@media (max-width: 600px) {
  .column-detail-body .cas-qa-turn {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .column-detail-body .cas-qa-role { padding-top: 0; }
}

/* ─── 本文中の「よくある質問」 ─── 開閉せず全部見せる（読者にも検索にも同じものを出す） */
.column-detail-body .cas-faq {
  margin: 36px 0;
  border-top: 2px solid #1c1917;
}
.column-detail-body .cas-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid #E7E5E4;
}
.column-detail-body h3.cas-faq-q {
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 0;
}
.column-detail-body h3.cas-faq-q::before { content: none; }
.column-detail-body .cas-faq-a p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.85;
  color: #3a2d28;
}
.column-detail-body .cas-faq-a p + p { margin-top: 0.8em !important; }
.column-detail-body .cas-faq-a ul { margin: 0.6em 0 0; }

/* コラム記事から機能ページへ */
.column-features { margin-top: 56px; }
.column-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.column-feature-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.column-feature-link:hover { border-color: var(--primary); }
.column-feature-name { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.column-feature-desc { display: block; font-size: 0.86rem; color: var(--text-sub); line-height: 1.75; }

/* トップの「できること」。44件を全部並べず、入口だけを置く */
.func-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.func-cat {
  display: block;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.func-cat:hover { border-color: var(--primary); }
.func-cat-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.func-cat-desc {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.85;
}
@media (max-width: 900px) { .func-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .func-cats { grid-template-columns: 1fr; } }


/* ============================================
   スマートフォンでの直し（2026-08-16）
   ============================================ */

/* コラム本文の表。1列目の見出しだけ nowrap のままで、
   本文セルが47px幅に潰れ、縦に7,000px以上伸びていた。
   横に流して読ませる。 */
@media (max-width: 720px) {
  .column-detail-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .column-detail-body table thead th,
  .column-detail-body table tbody th,
  .column-detail-body table tbody td {
    white-space: normal;
    min-width: 8em;
  }
  .column-detail-body table tbody th { min-width: 9em; }
}

/* フォームの文字。16px未満だと、iPhoneで入力欄を触った瞬間に画面が拡大する */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
  font-size: 16px;
}

/* 押せるところを、指で触れる大きさに */
/* 触れる大きさにするだけ。表示・非表示は上のメディアクエリのまま
   （ここで display を書くと、PCでもハンバーガーが出てしまう） */
.menu-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; }
.footer-bottom a, .footer-copy a { display: inline-block; padding: 12px 4px; }
.column-filter-btn { min-height: 44px; display: inline-flex; align-items: center; }
.search-submit { min-width: 44px; min-height: 44px; }
.sidenav a { min-height: 44px; display: flex; align-items: center; }

/* 小さすぎた文字。フッターは全ページに出る */
.footer-heading, .footer-copy, .footer-bottom { font-size: 0.82rem; }
.required { font-size: 0.78rem; }

/* 12px未満のまま残っていた表示（実測 9.92〜11.52px）。
   チャットの見本の中の文字は、画面の再現なのでそのままにする */
.required { font-size: 0.75rem; }
.form-section-label,
.trial-form-promise-title,
.trusted-by-label,
.value-card-kicker,
.cas-thumb-card-overlay { font-size: 0.75rem; }
.pricing-badge, .flow-step-duration { font-size: 0.78rem; }
.cas-sidebar-banner-sub { font-size: 0.78rem; }
.scene-card-tag, .scenes-case-card-industry { font-size: 0.78rem; }

/* 機能 ⇄ 業種・用途 をつなぐリンク */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.cross-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}
.cross-link:hover { border-color: var(--primary); }
.cross-link-name { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cross-link-desc { display: block; font-size: 0.86rem; font-weight: 400; color: var(--text-sub); line-height: 1.75; }

/* ============================================
   コラム本文の行長（2026-08-16・やり直し）
   36字に収めようとして段落だけに上限をかけたところ、
   本文カラムは740pxあるのに本文だけ576pxで止まり、
   見出しの罫線・図・目次と右端が164pxずれた。
   目次（li）まで36字で折り返していた。
   行長はコンテナの幅で決める。段落だけを狭めない。
   ============================================ */

/* ============================================
   禁則処理（2026-08-16）
   line-break が auto のままで、「AIチ／ャットボット」
   「ボッ／ト」「シリタ／ー」のように小書き仮名・長音符が
   行頭に送られていた。見出しの一部だけ strict になっていて
   ページの中でも規則が揃っていなかった。
   ============================================ */
html { line-break: strict; }


/* ============================================
   字送り（2026-08-16・実測にもとづく）
   本文が normal（＝0）で、日本語としては字が詰まって見えていた。
   見出しはマイナス指定（最大 -0.05em）で、さらに詰まっていた。
   日本語は少し開くほうが読みやすいので、本文・見出しとも正の値にする。
   ============================================ */
body { letter-spacing: 0.04em; }
p, li, td, th, dd, dt, figcaption, .lead, .section-subtitle { letter-spacing: 0.05em; }
h1, h2, h3, h4, .section-title, .hero-title { letter-spacing: 0.02em; }
.btn, button, .nav-links a { letter-spacing: 0.04em; }

/* ============================================
   資料ダウンロード（2026-08-16 新設）
   相談の窓口（/contact/）と受け口を分けた。
   ============================================ */
.dl-card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.dl-list { margin: 0 0 22px; padding: 0; list-style: none; }
.dl-list li {
  position: relative;
  padding: 0 0 12px 22px;
  color: var(--text-sub);
  line-height: 1.8;
  font-size: 0.95rem;
}
.dl-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.dl-note { font-size: 0.9rem; color: var(--text-sub); line-height: 1.9; }
.dl-note a { color: var(--primary); text-decoration: underline; }
.dl-form .form-group { margin-bottom: 18px; }
.dl-privacy { font-size: 0.88rem; color: var(--text-sub); margin: 4px 0 18px; line-height: 1.8; }
.dl-privacy a { color: var(--primary); text-decoration: underline; }
.dl-submit { width: 100%; }
.dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-error {
  background: #FDECEA; border: 1px solid #F5C6C0; color: #8C2A18;
  padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.92rem;
}
.dl-done { padding: 8px 0; }
.dl-done-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.dl-done p { color: var(--text-sub); line-height: 1.95; }

/* よくある質問（機能／業種・用途／利用シーンの詳細）。中身は投稿メタ _shiritai_faq。
   Q&Aの見た目そのものは上の .faq-* をそのまま使うので、ここは節の余白だけ。 */
.doc-faq{margin:56px 0 0}
.doc-faq > h2{margin-bottom:18px}
