/* Media Forward renewal — design inspired by dotstart.co.jp */

:root {
  /* Brand: GOLD primary, green as quiet accent */
  --gold: #9B7A1F;          /* deeper richer gold */
  --gold-light: #B89538;
  --gold-soft: #F1E8C9;
  --green: #1B6B4A;         /* used sparingly for accent */
  --green-light: #2E8765;
  --green-soft: #DDE9E3;
  --cream: #000000;
  --bg: #000000;
  --text: #FFFFFF;
  --text-mute: rgba(255,255,255,0.65);
  --border: #2a2a2a;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 30px rgba(155,122,31,0.28);
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-jp: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-en: 'Inter', sans-serif;
}

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

/* Site-wide: remove all rounded corners (squared design) */
*, *::before, *::after { border-radius: 0 !important; }

/* ===== Loading splash ===== */
#loading {
  position: fixed; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { text-align: center; }
.loading-logo-img { width: 220px; height: auto; margin: 0 auto 24px; display: block; }
.loading-bar {
  width: 220px; height: 2px;
  background: #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}
.loading-fill {
  height: 100%; width: 0%;
  background: #9B7A1F;
  border-radius: 999px;
  animation: mf-load-fill 1.5s ease forwards;
}
@keyframes mf-load-fill { to { width: 100%; } }

html {
  background: #000;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Theme the native scrollbar (Firefox) */
  scrollbar-color: var(--gold) transparent;
  scrollbar-width: thin;
}
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Theme the native scrollbar (WebKit / Chrome / Safari) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(155, 122, 31, 0.55);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(155, 122, 31, 0.85); background-clip: padding-box; }

/* Full-viewport animated video background with gold color tint */
.mf-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #050505 0%, #000000 100%);
}
.mf-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the white/grey wave structure visible; chroma comes from the overlay */
  filter: saturate(0) brightness(1.05) contrast(1.05);
  opacity: 1;
}
/* Uniform gold tint (color blend: keeps video luminance so dark areas don't crush) */
.mf-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 70% 65%, #B89538 0%, transparent 70%),
    radial-gradient(55% 65% at 25% 30%, #C9A33D 0%, transparent 70%),
    linear-gradient(135deg, #B89538 0%, #9B7A1F 100%);
  mix-blend-mode: color;
  opacity: 0.9;
  animation: mf-bg-drift 22s ease-in-out infinite alternate;
}
@keyframes mf-bg-drift {
  0%   { transform: translate(-2%, -1%) scale(1.00); }
  100% { transform: translate( 3%,  2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .mf-bg-overlay { animation: none; transform: none; }
}
.mf-bg::after {
  /* Soft wash for text legibility */
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.50) 100%);
}

/* Header */
.mf-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}
/* Hide header while cinematic hero is in view (home page) */
.mf-header.mf-header--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
/* On cinematic hero: transparent header with white nav */
.mf-header.mf-header--on-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.mf-header--on-hero .mf-nav a { color: var(--gold); }
.mf-header--on-hero .mf-nav a:hover { background: rgba(155,122,31,0.15); color: var(--gold-light); }
.mf-header--on-hero .mf-nav a.is-active { color: var(--gold); }
/* keep original logo colors on hero — the white pill background already provides contrast */
.mf-header--on-hero .mf-hamb span { background: #fff; }
.mf-header--on-hero .mf-cta-header {
  background: #fff !important;
  color: var(--gold) !important;
}
.mf-header--on-hero .mf-cta-header:hover {
  background: rgba(255,255,255,0.9) !important;
}
.mf-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mf-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.mf-logo img {
  height: 52px;
  width: auto;
  display: block;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.mf-logo-text {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  white-space: nowrap;
  line-height: 1.2;
}
.mf-nav { display: flex; align-items: center; gap: 8px; }
.mf-nav a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: var(--transition);
}
.mf-nav a:hover { background: rgba(155,122,31,0.15); color: var(--gold-light); }
.mf-nav a.is-active { color: var(--gold); font-weight: 700; }
.mf-cta-header {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.mf-cta-header:hover { background: var(--gold-light) !important; color: #fff !important; }

/* Mobile menu toggle */
.mf-hamb { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.mf-hamb span { position: absolute; left: 7px; right: 7px; height: 2px; background: var(--text); transition: var(--transition); }
.mf-hamb span:nth-child(1) { top: 12px; }
.mf-hamb span:nth-child(2) { top: 17px; }
.mf-hamb span:nth-child(3) { top: 22px; }
.mf-hamb.open span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.mf-hamb.open span:nth-child(2) { opacity: 0; }
.mf-hamb.open span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

@media (max-width: 880px) {
  .mf-hamb { display: none; }
  .mf-nav {
    display: flex;
    flex-direction: row;
    gap: 2px;
  }
  .mf-nav a { font-size: 12px; padding: 6px 7px; letter-spacing: 0.02em; }
  /* On mobile show Home / Services / Company / Recruit; hide Contact CTA */
  .mf-nav a[href="#contact"],
  .mf-nav a[href="/#contact"],
  .mf-cta-header { display: none; }
}
@media (max-width: 700px) {
  .mf-logo img { height: 44px; }
  .mf-logo-text { font-size: 10px; }
}
@media (max-width: 420px) {
  .mf-nav a { font-size: 11px; padding: 6px 6px; }
}

/* Main layout */
.mf-main { padding-top: 96px; min-height: 100vh; background: var(--bg); }
/* Cinematic hero starts flush against the top, behind the fixed header */
.mf-main > .mf-hero--cinematic:first-child { margin-top: -96px; }

.mf-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 600px) {
  .mf-container { padding: 0 20px; }
}

/* Hero (legacy compact) */
.mf-hero {
  min-height: min(calc(100vh - 72px), 760px);
  display: flex;
  align-items: center;
  padding: 80px 0 120px;
}

/* Hero (cinematic / full-viewport) */
.mf-hero--cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0;
}
/* Hero cinematic: gold ASCII art on pure black, with ripple emanating from brand name */
.mf-hero--cinematic {
  background: #000;
}
.mf-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}
.mf-ascii-source {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.mf-ascii-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.mf-hero--cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.40) 0%, transparent 55%);
}
/* Text colors on dark hero */
.mf-hero--cinematic .mf-hero-headline .line {
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.3);
}
.mf-hero--cinematic .mf-hero-sub {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.mf-hero--cinematic .mf-btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.mf-hero--cinematic .mf-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}
.mf-hero--cinematic .mf-hero-scroll span { color: rgba(255,255,255,0.62); }
.mf-hero--cinematic .mf-scroll-pill { border-color: rgba(255,255,255,0.55); }
.mf-hero--cinematic .mf-scroll-dot { background: rgba(255,255,255,0.62); }
.mf-hero--cinematic .mf-hero-line {
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}
.mf-hero-line {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.mf-hero-cinema-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 64px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
/* Center variant — used when hero shows only the brand name */
.mf-hero-cinema-inner--center {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 32px;
}
.mf-hero-content { max-width: 760px; }
.mf-hero-content--center { max-width: none; }
.mf-hero-headline--brand { margin: 0; }
.mf-hero-headline--brand .line {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 6px 36px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);
  display: inline-flex;
  align-items: baseline;
  line-height: 1.05;
}
/* Midjourney-style ASCII art title */
.mf-hero-srtext {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mf-hero-ascii-title {
  display: block;
  margin: 0 auto;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
  font-size: clamp(4.4px, 1.2vw, 15px);
  line-height: 1.15;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0;
  white-space: pre;
  text-align: center;
  text-shadow: 0 0 14px rgba(255,255,255,0.35), 0 2px 8px rgba(0,0,0,0.5);
  -webkit-font-smoothing: auto;
  overflow: hidden;
}
@media (max-width: 700px) {
  .mf-hero-ascii-title { font-weight: 700; }
  .mf-hero-cinema-inner--center { padding: 56px 0 72px; }
  .mf-hero-line { display: none; }
}
.mf-hero-kicker {
  margin-top: 18px;
  font-family: var(--font-jp);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.mf-hero-tagline {
  margin-top: 12px;
  font-family: var(--font-jp);
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.mf-hero-tagline-mobile { display: none; }
.mf-seo-intro {
  padding-top: 8px;
  padding-bottom: 8px;
}
.mf-seo-intro-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-mute);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.mf-seo-intro-text a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mf-seo-intro-text a:hover { color: var(--gold); }
.mf-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 0.18em;
  background: #fff;
  vertical-align: -0.06em;
  animation: mf-caret-blink 1.05s steps(1, end) infinite;
}
@keyframes mf-caret-blink {
  0%, 49.999% { opacity: 1; }
  50%, 100%   { opacity: 0; }
}
.mf-hero-headline { margin-bottom: 32px; }
.mf-hero-headline .line {
  display: block;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(32px);
  animation: mf-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.mf-hero-headline .line-1 { animation-delay: 0.25s; }
.mf-hero-headline .line-2 { animation-delay: 0.40s; }
.mf-hero-sub {
  max-width: 640px;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(32px);
  animation: mf-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}
.mf-hero-cta-cinema {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(32px);
  animation: mf-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.70s forwards;
}
.mf-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.mf-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
@keyframes mf-fade-in-up {
  0%   { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.mf-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: mf-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 1.1s forwards;
}
.mf-scroll-pill {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.mf-scroll-dot {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  animation: mf-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes mf-scroll-bounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 0.4; transform: translateY(10px); }
}
.mf-hero-scroll span {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 880px) {
  .mf-hero-cinema-inner { padding: 60px 20px 90px; }
}
@media (max-width: 700px) {
  .mf-hero--cinematic { min-height: 100vh; min-height: 100dvh; }
  .mf-hero-cinema-inner { padding: 48px 16px 64px; }
  .mf-hero-kicker { font-size: clamp(11px, 3vw, 13px); margin-top: 12px; letter-spacing: 0.06em; }
  .mf-hero-tagline { font-size: clamp(10px, 2.8vw, 12px); letter-spacing: 0.08em; margin-top: 10px; }
  .mf-hero-tagline-desktop { display: none; }
  .mf-hero-tagline-mobile { display: inline; }
  .mf-seo-intro-text { font-size: 13px; text-align: left; }
}
.mf-hero-inner { max-width: 880px; }
.mf-hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-soft);
  border-radius: 999px;
}
.mf-hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.mf-hero-title .accent { color: var(--gold); }
.mf-hero-title .gold { color: var(--gold); }
.mf-hero-lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-mute);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 640px;
}
.mf-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.mf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: var(--transition);
  font-family: var(--font-jp);
}
.mf-btn-primary { background: var(--gold); color: #fff; }
.mf-btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mf-btn-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold); }
.mf-btn-outline:hover { background: var(--gold); color: #fff; }
.mf-btn-gold { background: var(--gold); color: #fff; }
.mf-btn-gold:hover { background: var(--gold-light); }
.mf-btn .arrow { transition: var(--transition); }
.mf-btn:hover .arrow { transform: translateX(4px); }

/* Section */
.mf-section { padding: 100px 0; position: relative; }
.mf-section--cream { background: rgba(255,255,255,0.03); }
/* Contact (v2 — dotstart-inspired wide pill-style fields) */
.mf-contact-section { padding: 80px 0 120px; }
.mf-contact-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.mf-contact-num {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.mf-contact-title {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.mf-contact-lead {
  text-align: center;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text);
  margin: 0 auto 64px;
  max-width: 720px;
  line-height: 1.8;
}
.mf-contact-form-v2 {
  max-width: 1100px;
  margin: 0 auto;
}
.mf-cf-field {
  margin-bottom: 40px;
}
.mf-cf-field label {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 10px;
  margin-left: 8px;
  letter-spacing: 0.02em;
}
.mf-cf-field input,
.mf-cf-field textarea {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 16px;
  color: #111;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.mf-cf-field input { height: 56px; }
.mf-cf-field textarea { resize: vertical; min-height: 200px; line-height: 1.7; }
.mf-cf-field input:focus,
.mf-cf-field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(0,0,0,0.08);
}
.mf-cf-submit-wrap { text-align: center; margin-top: 48px; }
.mf-cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 56px;
  padding: 0 36px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-jp);
  color: #fff;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.mf-cf-submit:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(155,122,31,0.45); }
.mf-cf-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-mute);
}

/* (legacy contact form — left for any other page if referenced) */
.mf-contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}
.mf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mf-form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mf-form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mf-form-field .req { color: var(--gold); margin-left: 4px; font-size: 11px; }
.mf-form-field input,
.mf-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: var(--font-jp);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
}
.mf-form-field input:focus,
.mf-form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(155,122,31,0.25);
}
.mf-form-field textarea { resize: vertical; min-height: 140px; }
.mf-form-submit { margin-top: 8px; }
.mf-form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-mute);
}
@media (max-width: 600px) {
  .mf-form-row { grid-template-columns: 1fr; }
  .mf-contact-form { padding: 28px 20px; }
}

/* CTA banner section: dark background, gold text/button */
.mf-section--green {
  background: #000;
  color: var(--gold);
}
.mf-section--green .mf-section-label { color: var(--gold-light); }
.mf-section--green .mf-section-title { color: var(--gold); }
.mf-section--green p { color: var(--gold); }
.mf-section--green .mf-cta-banner h2 { color: var(--gold); }
.mf-section--green .mf-cta-banner p { color: var(--gold); opacity: 0.8; }
.mf-section--green .mf-cta-banner .mf-btn {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.mf-section--green .mf-cta-banner .mf-btn:hover {
  background: var(--gold-light);
  color: #fff;
}

.mf-section-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.mf-page-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}
.mf-section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.mf-section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1 1 60%;
}
.mf-section-title--philosophy {
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.45;
  flex: 1 1 100%;
  max-width: 920px;
}
.mf-philosophy-title-mobile {
  display: none;
}
.mf-philosophy-title-mobile-indent {
  display: inline-block;
}
.mf-section-sub {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--text-mute);
  max-width: 480px;
  flex: 1 1 30%;
  line-height: 1.9;
}
@media (max-width: 700px) {
  .mf-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 36px;
  }
  .mf-section-sub {
    font-size: 11.5px;
    max-width: 100%;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .mf-philosophy-title-desktop {
    display: none;
  }
  .mf-philosophy-title-mobile {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.01em;
  }
  .mf-philosophy-title-mobile-indent {
    padding-left: 4.25em;
  }
  .mf-strength-desc {
    font-size: 13px;
    line-height: 1.72;
  }
  .mf-values-item dd {
    font-size: 13px;
    line-height: 1.72;
  }
}

/* About / 2-col */
.mf-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.mf-about-illust {
  background: linear-gradient(135deg, rgba(155,122,31,0.18), #000);
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.mf-about-illust img { max-width: 70%; height: auto; }
.mf-about-body p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 20px;
  color: var(--text);
}
@media (max-width: 880px) {
  .mf-about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Services grid */
.mf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mf-service-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.mf-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.mf-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.mf-service-card:hover::before { transform: scaleX(1); }
.mf-service-card .num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.mf-service-card h3 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.mf-service-card p { font-size: 14px; color: var(--text-mute); line-height: 1.9; }
.mf-service-card .arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-en);
}
@media (max-width: 880px) {
  .mf-services-grid { grid-template-columns: 1fr; }
}

/* Features list (About 3 features) */
.mf-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 56px; }
.mf-feature {
  background: var(--bg);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.mf-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mf-feature .num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.mf-feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.mf-feature p { font-size: 13.5px; color: var(--text-mute); line-height: 1.9; }
@media (max-width: 880px) { .mf-features { grid-template-columns: 1fr; } }

/* Works — infinite horizontal scroll (seamless loop), compact cards */
.mf-works-scroll {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
  min-height: 240px;
}
.mf-works-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: mf-works-scroll-desktop 30s linear infinite;
}
.mf-works-track:hover { animation-play-state: paused; }
.mf-works-track .mf-work { flex: 0 0 260px; }

/* Desktop: 7 cards × (260 + 20) = 1960px */
@keyframes mf-works-scroll-desktop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1960px); }
}
/* Mobile: 7 cards × (220 + 16) = 1652px */
@keyframes mf-works-scroll-mobile {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1652px); }
}
@media (max-width: 600px) {
  .mf-works-track {
    animation: mf-works-scroll-mobile 24s linear infinite;
    gap: 16px;
  }
  .mf-works-track .mf-work { flex: 0 0 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-works-track { animation: none; }
}
.mf-work {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  display: block;
}
.mf-work:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mf-work-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.mf-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.mf-work:hover .mf-work-thumb img { transform: scale(1.05); }
.mf-work-info { padding: 14px 18px; }
.mf-work-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.mf-work-info p { font-size: 11.5px; color: var(--text-mute); line-height: 1.5; }

/* Philosophy — Credo / Purpose / Values (frameless, text only) */
.mf-credo,
.mf-purpose {
  background: transparent;
  border: 0;
  padding: 24px 0 32px;
  margin-bottom: 16px;
  display: block;
  box-shadow: none;
}
.mf-credo .heading,
.mf-purpose .heading {
  margin-bottom: 12px;
}
.mf-credo .heading,
.mf-purpose .heading { display: flex; flex-direction: column; gap: 8px; }
.mf-credo .label-en,
.mf-purpose .label-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.mf-credo h3,
.mf-purpose h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.mf-credo p,
.mf-purpose p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
  font-weight: 600;
  color: var(--text);
  padding-top: 0;
}
@media (max-width: 700px) {
  .mf-credo,
  .mf-purpose { padding: 20px 0 28px; }
  .mf-purpose-text {
    font-size: clamp(12.5px, 3.6vw, 15px);
    line-height: 1.7;
    letter-spacing: -0.02em;
  }
}
.mf-mobile-br { display: none; }
.mf-comma-pc-only {
  display: inline;
}
@media (max-width: 700px) {
  .mf-comma-pc-only {
    display: none;
  }
  .mf-mobile-br { display: inline; }
}
/* PC でのみ改行（スマホでは非表示／後から別レイアウト用） */
br.mf-pc-br {
  display: inline;
}
@media (max-width: 700px) {
  br.mf-pc-br {
    display: none;
  }
}

.mf-values-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}
.mf-values-head .label-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.mf-values-head h3 { font-size: 24px; font-weight: 800; }
/* Values — 画像左 + テキスト右の2カラムレイアウト */
.mf-values-layout {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-top: 40px;
}
.mf-values-figure-wrap {
  flex: 0 0 50%;
  max-width: 50%;
}
/* Values — static elegant flower with fixed upright labels */
.mf-values-wheel {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.mf-values-picture {
  display: block;
  width: 100%;
}
.mf-values-petals {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
  z-index: 1;
}
.mf-values-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.mf-values-cabin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--a)) translateY(-34cqw) rotate(calc(-1 * var(--a)));
}
.mf-values-cabin-in {
  display: block;
  transform: translate(-50%, -50%);
}
.mf-values-cabin-rot {
  display: block;
  text-align: center;
  font-family: var(--font-jp);
  font-size: clamp(7px, 2.6cqw, 19px);
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(0,0,0,0.95),
    0 0 12px rgba(0,0,0,0.9),
    0 0 22px rgba(0,0,0,0.8);
}
.mf-values-cabin-rot b {
  display: block;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.3em;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.mf-values-list {
  flex: 1;
  min-width: 0;
}
.mf-values-dl {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mf-values-item {
  border: none;
  background: none;
  padding: 0;
}
.mf-values-item dt {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mf-values-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.mf-values-item dd {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.7;
  padding-left: 37px;
}
.mf-values-list-hint {
  display: none;
}
@media (max-width: 700px) {
  .mf-values-layout {
    flex-direction: column;
    gap: 36px;
  }
  .mf-values-figure-wrap {
    flex: none;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  /* Mobile shows the same flower + orbit labels as PC (scaled down) */
  .mf-values-list {
    width: 100%;
  }
  .mf-values-dl {
    gap: 24px;
  }
  .mf-values-item dt {
    font-size: 16px;
  }
}

/* Company Business Content (dotstart-inspired) */
.mf-biz-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 80px;
}
.mf-biz-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.mf-biz-title {
  font-family: var(--font-en);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.mf-biz-subtitle {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: 0.08em;
}
@media (max-width: 700px) {
  .mf-biz-header { gap: 10px; margin-bottom: 32px; }
  .mf-biz-title {
    font-size: 24px;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
}
.mf-biz-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.mf-biz-image {
  background: transparent;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  position: sticky;
  top: 180px;
  margin-top: 120px;
}
.mf-biz-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
.mf-biz-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.mf-biz-block-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  line-height: 1.4;
}
.mf-biz-block-ja {
  font-family: var(--font-jp);
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 16px;
}
.mf-biz-block-desc {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.9;
  margin: 0;
}
@media (max-width: 880px) {
  .mf-biz-grid { grid-template-columns: 1fr; gap: 36px; }
  .mf-biz-image { position: static; }
}
@media (max-width: 700px) {
  .mf-biz-block-desc {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .mf-company-hero-lead {
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.55;
    white-space: nowrap;
    letter-spacing: -0.03em;
  }
}

/* Service Flow (two-column dotted timeline) */
.mf-flow-head {
  margin-bottom: 64px;
}
.mf-flow-rule {
  display: none;
}
.mf-flow-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
/* Service flow: numbered list, no connecting lines */
.mf-flow-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.mf-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.mf-flow-col { position: relative; }
.mf-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.mf-flow-steps li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  color: var(--text);
}
.mf-flow-steps .num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
  min-width: 56px;
}
.mf-flow-steps .lbl { font-weight: 500; font-size: 17px; }
@media (max-width: 760px) {
  .mf-flow-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Flow (legacy) */
.mf-flow { display: grid; gap: 16px; }
.mf-flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: var(--bg);
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  align-items: center;
}
.mf-flow-step .step-num {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.mf-flow-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mf-flow-step p { font-size: 14px; color: var(--text-mute); line-height: 1.8; }

/* Company table */
/* Company name as a hero title */
.mf-company-name {
  background: linear-gradient(135deg, rgba(155,122,31,0.18), #000);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.mf-company-name .label-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.mf-company-name h3 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
@media (max-width: 700px) {
  .mf-company-name { padding: 32px 18px; }
  .mf-company-name h3 {
    font-size: 22px;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
}

.mf-company-table { background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.mf-company-table table { width: 100%; border-collapse: collapse; }
.mf-company-table th, .mf-company-table td { text-align: left; padding: 22px 28px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.mf-company-table th { width: 200px; background: var(--cream); font-weight: 600; vertical-align: top; }
.mf-company-table tr:last-child th, .mf-company-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .mf-company-table th, .mf-company-table td { display: block; padding: 14px 20px; width: 100%; }
  .mf-company-table th { border-bottom: 0; padding-bottom: 4px; }
}

/* Strengths — horizontal cards with circular icon + number badge */
.mf-strengths-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}
.mf-strength-row {
  display: flex;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, rgba(155,122,31,0.12), #000);
  border: 1px solid var(--border);
  padding: 32px 44px;
}
.mf-strength-icon {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mf-strength-icon svg {
  width: 44px;
  height: 44px;
  color: #111;
}
.mf-strength-text {
  flex: 1;
  min-width: 0;
}
.mf-strength-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.4;
}
.mf-strength-copy-mobile {
  display: none;
}
.mf-strength-copy-pc {
  display: inline;
}
.mf-strength-desc {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.8;
}
@media (max-width: 700px) {
  .mf-strengths-list { gap: 16px; }
  .mf-strength-row { gap: 20px; padding: 24px 22px; align-items: flex-start; }
  .mf-strength-icon { width: 64px; height: 64px; }
  .mf-strength-icon svg { width: 30px; height: 30px; }
  .mf-strength-title { font-size: 16px; }
  .mf-strength-copy-mobile {
    display: inline;
  }
  .mf-strength-copy-pc {
    display: none;
  }
  .mf-strength-desc { font-size: 13px; }
}

/* Detail section (dotstart-inspired company info) */
.mf-detail-section {
  position: relative;
}
.mf-detail-header {
  margin-bottom: 48px;
  text-align: center;
}
.mf-detail-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.mf-detail-title {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.mf-detail-sub {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.mf-detail-list {
  max-width: 680px;
  margin: 0 auto;
}
.mf-detail-dl {
  display: flex;
  flex-direction: column;
}
.mf-detail-row {
  display: flex;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.mf-detail-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.28);
}
.mf-detail-row dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  width: 160px;
  flex-shrink: 0;
}
.mf-detail-row dd {
  font-size: 16px;
  color: #fff;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .mf-detail-row {
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    text-align: center;
  }
  .mf-detail-row dt { width: auto; }
}

/* CTA banner */
.mf-cta-banner { text-align: center; padding: 80px 24px; }
.mf-cta-banner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.mf-cta-banner p { font-size: 16px; margin-bottom: 32px; opacity: 0.9; }
.mf-cta-banner .mf-btn { background: #fff; color: var(--gold); }
.mf-cta-banner .mf-btn:hover { background: var(--gold); color: #fff; }

/* Service detail page */
.mf-service-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mf-service-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.mf-service-hero .lead { font-size: 16px; color: var(--text-mute); max-width: 680px; line-height: 1.9; }
@media (max-width: 700px) {
  .mf-service-hero-lead {
    font-size: 13px;
    line-height: 1.72;
  }
  #service-fde .mf-sb-title-fde {
    font-size: clamp(26px, 3.5vw, 36px);
    white-space: nowrap;
    letter-spacing: -0.05em;
    line-height: 1.3;
  }
  .mf-sb-desc-fde {
    font-size: 13px;
    line-height: 1.72;
  }
  .mf-term-row {
    white-space: nowrap;
  }
  .mf-term-text {
    overflow: visible;
    white-space: nowrap;
  }
}

.mf-service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.mf-service-block:last-of-type { border-bottom: 0; }
.mf-service-block:nth-child(even) .mf-sb-img { order: 2; }
#service-saas .mf-sb-img { order: 2; }
#service-saas .mf-sb-body { order: 1; }
.mf-sb-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(155,122,31,0.18), #000);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 64px;
  color: var(--gold);
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}
/* Terminal-style service block image */
.mf-sb-term {
  background: #f3f3f3;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  line-height: 1.9;
  letter-spacing: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  aspect-ratio: auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
}
.mf-term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
  font-size: 12px;
  color: #333;
  flex-shrink: 0;
}
.mf-term-bar .dot {
  width: 10px;
  height: 10px;
  background: #4a4a4a;
  display: inline-block;
}
.mf-term-bar .dot:nth-child(1) { background: #ff5f57; }
.mf-term-bar .dot:nth-child(2) { background: #ffbd2e; }
.mf-term-bar .dot:nth-child(3) { background: #28c840; }
.mf-term-bar .mf-term-title { margin-left: 6px; letter-spacing: 0.04em; }
.mf-term-screen {
  flex: 1;
  padding: 20px 22px 28px;
  overflow: hidden;
  color: #111;
  background: #fff;
}
@media (max-width: 700px) {
  .mf-term-screen { padding: 16px 18px 22px; }
}
.mf-term-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.mf-term-prompt {
  color: #111;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.7;
}
.mf-term-text { flex: 1; min-width: 0; font-weight: 700; }
.mf-term-row:last-child .mf-term-text::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--bg);
  vertical-align: -2px;
  margin-left: 2px;
  animation: mf-term-blink 1s steps(2) infinite;
}
@keyframes mf-term-blink {
  50% { background: transparent; }
}
.mf-term-lines { display: none; }
/* Flow-section terminal (full-width variant — typography matches .mf-sb-term) */
.mf-flow-term {
  width: 100%;
  max-width: 820px;
  margin: 32px auto 0;
  min-height: 0;
  aspect-ratio: auto;
}
.mf-flow-term .mf-term-screen { padding: 28px 32px 36px; }
@media (max-width: 700px) {
  .mf-sb-term,
  .mf-flow-term {
    font-size: clamp(12px, 3.6vw, 15px);
    line-height: 1.7;
  }
  .mf-flow-term .mf-term-screen,
  .mf-sb-term .mf-term-screen {
    padding: 18px 12px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mf-term-row:last-child .mf-term-text::after { animation: none; background: transparent; }
}
.mf-sb-body .num { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; display: block; margin-bottom: 12px; }
.mf-sb-body h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.mf-sb-body p { font-size: 15px; color: var(--text); line-height: 2; margin-bottom: 24px; }
.mf-sb-desc-dev {
  font-size: 13.5px;
  line-height: 1.78;
}
.mf-sb-desc-fde {
  font-size: 13.5px;
  line-height: 1.78;
}
@media (max-width: 700px) {
  .mf-sb-desc-dev {
    font-size: clamp(10px, 2.75vw, 12.5px);
    line-height: 1.62;
    letter-spacing: -0.02em;
  }
  .mf-sb-desc-fde {
    font-size: clamp(10px, 2.75vw, 12.5px);
    line-height: 1.62;
    letter-spacing: -0.02em;
  }
  .mf-sb-desc-saas {
    font-size: clamp(10px, 2.75vw, 12.5px);
    line-height: 1.62;
    letter-spacing: -0.02em;
  }
}
.mf-sb-desc-saas {
  font-size: 13.5px;
  line-height: 1.78;
}
.mf-sb-body ul { list-style: none; padding: 0; }
.mf-sb-body li { padding: 10px 0 10px 28px; position: relative; font-size: 14.5px; }
.mf-sb-body li::before { content: ''; position: absolute; left: 0; top: 16px; width: 16px; height: 2px; background: var(--gold); }
@media (max-width: 880px) {
  .mf-service-block { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .mf-service-block:nth-child(even) .mf-sb-img { order: 0; }
  /* Service 02 SaaS: スマホでは body を上、terminal を下に */
  #service-saas .mf-sb-body { order: 1; }
  #service-saas .mf-sb-term { order: 2; }
  #service-fde .mf-sb-body { order: 1; }
  #service-fde .mf-sb-term { order: 2; }
}

/* Footer */
.mf-footer {
  background: var(--bg);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 32px;
  margin-top: 100px;
  border-top: 1px solid var(--border);
}
.mf-footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.mf-footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}
.mf-footer-brand p { font-size: 13px; opacity: 0.7; }
.mf-footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
.mf-footer-nav a { color: var(--gold); text-decoration: none; font-size: 14px; transition: var(--transition); }
.mf-footer-nav a:hover { color: var(--gold-light); }
.mf-footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; opacity: 0.6;
}
@media (max-width: 600px) { .mf-footer-inner { grid-template-columns: 1fr; } .mf-footer-nav { justify-content: flex-start; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Recruit（Dot Start ライク／ライトトーンエリア） ─── */
.mf-main--recruit {
  flex: 1;
}
.mf-recruit-hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--border);
}
.mf-recruit-wave {
  display: none;
}
.mf-recruit-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-inline: auto;
  border: none;
  background: none;
  padding: 24px 0 32px;
}
@media (max-width: 700px) {
  .mf-recruit-hero-inner {
    padding: 16px 0 24px;
    text-align: left;
  }
}
.mf-recruit-hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
}
.mf-recruit-hero-title {
  font-family: var(--font-jp);
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .mf-recruit-hero-title {
    font-size: clamp(12px, 4.25vw, 16px);
    letter-spacing: -0.05em;
    line-height: 1.35;
  }
  .mf-recruit-hero-lead {
    margin-inline: 0;
    text-align: left;
  }
  .mf-recruit-hero-lead p {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .mf-recruit-detail-row dd li {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .mf-recruit-detail-row--profile dd li {
    font-size: clamp(8.5px, 2.45vw, 11px);
    line-height: 1.85;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }
}
.mf-recruit-hero-title strong {
  font-weight: 900;
}
.mf-recruit-hero-lead {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mf-recruit-hero-lead p {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 2;
  color: var(--text-mute);
}

.mf-recruit-charms-section {
  background: var(--bg);
  color: var(--text);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--border);
}
.mf-recruit-charms-heading {
  font-family: var(--font-jp);
  text-align: center;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--white);
}
.mf-recruit-charms-wrap {
  position: relative;
}
.mf-recruit-charms-hint {
  display: none;
  font-family: var(--font-jp);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-mute);
  margin-top: 12px;
  text-align: left;
}
@media (max-width: 1024px) {
  .mf-recruit-charms-hint { display: block; }
}

.mf-recruit-charms-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.12);
}
.mf-recruit-charms-grid::-webkit-scrollbar {
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
}
.mf-recruit-charms-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.mf-recruit-charms-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 3px;
}

.mf-recruit-charm {
  flex: 1 1 0%;
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}
.mf-recruit-charm:first-child {
  border-left: none;
  padding-left: 0;
}
.mf-recruit-charm:last-child {
  padding-right: 4px;
}

@media (min-width: 1200px) {
  .mf-recruit-charm {
    padding-left: 24px;
    padding-right: 24px;
  }
  .mf-recruit-charm:first-child {
    padding-left: 0;
  }
}
@media (max-width: 1024px) {
  .mf-recruit-charms-grid {
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .mf-recruit-charm {
    flex: 0 0 min(200px, 42vw);
    min-width: 180px;
  }
  .mf-recruit-charm:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 20px;
  }
}

.mf-recruit-ch-circle {
  display: block;
  text-align: center;
  margin: 0 auto 18px;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.mf-recruit-ch-title {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 800;
  line-height: 1.58;
  color: var(--white);
  margin-bottom: 14px;
  text-align: center;
}

.mf-recruit-ch-desc {
  font-family: var(--font-jp);
  font-size: clamp(11px, 1.15vw, 13.5px);
  line-height: 1.85;
  color: var(--text-mute);
  letter-spacing: 0.01em;
  text-align: center;
}

.mf-recruit-ch-quote-indent {
  display: inline-block;
  padding-left: 2.75em;
}

/* Recruit — エントリーフォーム */
.mf-recruit-contact-section {
  border-top: 1px solid var(--border);
}
.mf-recruit-contact-head {
  margin-bottom: 56px;
}
.mf-recruit-contact-title {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.mf-recruit-contact-sub {
  font-size: 15px;
  color: var(--text-mute);
}
.mf-recruit-form {
  max-width: 720px;
  margin: 0 auto;
}
.mf-rcf-field {
  margin-bottom: 36px;
}
.mf-rcf-field label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.mf-rcf-req {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #d9534f;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.mf-rcf-opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.mf-rcf-field input,
.mf-rcf-field textarea {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 16px;
  color: #111;
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  transition: var(--transition);
}
.mf-rcf-field input { height: 52px; }
.mf-rcf-field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.mf-rcf-field input:focus,
.mf-rcf-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.mf-rcf-submit-wrap { text-align: center; margin-top: 56px; }
.mf-rcf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 56px;
  padding: 0 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-jp);
  color: #fff;
  background: var(--gold);
  border: 0;
  cursor: pointer;
  transition: var(--transition);
}
.mf-rcf-submit:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(155,122,31,0.45); }

.mf-recruit-bottom-cta {
  margin-bottom: 0;
}

.mf-main--recruit + .mf-footer {
  margin-top: 0;
}

/* Recruit — 募集要項（Dot Start 風） */
.mf-recruit-detail-section {
  border-top: 1px solid var(--border);
}
/* Detail heading left-aligned on recruit page */
.mf-recruit-detail-section .mf-detail-header {
  text-align: left;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
/* Role blocks stacked vertically — framed boxes */
.mf-roles {
  max-width: 760px;
  margin: 0 auto;
}
.mf-role-block {
  margin-bottom: 28px;
  border: 1px solid rgba(201,163,61,0.4);
  background: linear-gradient(135deg, rgba(155,122,31,0.08), #000);
  padding: 32px 36px;
}
.mf-role-block-title {
  font-family: var(--font-jp);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201,163,61,0.5);
}
.mf-role-block-en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.mf-recruit-detail-common {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(201,163,61,0.4);
  background: linear-gradient(135deg, rgba(155,122,31,0.08), #000);
  padding: 8px 36px 32px;
}
.mf-recruit-detail-dl {
  display: flex;
  flex-direction: column;
}
.mf-recruit-detail-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mf-recruit-detail-row:last-child {
  border-bottom: none;
}
.mf-recruit-detail-row dt {
  font-size: 16px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}
.mf-recruit-detail-row dd {
  font-size: 14.5px;
  color: var(--text);
  line-height: 2;
}
.mf-recruit-detail-row dd ul {
  list-style: none;
  padding: 0;
}
.mf-recruit-detail-row dd li {
  padding-left: 1.2em;
  position: relative;
}
.mf-recruit-detail-row dd li::before {
  content: '・';
  position: absolute;
  left: 0;
}
.mf-recruit-detail-row dd p {
  line-height: 2;
}

/* Recruit — 採用フロー（縦タイムライン） */
.mf-recruit-flow-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.mf-recruit-flow-heading {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 64px;
}
.mf-recruit-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}
.mf-recruit-flow-line {
  position: absolute;
  top: 0;
  bottom: 40px;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.35);
  transform: translateX(-50%);
}
.mf-recruit-flow-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
}
.mf-recruit-flow-step--left {
  justify-content: flex-end;
  padding-right: calc(50% + 24px);
  padding-left: 0;
  flex-direction: row;
}
.mf-recruit-flow-step--right {
  justify-content: flex-start;
  padding-left: calc(50% + 24px);
  padding-right: 0;
  flex-direction: row;
}
.mf-recruit-flow-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50% !important;
  z-index: 1;
}
.mf-recruit-flow-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.mf-recruit-flow-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid rgba(255,255,255,0.35);
  margin-top: -4px;
}


@media (max-width: 700px) {
  .mf-recruit-hero-wrap {
    padding: 56px 16px 64px;
  }
  .mf-recruit-charms-section {
    padding: 56px 0 72px;
  }
  .mf-recruit-charms-heading {
    margin-bottom: 40px;
  }
  .mf-recruit-detail-row {
    gap: 10px;
  }
  .mf-recruit-flow-step {
    padding: 22px 0;
  }
  .mf-recruit-flow-label {
    font-size: 15px;
  }
}
