﻿/* 1. Global Reset & Theme Variables */
:root {
  --primary: #0A5C5C;
  --primary-light: #167D7D;
  --primary-dark: #053D3D;
  --accent: #E09F3E;
  --accent-hover: #C5852C;
  --text-dark: #1A2825;
  --text-light: #526764;
  --bg-light: #F4F7F6;
  --bg-white: #FFFFFF;
  --border-color: #DFE7E5;
  --error-color: #CC4444;
  --success-bg: #E3F2ED;
  --success-text: #0E6B4B;
  
  --font-main: 'Noto Sans JP', 'Inter', sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans JP', serif;
  
  --shadow-sm: 0 4px 6px -1px rgba(10, 92, 92, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(10, 92, 92, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(10, 92, 92, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.highlight {
  color: var(--primary);
  background: linear-gradient(transparent 70%, rgba(224, 159, 62, 0.2) 0%);
}

.hidden {
  display: none !important;
}

/* 2. Reusable Grid/Layout Components */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

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

.section-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  color: var(--bg-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: rgba(10, 92, 92, 0.04);
  transform: translateY(-2px);
}

/* 3. Site Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
}

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

.site-logo {
  height: 44px;
  display: block;
}

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

.desktop-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

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

.desktop-nav .cta-nav {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.desktop-nav .cta-nav:hover {
  background-color: var(--primary-light);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  position: relative;
  transition: background-color 0.3s;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hamburger open state */
.mobile-nav-toggle.active .hamburger {
  background-color: transparent;
}
.mobile-nav-toggle.active .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.active .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 77px;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-light);
}

.cta-mobile-nav {
  background-color: var(--primary);
  color: var(--bg-white) !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* 4. Hero Section */
.hero-section {
  padding: 160px 24px 100px 24px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(10, 92, 92, 0.08);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-buttons {
  margin-bottom: 40px;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.hero-visual .image-wrapper {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.visual-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.badge-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.badge-text {
  font-size: 12px;
}

/* 5. Benefits Grid */
.benefits-section {
  background-color: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  padding: 40px 30px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  background-color: rgba(10, 92, 92, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* 6. Services list details */
.services-section {
  background-color: var(--bg-light);
}

.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-detail-card.reverse {
  direction: rtl;
}

.service-detail-card.reverse .service-txt {
  direction: ltr;
}

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

.service-txt {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 10px;
}

.service-txt h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.service-txt p {
  color: var(--text-light);
  font-size: 15px;
}

/* 7. How it Works Process */
.process-section {
  background-color: var(--bg-white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--bg-white);
  z-index: 2;
  position: relative;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
}

/* 8. Testimonials styling */
.testimonials-section {
  background-color: var(--bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-light);
}

/* 9. About Section */
.about-section {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.about-content p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* 10. Accordion FAQ Styling */
.faq-section {
  background-color: var(--bg-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 20px 30px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.3s;
}

.faq-item summary:hover {
  background-color: rgba(10, 92, 92, 0.02);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  padding: 0 30px 20px 30px;
  font-size: 15px;
  color: var(--text-light);
  border-top: 1px solid var(--bg-light);
  margin-top: 5px;
  line-height: 1.8;
}

/* 11. Custom Validation Form */
.contact-section {
  background-color: var(--bg-white);
  padding: 80px 24px;
}

.contact-box {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-intro {
  padding: 60px;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.contact-intro h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--bg-white);
}

.contact-intro p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.form-reassurance {
  display: flex;
  gap: 15px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.reassurance-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.form-reassurance span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-form-wrapper {
  padding: 60px;
  background-color: var(--bg-white);
}

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.required {
  color: var(--error-color);
  margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-dark);
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(10, 92, 92, 0.1);
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.phone-prefix {
  padding: 12px 16px;
  background-color: var(--border-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
}

.phone-input-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 13px;
  color: var(--text-light);
}

.btn-submit {
  width: 100%;
  background-color: var(--accent);
  color: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  transform: none;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--success-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: var(--success-text);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.success-card h3 {
  font-size: 20px;
  color: var(--success-text);
  margin-bottom: 16px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
}

.success-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-light);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

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

/* 12. Site Footer & Navigation Links */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 24px 30px 24px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-contact-info strong {
  color: var(--bg-white);
}

.footer-contact-info a {
  color: var(--accent);
}

.footer-nav-column h4,
.footer-legal-column h4 {
  color: var(--bg-white);
  font-size: 16px;
  margin-bottom: 24px;
}

.footer-nav-column,
.footer-legal-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-column a,
.footer-legal-column a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav-column a:hover,
.footer-legal-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-disclaimer {
  margin-top: 10px;
}

/* 13. Functional Cookie Consent Block */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 450px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  z-index: 2000;
  transition: opacity 0.5s, transform 0.5s;
}

.cookie-consent-banner.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookie-banner-content p {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner-content a {
  text-decoration: underline;
  font-weight: 700;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 8px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
}

.btn-cookie-decline {
  background-color: var(--bg-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
}

/* 14. Smooth Back-to-Top */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

/* 15. Responsive Breakpoints (Mobile First) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .trust-strip {
    justify-content: center;
  }
  .hero-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .visual-badge {
    left: 20px;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-box {
    grid-template-columns: 1fr;
  }
  .contact-intro {
    padding: 40px;
  }
  .contact-form-wrapper {
    padding: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .mobile-nav.open {
    display: flex;
  }
  .section-container {
    padding: 60px 16px;
  }
  .hero-section {
    padding: 120px 16px 60px 16px;
  }
  .hero-title {
    font-size: 32px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-card {
    grid-template-columns: 1fr;
  }
  .service-detail-card.reverse {
    direction: ltr;
  }
  .service-txt {
    padding: 30px;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
