﻿:root {
  --primary: #0f2d59;
  --primary-light: #1e40af;
  --accent: #d97706;
  --accent-hover: #b45309;
  --neutral-dark: #1f2937;
  --neutral-light: #f3f4f6;
  --white: #ffffff;
  --gray-medium: #6b7280;
  --gray-light: #f9fafb;
  --success: #10b981;
  --error: #ef4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans JP', sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font);
  color: var(--neutral-dark);
  line-height: 1.7;
}

body {
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

header.scrolled {
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 45px;
}

.logo-img {
  height: 100%;
  width: auto;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-dark);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-light);
}

.nav-btn {
  background-color: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
}

.nav-btn:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neutral-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 140px 20px 80px;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 45, 89, 0.95) 40%, rgba(30, 64, 175, 0.7) 100%);
  z-index: 1;
}

.hero-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #cbd5e1;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.trust-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* Base Sections */
section {
  padding: 100px 20px;
}

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.section-header p {
  color: var(--gray-medium);
  font-size: 1.1rem;
}

/* Benefits Grid */
.benefits-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(15, 45, 89, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 25px;
  color: var(--primary);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.6;
}

/* Process Section */
.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

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

.process-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 50px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-num {
  position: absolute;
  left: 20px;
  top: 0;
  width: 42px;
  height: 42px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--white);
}

.process-step h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.process-step p {
  color: var(--gray-medium);
  font-size: 0.95rem;
  max-width: 800px;
}

/* Services Grid */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f1f5f9;
}

.service-img-wrapper {
  height: 220px;
  width: 100%;
  overflow: hidden;
  background-color: var(--neutral-light);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-info {
  padding: 30px;
}

.service-info h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-info p {
  font-size: 0.95rem;
  color: var(--gray-medium);
}

/* Social Proof (Testimonials) */
.testimonial-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-left: 4px solid var(--accent);
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 25px;
  color: var(--neutral-dark);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.95rem;
}

.author-title {
  font-size: 0.85rem;
  color: var(--gray-medium);
}

/* About Us Layout */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.about-img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.about-content h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  color: var(--neutral-dark);
  margin-bottom: 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.cross-border-notice {
  margin-top: 30px;
  padding: 20px;
  background-color: var(--neutral-light);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
}

.cross-border-notice p {
  font-size: 0.9rem;
  color: var(--primary);
  margin: 0;
  font-weight: 500;
}

/* Lead Form Section */
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-info-panel p {
  font-size: 1rem;
  color: var(--gray-medium);
  margin-bottom: 30px;
}

.info-list {
  list-style: none;
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.info-text h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.info-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--neutral-dark);
}

/* Contact Form Wrapper */
.form-wrapper {
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.lead-form .form-group {
  margin-bottom: 20px;
}

.lead-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lead-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

.phone-prefix {
  background-color: var(--neutral-light);
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 25px;
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.form-consent span {
  font-size: 0.8rem;
  color: var(--gray-medium);
  line-height: 1.5;
}

.form-consent a {
  color: var(--primary-light);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  display: block;
  padding: 14px;
  font-weight: bold;
}

.form-response {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-response.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-response.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 25px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon-toggle {
  font-size: 1.3rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 25px;
  background-color: var(--gray-light);
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--gray-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
}

/* Footer style */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 20px 30px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 45px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  color: #cbd5e1;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact span {
  font-weight: 500;
  color: var(--white);
}

.legal-meta-block {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  color: #cbd5e1;
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Cookie Policy Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 20px 30px;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  min-width: 280px;
}

.cookie-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 15px;
}

.cookie-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: var(--transition);
}

.cookie-accept {
  background-color: var(--accent);
  color: var(--white);
}

.cookie-accept:hover {
  background-color: var(--accent-hover);
}

.cookie-decline {
  background-color: transparent;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.2);
}

.cookie-decline:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Mobile responsive styles */
@media (max-width: 968px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--white);
    flex-direction: column;
    padding: 50px 20px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .trust-strip {
    justify-content: center;
  }
  
  .about-container, .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-img-wrapper {
    order: 2;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  
  .form-wrapper {
    padding: 20px;
  }
}
