/*
Theme Name: Hanabusa Lab AI Business V2 (Premium Refactored)
Description: グラスモーフィズムと洗練されたフォント（Outfit/Inter）を融合させたプレミアムなAIビジネスサイト。リファクタリング済み。
Author: Antigravity
Version: 5.2.3
*/

/* ============================================================
   Variables & Reset
   ============================================================ */
:root {
  /* Colors - Premium Rich Edition (Refined) */
  --color-primary: #253b5f;
  /* 明るいネイビー - 高級感を保ちながら洗練された印象 */
  --color-accent: #6b7280;
  /* ミディアムグレー（視認性向上） */
  --color-accent-light: #E8E8E8;
  /* ライトシルバー */
  --color-accent-deep: #1e3a8a;
  /* 深い紺色 - アクセント用 */
  --color-bg-dark: #1a2a4a;
  /* ダーク背景（明るくされたネイビー） */
  --color-text-main: #1f2937;
  --color-text-muted: #374151;
  --color-glass-bg: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.3);

  /* Typography - Noto Sans JP (Black Weight) */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-heading: 'Noto Sans JP', sans-serif;

  /* Common */
  --border-radius: 24px;
  --glass-blur: blur(12px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  font-size: 18px;
  line-height: 1.9;
  background-color: #f5f6f7;
  overflow-x: hidden;
  word-break: break-word;
  padding-top: 0;
  width: 100%;
}

@media (max-width: 991px) {
  body {
    padding-top: 70px;
    font-size: 15px;
    line-height: 1.6;
  }

  h1,
  .hero-catch,
  .section-title,
  .apply-title,
  .legal-title {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  h4 {
    font-size: 1rem;
  }

  h5,
  h6 {
    font-size: 0.95rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }

  .entry-content h2 {
    font-size: 1.3rem;
  }

  .entry-content h3 {
    font-size: 1.1rem;
  }

  p,
  li,
  .text-content {
    font-size: 15px;
  }
}

/* ============================================================
   Typography (Heading Adjusted)
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 900;
}

h2 {
  font-size: 2.0rem;
  font-weight: 800;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1.2rem;
  font-weight: 900;
  line-height: 1.4;
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  font-weight: 800;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.text-gradient {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

h1 .text-accent,
h2 .text-accent,
h3 .text-accent,
h1 span,
h2 span,
h3 span {
  color: var(--color-accent-deep) !important;
}

.text-muted {
  color: var(--color-text-muted);
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 860px !important;
}

.container-mid {
  max-width: 900px !important;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: #f0f2f5;
}

.section-title-area {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.2rem;
  /* 2.5remから縮小 */
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  display: block;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-2x2,
  .grid-roadmap {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Roadmap & Service Grid */
.grid-roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-main-card {
  padding: 4rem !important;
  margin-bottom: 3rem;
  background: white;
  border: 2px solid rgba(192, 192, 192, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  position: relative;
}

.service-main-card:hover {
  border-color: var(--color-accent);
}

.service-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-accent-deep);
  color: white;
  padding: 0.6rem 2rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom-right-radius: 15px;
}

.service-txtbox {
  flex: 1.8;
  min-width: 320px;
  padding: 4.5rem 4rem 3.5rem;
}

.service-txtbox .font-black {
  font-size: 2.8rem;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.service-txtbox .price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-left: 5px solid var(--color-primary);
  padding-left: 1.5rem;
}

.service-btnbox {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.service-btnbox .btn-primary {
  padding: 1.8rem 2.5rem;
  font-size: 2.1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 2px solid var(--color-primary);
  box-shadow: 0 25px 50px rgba(37, 59, 95, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

@media (max-width: 991px) {
  .service-main-card {
    padding: 3rem 2rem !important;
  }

  .service-main-card .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-main-card .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .grid-roadmap {
    grid-template-columns: 1fr;
  }

  .service-txtbox,
  .service-btnbox {
    min-width: 100%;
  }

  .service-txtbox {
    padding-inline: 2rem;
  }

  .service-txtbox .font-black {
    font-size: 1.2rem;
  }

  .service-txtbox .price {
    flex-wrap: wrap;
  }

  .service-txtbox .price>*:first-child {
    width: 100%;
  }

  .service-btnbox .btn-primary {
    padding-inline: 1rem;
  }

  .service-btnbox .btn-primary {
    padding: 2.22rem 1rem;
    font-size: 1.3rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 2px solid var(--color-primary);
    box-shadow: 0 25px 50px rgba(37, 59, 95, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
  }

}

.roadmap-card {
  padding: 2.5rem !important;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.roadmap-step {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-accent-deep);
  color: white;
  padding: 0.5rem 1.5rem;
  font-weight: 900;
  font-size: 1rem;
}

.roadmap-title {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.roadmap-text {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.roadmap-price {
  background: rgba(192, 192, 192, 0.08);
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: inline-block;
}

.align-center {
  align-items: center;
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: transparent;
  z-index: 10000;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 1.5rem;
  gap: 2rem;
  overflow: hidden;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  z-index: 2100;
  transition: var(--transition);
}

.logo-symbol {
  height: 25px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo:hover .logo-symbol {
  transform: scale(1.1) rotate(-3deg);
}

.site-header.scrolled .header-inner {
  height: 70px;
}

/* Removed redundant site-logo declaration */

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.global-nav a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.global-nav a:hover {
  color: var(--color-accent);
}

.btn-nav {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary) !important;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.btn-nav:hover {
  color: var(--color-accent) !important;
}

/* ボタン要素全体 */
.btn {
  word-break: normal;
}

/* モバイルではボタン・テキストを調整 */
@media (max-width: 991px) {

  .btn {
    padding: 1rem 1.5rem;
    display: block;
    line-height: 1.5;
    width: calc(100% - 2rem);
    max-width: 100%;
  }

  .wpcf7-submit {
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
    width: calc(100% - 3rem);
    max-width: 100%;
    line-height: 1.5;
    display: block;
    margin: 0 auto;
  }

  .btn-nav {
    white-space: normal;
  }
}

/* ============================================================
   Menu Button (Hamburger Animation)
   ============================================================ */
/* Hamburger Menu Button - ID Selector for Max Priority */
#menu-btn {
  display: none;
  flex-direction: column;
  gap: 7px !important;
  cursor: pointer;
  z-index: 2500 !important;
  background: none !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.3s ease !important;
}

#menu-btn span {
  display: block;
  width: 24px !important;
  height: 2px !important;
  background: var(--color-primary) !important;
  border-radius: 10px !important;
  transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
}

#menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg) !important;
}

#menu-btn.active span:nth-child(2) {
  opacity: 0 !important;
  transform: translateX(-15px) !important;
}

#menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg) !important;
}

@media (max-width: 991px) {
  .global-nav {
    display: none;
  }

  #menu-btn {
    display: flex !important;
  }

  .site-header {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-header .container {
    padding: 0 1rem;
  }

  .header-inner {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .site-logo {
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 1;
    min-width: 0;
  }

  .menu-btn {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .container {
    padding: 0 4rem;
  }

  .grid-3 {
    gap: 2rem;
  }

  .section {
    padding: 5rem 0;
  }
}

/* ============================================================
   Comparison Table (AI vs AI Agent)
   ============================================================ */
.compare-container {
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.compare-card {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(192, 192, 192, 0.12);
  transition: transform 0.3s ease;
}

.compare-card:hover {
  transform: translateY(-5px);
}

.compare-old {
  opacity: 0.8;
  background: #f3f5f8;
}

.compare-new {
  border: 2px solid var(--color-accent-deep);
  background: linear-gradient(to bottom, #ffffff, #fafbfc);
  position: relative;
  box-shadow: 0 12px 48px rgba(30, 58, 138, 0.12);
}

.compare-new::before {
  content: '注目';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-accent-deep);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
}

.compare-tag {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.compare-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.compare-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.compare-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 900;
}

.compare-arrow {
  text-align: center;
  font-size: 2rem;
  color: var(--color-accent);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

@media (max-width: 992px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    margin: 1rem 0;
  }

  .compare-arrow span {
    display: inline-block;
    transform: rotate(90deg);
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  min-height: 100vh;
  background-image: url('images/hero_bg_gentle.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 59, 95, 0.65), rgba(30, 58, 138, 0.45));
}

.hero-content {
  position: relative;
  max-width: 900px;
  color: white;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.3rem;
}

.hero-catch {
  font-size: 3.2rem;
  line-height: 1.35;
  margin-bottom: 2rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
}

.hero-catch .text-accent {
  color: #ffffff !important;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Hero Section - Mobile対応 */
@media (max-width: 768px) {
  .hero-catch {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-catch {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
  }

  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
}

/* ============================================================
   Footer Styles
   ============================================================ */
.footer {
  background: #f5f6f7;
  padding: 6rem 0 3rem;
  border-top: 1px solid #dfe3e9;
}

.footer .logo {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.footer-info p {
  font-size: 1rem;
  line-height: 1.8;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 1.3rem 3rem;
  font-size: 1.15rem;
  border-radius: 100px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  background: #f0f4f8;
}

.btn-white {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .btn {
    display: inline-block;
    padding: 1rem 1rem;
  }

}

/* ============================================================
   Cards & Glassmorphism
   ============================================================ */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

/* ============================================================
   Empathy Section (POINT Based)
   ============================================================ */
.empathy-card {
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(192, 192, 192, 0.08);
  position: relative;
  transition: var(--transition);
}

.empathy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.1);
}

.empathy-point {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   Before / After Components (Refined for Cases)
   ============================================================ */
.ba-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ba-before {
  background: rgba(220, 38, 38, 0.03);
  padding: 1rem;
  border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0;
}

.ba-after {
  background: rgba(192, 192, 192, 0.04);
  padding: 1rem;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

.ba-label {
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.ba-label.before {
  color: #ef4444;
}

.ba-label.after {
  color: var(--color-accent);
}

/* ============================================================
   Comparison Table
   ============================================================ */
.compare-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-highlight {
  background: rgba(192, 192, 192, 0.04);
  width: 35%;
}

/* ============================================================
   CEO Message
   ============================================================ */
.portrait-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
}

.ceo-quote {
  padding: 2rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(192, 192, 192, 0.04);
  font-weight: 700;
  border-radius: 0 16px 16px 0;
  line-height: 1.8;
}

.ceo-signature {
  margin-top: 3.5rem;
  text-align: right;
}

/* ============================================================
   Case Studies (Premium Result Cards)
   ============================================================ */
.case-card {
  padding: 0;
  background: white;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.case-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 2.2rem;
  flex: 1;
}

.case-badge {
  font-size: 1.05rem;
  color: var(--color-accent);
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: rgba(192, 192, 192, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

/* Mobile Navigation Overlay - Moved to bottom for consistency */

/* ============================================================
   Mobile Specific Adjustments
   ============================================================ */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 0.95rem;
  }

  h5,
  h6 {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.7rem;
  }

  p,
  li,
  .text-content {
    font-size: 14px;
  }

  /* Header fixes for small phones */
  .site-header {
    height: 65px;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .header-inner {
    height: 65px;
    padding: 0 0.6rem;
    gap: 0.3rem;
  }

  .site-logo {
    font-size: 1rem;
    color: var(--color-primary) !important;
    flex-shrink: 1;
    min-width: 0;
  }

  .menu-btn {
    width: 28px;
    height: 20px;
    gap: 4px;
    flex-shrink: 0;
  }

  .menu-btn span {
    height: 2.5px;
    background: var(--color-primary) !important;
  }

  /* Pricing Component Fix */
  .pricing-amount {
    font-size: 1.8rem !important;
    white-space: nowrap !important;
    /* 折り返しを絶対禁止 */
  }

  .pricing-wrap {
    padding-left: 1rem !important;
    flex-wrap: nowrap !important;
    width: auto;
    display: inline-flex !important;
  }

  /* モバイルで1列表示に強制 */
  .grid-2x2 {
    gap: 1.5rem !important;
    grid-template-columns: 1fr !important;
  }

  .case-card h3 {
    font-size: 1.3rem !important;
    line-height: 1.4;
    min-height: auto !important;
    margin-bottom: 1rem !important;
  }

  .service-main-card {
    padding: 2rem 1.5rem !important;
  }

  /* 小型スマートフォンでのボタン調整 */
  .wpcf7-submit {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    min-width: 180px;
    min-height: auto;
  }
}

/* ============================================================
   Form Styles (Premium & Responsive)
   ============================================================ */
.apply-form-card {
  max-width: 860px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-bottom: 2.5rem;
  position: relative;
}

.wpcf7-form br {
  display: none;
}

.wpcf7-form label {
  display: block;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select,
.wpcf7-date {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid rgba(37, 59, 95, 0.1);
  border-radius: 12px;
  background-color: #fcfdfe;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.8rem;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.08), 0 8px 20px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.wpcf7-textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7-submit {
  width: auto;
  min-width: 280px;
  margin: 1rem auto 0;
  display: block;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 1.4rem 4rem;
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(37, 59, 95, 0.25);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wpcf7-submit:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(37, 59, 95, 0.35);
  background: var(--color-accent-deep);
}

.wpcf7-spinner {
  margin: 1.5rem auto;
  display: block;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.95rem;
  margin-top: 0.6rem;
  font-weight: 700;
  display: block;
}

.wpcf7-response-output {
  margin: 2.5rem 0 0 !important;
  padding: 1.5rem !important;
  border-radius: 16px !important;
  border: 2px solid transparent !important;
  font-weight: 800;
  text-align: center;
  font-size: 1.1rem;
}

.wpcf7-mail-sent-ok {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}

.wpcf7-validation-errors {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

@media (max-width: 768px) {
  .wpcf7-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
  }

  .apply-form-card {
    padding: 2.5rem 1.5rem;
  }
}

.footer {
  background: #f8fafc;
  padding: 6rem 0 2rem;
  border-top: 1px solid #e2e8f0;
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo .logo-symbol {
  height: 24px;
}

.footer-info-text {
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
  .site-header {
    height: 75px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-catch {
    font-size: 2.0rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-info {
    order: 10;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* ============================================================
   Mobile Overlay (Restored Logic)
   ============================================================ */
#mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: rgba(26, 42, 74, 0.96);
  z-index: 2050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

#mobile-nav-overlay.active {
  right: 0;
  opacity: 1;
  visibility: visible;
}

#mobile-nav-overlay a {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 1.5rem 0;
  color: #ffffff !important;
  text-align: center;
  display: block;
}

@media (max-width: 480px) {
  #mobile-nav-overlay a {
    font-size: 1.2rem;
    margin: 1.2rem 0;
  }
}

/* ============================================================
   Pagination (Premium Redesign)
   ============================================================ */
.pagination-area .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-area .nav-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pagination-area .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  background: white;
  color: var(--color-primary);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pagination-area .page-numbers.current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(37, 59, 95, 0.2);
}

.pagination-area .page-numbers:not(.current):hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.pagination-area .prev,
.pagination-area .next {
  padding: 0 1.5rem;
  min-width: 100px;
  background: #fff;
}

.pagination-area .prev-arrow,
.pagination-area .next-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2.5px solid currentColor;
  border-left: 2.5px solid currentColor;
}

.pagination-area .prev-arrow {
  transform: rotate(-45deg);
  margin-right: 8px;
}

.pagination-area .next-arrow {
  transform: rotate(135deg);
  margin-left: 8px;
}

.pagination-area .dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--color-accent);
}

@media (max-width: 576px) {
  .pagination-area .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-area .page-numbers {
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .pagination-area .prev,
  .pagination-area .next {
    width: 100%;
    order: 2;
    margin-top: 0.5rem;
  }
}

/* ============================================================
   Floating Elements (Back to Top & Cookie)
   ============================================================ */

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(37, 59, 95, 0.25);
}

#back-to-top svg {
  display: block;
  stroke: #ffffff;
  width: 24px;
  height: 24px;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  background: var(--color-accent-deep);
  box-shadow: 0 15px 45px rgba(37, 59, 95, 0.4);
}

/* モバイル対応：TO TOPボタン */
@media (max-width: 991px) {
  #back-to-top {
    bottom: 20px;
    right: 15px;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  #back-to-top {
    bottom: 15px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(37, 59, 95, 0.1);
  padding: 1.5rem 0;
  z-index: 2200;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-main);
  max-width: 70%;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(37, 59, 95, 0.3);
}

.cookie-btn:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .cookie-text {
    max-width: 100%;
    font-size: 0.8rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  #cookie-consent-banner {
    padding: 2rem 1rem;
  }
}

/* Roadmap Section Cards */
.roadmap-card {
  position: relative;
  border-top: 6px solid var(--color-primary);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #ffffff;
}

.roadmap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(37, 59, 95, 0.15);
  border-top-color: var(--color-accent);
}

.roadmap-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  position: relative;
}

.roadmap-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .roadmap-card {
    padding: 2.5rem 2rem;
  }
}

/* ============================================================
   Extracted from front-page.php (Cleanup)
   ============================================================ */
/* Utilities */
.bg-white {
  background-color: #ffffff !important;
}

.text-center {
  text-align: center !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 4rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-1-2 {
  margin-bottom: 1.2rem !important;
}

.mb-1-5 {
  margin-bottom: 1.5rem !important;
}

.mb-1-8 {
  margin-bottom: 1.8rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mb-3 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 4rem !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.flex-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.w-full {
  width: 100% !important;
}

.d-block {
  display: block !important;
}

.font-900 {
  font-weight: 900 !important;
}

.small {
  font-size: 0.85em !important;
}

.grid-full {
  grid-column: 1 / -1 !important;
}

.flex-align-center {
  display: flex !important;
  align-items: center !important;
}

.gap-1 {
  gap: 1rem !important;
}

.gap-2 {
  gap: 2rem !important;
}

/* Empathy Section */
.empathy-icon-wrap {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.empathy-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* Evolution Section */
.underline-accent {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 1.5rem;
}

.evolution-slogan {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
}

/* Service Section */
.service-main-premium {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-image: url('images/service_card_bg_v2.png');
  background-size: cover;
  background-position: center;
}

.service-tag-floating {
  z-index: 10;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 40%, rgba(255, 255, 255, 0.3) 100%);
  z-index: 1;
}

.service-content-inner {
  display: flex;
  flex-wrap: wrap;
  min-height: 460px;
  position: relative;
  z-index: 5;
}

.service-header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.service-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* border: 1.5px solid var(--color-primary); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.service-feature-title {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 900;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-feature-bullet {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--color-accent);
  border-radius: 3px;
  transform: rotate(45deg);
}

.service-desc-premium {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 3rem;
  font-weight: 600;
  max-width: 520px;
  color: #374151;
}

.service-text-highlight {
  color: var(--color-primary);
  border-bottom: 3px solid rgba(37, 59, 95, 0.2);
}

.service-price-label {
  font-weight: 800;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-price-amount {
  font-size: 3.2rem;
  color: var(--color-primary);
  line-height: 1;
}

.service-price-unit {
  font-weight: 900;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.service-price-tax {
  font-size: 0.9rem;
  color: #3f567d;
  margin-left: 0.5rem;
}

.service-note-small {
  font-size: 0.85rem;
  color: #3f567d;
  font-weight: 700;
  margin-top: 1.5rem;
  padding-left: 2rem;
}

.service-note-small a,
.apply-footer-note a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 800;
}

.service-note-small a:hover,
.apply-footer-note a:hover {
  color: var(--color-accent-deep);
  text-decoration: none;
}

.btn-sub-label {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Case Section */
.case-card-shadow {
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.case-badge-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.case-role-badge {
  background: #f0f4f8;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.case-client-name {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.case-card-title {
  margin-bottom: 1.5rem;
  min-height: 3.2rem;
}

.case-ba-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.case-card-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.time-saved-premium {
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-weight: 1000;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 59, 95, 0.2);
  width: 100%;
  display: block;
  text-align: center;
}

.time-saved-label-mini {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-right: 0.4rem;
  font-weight: 900;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 4px;
  line-height: 1;
  display: inline-block;
}

.case-tool-tag {
  font-size: 0.85rem;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-weight: 700;
  background: white;
}

.case-btn-archive {
  padding: 1rem 3.5rem;
  font-size: 1.15rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 59, 95, 0.1);
}

/* CEO & Contact */
.ceo-message-content {
  padding-left: 2rem;
}

.ceo-name-wrap {
  font-size: 1.8rem;
  font-weight: 950;
}

.ceo-title-small {
  font-size: 1rem;
  margin-right: 1rem;
}

.contact-panel-premium {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.contact-title-large {
  color: white;
  font-size: 2.2rem;
  font-weight: 950;
  margin-bottom: 1.5rem;
}

.contact-lead-text {
  opacity: 0.9;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================================
   Archive Case Styles
   ============================================================ */
.archive-main {
  padding-top: 100px;
  background: #f5f6f7;
}

.archive-hero {
  padding: 5rem 0 4rem;
  background: #f0f4f8;
}

.archive-hero-title {
  font-size: 2.6rem;
  font-weight: 950;
  color: var(--color-primary);
  margin: 0.8rem 0 1.2rem;
}

.archive-hero-lead {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

.archive-section-padding {
  padding: 5rem 0;
}

.case-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-img-ratio {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.case-img-ratio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-client-row {
  margin-bottom: 0.8rem;
}

.case-client-name-small {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.case-title-archive {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.ba-label-before {
  font-size: 0.85rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-label-after {
  font-size: 0.85rem;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-ba-text-archive {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.7;
  margin: 0;
}

.case-footer-archive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.time-saved-archive {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-weight: 1000;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(37, 59, 95, 0.15);
  width: 100%;
  display: block;
  text-align: center;
}

.time-saved-label-archive {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-right: 0.4rem;
  font-weight: 900;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 4px;
  line-height: 1;
  display: inline-block;
}

.tool-tag-archive {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pagination-area {
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.no-case-panel {
  text-align: center;
  padding: 6rem 2rem;
  background: #fff;
  border-radius: 24px;
}

.no-case-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.no-case-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.archive-cta-inner {
  background: var(--color-primary);
  border-radius: 24px;
  padding: 4rem 2.5rem;
  text-align: center;
  color: #fff;
}

.archive-cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.archive-cta-title {
  font-size: 2rem;
  font-weight: 950;
  color: #fff;
  margin-bottom: 1rem;
}

.archive-cta-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============================================================
   Single Blog Styles
   ============================================================ */
.container-post-narrow {
  max-width: 860px;
  margin: 0 auto;
}

.pt-post-hero {
  padding: 5rem 0 4rem;
  background: #f0f4f8;
}

.post-date-label {
  color: var(--color-accent);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.post-single-title {
  font-size: 2.0rem;
  font-weight: 950;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.post-thumbnail-single {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 32px;
}

.post-cta-wrapper {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-deep));
  border-radius: var(--border-radius);
  color: white;
}

.post-cta-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: white !important;
}

.post-cta-text {
  opacity: 0.9;
  margin-bottom: 20px;
}

.post-author-badge {
  background: var(--color-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 700;
}

.post-author-name {
  font-weight: 700;
  color: var(--color-primary);
}

.post-thumbnail-outer {
  margin-top: -3.5rem;
  margin-bottom: 4rem;
}

.post-thumbnail-inner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.post-featured-img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

.pb-post-content {
  padding-bottom: 6rem;
}

.post-entry-body {
  line-height: 2.0;
  font-size: 1.1rem;
  color: #334155;
}

.post-entry-body h1 {
  margin-bottom: 2rem;
}

.post-navigation {
  margin-top: 5rem;
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.post-nav-card {
  flex: 1;
  min-width: 240px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.post-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.post-nav-card.next-nav {
  text-align: right;
}

.post-nav-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.5;
}

.post-nav-spacer {
  flex: 1;
  min-width: 240px;
}

.btn-back-to-list {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.btn-back-to-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.case-role-badge-small {
  background: #f0f4f8;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* --- Misc & 404 Helpers --- */
.not-found-box {
  text-align: center;
  padding: 80px 0;
}

.not-found-emoji {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.not-found-title {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 950;
}

.not-found-text {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.btn-large-archive {
  font-size: 1.1rem;
  padding: 1.1rem 2.8rem;
}

/* ============================================================
   Application Page
   ============================================================ */
.apply-main {
  background: #f8fafc;
  min-height: 80vh;
}

.apply-container {
  max-width: 800px;
  margin: 0 auto;
}

.apply-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.apply-underline {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 0 auto;
}

.apply-lead {
  margin-top: 1.5rem;
}

.apply-form-card {
  background: white;
  padding: 4rem;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .apply-form-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .apply-form-card input[type="text"],
  .apply-form-card input[type="email"],
  .apply-form-card input[type="tel"],
  .apply-form-card input[type="url"],
  .apply-form-card textarea {
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .apply-form-card input[type="submit"],
  .apply-form-card .wpcf7-submit {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    font-size: 1.1rem;
  }
}

/* Form Elements Styling */
.apply-form-card label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.apply-form-card input[type="text"],
.apply-form-card input[type="email"],
.apply-form-card input[type="tel"],
.apply-form-card input[type="url"],
.apply-form-card textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background-color: #f8fafc;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  outline: none;
}

.apply-form-card input:focus,
.apply-form-card textarea:focus {
  border-color: var(--color-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.apply-form-card textarea {
  min-height: 180px;
  resize: vertical;
}

/* Submit Button Custom */
.apply-form-card input[type="submit"],
.apply-form-card .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 0;
  padding: 1.2rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.apply-form-card input[type="submit"]:hover,
.apply-form-card .wpcf7-submit:hover {
  transform: translateY(-3px);
  background: var(--color-accent);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
}

/* Remove default CF7 margins */
.wpcf7 p {
  margin-bottom: 0;
}

.wpcf7 span.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.apply-footer-note {
  text-align: center;
  margin-top: 3rem;
}

.apply-note-text {
  font-size: 0.9rem;
}

/* ============================================================
   Subsidies Page Components
   ============================================================ */
.subsidy-main {
  padding-top: 80px;
}

.subsidy-hero {
  background-color: #f1f5f9;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subsidy-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
}

.subsidy-hero-content {
  position: relative;
  z-index: 10;
}

.subsidy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0369a1;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 2rem;
  border: 1px solid #0ea5e9;
}

.subsidy-hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.subsidy-hero-lead {
  font-size: 1.4rem;
  color: #334155;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
  font-weight: 700;
}

/* Important Role Banner */
.subsidy-role-banner {
  background: #fff;
  border: 4px solid #f59e0b;
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 20;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.subsidy-role-icon {
  color: #d97706;
  flex-shrink: 0;
}

.subsidy-role-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 1rem;
}

.subsidy-role-text {
  font-weight: 700;
  line-height: 1.7;
}

/* Subsidy Grid System */
.subsidy-section {
  padding: 6rem 0;
}

.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
}

.subsidy-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.subsidy-type-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 5px solid #0ea5e9;
  padding-bottom: 1rem;
}

.subsidy-type-icon {
  background: #0ea5e9;
  color: #fff;
  padding: 0.6rem;
  border-radius: 10px;
}

.subsidy-type-label {
  font-size: 0.9rem;
  color: #0ea5e9;
  font-weight: 900;
}

.subsidy-type-title {
  font-size: 1.8rem;
  font-weight: 900;
}

/* Subsidy Cards */
.subsidy-card {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 2rem;
  padding: 2rem;
}

.subsidy-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.subsidy-card-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
}

.subsidy-badge-urgent {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.subsidy-badge-success {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

.subsidy-card-desc {
  color: #475569;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.subsidy-stats-box {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subsidy-stats-label {
  color: #64748b;
  font-weight: 800;
}

.subsidy-stats-value {
  color: #0284c7;
  font-weight: 900;
  font-size: 1.4rem;
}

.subsidy-stats-value.v-success {
  color: #059669;
}

.subsidy-deadline-info {
  font-weight: 800;
  color: #64748b;
  font-size: 0.9rem;
}

/* CTA Section Special */
.subsidy-cta-section {
  padding: 6rem 0;
}

.subsidy-cta-box {
  background: #fff;
  border: 6px solid #0ea5e9;
  border-radius: 40px;
  padding: 5rem 3rem;
  text-align: center;
  box-shadow: 0 30px 60px -12px rgba(14, 165, 233, 0.2);
}

.subsidy-cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

.subsidy-cta-lead {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
  color: #334155;
}

@media (max-width: 768px) {
  .subsidy-role-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .subsidy-cta-title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   Legal Pages (TOS, Privacy)
   ============================================================ */
.legal-main {
  padding-top: 120px;
}

.legal-title-area {
  text-align: left;
  margin-bottom: 4rem;
}

.legal-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.legal-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.legal-content {
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 3.5rem;
}

.legal-section h2,
.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  color: var(--color-primary);
}

.legal-section h3,
.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
}

.legal-list {
  padding-left: 1.5rem;
  margin-top: 1rem;
  list-style-type: decimal;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-contact-box {
  margin-top: 2rem;
  padding: 2rem !important;
  background: white !important;
}

.legal-contact-name {
  font-size: 1.2rem;
  color: var(--color-primary);
  display: block;
}

.legal-contact-address {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

.legal-footer-nav {
  margin-top: 4rem;
  text-align: center;
}

.legal-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 0;
}

.legal-row:last-child {
  border-bottom: none;
}

.legal-row dt {
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.legal-row dd {
  color: var(--color-text-main);
  margin: 0;
  font-weight: 500;
}

.legal-note {
  margin-top: 3rem;
  background: rgba(14, 165, 233, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 1.8rem;
  }

  .legal-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .legal-row dt {
    font-size: 1rem;
  }
}

/* ============================================================
   Common Archive Styles (Case & Blog)
   ============================================================ */
.archive-main {
  padding-top: 130px;
  background: #f5f6f7;
  min-height: 100vh;
}

.archive-hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #f0f4f8 0%, #e5eef5 100%);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.archive-hero-title {
  font-size: 3.2rem;
  font-weight: 950;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.archive-hero-desc {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Blog Archive Specific */
.blog-grid {
  padding: 6rem 0;
}

.blog-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(192, 192, 192, 0.1);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.blog-card-img {
  height: 240px;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.blog-card-title {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  flex-grow: 1;
}

.blog-card-title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--color-accent-deep);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent-deep);
  font-weight: 900;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}

.blog-card-link:hover {
  transform: translateX(5px);
}

.blog-card-link span {
  margin-left: 0.6rem;
}

.archive-not-found {
  text-align: center;
  padding: 8rem 0;
}

/* ============================================================
   Responsive Overrides (Ensuring priority at the end of file)
   ============================================================ */
@media (max-width: 991px) {

  /* ヘッダー・メインレイアウトの統一 */
  .site-header {
    height: 70px !important;
    background: rgba(255, 255, 255, 0.98) !important;
  }

  .archive-main {
    padding-top: 100px !important;
  }

  /* サイトロゴのサイズ統一 */
  .site-logo {
    font-size: 1.3rem !important;
    color: var(--color-primary) !important;
  }

  /* 主要タイトルのサイズ統一 (最大 1.5rem) */
  .archive-hero-title,
  .section-title,
  .post-single-title,
  .case-title,
  .hero-catch,
  .contact-title-large {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1.2rem !important;
  }

  .archive-hero-desc,
  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  .entry-content h2 {
    font-size: 1.4rem !important;
    margin: 3rem 0 1.2rem !important;
  }
}

/* ============================================================
   Single Case Study Styles
   ============================================================ */
.case-hero {
  padding: 5rem 0 4rem;
  background: #f0f4f8;
}

.case-industry-tag {
  background: var(--color-primary);
  color: #fff;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.case-title {
  font-size: 2.0rem;
  /* Mobile first overrides will handle this */
  font-weight: 950;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.case-date {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.case-featured-img-wrapper {
  margin-top: -3rem;
  margin-bottom: 4rem;
}

.case-featured-img-inner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.case-featured-img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}

/* Meta & Impact Cards */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.case-info-card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .case-info-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    padding: 1rem 1.2rem !important;
  }
}

.case-info-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.case-info-value {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.05rem;
  text-align: right;
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .case-info-value {
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
}

.case-impact-card {
  background: linear-gradient(145deg, var(--color-primary), #1a365d);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.case-impact-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.case-impact-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.case-impact-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.case-impact-value {
  font-weight: 950;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.case-impact-decoration {
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

/* Before / After Sections */
.ba-section {
  margin-bottom: 2.5rem;
}

.ba-heading {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ba-badge {
  padding: 0.2rem 0.9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
}

.ba-content-box {
  padding: 1.8rem 2rem;
  border-radius: 0 16px 16px 0;
  line-height: 1.9;
  font-size: 1.05rem;
  border-left: 5px solid transparent;
}

/* BEFORE Specific */
.ba-heading-before {
  color: #b91c1c;
}

.ba-badge-before {
  background: #fee2e2;
  color: #b91c1c;
}

.ba-box-before {
  background: #fff5f5;
  border-left-color: #ef4444;
  color: #7f1d1d;
}

/* ACTION Specific */
.ba-heading-action {
  color: var(--color-primary);
}

.ba-badge-action {
  background: #dbeafe;
  color: var(--color-accent-deep);
}

.ba-box-action {
  background: #eff6ff;
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

/* AFTER Specific */
.ba-heading-after {
  color: #065f46;
}

.ba-badge-after {
  background: #d1fae5;
  color: #065f46;
}

.ba-box-after {
  background: #f0fdf4;
  border-left-color: #22c55e;
  color: #14532d;
}

/* Tools Tags */
.case-tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.case-tool-item {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
}

/* Voice Quote */
.case-voice-blockquote {
  background: #fff;
  border-left: 5px solid var(--color-accent);
  padding: 2rem 2.2rem;
  border-radius: 0 20px 20px 0;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  margin: 0;
}

.case-voice-quote-icon {
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* CTA & Navigation */
.case-cta-box {
  background: var(--color-primary);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  margin-bottom: 3rem;
}

.case-cta-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.case-cta-title {
  font-size: 1.8rem;
  font-weight: 950;
  margin-bottom: 1rem;
  color: #fff;
}

.case-cta-lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.case-navigation {
  margin-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.case-nav-card {
  flex: 1;
  min-width: 200px;
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.case-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.case-nav-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.case-nav-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.4;
}

@media (max-width: 991px) {

  /* 共通コンポーネントの調整 */
  .archive-cta-title {
    font-size: 1.4rem !important;
  }

  .btn,
  .btn-large-archive {
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
    border-radius: 40px !important;
  }

  .blog-card-title {
    font-size: 1.2rem !important;
  }

  /* 矢印やアイコン等の微調整 */
  .compare-arrow span {
    display: inline-block;
    transform: rotate(90deg) !important;
  }
}

/* TO TOPボタンの表示維持 (CSS疑似要素方式) */
#back-to-top svg {
  display: none !important;
}

#back-to-top {
  display: flex !important;
  padding: 0 !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

#back-to-top::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* フッターロゴ */
.footer .logo {
  font-size: 1.5rem !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 768px) {

  /* スマートフォン向けの最終微調整 */
  .archive-hero-title,
  .section-title,
  .hero-catch {
    font-size: 1.4rem !important;
  }
}

.post-card-thumb-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--color-bg), #E2E8F0);
}

/* --- Utility Helpers --- */
.text-right {
  text-align: right !important;
}

.flex-placeholder {
  flex: 1;
  min-width: 200px;
}

.btn-pill {
  border-radius: 50px !important;
}

.svg-icon-left {
  margin-right: 0.8rem;
  vertical-align: middle;
}

.pb-post-content {
  padding-bottom: 6rem;
}

.opacity-90 {
  opacity: 0.9;
}

.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-3 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 4rem !important;
}

.mb-5 {
  margin-bottom: 5rem !important;
}

@media (max-width: 768px) {
  .flex-placeholder {
    display: none;
  }
}

.img-full-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}

/* Admin Dashboard Helpers */
.admin-table-thumb {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.admin-no-image {
  color: #ccc;
  font-size: 11px;
}

/* Responsive Button Adjustment */
@media (max-width: 991px) {
  .btn-sub-label {
    font-size: 1.0rem !important;
  }
}

/* Page Specific Layouts (Apply / Contact) */
.apply-main {
  padding-top: 140px;
  background: #f8fafc;
}

.apply-title {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.apply-underline {
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.apply-lead {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .apply-main {
    padding-top: 100px;
  }

  .apply-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .apply-lead {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

/* --- Global Utilities & Responsive Adjustment --- */
.img-full-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}

/* Admin Dashboard Helpers */
.admin-table-thumb {
  width: 120px !important;
  height: 120px !important;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.admin-no-image {
  color: #ccc;
  font-size: 11px;
}

/* Responsive Button Adjustment (Site Global) */
@media (max-width: 991px) {
  .btn-sub-label {
    font-size: 1.0rem !important;
  }
}

/* --- Refined Minimalist Decor (Clean & Cool) --- */

/* カードの装飾: 直線的で清潔感のあるアクセント */
.apply-form-card {
  border-top: 6px solid var(--color-primary);
  box-shadow: 0 40px 100px rgba(37, 59, 95, 0.1) !important;
  transition: transform 0.3s ease;
}

/* 項目間のリズム（pタグで制御） */
.wpcf7-form p {
  margin-bottom: 3.2rem !important;
}

/* ラベルの調整（レスポンシブ含む） */
.wpcf7-form label {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .wpcf7-form label {
    font-size: 1.0rem !important;
  }

  .apply-form-card {
    padding: 2.5rem 1.25rem !important;
  }
}

/* 入力フィールドのラッパー: エラーメッセージとの距離を最適化 */
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem !important;
}

/* セレクトボックスのカスタム矢印 */
.wpcf7-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23253b5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.2rem center !important;
  background-size: 1.2rem !important;
  padding-right: 3.5rem !important;
}

/* ボタン：サイト本来の白背景プレミアムスタイルに統合 */
.wpcf7-submit {
  background: #ffffff !important;
  color: var(--color-primary) !important;
  border: 1.5px solid rgba(26, 42, 74, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  min-width: 250px;
  width: auto;
  border-radius: 40px !important;
  font-weight: 800 !important;
  padding: 1.1rem 2.5rem !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: block;
  margin: 1.5rem auto 0 !important;
}

.wpcf7-submit:hover {
  background: #fcfdfe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--color-accent) !important;
}

@media (max-width: 768px) {
  .wpcf7-submit {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* エラーメッセージ：箱や背景をなくし、洗練されたフォントのみで表現 */
.wpcf7-not-valid-tip {
  color: #7f1d1d !important;
  /* 極限まで深いワインレッド */
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  margin-top: 0.4rem !important;
  display: block;
}

/* 送信結果メッセージ: ボタンのすぐ下に配置 */
.wpcf7-response-output {
  border: none !important;
  background: none !important;
  margin-top: 0.2rem !important;
  padding: 0.8rem 0 !important;
  color: #7f1d1d !important;
  font-weight: 700 !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

/* 成功時のメッセージ（念のため） */
.wpcf7-mail-sent-ok {
  color: #166534 !important;
  /* 深い緑 */
}

/* TO TOPボタンの表示維持 (CSS疑似要素方式) */
#back-to-top svg {
  display: none !important;
}

#back-to-top {
  display: flex !important;
  padding: 0 !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
}

#back-to-top::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* フッターロゴ */
.footer .logo {
  font-size: 1.5rem !important;
  letter-spacing: -0.02em !important;
}


/* --- Button Color Restoration & Hover Fix --- */
.wpcf7-submit {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
}

.wpcf7-submit:hover {
  background: #1a2a4a !important;
  /* わずかに深いネイビーへ */
  transform: translateY(-2px) !important;
  scale: 1 !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* --- Final Spacing & Typography Refinement (Right-Under) --- */
.wpcf7-form-control-wrap {
  margin-bottom: 0 !important;
  /* 入力欄との隙間をゼロに */
}

.wpcf7-not-valid-tip {
  margin-top: 0.1rem !important;
  /* 直下に配置 */
  font-size: 0.95rem !important;
  /* 読みやすく少しだけ大きく */
  font-weight: 700 !important;
  line-height: 1.2 !important;
}


/* --- Ultra-Tight Spacing for Validation Message --- */
.wpcf7-form-control-wrap {
  line-height: 1 !important;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select,
.wpcf7-date {
  margin-bottom: 0 !important;
  /* ボックス自体の余白を排除 */
}

.wpcf7-not-valid-tip {
  margin-top: -0.4rem !important;
  /* さらに上に引き寄せ */
  position: relative !important;
  z-index: 1 !important;
}

/* --- Spacing adjustment (8px Gap) --- */
.wpcf7-not-valid-tip {
  margin-top: 8px !important;
  /* 8px ほど離して配置 */
}

/* --- Closing the gap between Button and Response Message --- */
.wpcf7-submit {
  margin-bottom: 0 !important;
  /* ボタン自体の下余白を消去 */
}

.wpcf7-response-output {
  margin-top: -0.8rem !important;
  /* ボタンに吸い寄せ、隙間をなくす */
}

/* --- Hiding CF7 Spinner Space to Close Message Gap --- */
.wpcf7-spinner {
  position: absolute !important;
  /* スピナーをレイアウトから浮かせて空間を詰めさせる */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  height: 0 !important;
  /* 高さをゼロにして空間を占有させない */
}

.wpcf7-response-output {
  margin-top: 0rem !important;
  /* スピナーの壁が消えたので、マージンを微調整 */
}

/* --- Permanent Fix: Hide Spinner & Close Response Gap --- */
.wpcf7-spinner {
  display: none !important;
  /* スピナーを完全に消去してスペースを解放 */
}

.wpcf7-response-output {
  margin-top: -0.5rem !important;
  /* ボタンのすぐ真下に配置 */
  padding: 0.5rem 0 !important;
}

/* --- Error State Styling (Light Pink Background) --- */
.wpcf7-not-valid {
  background-color: #fff5f5 !important;
  /* 薄いピンクに設定 */
  border-color: #feb2b2 !important;
  /* 枠線も少し赤みを帯びさせて認識しやすく */
}

/* --- Hanabusa Chatbot Position Adjustment (Move to Left) --- */
/* --- Hanabusa Chatbot UI Adjustments (Font Sizes & Family) --- */
/* フォントファミリーと全体の基本設定 */
.hbcb-chatbot {
  right: auto !important;
  left: 20px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* ヘッダーのタイトルサイズを縮小 */
.hbcb-header {
  font-size: 1.0rem !important;
}

/* メッセージバブルのサイズを縮小 */
.hbcb-sb {
  font-size: 1.0rem !important;
}

/* 入力欄のサイズとフォントを調整 */
.hbcb-input {
  font-size: 1.0rem !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* 起動ボタンのフォント調整 */
.hbcb-open-text {
  font-size: 1.0rem !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

/* ============================================================
   Blog Content List Fix
   ============================================================ */
.entry-content ul,
.entry-content ol,
.post-entry-body ul,
.post-entry-body ol {
  margin-left: 1.5rem !important;
  /* Block moves into the content area */

  list-style-position: outside !important;
}

.entry-content li,
.blog-post-content li,
.post-entry-body li {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Response Fix for Mobile */
@media (max-width: 768px) {

  .entry-content ul,
  .entry-content ol,
  .post-entry-body ul,
  .post-entry-body ol {
    padding-left: 1.2rem !important;
    margin-left: 1.2rem !important;
  }
}
/* ============================================================
   FORCED MOBILE FIXES (Tile & Grid Issues)
   ============================================================ */
.hero {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

[style*="background-image"] {
  background-repeat: no-repeat !important;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-2x2, .grid-roadmap {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .case-card, .empathy-card, .roadmap-card, .blog-card {
    width: 100% !important;
    margin-bottom: 1.5rem;
  }
  .hero {
    min-height: 70vh !important;
    background-size: cover !important;
    background-attachment: scroll !important;
  }
}
