:root {
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --secondary: #10b981;
  --bg-color: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --error: #ef4444;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 5px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(30, 58, 138, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f8fafc;
  color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.form-wrapper {
  max-width: 550px;
  margin: 60px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
}

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

.form-group label {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group .required {
  background: var(--error);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 700;
}

.form-control,
.form-select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fafafa;
  transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
}

.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

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

.mt-3 {
  margin-top: 15px;
}

.mt-4 {
  margin-top: 24px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 140px 20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%), url('../img/hero_bg.png') center/cover no-repeat;
  color: var(--white);
}

.hero h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.hero p {
  font-size: 18px;
  color: #e0f2fe;
  margin-bottom: 40px;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
  background: #eff6ff;
  border-color: var(--primary);
}

.upload-icon {
  font-size: 56px;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.upload-hint {
  font-size: 14px;
  color: var(--text-light);
}

.file-list {
  margin-top: 20px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

/* Radio Cards */
.radio-group {
  display: flex;
  gap: 20px;
}

.radio-card {
  flex: 1;
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-card label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  font-weight: 700;
  font-size: 16px;
  height: 100%;
}

.radio-card input:checked+label {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

/* Center Box */
.center-box {
  max-width: 500px;
  margin: 100px auto;
  text-align: center;
  background: var(--white);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.success-icon {
  font-size: 72px;
  color: var(--secondary);
  margin-bottom: 24px;
}

.error-icon {
  font-size: 72px;
  color: var(--error);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 24px;
    line-height: 1.5;
  }

  .logo img {
    height: 40px !important;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links .btn {
    padding: 8px 10px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  .hero p {
    font-size: 14px;
  }

  .radio-group {
    flex-direction: column;
  }

  .form-wrapper,
  .center-box {
    margin: 30px 20px;
    padding: 30px 20px;
  }
}

/* Admin Tabs Navigation */
.admin-nav-scroll {
  display: flex !important;
  gap: 20px !important;
  border-bottom: 1px solid #cbd5e1 !important;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
  padding-top: 5px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  background: transparent !important;
}

.admin-nav-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Inactive tabs */
.admin-nav-scroll > a {
  white-space: nowrap;
  font-size: clamp(13px, 1.3vw, 15px) !important;
  font-weight: 700 !important;
  padding: 10px 4px !important;
  margin-bottom: 0 !important; /* Prevent clipping */
  border-radius: 0 !important;
  text-decoration: none !important;
  background-color: transparent !important;
  color: #64748b !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-scroll > a:hover {
  color: #3b82f6 !important; /* Tailwind Blue 500 */
}

/* Active tab */
.admin-nav-scroll > a[style*="#0f172a"],
.admin-nav-scroll > a[style*="border-bottom: 3px"] {
  background-color: transparent !important;
  color: #0f172a !important; /* Black text */
  border-bottom: 3px solid #3b82f6 !important; /* Blue line */
  box-shadow: none !important;
}

@media (max-width: 1024px) {
  .admin-nav-scroll {
    gap: 15px !important;
  }
}

@media (max-width: 768px) {
  .admin-nav-scroll {
    gap: 12px !important;
    padding-bottom: 0px !important;
  }
  .admin-nav-scroll > a {
    font-size: clamp(11px, 2.5vw, 13px) !important;
    padding: 8px 12px !important;
  }
}
