/*
Theme Name: BidMate Child Theme
Theme URI: https://bidmatejapan.com
Description: Twenty Twenty-Five child theme for BidMate LLC corporate website
Author: BidMate LLC
Author URI: https://bidmatejapan.com
Template: twentytwentyfive
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bidmate-child
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --bm-primary: #c49a6c;
  --bm-primary-rgb: 196, 154, 108;
  --bm-accent: #c49a6c;
  --bm-accent-rgb: 196, 154, 108;
  --bm-blue: #5b8db8;
  --bm-blue-rgb: 91, 141, 184;
  --bm-coral: #d4816b;
  --bm-coral-rgb: 212, 129, 107;
  --bm-teal: #5ba69a;
  --bm-teal-rgb: 91, 166, 154;
  --bm-purple: #9b7ec8;
  --bm-purple-rgb: 155, 126, 200;
  --bm-primary-foreground: #ffffff;
  --bm-foreground: #3a3a3a;
  --bm-background: #f7f7f7;
  --bm-secondary: #eeeeee;
  --bm-muted-foreground: #888888;
  --bm-destructive: #ef4444;
  --bm-border: #d5d5d5;
  --bm-cta-dark: #4a4a4a;
  --bm-slate-50: #f2f2f2;
  --bm-slate-100: #ebebeb;
  --bm-slate-200: #d5d5d5;
  --bm-slate-400: #999999;
  --bm-slate-500: #7a7a7a;
  --bm-slate-600: #636363;
  --bm-slate-700: #505050;
  --bm-slate-800: #3d3d3d;
  --bm-slate-900: #2e2e2e;
  --bm-slate-950: #1e1e1e;
  --bm-radius: 0.75rem;
  --bm-font-sans: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
  --bm-font-heading: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
   Base / Reset  /* ⚠️ 要確認: TT5のデフォルトbody stylesと競合する可能性 */
   ========================================================================== */

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

body {
  font-family: var(--bm-font-sans);
  color: var(--bm-foreground);
  background-color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ⚠️ 要確認: TT5のscroll-behaviorと競合する可能性 */
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

/* ==========================================================================
   WordPress TT5 Parent Theme Overrides
   Neutralize all WP block layout styles within our custom theme sections
   ========================================================================== */

/* Root padding & margin reset */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}

.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* Override WP inline padding on main */
main.wp-block-group.bm-main,
main.wp-block-group.bm-main[style] {
  padding: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

/* Kill is-layout-flow spacing inside our theme (except titles and CTA) */
.bm-main.is-layout-flow > *:not(.bm-section-title-en):not(.bm-section-title-jp):not(.bm-big-cta) {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.bm-main .is-layout-flow > *:not(.bm-section-title-en):not(.bm-section-title-jp):not(.bm-big-cta) {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.bm-main .is-layout-constrained > *:not(.bm-section-title-en):not(.bm-section-title-jp):not(.bm-big-cta) {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Remove WP constrained layout max-width but keep centering */
.bm-main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}

/* Remove global padding from sections */
.bm-main .has-global-padding {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Entry content reset */
.entry-content,
.wp-block-post-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Override WP Cover block inner container */
.bm-main .wp-block-cover__inner-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.bm-main .wp-block-cover__inner-container.is-layout-flow > * {
  margin-block-start: 0 !important;
}

/* Override WP heading sizes - use our own */
.bm-main h1,
.bm-main h2,
.bm-main h3,
.bm-main h4,
.bm-main h5,
.bm-main h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Override WP body font styles */
body {
  font-weight: 400 !important;
  font-size: 1rem !important;
}

/* Override TT5 link underline */
a {
  text-decoration-thickness: initial !important;
}

/* Reset WP block-group padding/margin within our theme */
.bm-main .wp-block-group {
  padding: 0;
  margin: 0;
}

/* Restore specific inline styles that WP may add */
.bm-main .wp-block-group[style*="background-color"] {
  /* let background-color through from inline styles */
}

.bm-main .wp-block-group[style*="padding-top"] {
  /* let padding-top through from inline styles */
}

/* Override WP separator */
.bm-main .wp-block-separator {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Main wrapper — override WP inline padding */
.bm-main {
  margin: 0 !important;
  padding: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bm-font-heading);
  letter-spacing: -0.025em;
}

/* ⚠️ 要確認: TT5のデフォルトリンク色と競合する可能性 */
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.bm-container {
  max-width: 1280px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

@media (min-width: 640px) {
  .bm-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bm-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bm-container-wide {
  max-width: 1400px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

@media (min-width: 640px) {
  .bm-container-wide {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bm-container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bm-section {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .bm-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (min-width: 768px) {
  .bm-section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

header.wp-block-template-part {
  position: relative;
  z-index: 999;
}

.bm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  padding: 1rem 0;
}

/* Scrolled state: solid white */
.bm-navbar.is-scrolled {
  background-color: #fff;
  border-bottom-color: var(--bm-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 0.625rem 0;
}

.bm-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bm-navbar-logo {
  font-weight: 900 !important;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #fff;
  transition: color 0.3s;
}

.bm-navbar.is-scrolled .bm-navbar-logo {
  color: var(--bm-foreground);
}

.bm-navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .bm-navbar-links {
    display: flex;
  }
}

.bm-navbar-links a {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  transition: color 0.3s;
}

.bm-navbar.is-scrolled .bm-navbar-links a {
  color: var(--bm-foreground);
}

.bm-navbar-links a:hover {
  color: var(--bm-primary);
}

/* CTA button in navbar */
.bm-navbar-links .bm-btn-primary,
.bm-navbar-links .bm-btn-blue {
  color: #fff;
}

.bm-mobile-toggle {
  display: block;
  padding: 0.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.3s;
}

.bm-navbar.is-scrolled .bm-mobile-toggle {
  color: var(--bm-foreground);
}

@media (min-width: 768px) {
  .bm-mobile-toggle {
    display: none;
  }
}

.bm-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--bm-border);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.bm-mobile-menu.is-open {
  display: flex;
}

@media (min-width: 768px) {
  .bm-mobile-menu {
    display: none !important;
  }
}

.bm-mobile-menu a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bm-foreground);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* ⚠️ 要確認: TT5のwp-block-buttonスタイルと競合する可能性 */
.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--bm-font-sans);
  text-decoration: none;
  line-height: 1;
}

.bm-btn-primary {
  background-color: var(--bm-primary);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(var(--bm-primary-rgb), 0.2);
}

.bm-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Color variants */
.bm-btn-coral {
  background-color: var(--bm-coral);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(var(--bm-coral-rgb), 0.25);
}

.bm-btn-coral:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.bm-btn-blue {
  background-color: var(--bm-blue);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(var(--bm-blue-rgb), 0.25);
}

.bm-btn-blue:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.bm-btn-teal {
  background-color: var(--bm-teal);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(var(--bm-teal-rgb), 0.25);
}

.bm-btn-teal:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.bm-btn-outline {
  background-color: transparent;
  border: 1px solid var(--bm-slate-200);
  color: var(--bm-foreground);
}

.bm-btn-outline:hover {
  background-color: var(--bm-slate-50);
}

.bm-btn-outline-light {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(12px);
}

.bm-btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.bm-btn-white {
  background-color: #fff;
  color: var(--bm-cta-dark);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}

.bm-btn-white:hover {
  background-color: var(--bm-slate-100);
}

.bm-btn-white-outline {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

.bm-btn-white-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

.bm-btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .bm-btn-lg {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1rem;
  }
}

.bm-btn-sm {
  height: 2.5rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
}

.bm-btn-full {
  width: 100%;
}

/* ==========================================================================
   Section Title Pattern (大きな英字 + 日本語タイトル)
   ========================================================================== */

.bm-section-title {
  margin-bottom: 2.5rem;
}

.bm-section-title-en {
  font-size: 2rem;
  font-weight: 900;
  color: var(--bm-slate-200);
  line-height: 1;
  user-select: none;
  -webkit-text-stroke: 1px rgba(var(--bm-accent-rgb), 0.15);
}

/* Overlap titles using transform (immune to WP margin resets) */
/* All JP titles: uniform position & size across all sections */
.bm-section-title-jp {
  font-size: 1.375rem;
  font-weight: 900 !important;
  color: var(--bm-foreground);
  transform: translateY(-1rem);
  margin-left: 0 !important;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .bm-section-title-en {
    font-size: 3rem;
  }
  .bm-section-title-jp {
    font-size: 1.625rem;
    transform: translateY(-1.5rem);
  }
}

@media (min-width: 768px) {
  .bm-section-title-en {
    font-size: 3.5rem;
  }
  .bm-section-title-en.bm-title-xl {
    font-size: 5rem;
  }
  .bm-section-title-jp {
    font-size: 1.75rem;
    transform: translateY(-2rem);
    margin-left: 0.5rem !important;
  }
  .bm-section-title-en.bm-title-xl + .bm-section-title-jp {
    font-size: 2rem;
    transform: translateY(-2.75rem);
    margin-left: 0.5rem !important;
  }
}

/* Dark background sections (FAQ etc.) */
.bm-section-title-en.bm-title-white {
  color: rgba(255, 255, 255, 0.2);
}

/* All light-bg variants use the same color as default */
.bm-section-title-en.bm-title-light {
  color: var(--bm-slate-200);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.bm-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #2c2c2c;
  padding-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Photo-style hero (gray tone) --- */
.bm-hero--photo {
  background: #2c2c2c;
}

/* Local preview: background-image div */
.bm-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
}

/* WordPress: cover block built-in image */
.bm-hero--photo .wp-block-cover__image-background {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0.55;
}

/* WordPress: cover block overlay — make transparent so our gradient works */
.bm-hero--photo > .wp-block-cover__background {
  background-color: transparent !important;
  opacity: 1 !important;
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.70) 0%,
    rgba(50, 50, 50, 0.40) 100%
  ) !important;
}

.bm-hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(35, 35, 35, 0.88) 0%,
    rgba(40, 40, 40, 0.68) 40%,
    rgba(50, 50, 50, 0.40) 100%
  );
}

.bm-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

/* Decorative glow */
.bm-hero--photo::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.bm-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-grow: 1;
  justify-content: center;
  padding: 5rem 0 2rem;
}

.bm-hero-content--centered {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .bm-hero-content {
    flex-direction: row;
    gap: 3rem;
    padding: 5rem 0 2rem;
    align-items: center;
  }

  .bm-hero-content--centered {
    flex-direction: column;
    align-items: flex-start;
  }
}

.bm-hero-text {
  flex: 1;
  max-width: 36rem;
  width: 100%;
}

.bm-hero-text--wide {
  max-width: 42rem;
}

.bm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  background-color: transparent;
  border: 1px solid rgba(var(--bm-accent-rgb), 0.5);
  color: #e0be96;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bm-hero h1 {
  font-size: 1.625rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .bm-hero h1 {
    font-size: 2.25rem;
    line-height: 1.3;
  }
}

@media (min-width: 768px) {
  .bm-hero h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .bm-hero h1 {
    font-size: 3.5rem;
  }
}

.bm-hero-accent {
  background: linear-gradient(90deg, #e0be96, #f0d8b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bm-hero-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 36rem;
  line-height: 1.8;
  font-weight: 400;
}

@media (min-width: 640px) {
  .bm-hero-desc {
    font-size: 1.0625rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
  }
}

.bm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.bm-btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.bm-btn:hover .bm-btn-arrow {
  transform: translateX(4px);
}

/* Scroll indicator */
.bm-hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 10;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.bm-hero-scroll-indicator::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@media (min-width: 768px) {
  .bm-hero-scroll-indicator {
    display: flex;
  }
}

/* Ticker / Marquee */
.bm-ticker {
  background-color: var(--bm-cta-dark);
  width: 100%;
  padding: 0.75rem 0;
  position: relative;
  z-index: 20;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

.bm-ticker-track {
  display: flex;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  opacity: 0.9;
  animation: bmMarquee 30s linear infinite;
}

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

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.bm-cta-banner {
  background: linear-gradient(135deg, rgba(30, 40, 60, 0.85), rgba(20, 30, 50, 0.92));
  margin-top: 0 !important;
  padding: 3rem 1.5rem !important;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bm-cta-banner {
    padding: 5rem 2rem !important;
  }
}

.bm-cta-banner-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.25rem !important;
  text-align: center !important;
  max-width: 640px;
  margin: 0 auto !important;
}

.bm-cta-banner h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 768px) {
  .bm-cta-banner h2 {
    font-size: 1.875rem;
  }
}

.bm-cta-banner-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 2;
  margin: 0.5rem 0 0.5rem;
}

@media (min-width: 768px) {
  .bm-cta-banner-desc {
    font-size: 0.95rem;
  }
}

.bm-cta-banner .bm-btn {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Services (Issues & Strengths)
   ========================================================================== */

.bm-services {
  background-color: var(--bm-slate-100);
  border-top: 1px solid var(--bm-slate-200);
}

.bm-issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .bm-issues-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 3.5rem !important;
    margin-block-end: 3.5rem !important;
  }
}

.bm-issue-card {
  text-align: left;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s;
  position: relative;
  border: 1px solid var(--bm-slate-200);
  background-color: #fff;
  color: var(--bm-slate-800);
  cursor: pointer;
}

@media (min-width: 768px) {
  .bm-issue-card {
    padding: 2rem;
  }
}

@media (hover: hover) {
  .bm-issue-card:hover {
    border-color: rgba(var(--bm-primary-rgb), 0.3);
    background-color: var(--bm-slate-100);
  }
}

.bm-issue-card.is-active {
  background-color: var(--bm-cta-dark);
  border-color: var(--bm-cta-dark);
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
  transform: translateY(-4px);
  z-index: 5;
}

.bm-issue-card-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--bm-slate-500);
}

.bm-issue-card.is-active .bm-issue-card-label {
  color: rgba(220,220,220,1);
}

.bm-issue-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .bm-issue-card h4 {
    font-size: 1.25rem;
  }
}

.bm-issue-arrow {
  display: none;
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bm-cta-dark);
  font-size: 2rem;
  line-height: 1;
  z-index: 10;
}

@media (min-width: 768px) {
  .bm-issue-card.is-active .bm-issue-arrow {
    display: block;
  }
  .bm-issue-arrow {
    bottom: -2.25rem;
    font-size: 2.5rem;
  }
}

/* Strength detail panel */
.bm-strength-panel {
  background-color: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--bm-slate-200);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.bm-strength-panel-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bm-strength-panel-inner {
    flex-direction: row;
  }
}

.bm-strength-panel-text {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .bm-strength-panel-text {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .bm-strength-panel-text {
    padding: 4rem;
  }
}

.bm-strength-badge {
  display: inline-block;
  background-color: rgba(var(--bm-primary-rgb), 0.1);
  color: var(--bm-primary);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  width: max-content;
}

.bm-strength-panel-text h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bm-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .bm-strength-panel-text h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }
}

@media (min-width: 768px) {
  .bm-strength-panel-text h4 {
    font-size: 1.875rem;
  }
}

.bm-strength-panel-text p {
  color: var(--bm-slate-600);
  line-height: 1.8;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .bm-strength-panel-text p {
    font-size: 1.125rem;
    line-height: 2;
  }
}

.bm-strength-panel-image {
  flex: 1;
  min-height: 300px;
  position: relative;
}

.bm-strength-panel-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Panel visibility toggle */
.bm-strength-panel[data-panel] {
  display: none;
}

.bm-strength-panel.is-visible {
  display: block;
}

@media (min-width: 768px) {
  .bm-main .bm-section.bm-services .bm-strength-panel.is-visible[data-panel] {
    margin-block-start: 1.25rem !important;
    margin-top: 1.25rem !important;
  }
}

/* Hide mobile accordion wrappers on desktop */
.bm-strength-mobile-wrapper {
  display: none;
}

@media (max-width: 767px) {
  .bm-strength-mobile-wrapper {
    display: block;
  }
}

/* ==========================================================================
   About / Service Phases
   ========================================================================== */

.bm-phases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .bm-phases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bm-phases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bm-phase-item {
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--bm-slate-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bm-phase-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

/* Phase image */
.bm-phase-img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .bm-phase-img {
    height: 12rem;
  }
}

@media (min-width: 1024px) {
  .bm-phase-img {
    height: 10rem;
  }
}

/* Phase icon - hidden, replaced by image */
.bm-phase-icon {
  display: none;
}

/* Decorative circle - hidden, replaced by image */
.bm-phase-decoration {
  display: none;
}

.bm-phase-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bm-phase-body {
    padding: 1.5rem;
  }
}

/* Phase description */
.bm-phase-desc {
  font-size: 0.875rem;
  color: var(--bm-slate-600);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

/* Connector arrow - removed */

.bm-phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bm-phase-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(var(--bm-accent-rgb), 0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--bm-accent);
  flex-shrink: 0;
}

.bm-phase-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--bm-foreground);
}

.bm-phase-tags {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  min-height: auto;
  border-top: 1px solid var(--bm-slate-200);
  padding-top: 1rem;
}

.bm-phase-tags span {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bm-accent);
  background: rgba(var(--bm-accent-rgb), 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}

/* Company Layout */
.bm-company-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .bm-company-layout {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .bm-company-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
  }
}

/* Representative Card */
.bm-representative {
  background: #fff;
  border: 1px solid var(--bm-slate-200);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}

.bm-representative-photo {
  width: 100%;
  flex: 1;
  min-height: 8rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bm-representative-photo {
    min-height: 14rem;
  }
}

.bm-representative-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.bm-representative-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .bm-representative-body {
    padding: 1.75rem;
  }
}

.bm-representative-name {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.bm-representative-name h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bm-foreground);
  margin: 0;
}

.bm-representative-name span {
  font-size: 0.8rem;
  color: var(--bm-slate-500);
}

.bm-representative-role {
  font-size: 0.85rem;
  color: var(--bm-accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.bm-representative-greeting {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--bm-slate-700);
}

.bm-representative-greeting p {
  margin: 0 0 0.75rem;
}

.bm-representative-greeting p:last-child {
  margin-bottom: 0;
}

/* Company Table */
.bm-company-table {
  background: #fff;
  border: 1px solid var(--bm-slate-200);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bm-company-row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--bm-slate-100);
  align-items: baseline;
  gap: 0 0.5rem;
}

@media (min-width: 640px) {
  .bm-company-row {
    grid-template-columns: 3.5em 1fr;
    padding: 1rem 1.5rem;
    gap: 0 0.25rem;
  }
}

.bm-company-row:last-child {
  border-bottom: none;
}

.bm-company-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bm-slate-500);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .bm-company-row dt {
    font-size: 0.8rem;
    margin-bottom: 0;
  }
}

.bm-company-row dd {
  color: var(--bm-foreground);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.bm-portfolio-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  padding: 0 1.25rem 2rem;
  scroll-snap-type: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .bm-portfolio-scroll {
    gap: 1.5rem;
    padding: 0 1.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .bm-portfolio-scroll {
    padding: 0 2rem 2rem;
  }
}

.bm-portfolio-scroll::-webkit-scrollbar {
  display: none;
}

.bm-portfolio-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 80vw;
  max-width: 480px;
  cursor: pointer;
}

@media (min-width: 640px) {
  .bm-portfolio-card {
    width: 60vw;
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .bm-portfolio-card {
    width: 500px;
    max-width: none;
  }
}

.bm-portfolio-card-inner {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--bm-slate-100);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

.bm-portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.bm-portfolio-card:hover img {
  transform: scale(1.05);
}

.bm-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .bm-portfolio-overlay {
    padding: 2rem;
  }
}

.bm-portfolio-overlay .bm-client {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bm-portfolio-overlay h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .bm-portfolio-overlay h4 {
    font-size: 1.875rem;
  }
}

.bm-portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bm-portfolio-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 0.125rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
  backdrop-filter: blur(16px);
}

/* ==========================================================================
   Works Scroll (mobile carousel via JS) / Grid (desktop)
   ========================================================================== */

.bm-works-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0 1rem 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bm-works-scroll::-webkit-scrollbar {
  display: none;
}

.bm-works-scroll .bm-portfolio-card {
  flex-shrink: 0;
  width: 85vw;
  max-width: none;
}

/* Desktop: 2-column grid */
@media (min-width: 768px) {
  .bm-works-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    overflow-x: visible;
    padding: 0 0 2rem;
  }

  .bm-works-scroll .bm-portfolio-card {
    width: 100%;
    flex-shrink: initial;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.bm-testimonials {
  background-color: var(--bm-slate-100);
}

.bm-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .bm-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.bm-testimonial-card {
  background: #fff;
  border: 1px solid var(--bm-slate-200);
  border-radius: var(--bm-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bm-testimonial-card {
    padding: 1.5rem;
    height: 100%;
  }
}

.bm-testimonial-quote-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(var(--bm-accent-rgb), 0.4);
  margin-bottom: 0.75rem;
}

.bm-testimonial-quote-icon svg {
  width: 100%;
  height: 100%;
}

.bm-testimonial-text {
  color: var(--bm-slate-700);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .bm-testimonial-text {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
}

.bm-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--bm-slate-100);
  padding-top: 1.5rem;
}

.bm-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--bm-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bm-primary);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.bm-avatar-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bm-slate-200);
}

.bm-testimonial-author-name {
  font-weight: 700;
  color: var(--bm-foreground);
}

.bm-testimonial-author-role {
  font-size: 0.75rem;
  color: var(--bm-slate-500);
  margin-top: 0.25rem;
}

/* Big CTA block inside testimonials */
.bm-big-cta {
  margin-top: 5rem !important;
  margin-block-start: 5rem !important;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(30,40,60,0.82), rgba(20,30,50,0.88)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .bm-big-cta {
    margin-top: 7rem !important;
    margin-block-start: 7rem !important;
    border-radius: 1.5rem;
    padding: 5rem 4rem;
  }
}

.bm-big-cta-decoration {
  display: none;
}

.bm-big-cta-decoration-top {
  top: 0;
  right: 0;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%) translateX(50%);
}

.bm-big-cta-decoration-bottom {
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.1);
  transform: translateY(50%) translateX(-50%);
}

.bm-big-cta h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .bm-big-cta h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .bm-big-cta h4 {
    font-size: 2.25rem;
  }
}

.bm-big-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.bm-big-cta .bm-btn {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Flow (Development Process)
   ========================================================================== */

.bm-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .bm-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .bm-flow-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
}

.bm-flow-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--bm-slate-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: visible;
}

@media (min-width: 768px) {
  .bm-flow-card {
    padding: 2rem;
  }
}

/* 数字順にz-indexを下げ、矢印が次カードの上に表示されるようにする */
.bm-flow-card:nth-child(1) { z-index: 6; }
.bm-flow-card:nth-child(2) { z-index: 5; }
.bm-flow-card:nth-child(3) { z-index: 4; }
.bm-flow-card:nth-child(4) { z-index: 3; }
.bm-flow-card:nth-child(5) { z-index: 2; }
.bm-flow-card:nth-child(6) { z-index: 1; }

.bm-flow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(90deg, var(--bm-accent), rgba(var(--bm-accent-rgb), 0.3));
  opacity: 0;
  transition: opacity 0.3s;
}

.bm-flow-card:hover {
  border-color: rgba(var(--bm-primary-rgb), 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
}

.bm-flow-card:hover::before {
  opacity: 1;
}

.bm-flow-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(var(--bm-accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-accent);
  margin-bottom: 1.25rem;
}

.bm-flow-card-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--bm-slate-200);
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  transition: color 0.2s;
}

.bm-flow-card:hover .bm-flow-card-num {
  color: rgba(var(--bm-primary-rgb), 0.15);
}

.bm-flow-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--bm-foreground);
  margin-bottom: 0.5rem;
  padding-right: 3rem;
}

@media (min-width: 768px) {
  .bm-flow-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

.bm-flow-card p {
  color: var(--bm-slate-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Flow connector arrow - mobile: down arrow between stacked cards */
.bm-flow-card-arrow {
  display: flex;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) rotate(90deg);
  z-index: 30;
  color: var(--bm-accent);
  align-items: center;
  justify-content: center;
}

.bm-flow-card-arrow svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

.bm-flow-card:last-child .bm-flow-card-arrow {
  display: none !important;
}

@media (min-width: 768px) {
  /* 基本: 右向き矢印。left:100%でカード右端ぴったりスタート */
  .bm-flow-card-arrow {
    display: flex;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    color: var(--bm-accent);
    align-items: center;
    justify-content: center;
  }

  .bm-flow-card-arrow svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
  }

  /* === 2列スネーク配置 ===
     [1] → [2]
             ↓
     [4] ← [3]
      ↓
     [5] → [6]
  */
  .bm-flow-card:nth-child(1) { grid-row: 1; grid-column: 1; }
  .bm-flow-card:nth-child(2) { grid-row: 1; grid-column: 2; }
  .bm-flow-card:nth-child(3) { grid-row: 2; grid-column: 2; }
  .bm-flow-card:nth-child(4) { grid-row: 2; grid-column: 1; }
  .bm-flow-card:nth-child(5) { grid-row: 3; grid-column: 1; }
  .bm-flow-card:nth-child(6) { grid-row: 3; grid-column: 2; }

  /* Card 1: → right (default) */

  /* Card 2: ↓ down */
  .bm-flow-card:nth-child(2) .bm-flow-card-arrow {
    left: 50%;
    top: 100%;
    transform: translateX(-50%) rotate(90deg);
  }

  /* Card 3: ← left */
  .bm-flow-card:nth-child(3) .bm-flow-card-arrow {
    left: auto;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
  }

  /* Card 4: ↓ down */
  .bm-flow-card:nth-child(4) .bm-flow-card-arrow {
    left: 50%;
    top: 100%;
    transform: translateX(-50%) rotate(90deg);
  }

  /* Card 5: → right (default) */
}

@media (min-width: 1024px) {
  /* === 3列スネーク配置 ===
     [1] → [2] → [3]
                   ↓
     [6] ← [5] ← [4]
  */
  .bm-flow-card:nth-child(1) { grid-row: 1; grid-column: 1; }
  .bm-flow-card:nth-child(2) { grid-row: 1; grid-column: 2; }
  .bm-flow-card:nth-child(3) { grid-row: 1; grid-column: 3; }
  .bm-flow-card:nth-child(4) { grid-row: 2; grid-column: 3; }
  .bm-flow-card:nth-child(5) { grid-row: 2; grid-column: 2; }
  .bm-flow-card:nth-child(6) { grid-row: 2; grid-column: 1; }

  /* リセット: 全て右向きに戻す */
  .bm-flow-card-arrow {
    left: 100%;
    top: 50%;
    right: auto;
    transform: translateY(-50%);
  }

  /* Card 1: → right (default) */

  /* Card 2: → right - 2列時のdownをリセット */
  .bm-flow-card:nth-child(2) .bm-flow-card-arrow {
    left: 100%;
    top: 50%;
    right: auto;
    transform: translateY(-50%);
  }

  /* Card 3: ↓ down */
  .bm-flow-card:nth-child(3) .bm-flow-card-arrow {
    left: 50%;
    top: 100%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  /* Card 4: ← left */
  .bm-flow-card:nth-child(4) .bm-flow-card-arrow {
    left: auto;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
  }

  /* Card 5: ← left - 2列時のrightをリセット */
  .bm-flow-card:nth-child(5) .bm-flow-card-arrow {
    left: auto;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.bm-faq {
  background-color: var(--bm-slate-800);
}

.bm-faq .bm-section-title-jp {
  color: #fff;
}

.bm-faq .bm-section-title-en {
  color: rgba(255, 255, 255, 0.6);
}

.bm-faq-wrapper {
  background: none;
  padding: 0;
  box-shadow: none;
  border: none;
}

.bm-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bm-radius);
  padding: 0 1.25rem;
  margin-bottom: 0.625rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.bm-faq-item.is-open {
  border-color: rgba(var(--bm-accent-rgb), 0.3);
  background-color: rgba(255, 255, 255, 0.04);
}

.bm-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #ffffff;
  width: 100%;
  padding: 0.875rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--bm-font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

@media (min-width: 640px) {
  .bm-faq-question {
    font-size: 1.05rem;
    gap: 0.75rem;
    padding: 1rem 0;
  }
}

.bm-faq-question:hover {
  color: var(--bm-accent);
}

.bm-faq-question .bm-q-mark {
  color: var(--bm-accent);
  font-weight: 900;
  flex-shrink: 0;
}

.bm-faq-question .bm-chevron {
  margin-left: auto;
  font-size: 1.25rem;
  transition: transform 0.2s;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.bm-faq-item.is-open .bm-faq-question .bm-chevron {
  transform: rotate(180deg);
}

.bm-faq-answer {
  display: none;
  color: #ffffff;
  line-height: 1.75;
  padding-bottom: 1.5rem;
  padding-left: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.bm-faq .bm-faq-answer .bm-a-mark {
  color: var(--bm-accent);
}

.bm-faq-item.is-open .bm-faq-answer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bm-faq-answer .bm-a-mark {
  color: var(--bm-slate-200);
  font-weight: 900;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.bm-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bm-section#contact {
    padding-top: 2.5rem !important;
  }
}

@media (min-width: 1024px) {
  .bm-contact-grid {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
  }
}

.bm-contact-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bm-foreground);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .bm-contact-info h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.bm-contact-info > p {
  color: var(--bm-slate-600);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.bm-contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bm-contact-detail-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(var(--bm-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bm-primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.bm-contact-detail-label {
  font-size: 0.875rem;
  color: var(--bm-slate-500);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bm-contact-detail-value {
  font-weight: 500;
  color: var(--bm-foreground);
}

/* Contact form */
.bm-contact-form-wrapper {
  background-color: var(--bm-slate-50);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--bm-slate-100);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

@media (min-width: 768px) {
  .bm-contact-form-wrapper {
    padding: 2rem;
  }
}

.bm-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .bm-form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.bm-form-group {
  margin-bottom: 1rem;
}

.bm-form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bm-slate-700);
  margin-bottom: 0.375rem;
}

.bm-form-group label .bm-required {
  color: var(--bm-destructive);
}

/* ⚠️ 要確認: TT5のデフォルトinputスタイルと競合する可能性 */
.bm-form-group input,
.bm-form-group textarea {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem 0 2.5rem;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  background-color: #fff;
  font-family: var(--bm-font-sans);
  font-size: 0.9375rem;
  color: var(--bm-foreground);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.bm-form-group input:focus,
.bm-form-group textarea:focus {
  outline: none;
  border-color: var(--bm-primary);
  box-shadow: 0 0 0 3px rgba(var(--bm-primary-rgb), 0.1);
}

.bm-form-group textarea {
  height: auto;
  min-height: 7rem;
  padding: 0.75rem;
  resize: none;
}

.bm-form-icon-wrapper {
  position: relative;
}

.bm-form-icon-wrapper .bm-form-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--bm-slate-400);
  pointer-events: none;
}

/* ==========================================================================
   Contact Form 7 Overrides
   ========================================================================== */

.bm-contact-form-wrapper .wpcf7-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bm-slate-700);
  margin-bottom: 0.375rem;
}

.bm-contact-form-wrapper .wpcf7-form input[type="text"],
.bm-contact-form-wrapper .wpcf7-form input[type="email"],
.bm-contact-form-wrapper .wpcf7-form textarea {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius);
  background-color: #fff;
  font-family: var(--bm-font-sans);
  font-size: 0.9375rem;
  color: var(--bm-foreground);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.bm-contact-form-wrapper .wpcf7-form textarea {
  height: auto;
  min-height: 7rem;
  padding: 0.75rem;
  resize: none;
}

.bm-contact-form-wrapper .wpcf7-form input[type="text"]:focus,
.bm-contact-form-wrapper .wpcf7-form input[type="email"]:focus,
.bm-contact-form-wrapper .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--bm-primary);
  box-shadow: 0 0 0 3px rgba(var(--bm-primary-rgb), 0.1);
}

.bm-contact-form-wrapper .wpcf7-form p {
  margin-bottom: 1rem;
}

.bm-contact-form-wrapper .wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  background-color: var(--bm-primary);
  color: var(--bm-primary-foreground);
  font-family: var(--bm-font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

.bm-contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
  background-color: #b08a5c;
  transform: translateY(-1px);
}

.bm-contact-form-wrapper .wpcf7-form .wpcf7-not-valid-tip {
  color: var(--bm-destructive);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.bm-contact-form-wrapper .wpcf7-form .wpcf7-response-output {
  border-radius: var(--bm-radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* ⚠️ 要確認: TT5のデフォルトfooterスタイルと競合する可能性 */
.bm-footer {
  background-color: var(--bm-slate-950);
  color: var(--bm-slate-400);
  padding: 2.5rem 0;
  border-top: 1px solid var(--bm-slate-900);
}

@media (min-width: 768px) {
  .bm-footer {
    padding: 4rem 0;
  }
}

.bm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .bm-footer-grid {
    grid-template-columns: 5fr 3fr 3fr;
    gap: 3rem;
  }
}

.bm-footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #fff;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.bm-footer-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 24rem;
}

.bm-footer-company-info {
  font-size: 0.875rem;
}

.bm-footer-company-info p {
  margin-bottom: 0.5rem;
}

.bm-footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bm-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-footer ul li {
  margin-bottom: 1rem;
}

.bm-footer ul li a {
  font-size: 0.875rem;
  color: var(--bm-slate-400);
  transition: color 0.2s;
}

.bm-footer ul li a:hover {
  color: #fff;
}

.bm-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30,41,59,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bm-footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
  }
}

@media (min-width: 768px) {
  .bm-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.bm-footer-bottom p {
  font-size: 0.75rem;
}

.bm-footer-bottom a {
  font-size: 0.75rem;
  color: var(--bm-slate-400);
  transition: color 0.2s;
}

.bm-footer-bottom a:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive helpers
   ========================================================================== */

.bm-sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .bm-sp-only {
    display: none;
  }
}

/* ==========================================================================
   Animation utilities
   ========================================================================== */

.bm-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bm-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-fade-in-delay-1 { transition-delay: 0.1s; }
.bm-fade-in-delay-2 { transition-delay: 0.2s; }
.bm-fade-in-delay-3 { transition-delay: 0.3s; }
.bm-fade-in-delay-4 { transition-delay: 0.4s; }
.bm-fade-in-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   App Showcase — single phone spanning two sections
   ========================================================================== */

/* Wrapper that contains both the text section and the overlap zone */
.bm-showcase-wrap {
  position: relative;
  z-index: 1;
}

/* Upper half: light bg with text + phone side by side */
.bm-showcase-upper {
  background: var(--bm-slate-50);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: visible;
}

@media (min-width: 768px) {
  .bm-showcase-upper {
    padding: 6rem 0 0;
  }
}

.bm-showcase-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .bm-showcase-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

/* Text side */
.bm-showcase-text {
  flex: 1;
  max-width: 32rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .bm-showcase-text {
    flex: 1 1 55%;
    max-width: none;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

.bm-showcase-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bm-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.bm-showcase-text h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bm-foreground);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .bm-showcase-text h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .bm-showcase-text h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .bm-showcase-text h2 {
    font-size: 3rem;
  }
}

.bm-showcase-text > p {
  font-size: 0.9375rem;
  color: var(--bm-slate-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .bm-showcase-text > p {
    font-size: 1.0625rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
  }
}

/* Feature bullets */
.bm-showcase-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .bm-showcase-features {
    margin: 0 0 2.5rem;
    gap: 1rem;
  }
}

.bm-showcase-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--bm-slate-700);
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .bm-showcase-features li {
    font-size: 0.9375rem;
    gap: 0.75rem;
  }
}

.bm-showcase-features li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 50%;
  background: rgba(var(--bm-primary-rgb), 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c49a6c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem;
}

/* Phone side */
.bm-showcase-phone-col {
  flex-shrink: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: -6rem;
}

@media (min-width: 768px) {
  .bm-showcase-phone-col {
    margin-bottom: 0;
    flex: 1 1 45%;
    align-self: flex-start;
    top: 4rem;
  }
}

/* Phone device */
.bm-phone-device {
  position: relative;
  width: 220px;
  border-radius: 2rem;
  background: #0f172a;
  padding: 0.625rem;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@media (min-width: 768px) {
  .bm-phone-device {
    width: 260px;
    border-radius: 2.5rem;
    padding: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .bm-phone-device {
    width: 300px;
  }
}

/* Dynamic Island */
.bm-phone-notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7.5rem;
  height: 1.75rem;
  background: #0f172a;
  border-radius: 1rem;
  z-index: 10;
}

/* Screen */
.bm-phone-screen {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #1e293b;
}

.bm-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dummy screen */
.bm-phone-screen--placeholder {
  display: flex;
  flex-direction: column;
  padding: 3rem 1.25rem 1.25rem;
}

.bm-phone-screen--placeholder.bm-screen-1 {
  background: linear-gradient(160deg, #3a6d9e, #5b8db8, #7db3d8);
}

.bm-screen-statusbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.625rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.bm-screen-greeting {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

.bm-screen-title {
  font-size: 1.125rem;
  font-weight: 900 !important;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.bm-screen-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.bm-screen-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bm-screen-card-label {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.6);
}

.bm-screen-card-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.bm-screen-card-badge {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.bm-screen-bar-track {
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.bm-screen-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: rgba(255,255,255,0.6);
}

.bm-screen-nav {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.bm-screen-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.bm-screen-nav-dot.is-active {
  background: #fff;
}

/* Lower section: the CTA that the phone overlaps into */
.bm-showcase-lower {
  background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
  position: relative;
  z-index: 0;
  padding: 8rem 0 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .bm-showcase-lower {
    padding: 10rem 0 4rem;
  }
}

.bm-showcase-lower h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .bm-showcase-lower h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .bm-showcase-lower h3 {
    font-size: 1.875rem;
  }
}

.bm-showcase-lower p {
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .bm-showcase-lower p {
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-size: 1rem;
  }
}

.bm-showcase-lower-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bm-showcase-lower-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Stats row */
.bm-showcase-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 48rem;
  margin: 3rem auto 0;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .bm-showcase-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.bm-showcase-stat {
  text-align: center;
}

.bm-showcase-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .bm-showcase-stat-num {
    font-size: 2.5rem;
  }
}

.bm-showcase-stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Subtle float animation — applied to the device, not the column */
.bm-phone-device {
  animation: bmPhoneFloat 6s ease-in-out infinite;
}

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

/* ==========================================================================
   MOBILE OPTIMIZATION (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

  /* --- Issues/Strength Accordion --- */
  .bm-strength-panel[data-panel] {
    display: none !important;
  }

  .bm-issues-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .bm-strength-mobile-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: calc(-0.75rem - 1px);
  }

  .bm-strength-mobile-wrapper.is-open {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 0.75rem;
  }

  .bm-strength-mobile-wrapper .bm-strength-panel {
    display: block !important;
    border-radius: 0 0 1rem 1rem;
    margin-top: 0;
    border-top: none;
  }

  .bm-strength-mobile-wrapper .bm-strength-panel-inner {
    flex-direction: column;
  }

  .bm-strength-mobile-wrapper .bm-strength-panel-text {
    padding: 1.25rem 1.25rem 0 1.25rem;
  }

  .bm-strength-mobile-wrapper .bm-strength-panel-image {
    max-height: 200px;
  }

  .bm-issue-card.is-active {
    border-radius: 1rem 1rem 0 0;
  }

  /* --- Section Titles --- */
  .bm-section-title-en {
    font-size: 2.5rem;
  }

  .bm-section-title-en.bm-title-xl {
    font-size: 3rem;
  }

  .bm-section-title-jp {
    font-size: 1.375rem;
    font-weight: 900 !important;
    transform: translateY(-0.75rem);
    margin-left: 0 !important;
  }

  .bm-section-title-en.bm-title-xl + .bm-section-title-jp {
    font-size: 1.5rem;
    font-weight: 900 !important;
    transform: translateY(-1.25rem);
  }

  /* --- Hero --- */
  .bm-hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .bm-hero-desc {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .bm-hero-badge {
    font-size: 0.875rem;
  }

  /* --- Navbar / Mobile Menu --- */
  .bm-mobile-toggle {
    padding: 0.75rem;
    font-size: 1.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .bm-mobile-menu a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
  }

  /* --- Issue Cards --- */
  .bm-issue-card {
    padding: 1.25rem;
    padding-right: 2.5rem;
  }

  .bm-issue-card::after {
    content: "▶";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--bm-slate-500);
    transition: transform 0.3s, color 0.3s;
  }

  .bm-issue-card.is-active::after {
    content: "▼";
    color: rgba(255,255,255,0.7);
  }

  .bm-issue-card h4 {
    font-size: 1.1rem;
  }

  .bm-issue-card-label {
    font-size: 0.8125rem;
  }

  /* --- Strength Panel --- */
  .bm-strength-panel-text h4 {
    font-size: 1.2rem;
  }

  .bm-strength-panel-text p {
    font-size: 0.9375rem;
  }

  .bm-strength-panel-image {
    min-height: 200px;
  }

  /* --- Service Phases --- */
  .bm-phase-title {
    font-size: 1.1rem;
  }

  .bm-phase-desc {
    font-size: 0.9rem;
  }

  /* --- Portfolio Cards --- */
  .bm-portfolio-card {
    width: 85vw;
    max-width: none;
  }

  .bm-portfolio-overlay h4 {
    font-size: 1.25rem;
  }

  /* --- Testimonials --- */
  .bm-testimonial-author-role {
    font-size: 0.8125rem;
  }

  .bm-testimonial-author-name {
    font-size: 0.95rem;
  }

  /* --- Big CTA --- */
  .bm-big-cta {
    padding: 2rem 1.25rem;
  }

  .bm-big-cta h4 {
    font-size: 1.2rem;
  }

  .bm-big-cta p {
    font-size: 0.9rem;
  }

  /* --- Flow Cards --- */
  .bm-flow-card h4 {
    font-size: 1.1rem;
    padding-right: 2.5rem;
  }

  .bm-flow-card p {
    font-size: 0.9rem;
  }

  /* --- FAQ --- */
  .bm-faq-item {
    padding: 0 1rem;
  }

  .bm-faq-question {
    font-size: 1rem;
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .bm-faq-answer {
    font-size: 0.9rem;
    padding-bottom: 1rem;
  }

  /* --- Contact Form --- */
  .bm-contact-info h4 {
    font-size: 1.25rem;
  }

  .bm-contact-info p {
    font-size: 0.9rem;
  }

  /* --- Company --- */
  .bm-representative-photo {
    min-height: 8rem;
  }

  .bm-representative-body {
    padding: 1rem;
  }

  .bm-representative-name h4 {
    font-size: 1.05rem;
  }

  .bm-representative-role {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .bm-representative-greeting {
    font-size: 0.825rem;
    line-height: 1.7;
  }

  .bm-representative-greeting p {
    margin: 0 0 0.5rem;
  }

  .bm-company-row dd {
    font-size: 0.825rem;
  }

  /* --- Buttons --- */
  .bm-btn-lg {
    font-size: 0.95rem;
    height: 2.75rem;
    padding: 0 1.5rem;
  }

  /* --- Section Titles JP: bigger and bolder --- */
  .bm-section-title-jp {
    font-size: 1.375rem;
    font-weight: 900 !important;
    transform: translateY(-0.75rem);
    margin-left: 0 !important;
  }

  .bm-section-title-en.bm-title-xl + .bm-section-title-jp {
    font-size: 1.5rem;
    font-weight: 900 !important;
    transform: translateY(-1.25rem);
  }

  /* --- Testimonials: horizontal scroll carousel --- */
  .bm-testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .bm-testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .bm-testimonial-card {
    flex-shrink: 0;
    width: 85vw;
    scroll-snap-align: start;
  }

  /* --- General Section Spacing --- */
  .bm-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .bm-section-title {
    margin-bottom: 2rem;
    padding-top: 0.5rem;
  }
}

/* ==========================================================================
   SMALL MOBILE (max-width: 374px)
   ========================================================================== */
@media (max-width: 374px) {

  .bm-section-title-en.bm-title-xl {
    font-size: 2.5rem;
  }

  .bm-hero h1 {
    font-size: 1.5rem;
  }

  .bm-hero-desc {
    font-size: 0.875rem;
  }

  .bm-portfolio-card {
    width: 90vw;
  }

  .bm-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .bm-big-cta {
    padding: 1.75rem 1rem;
  }
}

/* ==========================================================================
   Hide testimonials section (PC & Mobile)
   ========================================================================== */
.bm-testimonials {
  display: none !important;
}
