@charset "UTF-8";

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #1a1a2e;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== CSS Variables ===== */
:root {
  --primary: #1a5276;
  --primary-dark: #0e3451;
  --accent: #2980b9;
  --accent-light: #5dade2;
  --gradient: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #6c5ce7 100%);
  --gradient-subtle: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #666;
  --border: #e0e6ed;
  --bg-light: #f7f9fc;
  --white: #ffffff;
  --bg-dark: #0e1b2d;
  --error: #c0392b;
  --shadow: 0 2px 16px rgba(26, 82, 118, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 82, 118, 0.12);
  --radius: 8px;
  --header-h: 72px;
}

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

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

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

/* Focus-visible for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Sections Common ===== */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a6da0;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  margin-top: 16px;
  color: var(--text-light);
  font-size: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  overflow: hidden;
  background: linear-gradient(170deg, #0e3451 0%, #1a5276 30%, #2471a3 60%, #2980b9 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(108, 92, 231, 0.15), transparent),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(93, 173, 226, 0.2), transparent),
    radial-gradient(ellipse 300px 300px at 60% 80%, rgba(108, 92, 231, 0.1), transparent);
}

/* Decorative grid pattern */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Decorative abstract element */
.hero-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0.04;
}

.hero-deco--1 {
  top: 15%;
  right: 10%;
  transform: rotate(15deg);
}

.hero-deco--2 {
  bottom: 20%;
  left: 5%;
  transform: rotate(-10deg);
  width: 150px;
  height: 150px;
}

.hero-deco svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 800px;
}


.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-title .highlight {
  background: linear-gradient(90deg, #5dade2, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-company {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-copy {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero-cta:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Services ===== */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.service-icon--1 {
  background: linear-gradient(135deg, #e8f4fd, #d4e6f7);
  color: var(--primary);
}

.service-icon--2 {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
  color: #6c5ce7;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

.placeholder {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  border: 1px dashed #ffc107;
}

/* ===== Company Info ===== */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.info-table th,
.info-table td {
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.info-table th {
  width: 140px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-light);
  white-space: nowrap;
}

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

/* Map iframe container */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ===== Contact ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  padding: 48px;
  background: var(--gradient);
  border-radius: var(--radius);
  color: #fff;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.contact-detail-text {
  font-size: 0.9rem;
}

.contact-detail-text .label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .required {
  color: var(--error);
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Form error styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 2px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Honeypot field - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 82, 118, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn.loading {
  pointer-events: none;
  position: relative;
  color: transparent;
}

.submit-btn.loading svg {
  visibility: hidden;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo .logo-img {
  height: 36px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== Responsive: 900px ===== */
@media (max-width: 900px) {
  .nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.05rem;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 72px 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ===== Responsive: 600px ===== */
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .contact-info {
    padding: 32px 24px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ===== Responsive: 400px ===== */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-company {
    font-size: 0.9rem;
  }

  .hero-copy {
    font-size: 0.88rem;
  }

  .section {
    padding: 56px 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .service-card {
    padding: 32px 20px;
  }

  .contact-info {
    padding: 24px 16px;
  }

  .contact-info h3 {
    font-size: 1.2rem;
  }

  .submit-btn {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 40px 16px 24px;
  }
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* ===== Visually Hidden (screen-reader only) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-scroll-line {
    animation: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .header,
  .hero-scroll,
  .hamburger,
  .contact-form,
  .submit-btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 24px;
  }

  .section {
    padding: 40px 24px;
    break-inside: avoid;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #888;
  }

  .nav a[href]::after,
  .logo[href]::after,
  .footer-links a[href]::after {
    content: none;
  }
}
