/* Stylesheet for Hayashi Tax Accountant & Labor Attorney Office recruiting page */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --primary-color: #0f2537;      /* Trust Navy */
  --primary-light: #1e3d59;      /* Lighter Navy */
  --secondary-color: #c5a880;    /* Warm Bronze Gold */
  --secondary-hover: #b3946a;    /* Darker Bronze */
  --accent-color: #0d9488;       /* Teal for Labor Office */
  --accent-light: #ccfbf1;       /* Light Teal bg */
  
  --bg-color: #f8fafc;           /* Light Slate Gray */
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-main: #1e293b;          /* Charcoal */
  --text-muted: #64748b;         /* Slate Gray */
  --border-color: #e2e8f0;       /* Border Slate */
  
  --success-color: #10b981;      /* Emerald Green */
  --error-color: #ef4444;        /* Crimson Red */
  
  --font-family-base: 'Noto Sans JP', sans-serif;
  --font-family-title: 'Montserrat', 'Noto Sans JP', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --shadow-sm: 0 2px 8px rgba(15, 37, 55, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 37, 55, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 37, 55, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Base resets and defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Glassmorphism utility class */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
}

/* Typography and headings */
h1, h2, h3, h4 {
  font-family: var(--font-family-title);
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  margin-top: 1rem;
}

.section-title span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary-color);
  font-weight: 600;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.2rem 0;
}

header.scrolled {
  background: rgba(15, 37, 55, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 0;
}

header.scrolled .logo-text {
  color: #fff;
}

header.scrolled .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

header.scrolled nav a {
  color: rgba(255, 255, 255, 0.8);
}

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

header.scrolled .cta-nav-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
}

header.scrolled .cta-nav-btn:hover {
  background: #fff;
  transform: translateY(-2px);
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary-color), #eed5b5);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15, 37, 55, 0.15);
}

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

.logo-text {
  font-size: 1.25rem;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: var(--transition-fast);
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding: 0.3rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

.cta-nav-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.cta-nav-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  transition: var(--transition-fast);
}

header.scrolled .menu-toggle span {
  background-color: #fff;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
              #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(15, 37, 55, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 37, 55, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 620px;
  z-index: 2;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.hero h2 {
  font-size: 3rem;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h2 span.gradient {
  background: linear-gradient(135deg, var(--primary-color) 30%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(15, 37, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(15, 37, 55, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-3px);
}

.hero-visual {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  animation: fadeIn 1.2s ease-out forwards;
}

.hero-circle-bg {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
  border-radius: 50%;
  position: absolute;
  z-index: -1;
  animation: floatBg 8s infinite alternate ease-in-out;
}

.hero-graphic {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--secondary-color);
}

.graphic-header {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.graphic-body {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.graphic-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.graphic-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-weight: bold;
}

.graphic-info {
  display: flex;
  flex-direction: column;
}

.graphic-info-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

.graphic-info-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  gap: 0.5rem;
}

.scroll-mouse {
  width: 22px;
  height: 38px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* Sections General */
section {
  padding: 7rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* About Us Section */
#about {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.about-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.feature-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  font-family: var(--font-family-title);
  margin-bottom: 0.5rem;
}

.feature-title {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-image-wrap {
  position: relative;
}

.about-img-bg {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.about-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 37, 55, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: #fff;
}

.about-stat {
  display: flex;
  gap: 2.5rem;
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-family-title);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
}

/* Services / Features Section */
#services {
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
  transform: scaleX(0);
  transform-origin: left;
}

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

.service-card:hover::before {
  transform: scaleX(1);
  background-color: var(--secondary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Careers (Job Info) Section */
#careers {
  background-color: #ffffff;
}

.career-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  background: var(--bg-color);
  padding: 0.5rem;
  border-radius: 50px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.career-pane {
  display: none;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.career-pane.active {
  display: block;
}

.career-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.job-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-detail-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.job-detail-row:last-child {
  border-bottom: none;
}

.job-label {
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: inline-block;
}

.job-value {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.career-meta-box {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}

.meta-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.meta-title svg {
  color: var(--secondary-color);
}

.meta-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.meta-item-icon {
  color: var(--success-color);
  margin-top: 0.2rem;
}

.meta-item-text {
  color: var(--text-main);
}

.meta-cta-btn {
  width: 100%;
}

/* Entry Sheet (Form) Section */
#entry {
  background-color: var(--bg-color);
  position: relative;
}

.entry-wrapper {
  max-width: 850px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Mode Indicators on Form header */
.form-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.form-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-job-toggle {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.toggle-option {
  position: relative;
  cursor: pointer;
  padding: 0.8rem 2rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition-smooth);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toggle-option.selected {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.toggle-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Form Styling */
.entry-form {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.2rem;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 700;
  border-left: 4px solid var(--secondary-color);
  padding-left: 0.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-grid.full-width {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group.col-span-2 {
  grid-column: span 2;
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.required-badge {
  background-color: var(--error-color);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}

.optional-badge {
  background-color: var(--text-muted);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
}

/* Inputs design */
.input-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  outline: none;
}

.input-control:focus {
  border-color: var(--primary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 37, 55, 0.05);
}

.input-control.invalid {
  border-color: var(--error-color);
  background-color: rgba(239, 68, 68, 0.02);
}

.input-error-msg {
  font-size: 0.78rem;
  color: var(--error-color);
  font-weight: 500;
  margin-top: 0.2rem;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

/* Conditional Form Sections animations */
.conditional-field {
  display: none;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.conditional-field.visible {
  display: block;
}

/* Select element styling styling */
select.input-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

/* File Drop Zone (Resume & Work History Upload) */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: var(--primary-color);
  background: rgba(15, 37, 55, 0.02);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.file-dropzone:hover .dropzone-icon {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.dropzone-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.dropzone-text span {
  color: var(--secondary-color);
  font-weight: 700;
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-input {
  display: none;
}

.file-preview-list {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.file-preview-icon {
  color: var(--secondary-color);
}

.file-preview-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--error-color);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.file-preview-delete:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Textarea customization */
textarea.input-control {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox design */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-main);
  user-select: none;
}

.checkbox-label input {
  margin-top: 0.3rem;
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

/* Submit Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-submit {
  width: 100%;
  max-width: 320px;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
}

/* Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 37, 55, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  background: var(--primary-color);
  color: #fff;
  padding: 1.8rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal-body {
  padding: 2.2rem;
  overflow-y: auto;
}

.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.confirm-group-title {
  font-size: 0.95rem;
  color: var(--secondary-color);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-top: 0.8rem;
}

.confirm-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.confirm-label {
  font-weight: 700;
  color: var(--primary-color);
}

.confirm-value {
  color: var(--text-main);
  word-break: break-all;
  white-space: pre-wrap;
}

.modal-footer {
  padding: 1.5rem 2.2rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Success Card Overlay inside Form Container */
.success-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.success-screen.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
  transform: scale(0.6);
  opacity: 0;
}

.success-screen.active .success-icon-wrap {
  animation: popSuccess 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.success-screen h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.success-screen p {
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--secondary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-info .logo-text {
  color: #ffffff;
}

.footer-info .logo-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-row svg {
  color: var(--secondary-color);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.footer-links-list a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--secondary-color);
  padding-left: 0.3rem;
}

.footer-map-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    height: auto;
    transform: translateY(0);
  }
}

@keyframes floatBg {
  from {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  to {
    transform: translateY(-20px) scale(1.05) rotate(10deg);
  }
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(13, 148, 136, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes popSuccess {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Spinner for submit loading state */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.loading .spinner {
  display: block;
}

.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsiveness - Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 60px;
  }
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-desc {
    max-width: 600px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .career-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .career-meta-box {
    position: static;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }
  .logo-text {
    font-size: 1.15rem;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(15, 37, 55, 0.1);
    flex-direction: column;
    padding: 8rem 2rem 2rem;
    align-items: flex-start;
    gap: 1.8rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  nav.active {
    right: 0;
  }
  .menu-toggle {
    display: block;
  }
  .cta-nav-btn {
    width: 100%;
    text-align: center;
  }
  .hero h2 {
    font-size: 2.4rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-stat {
    position: static;
    margin-top: 2rem;
    justify-content: space-around;
  }
  .entry-wrapper {
    padding: 2rem 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.col-span-2 {
    grid-column: span 1;
  }
  .job-detail-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 1.2rem;
  }
  .job-label {
    font-size: 0.95rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Wanted Person (求める人物像) Section */
#wanted {
  background-color: var(--bg-color);
}

.wanted-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: -1.5rem auto 3rem;
}

.wanted-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.wanted-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.6rem;
  transition: var(--transition-smooth);
}

.wanted-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.wanted-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  font-family: var(--font-family-title);
  margin-bottom: 0.6rem;
}

.wanted-card h3 {
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.wanted-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .wanted-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .wanted-grid {
    grid-template-columns: 1fr;
  }
}
