:root {
  --primary-color: #0b223c; /* Darker Navy Blue for stronger contrast */
  --primary-light: #184275;
  --accent-color: #dca31f; /* Slightly richer Gold */
  --text-main: #333333; /* Softer black */
  --text-light: #666666;
  --bg-color: #fcfcfc; /* Cleaner white-grey */
  --bg-white: #ffffff;
  --border-color: #e8ecef;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother, more elegant easing */
}

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

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif; /* Inter first for better English/Numbers */
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8; /* Increased line-height for better readability */
  letter-spacing: 0.03em; /* Base letter spacing */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; /* Sharper rendering on Mac/iOS */
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em; /* Wilder letter spacing for headings */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px; /* Slightly tighter for better line-length readabiltiy */
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.8rem; /* Slightly larger */
  color: var(--primary-color);
  margin-bottom: 4rem; /* More breathing room */
  position: relative;
  letter-spacing: 0.1em; /* Very wide for section titles */
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center; /* Centering vertically */
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a.nav-btn {
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
}

.nav-links a.nav-btn:hover {
  background-color: #c99318;
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 163, 31, 0.4);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(13, 42, 74, 0.3), rgba(13, 42, 74, 0.4)), url('../img/top.jpg') center/cover no-repeat;
  color: var(--bg-white);
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
  line-height: 1.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: var(--bg-white);
  font-weight: 700;
  border-radius: 40px; /* More pill-shaped */
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--accent-color);
}

.btn:hover {
  background-color: var(--bg-white);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 163, 31, 0.5);
}

/* Information Section */
.info {
  padding: 8rem 0;
  background-color: #f9fcff;
}
.info-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px; /* News list on left, FB feed on right */
  gap: 4rem;
  align-items: start;
}
.info-list {
  border-top: 1px solid var(--border-color);
}
.facebook-feed {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* clean shadow container for fb */
  border: 1px solid var(--border-color);
}
.info-item {
    display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  background-color: #fff;
}
.info-item:hover {
  background-color: rgb(255, 252, 235);
  padding-left: 1.5rem;
}
.info-date {
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 2rem;
  width: 100px;
}
.info-title {
  color: var(--text-main);
  flex: 1;
}

/* About Section */
.about {
  padding: 8rem 0;
  background-color: var(--bg-white);
}

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

.about-text h3 {
  margin-bottom: 4px;
}
.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Highlight boxes in about */
.highlight-box {
  background: var(--bg-color);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  margin-top: 2rem;
  border-radius: 0 8px 8px 0;
}
.highlight-box h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.highlight-box p {
  margin-bottom: 0;
}

/* Business Section */
.business {
  padding: 8rem 0;
  background-color: var(--bg-color);
}

.business-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider */
  gap: 3rem; /* More gap */
  margin-top: 4rem;
}

.card {
  background: var(--bg-white);
  border-radius: 20px; /* Softer corners */
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03); /* Softer, broader shadow */
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  border: 1px solid var(--border-color); /* Subtle border */
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(11, 34, 60, 0.08); /* Colored shadow */
  border-color: rgba(11, 34, 60, 0.1);
  border-bottom: 4px solid var(--accent-color);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

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

.card p {
  color: var(--text-light);
}

/* Company Profile Section */
.profile {
  padding: 8rem 0;
  background-color: var(--bg-white);
}

.profile-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th, .profile-table td {
  padding: 1.8rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-table th {
  width: 30%;
  background-color: rgba(11, 34, 60, 0.02);
  text-align: left;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.profile-table td {
  color: var(--text-main);
}

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

/* Organization Section */
.organization {
  padding: 8rem 0;
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.organization .section-title {
  color: var(--bg-white);
}

.org-chart {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.org-node {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.8rem;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
  font-weight: 600;
}

.org-line {
  width: 2px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto 1.5rem;
}

/* Qualifications */
.qualifications {
  margin-top: 5rem;
  background: var(--bg-white);
  padding: 4rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-main);
}
.qual-header {
  background-color: #004d99;
  color: #fff;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qual-header h3 {
  font-size: 1.6rem;
  font-weight: normal;
  padding-bottom: 0.2rem;
  margin: 0;
  letter-spacing: 2px;
}
.qual-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.qual-col {
  display: flex;
  flex-direction: column;
}
.qual-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
}
.qual-item span:last-child {
  font-weight: 600;
}

.org-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.org-row .org-node {
  flex: 1;
  min-width: 120px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: #081d34;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.social-icons {
  margin-bottom: 2rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  border-radius: 50%;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-info {
  margin-bottom: 2rem;
}

.copyright {
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}
/* Career Section */
.career {
  padding: 8rem 0;
  background-color: var(--bg-color);
}
.career-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem; /* Increased gap */
}
.job-card {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03); /* Softer shadow */
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}
.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(11, 34, 60, 0.08); /* Colored shadow on hover */
  border-color: rgba(11, 34, 60, 0.1);
}
.job-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.job-type {
  display: inline-block;
  background-color: rgba(226, 160, 19, 0.15);
  color: #b8810c;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.job-details {
  margin-bottom: 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.job-details li {
  display: flex;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1rem;
  align-items: center;
}
.job-details li i {
  color: var(--primary-light);
  margin-right: 1rem;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: linear-gradient(135deg, #0d2a4a 0%, #173d69 100%);
  color: var(--bg-white);
  position: relative;
}
.contact .section-title {
  color: var(--bg-white);
}
.contact-box {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}
.contact-box:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}
.contact-box i {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  display: inline-block;
  background: rgba(226, 160, 19, 0.1);
  width: 100px;
  height: 100px;
  line-height: 100px;
  border-radius: 50%;
}
.contact-box p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}
.phone-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.contact-desc {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.95rem !important;
  line-height: 1.8;
  margin-bottom: 3rem !important;
  max-width: 424px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--bg-white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
}
.btn-submit {
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .qual-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 0.8rem 0;
  }
  .nav-links a.nav-btn {
    display: inline-block;
    margin: 1rem auto 0;
    padding: 0.8rem 2.5rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .profile-table th, .profile-table td {
    display: block;
    width: 100%;
  }
  .profile-table th {
    padding-bottom: 0.5rem;
    border-bottom: none;
  }
  .profile-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .contact-box {
    padding: 3rem 1rem;
  }
  .phone-number {
    font-size: 2rem;
  }
  .contact-form-wrapper {
    padding: 2rem 1rem;
  }
  .info-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
