/*
Theme Name: WHITEBOX_LP
Theme URI: 
Author: Hideto.Yamauchi
Description: WHITEBOX_LP カスタムテーマ
Version: 1.0.0
*/

/* =========================================
   Variables & Reset
   ========================================= */
:root {
  /* Color Palette */
  --c-blue-dark: #063bb5;
  --c-blue-mid: #0c80d5;
  --c-blue-light: #0ab2f4;
  --c-yellow: #ffbf00; /* ハイライト用イエロー */
  
  --bg-white: #ffffff;
  --bg-yellow: #fdfbf2;
  --bg-gray: #f4f6f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
}

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

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

body {
  font-family: var(--font-ja);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================
   Typography & Editorial Styles
   ========================================= */
section {
  padding: 140px 0;
  position: relative;
}

h1, h2, h3, h4, h5 {
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* セクションヘッダー */
.sec-header {
  position: relative;
  margin-bottom: 100px;
  z-index: 1;
}
.sec-header.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 背景テキスト */
.sec-bg-text {
  position: absolute;
  top: -60px;
  left: -20px;
  font-family: var(--font-en);
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 900;
  color: var(--bg-gray);
  z-index: -1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.bg-yellow .sec-bg-text {
  color: #f5eed5;
}
.bg-gray .sec-bg-text {
  color: #e2e8f0;
}
.bg-dark .sec-bg-text {
  color: rgba(255, 255, 255, 0.05);
}

/* セクションラベル */
.sec-label {
  display: block;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--c-blue-mid);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sec-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 24px;
}

/* PC専用改行防止クラス（SPで解除） */
.nw-pc {
  display: inline-block;
  white-space: nowrap;
}

/* 改行対応マーカーアニメーション */
.highlight {
  display: inline;
  /* デフォルトはブルーライトの透過色 */
  --highlight-color: rgba(10, 178, 244, 0.4); 
  background-image: linear-gradient(transparent 60%, var(--highlight-color) 60%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left top;
  transition: background-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.3s;
}

/* CTAセクションのハイライトは指定の黄色に変更 */
#cta .highlight {
  --highlight-color: rgba(255, 191, 0, 0.8); 
}

.is-visible .highlight {
  background-size: 100% 100%;
}

.sec-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 800px;
  font-weight: 700;
}
.bg-dark .sec-desc {
  color: #f1f5f9;
}

/* =========================================
   Buttons (Flat)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 0;
}
.btn-primary {
  background-color: var(--c-blue-mid);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--c-blue-dark);
}
.btn-secondary {
  background-color: var(--text-main);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--text-muted);
}
.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

/* =========================================
   Animations (Fade up)
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Header (Island Design & Scroll Behavior)
   ========================================= */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 100px;
  z-index: 1000;
  padding: 0 32px;
  box-shadow: 0 10px 40px rgba(6, 59, 181, 0.08); 
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Heroエリアでの透明・ロゴのみスタイル */
nav.nav-transparent {
  top: 0;
  width: 100%;
  max-width: 100%;
  background-color: transparent;
  backdrop-filter: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 40px;
}

nav.nav-transparent .nav-links,
nav.nav-transparent .nav-btn,
nav.nav-transparent .nav-toggle {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.nav-inner {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1002; /* リンク非表示時もロゴは表示させる */
}

/* ロゴのサイズを横幅200pxに調整 */
.logo img {
  width: 200px;
  height: auto;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  z-index: 1002;
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, visibility 0.4s;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--c-blue-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.sp-only-btn {
  display: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
  transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, visibility 0.4s;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin-top: 6px;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  padding-bottom: 6px;
}

.nav-links .en {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.2s;
}

.nav-links .ja {
  font-family: var(--font-ja);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color 0.2s;
}

/* ホバー時の下線アニメーション */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--c-blue-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:hover .en,
.nav-links a:hover .ja {
  color: var(--c-blue-mid);
}

.nav-btn {
  background-color: var(--c-blue-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, visibility 0.4s;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-btn:hover {
  background-color: var(--c-blue-mid);
}

/* =========================================
   1. Hero (Viewport Height & SVG Anim)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-white);
  overflow: hidden;
  padding-top: 80px;
}
.hero-svg-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anim-spin-slow {
  transform-origin: center;
  animation: spin-slow 40s linear infinite;
}
.anim-spin-reverse {
  transform-origin: center;
  animation: spin-reverse 60s linear infinite reverse;
}
/* 初期角度を45度ずらして回転させる */
@keyframes spin-slow {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(405deg); }
}
@keyframes spin-reverse {
  0% { transform: rotate(45deg); }
  100% { transform: rotate(-315deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 900;
  color: var(--c-blue-mid);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(3.2rem, 6vw, 5rem);
  line-height: 1.2;
  margin-bottom: 32px;
  color: var(--text-main);
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 48px;
}
.hero-btns {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero-note {
  display: block;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  opacity: 0.7;
}
.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.15em;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--c-blue-mid);
  animation: scrolldown 2s cubic-bezier(0.64, 0.04, 0.35, 1) infinite;
}
@keyframes scrolldown {
  0% { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

/* =========================================
   2. Video Section
   ========================================= */
.bg-yellow {
  background-color: var(--bg-yellow);
}
.video-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-placeholder:hover {
  transform: scale(1.02);
}
.play-btn {
  width: 80px; height: 80px;
  background-color: var(--c-blue-light);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.play-btn svg {
  fill: #fff; width: 32px; height: 32px; margin-left: 6px;
}
.video-caption {
  margin-top: 24px;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--c-blue-dark);
  text-align: center;
}

/* =========================================
   3. Docs (INPUTS)
   ========================================= */
.docs-layout {
  display: grid;
  /* 左側のタイトルエリアを広めにとることで改行崩れを防ぐ */
  grid-template-columns: 1.4fr 1fr;
  gap: 100px;
}
.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.docs-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.docs-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  color: var(--c-blue-light);
  line-height: 0.8;
  flex-shrink: 0;
}
.docs-item h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.docs-item p {
  color: var(--text-muted);
  font-weight: 700;
}

/* =========================================
   4. Problems
   ========================================= */
.bg-gray {
  background-color: var(--bg-gray);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.problem-item {
  display: flex;
  flex-direction: column;
}
.problem-icon {
  width: 60px;
  height: 60px;
  background-color: var(--c-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.problem-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}
.problem-item h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--c-blue-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.problem-item h3::before {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  background-color: var(--c-blue-mid);
}
.problem-item p {
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 24px;
  flex-grow: 1;
}
.problem-src {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 700;
}

/* =========================================
   5. How To (KAIZEN) - 2 Column Layout
   ========================================= */
.howto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.howto-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.howto-step:last-child {
  margin-bottom: 0;
}
.step-phase {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  border-bottom: 4px solid;
  padding-bottom: 8px;
  align-self: flex-start;
}
.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.step-content p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 700;
}
.howto-visual {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* SVG 公転アニメーション */
@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes counter-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
.orbit-group {
  transform-origin: 250px 250px;
  animation: orbit 30s linear infinite;
}
.counter-spin {
  transform-origin: 0px 0px;
  animation: counter-orbit 30s linear infinite;
}

.kaizen-msg-box {
  background-color: var(--bg-white);
  border-radius: 100px;
  padding: 24px 40px;
  text-align: center;
  font-weight: 700;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.kaizen-msg-box svg {
  width: 28px;
  height: 28px;
  color: var(--c-blue-mid);
}

/* =========================================
   6. 5 OUTPUTS
   ========================================= */
.outputs-grid-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px 40px;
}
.outputs-grid-5 .output-item {
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 27px); /* 3列の場合 */
}
.output-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-gray);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.output-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.outputs-grid-5 h4 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.4;
}
.outputs-grid-5 p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 700;
}

.outputs-msg-box {
  background-color: #f5f3ff; /* 紫系の背景 */
  border-radius: 12px;
  padding: 32px 40px;
  margin-top: 60px;
  border: 1px solid #ddd6fe;
}
.outputs-msg-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.outputs-msg-box li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 700;
  color: var(--c-blue-dark);
  font-size: 1.1rem;
  line-height: 1.6;
}
.outputs-msg-box li::before {
  content: "■";
  color: #8b5cf6;
  font-size: 0.8em;
  margin-top: 4px;
}

/* =========================================
   7. Trust
   ========================================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 60px;
}
.trust-item h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem); /* 1行に収まるように調整 */
  margin-bottom: 16px;
  color: var(--c-blue-dark);
  line-height: 1.3;
}
.trust-item p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* =========================================
   8. FAQ (Smooth Accordion)
   ========================================= */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 2px solid var(--text-main);
  overflow: hidden;
}
.faq-item:first-child {
  border-top: 2px solid var(--text-main);
}
.faq-summary {
  padding: 32px 0;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "＋";
  color: var(--c-blue-mid);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
}
.faq-answer-inner {
  padding-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}
.faq-answer-inner strong {
  color: var(--c-blue-dark);
}

/* =========================================
   9. CTA
   ========================================= */
.cta {
  background-color: var(--c-blue-mid);
  color: #fff;
}
.cta .sec-title {
  color: #fff;
  font-size: clamp(3rem, 6vw, 4rem);
}
.cta .sec-desc {
  margin: 0 auto 56px;
  font-size: 1.3rem;
  color: #ffffff;
}
.cta .btn-secondary {
  background-color: var(--bg-white);
  color: var(--c-blue-dark);
}
.cta .btn-secondary:hover {
  background-color: var(--bg-gray);
}

/* =========================================
   10. Footer
   ========================================= */
footer {
  background-color: var(--text-main);
  color: #fff;
  padding: 80px 0 60px;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.footer-logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-blue-light);
  margin-bottom: 24px;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  font-weight: 700;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--c-blue-light);
}
.footer-sources h5 {
  color: var(--c-blue-mid);
  margin-bottom: 12px;
  font-size: 1rem;
}
.footer-sources ul {
  list-style: none;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 700;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .docs-layout, .howto-layout {
    grid-template-columns: 1fr;
  }
  .problems-grid, .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 5 OUTPUTS SP */
  .outputs-grid-5 .output-item {
    width: calc(50% - 20px);
  }
}

/* ★ SP表示のレイアウト最適化とハンバーガーメニューの実装 ★ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nw-pc {
    display: inline;
    white-space: normal;
  }

  .nav-btn { display: none; }
  .nav-inner { justify-content: space-between; }
  
  /* ハンバーガーボタンを表示 */
  .nav-toggle { display: flex; }
  
  /* モバイルドロップダウンメニュー */
  .nav-links {
    position: fixed;
    top: 80px; 
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
    margin-top: 0;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    flex-direction: row;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
  }
  
  .nav-links a::after {
    display: none; 
  }
  
  .nav-links .en {
    font-size: 1.2rem;
  }
  .nav-links .ja {
    font-size: 0.85rem;
    margin-top: 0;
  }

  /* SP用のCTAボタン表示 */
  .sp-only-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    border-bottom: none !important;
  }
  .sp-only-btn a {
    border-bottom: none;
    padding-bottom: 0;
  }
  .sp-only-btn .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    color: #fff !important; 
  }

  section { padding: 80px 0; }
  .sec-header { margin-bottom: 50px; }
  
  .sec-header.center {
    align-items: flex-start;
    text-align: left;
  }
  .sec-title { font-size: 2rem; }
  
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }
  
  .problems-grid, .trust-grid, .footer-layout {
    grid-template-columns: 1fr;
  }
  
  .outputs-grid-5 .output-item {
    width: 100%;
  }
  .outputs-msg-box {
    padding: 24px;
  }
  .outputs-msg-box li {
    font-size: 0.95rem;
  }

  .trust-item h3 {
    white-space: normal; /* SPでは改行を許可 */
  }

  .howto-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-phase {
    border-bottom: none;
    border-left: 4px solid;
    padding-bottom: 0;
    padding-left: 12px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .btn { width: 100%; }
}

/* =========================================
   OUTPUTSメッセージボックスのデザイン修正（上書き）
   ========================================= */
.outputs-msg-box {
  background-color: var(--bg-white); /* 白背景に変更 */
  border: 2px solid var(--border-color); /* KAIZENセクションと同じグレーの枠線 */
  border-radius: 100px; /* カプセル型に変更 */
}

.outputs-msg-box li {
  color: var(--text-main); /* 文字色を濃いグレー（通常テキスト色）に変更 */
}

.outputs-msg-box li::before {
  content: "●"; /* 四角から丸に変更 */
  color: var(--c-blue-mid); /* アイコンカラーの青に変更 */
  font-size: 1em;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .outputs-msg-box {
    border-radius: 24px; /* SP表示で縦長になった際にテキストが枠に被らないように角丸を緩める */
    padding: 24px;
  }
}

/* =========================================
   各種ボタンのマウスオーバーアニメーション強化
   ========================================= */

/* ヒーローエリアの「機能を見る」ボタン */
.hero-btn-outline {
  border-color: var(--c-blue-mid);
  color: var(--c-blue-dark);
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-btn-outline:hover {
  background-color: var(--c-blue-mid);
  color: #ffffff;
}

/* CTA（GET STARTED）セクションのボタン */
.cta .btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--c-blue-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* 浮き上がり＋影 */
}
.cta .btn-outline:hover {
  background-color: #ffffff;
  color: var(--c-blue-mid);
  border-color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* 白く塗りつぶして浮き上がる */
}

/* =========================================
   フッターロゴのスタイル
   ========================================= */
.footer-logo-img {
  height: 36px; /* 適切な高さに調整 */
  width: auto;
  display: block;
}

/* =========================================
   11. PRICE & VOICE セクション
   ========================================= */
/* 料金テーブル */
.price-table-wrapper {
  background-color: var(--bg-gray);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 80px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.price-table th,
.price-table td {
  padding: 24px 32px;
  border-bottom: 1px solid #e2e8f0;
}
.price-table th {
  font-weight: 900;
  color: var(--text-main);
  background-color: #e2e8f0; /* 少し濃いグレーでヘッダーを区別 */
  font-size: 1.1rem;
}
.price-table td {
  color: var(--text-muted);
  font-weight: 700;
  vertical-align: middle;
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table td strong {
  color: var(--text-main);
  font-size: 1.1rem;
}
.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* お客様の声 (Voice) - 配色を青系に修正 */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.voice-card {
  position: relative;
  background-color: #ffffff;
  border: 2px solid var(--c-blue-mid); /* 紫系の枠線(#ddd6fe)から青系(#0c80d5)へ変更 */
  border-radius: 16px;
  padding: 40px 40px 48px;
  box-shadow: 0 10px 30px rgba(12, 128, 213, 0.05); /* 影の色を紫から青の透過色へ変更 */
}
.quote-mark-top,
.quote-mark-bottom {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--c-blue-light); /* 紫色(#8b5cf6)から水色(#0ab2f4)へ変更 */
  line-height: 1;
}
.quote-mark-top {
  top: 10px;
  left: 20px;
}
.quote-mark-bottom {
  bottom: -30px;
  right: 20px;
}
.voice-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.voice-author {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* SPレイアウト対応 (PRICE & VOICE) */
@media (max-width: 768px) {
  .price-table th, 
  .price-table td {
    padding: 16px 20px;
    display: block;
    width: 100%;
  }
  .price-table thead {
    display: none; /* SPではヘッダー行を隠す */
  }
  .price-table tr {
    display: block;
    border-bottom: 8px solid #ffffff; /* 各プランの区切り */
  }
  .price-table td {
    border-bottom: 1px solid #e2e8f0;
  }
  .price-table td:last-child {
    border-bottom: none;
  }
  /* SP用の見出しをdata-labelから生成して表示 */
  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--c-blue-mid);
    margin-bottom: 4px;
  }
  
  .voice-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .voice-card {
    padding: 32px 24px 40px;
  }
}

/* =========================================
   12. NEWS セクション
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: 0px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(12, 128, 213, 0.15);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--border-color);
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* ホバー時に画像を少しズームさせる */
.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.news-tag {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 100px;
  color: #fff;
  white-space: nowrap;
}

/* タグの色設定 */
.tag-release { background-color: var(--c-blue-mid); }
.tag-webinar { background-color: #f59e0b; /* イエロー・オレンジ系 */ }
.tag-case { background-color: #10b981; /* グリーン系 */ }
.tag-info { background-color: var(--text-muted); /* グレー系（汎用のお知らせなど） */ }

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  /* 長いタイトルを3行で省略する処理 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 青枠・青文字のアウトラインボタン（もっと見る用） */
.btn-outline-blue {
  background-color: transparent;
  color: var(--c-blue-mid);
  border: 2px solid var(--c-blue-mid);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline-blue:hover {
  background-color: var(--c-blue-mid);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12, 128, 213, 0.3);
}

/* SPレイアウト対応 (NEWS) */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================
   13. ARCHIVE & SINGLE (お知らせ一覧・詳細)
   ========================================= */

/* カテゴリ絞り込みナビ */
.news-category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin-bottom: 48px;
}
.news-category-nav a {
  display: block;
  padding: 8px 24px;
  border-radius: 100px;
  background-color: var(--bg-white);
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.news-category-nav a:hover,
.news-category-nav a.is-active {
  background-color: var(--c-blue-mid);
  color: #fff;
  border-color: var(--c-blue-mid);
}

/* ページネーション（背景・枠線なしのシンプルスタイル） */
.pagination {
  text-align: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: 16px; /* テキスト同士の余白を少し広めに設定 */
  justify-content: center;
  align-items: center;
  margin: 0;
  transform: none;
}
.pagination .nav-links::after { display: none; }

.pagination a,
.pagination span.current,
.pagination .dots {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-muted); /* 基本の文字色はグレー */
  background-color: transparent; /* 背景色をなくす */
  border: none; /* 枠線をなくす */
  border-radius: 0; /* 角丸をなくす */
  padding: 8px;
  transition: all 0.3s ease;
}

/* 現在のページ番号 */
.pagination span.current {
  color: var(--c-blue-mid); /* 現在のページは青文字 */
  font-weight: 900;
}

/* ホバー時の挙動 */
.pagination a:hover {
  color: var(--c-blue-mid);
  background-color: transparent; /* ホバー時の背景色もなくす */
}

.pagination .dots {
  pointer-events: none;
}

/* 記事詳細の本文スタイル (entry-content) */
.entry-content {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-main);
}
.entry-content h2 {
  font-size: 1.8rem;
  margin: 60px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  color: var(--c-blue-dark);
}
.entry-content h3 {
  font-size: 1.4rem;
  margin: 40px 0 20px;
}
.entry-content p {
  margin-bottom: 24px;
}
.entry-content ul, .entry-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.entry-content li {
  margin-bottom: 8px;
}
.entry-content img {
  border-radius: 8px;
  margin: 32px 0;
}

/* 前後記事リンク */
.single-nav .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  transform: none;
}
.single-nav .nav-previous,
.single-nav .nav-next {
  max-width: 48%;
}
.single-nav a {
  color: var(--c-blue-mid);
  font-weight: 700;
  text-decoration: none;
  display: block;
}
.single-nav a:hover {
  text-decoration: underline;
}

/* =========================================
   14. CONTACT FORM (お問い合わせ)
   ========================================= */
.contact-form-wrapper {
  background-color: var(--bg-white);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(6, 59, 181, 0.05);
}

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

.form-group label {
  display: flex;
  align-items: center;
  font-weight: 900;
  color: var(--c-blue-dark);
  margin-bottom: 12px;
}

/* 必須マーク */
.form-group .required {
  background-color: #ef4444; /* 赤色 */
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 12px;
  font-weight: 700;
}

/* 入力欄のデザイン */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--bg-gray);
  transition: all 0.3s ease;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--c-blue-light);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(10, 178, 244, 0.1);
}

.form-submit {
  text-align: center;
  margin-top: 48px;
}

/* 送信ボタンの幅を調整 */
.form-submit .wpcf7-submit {
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  border: none;
}

/* エラーメッセージ等の調整 */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 8px;
  font-weight: 700;
}
.wpcf7 form .wpcf7-response-output {
  border-radius: 8px;
  margin-top: 32px;
  font-weight: 700;
}

/* SP用調整 */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 32px 20px;
  }
}