/* ========== LOADING SCREEN ========== */
#loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99999;
  background: #000;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
#loading-screen.fade-out { opacity: 0; }
#loading-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ========== UTILITY ========== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: #111; color: #fff; }
.section-gray { background: #f5f5f5; }
.text-center { text-align: center; }
.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}
.section-dark .section-label { color: #666; }
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-dark .section-desc { color: #999; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline { background: transparent; color: #111; border: 2px solid #111; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: #eee; }
.btn-white-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-white-outline:hover { background: #fff; color: #111; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-full { width: 100%; text-align: center; }
.btn-sm { padding: 10px 24px; font-size: 13px; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo { font-size: 24px; font-weight: 900; letter-spacing: 0.15em; }
.logo a { color: #111; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: #555; transition: color 0.2s; }
.nav a:hover { color: #111; }
.nav .btn { padding: 10px 24px; font-size: 13px; color: #fff !important; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ========== HERO ========== */
.hero {
  padding: 180px 0 120px;
  background: #111;
  color: #fff;
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}
.hero .container { position: relative; z-index: 1; pointer-events: none; }
.hero .container a, .hero .container button { pointer-events: auto; }
.hero-label { font-size: 13px; letter-spacing: 0.2em; color: #888; margin-bottom: 24px; display: block; }
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero-title span { display: block; font-size: 22px; font-weight: 400; color: #aaa; margin-top: 12px; letter-spacing: 0; }
.hero-desc { font-size: 17px; color: #999; max-width: 560px; margin-bottom: 40px; line-height: 1.8; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num { font-size: 36px; font-weight: 800; }
.hero-stat-label { font-size: 12px; color: #888; margin-top: 4px; }

/* Hero entrance animations */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes statCount {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label { animation: heroFadeIn 1s ease 0.2s both; }
.hero-title { animation: heroFadeUp 1s ease 0.4s both; }
.hero-desc { animation: heroFadeUp 1s ease 0.7s both; }
.hero .btn-group { animation: heroFadeUp 1s ease 1s both; }
.hero-stats { animation: heroFadeIn 1.2s ease 1.3s both; }
.hero-stats > div:nth-child(1) { animation: statCount 0.8s ease 1.5s both; }
.hero-stats > div:nth-child(2) { animation: statCount 0.8s ease 1.7s both; }
.hero-stats > div:nth-child(3) { animation: statCount 0.8s ease 1.9s both; }

/* ========== PAGE HEADER ========== */
.page-header, .page-header-dark {
  padding: 140px 0 60px;
  background: #000;
  color: #fff;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
.page-header .container, .page-header-dark .container { position: relative; z-index: 1; }
.page-header-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page-header h1, .page-header-dark h1 { font-size: 36px; font-weight: 800; }
.page-header p, .page-header-dark p { font-size: 14px; color: #fff; margin-top: 8px; }
.page-header .section-label, .page-header-dark .section-label { color: rgba(255,255,255,0.7); }

/* ========== CARDS ========== */
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid #eee;
  padding: 32px;
  transition: background 0.2s;
}
.card:hover { background: #f9f9f9; }
.card-num { font-size: 48px; font-weight: 900; color: #eee; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.card p { font-size: 14px; color: #666; line-height: 1.7; }
.card-dark { background: #111; color: #fff; border-color: #111; }
.card-dark:hover { background: #1a1a1a; }
.card-dark p { color: #aaa; }

/* ========== SERVICE CARDS ========== */
.service-card {
  border: 1px solid #eee;
  padding: 48px 32px;
  transition: background 0.2s;
  position: relative;
}
.service-card:hover { background: #f9f9f9; }
.service-card-tag { font-size: 11px; letter-spacing: 0.15em; color: #111; margin-bottom: 20px; display: block; }
.service-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.service-card p { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.7; }
.service-card .price { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.service-card .arrow { font-size: 20px; position: absolute; bottom: 32px; right: 32px; color: #ccc; transition: color 0.2s; }
.service-card:hover .arrow { color: #111; }
.service-card-main { background: #111; color: #fff; border-color: #111; }
.service-card-main:hover { background: #222; }
.service-card-main .service-card-tag { color: #666; }
.service-card-main p { color: #aaa; }
.service-card-main .arrow { color: #555; }
.service-card-main:hover .arrow { color: #fff; }

/* ========== TABLE ========== */
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
.comp-table th { font-weight: 700; font-size: 13px; background: #f5f5f5; letter-spacing: 0.05em; }
.comp-table td:first-child { font-weight: 600; }
.section-dark .comp-table th { background: #1a1a1a; color: #999; border-color: #333; }
.section-dark .comp-table td { border-color: #333; color: #ccc; }
.section-dark .comp-table td:first-child { color: #fff; }

/* ========== FLOW ========== */
.flow-steps { display: flex; gap: 0; counter-reset: step; }
.flow-step {
  flex: 1;
  padding: 32px 24px;
  border: 1px solid #eee;
  position: relative;
  counter-increment: step;
}
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 48px;
  font-weight: 900;
  color: #111;
  display: block;
  margin-bottom: 16px;
}
.flow-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: #666; }

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pricing-card { border: 1px solid #ddd; padding: 48px 32px; text-align: center; }
.pricing-card-popular { background: #111; color: #fff; border-color: #111; transform: scale(1.02); position: relative; }
.pricing-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; font-size: 11px; font-weight: 700; padding: 4px 16px; letter-spacing: 0.1em; }
.pricing-name { font-size: 14px; letter-spacing: 0.1em; color: #999; margin-bottom: 8px; }
.pricing-card-popular .pricing-name { color: #888; }
.pricing-price { font-size: 40px; font-weight: 900; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 400; }
.pricing-unit { font-size: 13px; color: #999; margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid #eee; }
.pricing-card-popular .pricing-features li { border-color: #333; color: #ccc; }
.pricing-features li::before { content: '\2713\0020'; font-weight: 700; }

/* ========== FAQ ========== */
.faq-item { border-bottom: 1px solid #eee; padding: 24px 0; }
.faq-q { font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::before { content: 'Q.'; margin-right: 12px; color: #999; }
.faq-q-toggle { font-size: 24px; color: #ccc; transition: transform 0.3s; flex-shrink: 0; }
.faq-a { font-size: 14px; color: #666; padding: 16px 0 0 28px; line-height: 1.8; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q-toggle { transform: rotate(45deg); }

/* ========== LP ========== */
.lp-fail-box { border: 1px solid #555; padding: 40px 32px 32px; position: relative; margin-bottom: 0; }
.lp-fail-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #111; padding: 4px 20px; font-size: 12px; font-weight: 700; color: #ccc; letter-spacing: 0.1em; white-space: nowrap; }
.lp-fail-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-fail-list li { font-size: 14px; color: #aaa; padding-left: 20px; position: relative; }
.lp-fail-list li::before { content: '\2717'; position: absolute; left: 0; color: #666; }

.lp-solution-box { border: 2px solid #fff; padding: 40px 32px 32px; position: relative; }
.lp-solution-label { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #fff; color: #111; padding: 4px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; white-space: nowrap; }

.lp-reasons { max-width: 800px; margin: 48px auto 0; }
.lp-reason { display: flex; gap: 32px; padding: 40px 0; border-bottom: 1px solid #eee; }
.lp-reason:last-child { border-bottom: none; }
.lp-reason-num { font-size: 64px; font-weight: 900; color: #eee; line-height: 1; flex-shrink: 0; }
.lp-reason-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.lp-reason-content p { font-size: 14px; color: #666; line-height: 1.8; }

@media (max-width: 768px) {
  .lp-fail-list { grid-template-columns: 1fr; }
  .lp-reason { flex-direction: column; gap: 12px; }
  .lp-reason-num { font-size: 48px; }
}

/* ========== PARTNER ========== */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.partner-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border: 1px solid #333;
  transition: border-color 0.2s;
}
.partner-card:hover { border-color: #666; }
.partner-logo-wrap { width: 120px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.partner-logo-wrap-lg { width: 180px; height: 100px; }
.partner-logo { width: 100%; height: 100%; object-fit: contain; }
.partner-info { flex: 1; }
.partner-name { font-size: 15px; font-weight: 700; color: #fff; display: block; margin-bottom: 8px; }
.partner-desc { font-size: 13px; color: #999; line-height: 1.7; margin-bottom: 12px; }
.partner-link { font-size: 12px; color: #666; letter-spacing: 0.05em; transition: color 0.2s; }
.partner-card:hover .partner-link { color: #fff; }
@media (max-width: 768px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { flex-direction: column; text-align: center; }
  .partner-logo-wrap { width: 100px; height: 50px; }
}

/* ========== CTA ========== */
.cta-section { padding: 80px 0; background: #111; color: #fff; text-align: center; }
.cta-title { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.cta-desc { font-size: 16px; color: #999; margin-bottom: 40px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ========== FORM ========== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; }
.form-group-full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.05em; }
.form-label .req { font-size: 10px; background: #111; color: #fff; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.form-input, .form-select, .form-textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: #111; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { grid-column: 1 / -1; text-align: center; margin-top: 16px; }
.form-note { font-size: 13px; color: #999; margin-bottom: 16px; }
.form-note a { text-decoration: underline; }

/* ========== TEAM ========== */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.team-card { display: flex; gap: 24px; }
.team-photo { width: 120px; height: 120px; background: #eee; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #bbb; border-radius: 4px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: #999; margin-bottom: 12px; }
.team-desc { font-size: 14px; color: #666; line-height: 1.7; }

/* ========== DL ========== */
.info-dl { display: grid; grid-template-columns: 140px 1fr; gap: 0; max-width: 600px; }
.info-dl dt, .info-dl dd { padding: 14px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.info-dl dt { font-weight: 600; color: #999; }

/* ========== NEWS LIST ========== */
.news-item { border-bottom: 1px solid #eee; padding: 20px 0; display: flex; gap: 24px; align-items: baseline; }
.news-date { font-size: 13px; color: #999; white-space: nowrap; }
.news-tag { font-size: 11px; padding: 2px 8px; white-space: nowrap; font-weight: 600; }
.news-tag-press { background: #111; color: #fff; }
.news-tag-service { background: #eee; color: #111; }
.news-tag-info { background: #ddd; color: #333; }
.news-title { font-size: 15px; font-weight: 600; }
.news-title:hover { text-decoration: underline; }

/* ========== FEATURE LIST ========== */
.feature-list { list-style: none; }
.feature-list li { padding: 16px 0; border-bottom: 1px solid #eee; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: '\25A0'; color: #111; font-size: 10px; margin-top: 6px; flex-shrink: 0; }
.section-dark .feature-list li { border-color: #333; color: #ccc; }
.section-dark .feature-list li::before { color: #fff; }

/* ========== CYCLE ========== */
.cycle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: cycle; }
.cycle-step { border: 1px solid #eee; padding: 32px 24px; text-align: center; counter-increment: cycle; }
.cycle-step::before { content: 'MONTH ' counter(cycle); font-size: 11px; letter-spacing: 0.15em; color: #999; display: block; margin-bottom: 12px; }
.cycle-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cycle-step p { font-size: 13px; color: #666; }

/* ========== THANKS ========== */
.thanks-section { padding: 200px 0; text-align: center; }
.thanks-icon { font-size: 64px; margin-bottom: 24px; }
.thanks-title { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.thanks-desc { font-size: 16px; color: #666; margin-bottom: 40px; max-width: 480px; margin: 0 auto 40px; }

/* ========== LEGAL ========== */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid #111; }
.legal-content h3 { font-size: 16px; font-weight: 700; margin: 32px 0 12px; }
.legal-content p { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 24px; }
.legal-content li { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 4px; }

/* ========== RECRUIT ========== */
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }
.recruit-mission-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.recruit-mission-left .section-title { margin-bottom: 16px; }
.recruit-mission-left .section-desc { max-width: none; }
.recruit-mission-right p { font-size: 15px; color: #444; line-height: 2; margin-bottom: 24px; }
.recruit-mission-right strong { color: #111; }

.recruit-culture-grid { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.recruit-culture-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid #ddd; }
.recruit-culture-label { font-size: 13px; font-weight: 700; color: #111; min-width: 140px; flex-shrink: 0; letter-spacing: 0.05em; padding-top: 2px; }
.recruit-culture-text { font-size: 14px; color: #666; line-height: 1.8; }

.recruit-positions { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.recruit-position { border: 1px solid #333; }
.recruit-position-header { padding: 24px 32px 0; }
.recruit-position-tag { font-size: 11px; letter-spacing: 0.1em; color: #888; display: inline-block; margin-bottom: 8px; }
.recruit-position-title { font-size: 20px; font-weight: 700; color: #fff; }
.recruit-position-body { padding: 16px 32px 24px; }
.recruit-position-body p { font-size: 14px; color: #aaa; line-height: 1.8; margin-bottom: 16px; }
.recruit-position-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.recruit-position-tags span { font-size: 11px; padding: 4px 12px; border: 1px solid #444; color: #888; }

@media (max-width: 768px) {
  .card-grid-5 { grid-template-columns: 1fr; }
  .recruit-mission-split { grid-template-columns: 1fr; gap: 32px; }
  .recruit-culture-item { flex-direction: column; gap: 8px; }
  .recruit-culture-label { min-width: auto; }
  .recruit-position-header, .recruit-position-body { padding-left: 20px; padding-right: 20px; }
}

/* ========== FOOTER ========== */
.footer { background: #111; color: #fff; padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 20px; font-weight: 900; letter-spacing: 0.15em; margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: #888; line-height: 1.7; }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: #666; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: #999; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: #666; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .flow-steps { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-popular { transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 24px; border-bottom: 1px solid #eee; gap: 16px; }
  .menu-toggle { display: block; }
  .cycle-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 28px; }
  .info-dl { grid-template-columns: 120px 1fr; }
}
