:root {
  --primary-color: #3366cc;
  --accent-color: #f7f9fa;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #eeeeee;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background-color: #fcfcfc;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 60px 0;
  background-color: var(--white);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: #1a1a1a;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Hero */
.hero-section {
  text-align: center;
  background-color: #fff;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}



/* Flow Section */
.flow-section {
  background-color: #f8fbfd;
  /* Very subtle blue tint */
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 60px;
  /* Space for line/markers */
}

/* Vertical Line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 20px;
  /* Center of marker */
  top: 40px;
  bottom: 0;
  width: 2px;
  background-color: var(--text-dark);
}

.timeline-step {
  position: relative;
  margin-bottom: 60px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  left: -60px;
  /* Relative to padding-left of container */
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
}

.step-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.step-image {
  flex: 0 0 150px;
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  /* Restore slightly stronger shadow */
}

.step-image img {
  width: 100%;
  height: auto;
  display: block;
}

.step-text {
  flex: 1;
  padding-top: 10px;
}

.step-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
  font-weight: normal;
  /* Cleaner look */
}

/* Mobile Responsive for Timeline */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 0;
  }

  .timeline-container::before {
    left: 20px;
    display: none;
    /* Hide line on very small screens or adjust */
  }

  .step-marker {
    position: static;
    margin-bottom: 15px;
  }

  .step-content {
    flex-direction: column;
    gap: 20px;
  }

  .step-image {
    width: 100%;
    flex: none;
    max-width: 225px;
  }
}

.sub-step {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.95rem;
}

.warning-text {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: 10px;
}

.flow-note {
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 40px;
  text-align: center;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s;
}

.contact-item:hover {
  border-color: var(--primary-color);
}

.tel-link {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
  color: var(--text-dark);
}

/* Policy & Methods */
.method-block,
.policy-block,
.product-category {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.method-block:last-child {
  border-bottom: none;
}

.caution-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.caution-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.fees-table th,
.fees-table td {
  padding: 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.fees-table th {
  background-color: #f7f7f7;
  width: 20%;
  font-weight: bold;
}

.fee-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .step-card {
    padding-left: 20px;
    padding-top: 70px;
  }

  .step-icon {
    top: 20px;
    left: 20px;
  }

  .fees-table th,
  .fees-table td {
    display: block;
    width: 100%;
  }

  .fees-table th {
    background-color: #eaeaea;
  }

  .nav-links {
    display: none;
    /* Hide nav links on mobile for simplicity, or add toggle */
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-step {
  position: relative;
  margin-bottom: 60px;
  /* Animation */
  opacity: 0;
  /* Start hidden */
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered Delays */
.timeline-step:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-step:nth-child(2) {
  animation-delay: 0.3s;
}

.timeline-step:nth-child(3) {
  animation-delay: 0.5s;
}

.timeline-step:nth-child(4) {
  animation-delay: 0.7s;
}

.timeline-step:nth-child(5) {
  animation-delay: 0.9s;
}