/*
Theme Name: HAYABUSA Manpower Agent
Theme URI: https://hayabusamanpower.com
Author: HAYABUSA合同会社
Author URI: https://hayabusamanpower.com
Description: Official theme for HAYABUSA Manpower Agent — Japanese employment placement agency connecting foreign workers with Japanese companies.
Version: 1.0.0
License: Private
Text Domain: hayabusa
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #0d1f3c;
  --red:    #c0392b;
  --red-lt: #e74c3c;
  --gold:   #d4a843;
  --cream:  #f7f4ef;
  --white:  #ffffff;
  --gray:   #6b7280;
  --light:  #eef1f6;
  --serif:  'Noto Serif JP', 'Playfair Display', serif;
  --sans:   'Noto Sans JP', sans-serif;
  --nav-h:  64px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--navy); line-height: 1.8; overflow-x: hidden; }

/* LANG SWITCHER */
.lang-switcher { position: fixed; top: 14px; right: 16px; z-index: 300; display: flex; gap: 4px; }
.lang-btn { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding: .32rem .8rem; border-radius: 20px; cursor: pointer; transition: all .2s; font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
.lang-btn.active, .lang-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--navy); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: var(--nav-h); box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.nav-logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: .05em; text-decoration: none; }
.nav-logo .kanji { color: var(--gold); }
.nav-logo .tagline { font-family: var(--sans); font-size: .58rem; font-weight: 300; color: rgba(255,255,255,.5); letter-spacing: .08em; display: block; line-height: 1; margin-top: 3px; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin-right: 140px; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .82rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--red) !important; color: var(--white) !important; padding: .38rem 1rem !important; border-radius: 4px; }
.nav-cta:hover { background: var(--red-lt) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--navy); z-index: 99; padding: 1.5rem 5% 2rem; box-shadow: 0 8px 30px rgba(0,0,0,.3); flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 1rem; font-weight: 500; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.07); display: block; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-cta { margin-top: 1rem; background: var(--red) !important; color: var(--white) !important; text-align: center; border-radius: 6px; padding: .9rem 0 !important; font-weight: 600 !important; border: none !important; }

/* HERO */
.hero { min-height: 100svh; background: linear-gradient(135deg, var(--navy) 0%, #1a3560 60%, #0d2a50 100%); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 5% 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-accent { position: absolute; top: -80px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; width: 100%; }
.hero-badge { display: inline-block; background: rgba(212,168,67,.15); border: 1px solid rgba(212,168,67,.4); color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding: .4rem 1rem; border-radius: 20px; margin-bottom: 1.4rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 1.1rem; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { font-size: clamp(.95rem, 2.5vw, 1.05rem); color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 2rem; font-weight: 300; }
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; }
.btn-primary { background: var(--red); color: var(--white); padding: .9rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, transform .2s; -webkit-tap-highlight-color: transparent; min-height: 48px; display: inline-flex; align-items: center; }
.btn-primary:hover { background: var(--red-lt); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); padding: .9rem 1.8rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .2s, color .2s; min-height: 48px; display: inline-flex; align-items: center; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat { border-left: 2px solid var(--gold); padding-left: 1rem; }
.stat-num { font-family: var(--serif); font-size: 1.7rem; color: var(--white); font-weight: 700; line-height: 1; }
.stat-label { font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .06em; margin-top: .2rem; }

/* SECTIONS */
section { padding: 80px 5%; }
.section-tag { display: inline-block; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .7rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.55rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: .9rem; }
.section-sub { color: var(--gray); font-size: clamp(.9rem, 2vw, 1rem); max-width: 580px; font-weight: 300; }

/* VISION/MISSION */
.vm-section { background: var(--white); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2.5rem; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 30px rgba(13,31,60,.08); }
.vm-card { padding: 2.5rem; }
.vm-card.vision { background: var(--navy); }
.vm-card.mission { background: #132843; }
.vm-icon { width: 46px; height: 46px; background: rgba(212,168,67,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; font-size: 1.3rem; }
.vm-card h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin-bottom: .8rem; }
.vm-card p { color: rgba(255,255,255,.8); font-size: .93rem; font-weight: 300; }

/* WHY US */
.why-section { background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.5rem; }
.feature-card { background: var(--white); border-radius: 14px; padding: 2rem; border: 1px solid rgba(13,31,60,.07); transition: box-shadow .25s, transform .25s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); opacity: 0; transition: opacity .25s; }
.feature-card:hover { box-shadow: 0 8px 40px rgba(13,31,60,.1); transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 900; color: rgba(13,31,60,.07); line-height: 1; margin-bottom: .6rem; }
.feature-card h4 { font-size: .97rem; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.feature-card p { font-size: .88rem; color: var(--gray); font-weight: 300; }

/* LANGUAGES */
.languages-section { background: var(--navy); }
.languages-section .section-title { color: var(--white); }
.languages-section .section-sub { color: rgba(255,255,255,.55); }
.lang-grid { display: flex; gap: .85rem; margin-top: 2rem; flex-wrap: wrap; }
.lang-pill { display: flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 40px; padding: .65rem 1.3rem; color: var(--white); font-weight: 500; font-size: .93rem; transition: background .2s, border-color .2s; }
.lang-pill:hover { background: rgba(212,168,67,.15); border-color: var(--gold); }
.lang-flag { font-size: 1.2rem; }

/* COMPANY */
.company-section { background: var(--white); }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 2.5rem; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid rgba(13,31,60,.07); }
.info-table tr:last-child { border-bottom: none; }
.info-table th { text-align: left; padding: .85rem .8rem .85rem 0; font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--gray); width: 38%; vertical-align: top; }
.info-table td { padding: .85rem 0; font-size: .93rem; color: var(--navy); }
.license-badge { display: inline-block; background: rgba(13,31,60,.06); border: 1px solid rgba(13,31,60,.12); border-radius: 4px; padding: .2rem .6rem; font-size: .8rem; font-family: monospace; color: var(--navy); }
.map-placeholder { background: var(--light); border-radius: 14px; overflow: hidden; height: 280px; }
.map-placeholder iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%); }

/* CONTACT */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.5rem; }
.contact-card { background: var(--white); border-radius: 14px; padding: 1.8rem; display: flex; align-items: flex-start; gap: 1rem; border: 1px solid rgba(13,31,60,.07); transition: box-shadow .2s; }
.contact-card:hover { box-shadow: 0 6px 30px rgba(13,31,60,.09); }
.contact-icon { width: 44px; height: 44px; flex-shrink: 0; background: linear-gradient(135deg, var(--navy), #1a3560); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-card h4 { font-size: .76rem; font-weight: 600; letter-spacing: .07em; color: var(--gray); margin-bottom: .3rem; text-transform: uppercase; }
.contact-card p, .contact-card a { font-size: .93rem; color: var(--navy); font-weight: 500; text-decoration: none; word-break: break-all; }
.contact-card a:hover { color: var(--red); }

/* FOOTER */
.site-footer { background: var(--navy); color: rgba(255,255,255,.55); text-align: center; padding: 2.5rem 5%; font-size: .85rem; }
.site-footer strong { color: var(--gold); }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.footer-social a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .82rem; transition: color .2s; padding: .4rem; }
.footer-social a:hover { color: var(--gold); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hero-badge { animation: fadeUp .6s ease both; }
.hero h1    { animation: fadeUp .7s .1s ease both; }
.hero p     { animation: fadeUp .7s .2s ease both; }
.hero-btns  { animation: fadeUp .7s .3s ease both; }
.hero-stats { animation: fadeUp .7s .4s ease both; }

/* LANG VISIBILITY */
[data-lang] { display: none; }
.lang-ja [data-lang="ja"] { display: revert; }
.lang-en [data-lang="en"] { display: revert; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .vm-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
