@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Colors */
  --color-primary: #1B2A4A; /* Navy */
  --color-secondary: #3B82F6; /* Blue */
  --color-white: #FFFFFF;
  --color-light-gray: #F8FAFC;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  
  /* Fonts */
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  /* Others */
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-jp);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-jp);
  line-height: 1.3;
}

.en-title {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.number-stat {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: var(--color-secondary);
  font-family: var(--font-en);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--color-light-gray);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: 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: all var(--transition-speed);
}

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

.logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.nav__list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav__item a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
}

.nav__item a:hover {
  color: var(--color-secondary);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all var(--transition-speed);
}

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

/* Responsive Nav */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
    transition: right var(--transition-speed);
    z-index: 999;
  }
  
  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .header__contact {
    display: none;
  }

  .nav .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .hamburger {
    display: block;
  }

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

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer__info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer__links h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Page Headers (lower pages) */
.page-header {
  background-color: var(--color-primary);
  padding: 160px 0 80px;
  text-align: center;
  color: var(--color-white);
}

.page-header h1 {
  font-family: var(--font-en);
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 10px;
}

.page-header p {
  font-family: var(--font-jp);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Utils */
.pc-only { display: block; }
.nav-contact { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .nav-contact { display: block; margin-top: 20px; }
}

/* ================================
   Top Page Styles
================================ */

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* offset for header */
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--color-primary); /* fallback */
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.85) 0%, rgba(27, 42, 74, 0.4) 100%);
}

.hero__content {
  text-align: center;
  color: var(--color-white);
  z-index: 1;
}

.hero__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-white);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  font-weight: 500;
}

.hero__btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { font-size: 1.2rem; }
  .hero__btns { flex-direction: column; padding: 0 20px; }
}

/* Features/Services Grid */
.service__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid rgba(0,0,0,0.02);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

/* Numbers Grid */
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.number-card {
  background: var(--color-white);
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.number-label {
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 5px;
}

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

.voice-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.voice-card__text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.voice-card__author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.voice-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-light-gray);
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=100&q=80');
  background-size: cover;
}

.voice-card__company {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.voice-card__name {
  font-weight: 700;
  color: var(--color-primary);
}

/* News List */
.news__list {
  display: flex;
  flex-direction: column;
}

.news__item {
  display: flex;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #E2E8F0;
}

.news__item:first-child {
  border-top: 1px solid #E2E8F0;
}

.news__date {
  font-family: var(--font-en);
  color: var(--color-text-muted);
  width: 120px;
  flex-shrink: 0;
}

.news__tag {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.news__title {
  font-weight: 500;
}

.news__title:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

@media (max-width: 600px) {
  .news__item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news__date { width: auto; }
}

/* Bottom CTA */
.bottom-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2A4365 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--color-white);
}

.bottom-cta__title {
  font-size: 2.2rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.bottom-cta__text {
  margin-bottom: 40px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.bottom-cta__btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .bottom-cta__btns { flex-direction: column; padding: 0 20px; }
}

/* ================================
   Service Page Styles
================================ */

/* Product Blocks */
.product-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.product-block--reverse {
  flex-direction: row-reverse;
}

.product-block:last-child {
  margin-bottom: 0;
}

.product-block__img {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-block__img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.product-block__img:hover img {
  transform: scale(1.05);
}

.product-block__content {
  flex: 1;
}

.product-block__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.product-block h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.product-block__desc {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-text-muted);
}

.product-block__features {
  margin-bottom: 30px;
}

.product-block__features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.product-block__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.product-block__price {
  background: var(--color-light-gray);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--color-secondary);
}

@media (max-width: 992px) {
  .product-block, .product-block--reverse {
    flex-direction: column;
    gap: 30px;
  }
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background-color: #E2E8F0;
}

.timeline__item {
  position: relative;
  padding-left: 100px;
  margin-bottom: 50px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__number {
  position: absolute;
  left: 16px;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.timeline__content {
  background: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.timeline__content h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.timeline__content p {
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .timeline::before { left: 20px; }
  .timeline__item { padding-left: 60px; }
  .timeline__number { width: 40px; height: 40px; left: 1px; font-size: 1rem; }
}

/* FAQ Details */
.faq__item {
  background: var(--color-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq__question {
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  list-style: none; /* Hide default arrow */
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-secondary);
  transition: transform var(--transition-speed);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__item[open] .faq__question {
  border-bottom: 1px solid #E2E8F0;
}

.faq__answer {
  padding: 20px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ================================
   Company Page Styles
================================ */

/* CEO Message */
.message__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.message__img {
  flex: 0 0 40%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.message__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message__content {
  flex: 1;
}

.message__title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--color-primary);
  line-height: 1.4;
}

.message__text {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.message__name {
  text-align: right;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .message__inner {
    flex-direction: column;
  }
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border-radius: 8px;
  overflow: hidden;
}

.info-table th, .info-table td {
  padding: 20px 25px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
}

.info-table th {
  width: 30%;
  background-color: rgba(248, 250, 252, 0.5);
  font-weight: bold;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .info-table th { width: 40%; padding: 15px; }
  .info-table td { padding: 15px; }
}

/* History List */
.history-list {
  padding-left: 20px;
  border-left: 2px solid var(--color-secondary);
  margin-left: 20px;
}

.history-list__item {
  position: relative;
  padding-bottom: 40px;
  padding-left: 30px;
}

.history-list__item:last-child {
  padding-bottom: 0;
}

.history-list__item::before {
  content: '';
  position: absolute;
  left: -27px; /* width 12px / 2 = 6, 20px left block + 2px border? -> adjust visually */
}

/* Adjust timeline dot more accurately */
.history-list__item::before {
  content: '';
  position: absolute;
  left: -7px; /* 2px border width, dot is 12px wide -> center is 6px. -6px + 1px = -5px ~ -7px */
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-white);
}

.history-list__date {
  font-family: var(--font-en);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.history-list__content {
  color: var(--color-text-main);
  font-size: 1.1rem;
}

/* map */
.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ================================
   Recruit Page Styles
================================ */

/* Recruit Hero/Message */
.recruit-message {
  position: relative;
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.recruit-message__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.recruit-message__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-message__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 42, 74, 0.8);
}

.recruit-message__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.recruit-message h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.recruit-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* Job Cards */
.jobs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.job-card {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform var(--transition-speed);
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.job-card__title {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 20px 30px;
  font-size: 1.3rem;
  margin: 0;
}

.job-card__body {
  padding: 30px;
}

.job-card__section {
  margin-bottom: 20px;
}

.job-card__section:last-child {
  margin-bottom: 0;
}

.job-card__section h4 {
  font-size: 0.95rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.job-card__section p {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

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

/* Interview */
.interview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.interview-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.interview-card__img {
  height: 250px;
}

.interview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.interview-card:hover .interview-card__img img {
  transform: scale(1.05);
}

.interview-card__content {
  padding: 30px;
}

.interview-card__role {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.interview-card__title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.interview-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ================================
   Contact Page Styles
================================ */

.contact-form {
  background: var(--color-white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.form-group .required {
  background-color: #ef4444; /* Red */
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #F8FAFC;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--color-text-muted);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 30px 20px;
  }
}
