/* ============================================
   合同会社西崎工業 - Corporate Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0a1628;
  --primary-light: #1a2d4a;
  --accent: #c8a45c;
  --accent-light: #e0c882;
  --accent-dark: #a88434;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

ul {
  list-style: none;
}

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

.pc-only { display: inline; }
.sp-only { display: none; }

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

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

.loading-logo {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1s ease;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.header.scrolled .header-inner {
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.logo-sub {
  font-family: var(--font-en);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
}

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

.nav-list a:hover {
  color: var(--white);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-contact {
  background: var(--accent) !important;
  color: var(--primary) !important;
  padding: 8px 20px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-contact::after {
  display: none !important;
}

.nav-contact:hover {
  background: var(--accent-light) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 21px;
}

.hamburger span:nth-child(3) {
  top: 30px;
}

.hamburger.active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0a1628 0%, #1a2d4a 40%, #0f2440 70%, #0a1628 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 164, 92, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}

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

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(200, 164, 92, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-lead {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-title-line {
  display: block;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 2;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.06em;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(200, 164, 92, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-accent:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1rem;
}

/* --- Section Common --- */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.section-header-light .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 16px;
  font-weight: 300;
}

.section-header-light .section-desc {
  color: rgba(255,255,255,0.7);
}

/* --- Message Section --- */
.section-message {
  background: var(--gray-50);
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.message-photo {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
}

.message-text {
  padding: 20px 0;
}

.message-text .section-label {
  display: block;
  margin-bottom: 16px;
}

.message-text .section-title {
  margin-bottom: 32px;
}

.message-body {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.message-sign {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.message-sign-title {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.message-sign-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: 0.1em;
}

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

.philosophy-card {
  background: var(--primary);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(200, 164, 92, 0.08);
  border-radius: 50%;
}

.philosophy-title {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  font-weight: 600;
}

.philosophy-main {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.philosophy-desc {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.info-table th,
.info-table td {
  padding: 18px 0;
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 120px;
  font-weight: 600;
  color: var(--gray-900);
}

.info-table td {
  color: var(--gray-700);
}

/* --- Business Section --- */
.section-business {
  background: var(--gray-50);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.business-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.business-card-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.business-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.business-card:hover .business-card-img {
  transform: scale(1.08);
}

.business-card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1;
}

.business-card-body {
  padding: 32px;
}

.business-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.business-card-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 20px;
}

.business-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-card-list li {
  font-size: 0.82rem;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
}

.business-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Detail Button */

/* --- Strength Section --- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.strength-item {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.strength-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.strength-item:hover::before {
  transform: scaleX(1);
}

.strength-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.strength-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.strength-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.strength-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.9;
}

/* --- Recruit Section --- */
.section-recruit {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.recruit-bg {
  position: absolute;
  inset: 0;
  background: url('images/recruit-bg.png') center/cover no-repeat;
  opacity: 0.3;
}

.recruit-message {
  text-align: center;
  margin-bottom: 64px;
}

.recruit-message p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 2.2;
  font-weight: 300;
}

.recruit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.recruit-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.recruit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.recruit-card-highlight {
  background: rgba(200, 164, 92, 0.08);
  border-color: var(--accent);
}

.recruit-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.recruit-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--accent);
}

.recruit-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.recruit-card-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 24px;
}

.recruit-card-points {
  text-align: left;
  margin-bottom: 28px;
}

.recruit-card-points li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.recruit-card-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* --- Partner Section --- */
.section-partner {
  background: var(--gray-50);
}

.partner-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--accent);
}

.partner-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.partner-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 2;
  margin-bottom: 32px;
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.partner-stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.partner-stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent-dark);
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.contact-card-info {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.contact-card-detail {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.required {
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-ja);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

.form-group textarea {
  resize: vertical;
}

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

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: var(--white);
}

.footer-top {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

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

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

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

.footer-nav ul a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.footer-nav ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 100;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Animations --- */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-anim="fade-right"] {
  transform: translateX(-40px);
}

[data-anim="fade-left"] {
  transform: translateX(40px);
}

[data-anim].visible {
  opacity: 1;
  transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .header {
    padding: 0 24px;
  }

  .header.scrolled {
    padding: 0 24px;
  }

  .message-grid {
    gap: 40px;
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto;
  }

  .strength-grid {
    gap: 24px;
  }

  .recruit-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .partner-banner {
    grid-template-columns: 1fr;
    padding: 40px;
  }

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

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .business-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1001;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav-list li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.active .nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active .nav-list li:nth-child(1) { transition-delay: 0.08s; }
  .nav.active .nav-list li:nth-child(2) { transition-delay: 0.12s; }
  .nav.active .nav-list li:nth-child(3) { transition-delay: 0.16s; }
  .nav.active .nav-list li:nth-child(4) { transition-delay: 0.20s; }
  .nav.active .nav-list li:nth-child(5) { transition-delay: 0.24s; }
  .nav.active .nav-list li:nth-child(6) { transition-delay: 0.28s; }

  .nav-list a {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
  }

  .nav-contact {
    margin-top: 8px;
  }

  .section {
    padding: 80px 0;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .partner-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .partner-stat-num {
    font-size: 1.8rem;
  }

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

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

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

  .philosophy-card {
    padding: 32px 24px;
  }

  .philosophy-main {
    font-size: 1.3rem;
  }

  .partner-banner {
    padding: 32px 24px;
  }

  .partner-title {
    font-size: 1.4rem;
  }
}
