@charset "UTF-8";

/* ===== CSS Variables ===== */
:root {
  --primary: #0f172a;
  --secondary: #1e3a8a;
  --accent: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --success: #059669;
  --text: #334155;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

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

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
}

/* ===== Navbar ===== */
#mainNav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: var(--transition);
}

#mainNav.scrolled {
  box-shadow: var(--shadow);
}

#mainNav .logo {
  height: 40px;
  width: auto;
}

#mainNav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

#mainNav .nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.navbar-toggler {
  border: none;
  padding: 8px;
  background: none;
  box-shadow: none !important;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url(../img/background.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,58,138,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

.btn-hero:hover {
  background: var(--accent-dark);
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.section-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1rem;
}

.subsection-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

/* ===== Images ===== */
.img-modern {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ===== Feature List ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 12px 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Skill Cards ===== */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 1.25rem;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}


.skill-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.skill-tech {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== Tab Nav ===== */
.tab-nav {
  display: flex;
  gap: 8px;
  border: none;
}

.tab-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tab-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Work Cards ===== */
.work-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: var(--text);
  background: var(--bg);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  opacity: 1;
}

.work-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.work-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-img-wrap img {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #fff;
  font-size: 1.5rem;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-info {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--primary);
}

.work-link {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Modern Table ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.modern-table thead tr th {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: left;
}

.modern-table thead tr th:first-child { border-radius: var(--radius) 0 0 0; }
.modern-table thead tr th:last-child { border-radius: 0 var(--radius) 0 0; }

.modern-table tbody tr {
  background: var(--bg);
  transition: background 0.2s;
}

.modern-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.modern-table tbody tr:hover {
  background: var(--accent-light);
}

.modern-table tbody td,
.modern-table tbody th {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.modern-table tbody th {
  font-weight: 600;
  background: rgba(241,245,249,0.8);
  color: var(--primary);
  white-space: nowrap;
  width: 30%;
}

.modern-table tbody tr:last-child td,
.modern-table tbody tr:last-child th {
  border-bottom: none;
}

.tech-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 2px;
}

/* ===== Recruit Section ===== */
.recruit-section {
  position: relative;
  background-image: url(../img/background.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.recruit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,58,138,0.87) 100%);
}

.recruit-title {
  color: #fff;
}

.recruit-title::after {
  background: var(--accent);
}

.recruit-feature-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
  color: #fff;
  height: 100%;
  transition: var(--transition);
}

.recruit-feature-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-2px);
}

.recruit-feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.recruit-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.recruit-feature-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.7;
}

.recruit-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 32px;
  background: var(--success);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  margin-top: 12px;
  box-shadow: 0 4px 20px rgba(5,150,105,0.3);
}

.btn-apply:hover {
  background: #047857;
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
}

/* ===== News ===== */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  height: fit-content;
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.news-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.8;
}

.news-body p {
  margin-bottom: 8px;
}

.news-body p:last-child {
  margin-bottom: 0;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 92px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  flex: 0 0 80px;
  text-align: right;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 10px;
  letter-spacing: 0.03em;
}

.timeline-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  margin-top: 6px;
  z-index: 1;
  position: relative;
}

.timeline-content {
  flex: 1;
  padding: 8px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
}

/* ===== Access ===== */
iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.access-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.access-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.access-label i {
  color: var(--accent);
}

.access-text {
  font-size: 0.9375rem;
  color: var(--text);
  padding-left: 20px;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-item {
  padding: 20px 24px;
}

.contact-divider {
  height: 1px;
  background: var(--border);
}

.contact-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-value:hover {
  color: var(--accent);
  opacity: 1;
}

.contact-value i {
  color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.55);
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
}

/* ===== Page Top ===== */
#page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  transition: var(--transition);
  z-index: 999;
}

#page-top:hover {
  background: var(--accent-dark);
  color: #fff;
  opacity: 1;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 48px 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-date {
    flex: 0 0 auto;
    text-align: left;
    padding-top: 0;
  }

  .timeline-dot {
    display: none;
  }

  .news-item {
    flex-direction: column;
    gap: 12px;
  }

  .recruit-card {
    padding: 20px;
  }

  .hero {
    background-attachment: scroll;
  }

  .recruit-section {
    background-attachment: scroll;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }

  .contact-value {
    font-size: 1rem;
  }
}
