/* ===== VARIABLES ===== */
:root {
  --green: #388E3C;
  --green-light: #E8F5E9;
  --green-dark: #2E7D32;
  --green-pale: #F1F8E9;
  --white: #FFFFFF;
  --bg: #FAFCFA;
  --gray-50: #F5F7F5;
  --gray-100: #EDF0ED;
  --gray-200: #DDE2DD;
  --gray-300: #C5CCC5;
  --gray-500: #7A857A;
  --gray-700: #3D473D;
  --gray-900: #1A231A;
  --font: 'Noto Sans JP', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION ===== */
.section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  display: block;
}

.section-label.center,
.section-title.center,
.section-desc.center {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56,142,60,0.3);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.header.scrolled .logo-text {
  color: var(--gray-900);
}

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

.nav-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
}

.header.scrolled .nav-link {
  color: var(--gray-700);
}

.nav-link:hover {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--green-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--gray-900);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46,125,50,0.75) 0%, rgba(27,94,32,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  opacity: 0.85;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1rem;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 2;
}

.about-badges {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.about-badge {
  padding: 16px 24px;
  background: var(--green-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

.about-badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 2px;
}

.about-badge span {
  font-size: 0.8rem;
  color: var(--gray-700);
}

/* ===== SERVICES ===== */
.services {
  background: var(--green-pale);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

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

.service-icon {
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== STRENGTHS ===== */
.strengths-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.strength-row {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}

.strength-row:last-child {
  border-bottom: none;
}

.strength-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0.4;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  line-height: 1;
  padding-top: 4px;
}

.strength-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.strength-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== NUMBERS ===== */
.numbers {
  background: var(--green);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
}

.number-suffix {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.number-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ===== CASES ===== */
.cases {
  background: var(--green-pale);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.6;
}

.case-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.case-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.case-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.case-amount {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green);
}

/* ===== FLOW ===== */
.flow-steps {
  max-width: 650px;
  margin: 48px auto 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.flow-step {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  position: relative;
}

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

.flow-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.flow-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-desc {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== FAQ ===== */
.faq {
  background: var(--green-pale);
}

.faq-list {
  max-width: 750px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--green);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ===== COMPANY ===== */
.company-table-wrap {
  max-width: 750px;
  margin: 48px auto 0;
}

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

.company-table th,
.company-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.company-table th {
  width: 28%;
  color: var(--gray-700);
  font-weight: 500;
  background: var(--gray-50);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg);
}

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.required {
  font-size: 0.7rem;
  color: var(--white);
  background: var(--green);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(56,142,60,0.1);
}

.form-textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

.footer .logo-text {
  color: var(--white);
}

.footer-desc {
  font-size: 0.85rem;
  margin-top: 16px;
  line-height: 1.8;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links a,
.footer-info {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.5);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

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

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

/* Hero animations */
.hero-sub {
  animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service hover icon scale */
.service-card:hover .service-icon svg {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Strength row hover */
.strength-row:hover {
  background: var(--green-light);
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.strength-row:hover .strength-num {
  opacity: 0.8;
}

/* Selection */
::selection {
  background: var(--green-light);
  color: var(--gray-900);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav.active {
    right: 0;
  }

  .nav-link {
    color: var(--gray-900) !important;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-badges {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 60px 0;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .number-value {
    font-size: 2rem;
  }

  .strength-row {
    flex-direction: column;
    gap: 8px;
  }

  .strength-num {
    width: auto;
    text-align: left;
  }
}

/* Nav active state */
.nav-link.active {
  color: var(--green) !important;
  font-weight: 700;
}

/* Button focus */
.btn:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Table hover */
.company-table tr:hover td {
  background: var(--green-light);
}
