:root {
  --primary-color: #0d2c54;
  --secondary-color: #f4f7f6;
  --accent-color: #008cba;
  --text-color: #333333;
  --light-text: #ffffff;
  --border-color: #e0e0e0;
  --font-family: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  /* Improve alignment */
  line-height: 1;
  padding: 10px;
}

/* Utility for controlling line breaks on PC (Keep phrases together) */
@media (min-width: 769px) {
  .ib {
    display: inline-block;
  }

  .pc-only {
    display: block;
  }
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

/* Parallax Background Layer - Crisp Zoom Effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../hero_bg.png') no-repeat center center/cover;
  z-index: 0;
  transform: scale(1.1);
  /* Start slightly zoomed in */
  transition: transform 0.1s linear;
  /* For scroll parity if needed, or controlled by JS */
  /* We will animate this via JS class on load for the "Crisp" effect */
}

.hero.animate-bg::before {
  animation: sharpZoomOut 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes sharpZoomOut {
  0% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 44, 84, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  opacity: 1;
  /* Reset default */
}

/* Staggered Animation Items */
.hero h1,
.hero p,
.hero .btn {
  opacity: 0;
  transform: translateY(30px);
}

.hero.animate-text h1 {
  animation: crispSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

.hero.animate-text p {
  animation: crispSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.hero.animate-text .btn {
  animation: crispSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes crispSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
}

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

h2.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

/* About / Mission */
.bg-light {
  background-color: var(--secondary-color);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}

.mission-item {
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mission-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Category Tabs */
.tab-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

/* Company Profile */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.company-table th {
  width: 30%;
  background-color: #f9f9f9;
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 50px 0 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  margin: 0 15px;
  color: #ccc;
}

.copyright {
  font-size: 0.9rem;
  color: #aaa;
}

.disclaimer {
  font-size: 0.8rem;
  color: #888;
  margin-top: 10px;
  padding: 0 20px;
}

/* Article Page */
.article-header {
  background-color: var(--secondary-color);
  padding: 120px 0 60px;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.article-meta {
  color: #666;
}

.article-body {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body img {
  margin: 20px 0;
  border-radius: 8px;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-color);
  padding-left: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  /* Force 3 columns on mobile for blog */
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .blog-card img {
    height: 100px;
    /* Reduced height for small cards */
  }

  .blog-content {
    padding: 10px;
  }

  .blog-title {
    font-size: 0.8rem;
    /* Smaller font */
    margin-bottom: 5px;
  }

  .blog-date {
    font-size: 0.7rem;
    margin-bottom: 5px;
  }
}