/* ========================================
   MF Consulting - Main Stylesheet
   ======================================== */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2440;
  --primary-light: #2c5282;
  --accent: #c9a227;
  --accent-light: #e8c547;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --bg-dark: #1a202c;
  --border: #e2e8f0;
  --success: #38a169;
  --error: #e53e3e;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Loader ========== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: loading 1.2s ease-in-out infinite;
}

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

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  z-index: 1001;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: 1px;
}

.logo-text {
  font-size: 16px;
  color: #fff;
  transition: var(--transition);
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  position: relative;
}

.header.scrolled .nav a {
  color: var(--text);
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: var(--primary-dark) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--primary);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2440 0%, #1a365d 40%, #2c5282 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,162,39,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(44,82,130,0.4) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(15,36,64,0.6) 0%, transparent 50%);
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 12s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #4299e1;
  bottom: 10%;
  left: -80px;
  animation-delay: -4s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: #68d391;
  top: 40%;
  right: 20%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 120px 24px 80px;
  color: #fff;
}

.hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201,162,39,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 400;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Trust Bar ========== */
.trust-bar {
  background: var(--bg-light);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.trust-item i {
  color: var(--accent);
  font-size: 18px;
}

/* ========== Sections ========== */
.section {
  padding: 100px 0;
}

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

.section-header.light .section-label,
.section-header.light .section-title {
  color: #fff;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
}

.philosophy {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(26,54,93,0.05), rgba(201,162,39,0.08));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-text > p {
  margin-bottom: 24px;
  color: var(--text-light);
}

.mf-meaning {
  background: var(--bg-light);
  padding: 28px;
  border-radius: var(--radius);
  margin-top: 32px;
}

.mf-meaning h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 16px;
}

.mf-meaning ul li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.mf-meaning ul li:last-child {
  border-bottom: none;
}

.mf-meaning strong {
  color: var(--accent);
  font-size: 18px;
  margin-right: 4px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.info-card h4 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.info-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
}

/* ========== Services ========== */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, rgba(201,162,39,0.05) 100%);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.service-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.service-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

.price-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 32px;
}

/* ========== Strengths ========== */
.strengths {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.strengths::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.strength-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.strength-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.4);
}

.strength-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.strength-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.strength-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

/* ========== Target ========== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.target-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-light);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.target-item:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
}

.target-item i {
  color: var(--accent);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.target-item p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.focus-areas {
  text-align: center;
  background: linear-gradient(135deg, rgba(26,54,93,0.04), rgba(201,162,39,0.06));
  padding: 36px;
  border-radius: var(--radius);
}

.focus-areas h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 20px;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.focus-tags span {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}

.focus-tags span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== Representative ========== */
.representative {
  background: var(--bg-light);
}

.rep-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.rep-photo {
  text-align: center;
  position: sticky;
  top: 100px;
}

.photo-frame {
  width: 280px;
  height: 280px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 10px 40px rgba(26,54,93,0.15);
  position: relative;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rep-name h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.rep-name > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.rep-title {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.rep-qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.rep-qualifications span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.rep-qualifications i {
  color: var(--accent);
}

.rep-content h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 8px;
}

.rep-content > p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 15px;
}

.rep-closing {
  font-weight: 600;
  color: var(--primary) !important;
  background: linear-gradient(135deg, rgba(26,54,93,0.05), rgba(201,162,39,0.08));
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 24px 0 !important;
}

.rep-career {
  margin-top: 32px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.rep-career h4 {
  margin-top: 0;
  margin-bottom: 20px;
}

.rep-career ul li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}

.rep-career ul li:last-child {
  border-bottom: none;
}

.rep-career ul li span {
  flex-shrink: 0;
  width: 100px;
  font-weight: 700;
  color: var(--accent);
}

/* ========== Flow ========== */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}

.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  margin: 0 auto 20px;
  font-family: var(--font-display);
}

.flow-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--accent);
  font-size: 20px;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

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

.cta-content h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item i {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form-wrap {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.required {
  color: var(--error);
  font-size: 12px;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  appearance: none;
}

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

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

.checkbox-group {
  margin-bottom: 28px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 400 !important;
  cursor: pointer;
}

.checkbox-label input {
  width: auto !important;
  accent-color: var(--primary);
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: #c6f6d5;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.form-message.error {
  background: #fed7d7;
  color: #742a2a;
  border: 1px solid #feb2b2;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo .logo-mark {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.footer-logo .logo-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--accent);
  width: 16px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  opacity: 0.5;
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(26,54,93,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========== Privacy / Tokushoho Pages ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 140px 0 60px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.7;
  font-size: 14px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.legal-content h2 {
  font-size: 20px;
  color: var(--primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}

.legal-content th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary);
  width: 30%;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .about-grid,
  .rep-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rep-photo {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-arrow {
    display: none;
  }

  .flow-steps {
    gap: 16px;
  }

  .flow-step {
    max-width: none;
    min-width: calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    padding: 100px 32px 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav a {
    display: block;
    padding: 16px 0;
    color: var(--text) !important;
    font-size: 16px;
  }

  .nav-cta {
    margin-top: 24px;
    text-align: center;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .hero-stats {
    gap: 28px;
  }

  .stat-num {
    font-size: 26px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-width: 100%;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 70px 0;
  }

  .photo-frame {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .trust-items {
    gap: 20px;
  }

  .trust-item {
    font-size: 13px;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
