/* ===== Hamamatsu System Co., Ltd. Corporate Site ===== */
:root {
  --navy-950: #0c1526;
  --navy-900: #132038;
  --navy-800: #1a2c4a;
  --navy-700: #243a60;
  --navy-600: #304c7a;
  --navy-500: #3f5f94;
  --accent: #4db2ff;
  --accent-2: #8fdcff;
  --gold: #d8b878;
  --gray-100: #f4f6fa;
  --gray-300: #ccd4e2;
  --gray-400: #a5b0c4;
  --gray-500: #7c88a0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background-color: var(--navy-950);
  color: var(--gray-100);
  overflow-x: hidden;
}

.font-serif-jp {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}



/* ===== Background layers ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(77, 178, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 178, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(77, 178, 255, 0.26), transparent 60%),
    linear-gradient(120deg, rgba(12, 21, 38, 0.90) 20%, rgba(19, 32, 56, 0.78) 55%, rgba(19, 32, 56, 0.60) 100%);
}

.section-navy {
  background: var(--navy-900);
}
.section-navy-alt {
  background: var(--navy-800);
}

.glow-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ===== Cards ===== */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 178, 255, 0.45);
  box-shadow: 0 20px 40px -20px rgba(77, 178, 255, 0.4);
}

.service-card .icon-wrap {
  transition: background 0.3s ease, color 0.3s ease;
}
.service-card:hover .icon-wrap {
  background: var(--accent);
  color: var(--navy-950);
}

/* ===== Logo badge ===== */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 4px;
  padding: 0;
  line-height: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.logo-badge-lg {
  border-radius: 6px;
  padding: 0;
}

/* ===== Nav ===== */
#site-header {
  backdrop-filter: blur(10px);
  background: rgba(12, 21, 38, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  transition: background 0.3s ease;
}

.nav-link {
  position: relative;
  color: var(--gray-300);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  width: 100%;
}

/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2b7fd6);
  color: var(--navy-950);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 25px -10px rgba(59, 167, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(59, 167, 255, 0.7);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--gray-100);
  transition: all 0.25s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 167, 255, 0.08);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Number badge ===== */
.step-number {
  font-family: 'Noto Serif JP', serif;
  -webkit-text-stroke: 1px rgba(59, 167, 255, 0.5);
  color: transparent;
}

/* ===== Mobile menu ===== */
#mobile-menu {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 4px; }

/* ===== Marquee for trust strip ===== */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Table ===== */
.profile-table td, .profile-table th {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.25rem;
}
.profile-table th {
  color: var(--gray-400);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Form ===== */
.form-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.10);
}
.form-input::placeholder { color: var(--gray-500); }

/* back to top */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
