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

:root {
  --primary: #008080;
  --primary-hover: #006666;
  --secondary: #20b2aa;
  --dark-neutral: #1a202c;
  --light-neutral: #f4fbfb;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --accent: #ff6b6b;
  --border: #e2e8f0;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--dark-neutral);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Common Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

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

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.2);
}

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

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 50px;
  width: 250px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
  position: relative;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #e6f2f2 0%, #ffffff 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  background-color: rgba(0, 128, 128, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 128, 128, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dark-neutral);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-strip {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--gray-300);
  padding-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
}

.trust-item svg {
  color: var(--secondary);
  width: 20px;
  height: 20px;
}

.hero-image-container {
  position: relative;
  z-index: 2;
}

.hero-img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 128, 128, 0.15);
  border: 4px solid var(--white);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 80, 80, 0.3);
  max-width: 220px;
  animation: float 6s ease-in-out infinite;
}

.floating-badge p {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}

.floating-badge h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Value Prop Grid */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 128, 128, 0.08);
  border-color: var(--secondary);
}

.value-icon {
  background-color: rgba(0, 128, 128, 0.08);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-neutral);
}

.value-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* How It Works */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--gray-200);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 3rem;
  z-index: 2;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 2.5rem;
  border-radius: 50%;
  z-index: 3;
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -12px;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 128, 128, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-panel {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
}

.timeline-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.timeline-panel p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 15px;
    text-align: left;
  }
  .timeline-item::after {
    left: 19px;
    right: auto;
  }
  .timeline-right {
    left: 0;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.service-content {
  padding: 2rem;
}

.service-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-neutral);
  margin-bottom: 0.75rem;
}

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

/* Social Proof */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.star-rating {
  color: #ffb800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-neutral);
}

.user-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* FAQ CSS Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-300);
}

.faq-item details {
  padding: 1rem 0;
  cursor: pointer;
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-icon-arrow {
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item details[open] .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding-top: 1rem;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box h4 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-box p {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 700;
}

.about-img {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* Contact Form */
.form-section {
  scroll-margin-top: 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-block {
  padding-right: 1.5rem;
}

.contact-info-block h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-neutral);
  margin-bottom: 1.5rem;
}

.contact-info-block p {
  color: var(--gray-600);
  margin-bottom: 2.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-icon {
  background-color: rgba(0, 128, 128, 0.08);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
}

.info-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-neutral);
}

.info-details p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.form-wrapper {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  padding: 3rem;
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-full-width {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-neutral);
}

.form-group label .required {
  color: var(--accent);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background-color: var(--gray-100);
  width: 100%;
}

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

/* Phone input with fixed prefix */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--gray-100);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.15);
}

.phone-prefix {
  background-color: var(--gray-200);
  color: var(--dark-neutral);
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-right: 1px solid var(--border);
  font-size: 0.95rem;
  user-select: none;
}

.phone-input-wrapper input {
  border: none !important;
  box-shadow: none !important;
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  background-color: transparent !important;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.form-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 1rem;
}

.form-microcopy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}

.form-success-container {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.form-success-container svg {
  color: var(--primary);
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.form-success-container h3 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.form-success-container p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
footer {
  background-color: var(--dark-neutral);
  color: var(--gray-300);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer-info .footer-logo {
  height: 50px;
  width: 250px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-disclosure {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.footer-links-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.footer-link-item a {
  transition: color 0.2s;
  color: var(--gray-500);
}

.footer-link-item a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--primary);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-neutral);
  color: var(--white);
  padding: 1.5rem;
  z-index: 10000;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-300);
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s;
}

.cookie-btn-accept {
  background-color: var(--secondary);
  color: var(--dark-neutral);
}

.cookie-btn-accept:hover {
  background-color: #26cfc5;
}

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

.cookie-btn-decline:hover {
  background-color: rgba(255,255,255,0.05);
}

/* Mobile Nav Overlay */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    align-items: flex-start;
  }
  .nav-menu.show {
    left: 0;
  }
  .hamburger {
    display: block;
  }
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Legal Documents Styling Additions */
.legal-main {
  padding: 6rem 0;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-neutral);
  margin: 2rem 0 1rem 0;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: left;
}

.legal-table th {
  background-color: var(--gray-100);
  font-weight: 700;
  color: var(--dark-neutral);
  width: 30%;
}
