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

:root {
  --green-dark: #0d4a2e;
  --green: #1a7a4a;
  --green-light: #5cb85c;
  --green-lighter: #8dd35f;
  --cyan-dark: #0a6e7a;
  --cyan: #00b4d8;
  --cyan-light: #48cae4;
  --gradient-main: linear-gradient(135deg, var(--green-dark), var(--green), var(--cyan-dark));
  --gradient-accent: linear-gradient(135deg, var(--green-light), var(--cyan));
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-gray: #f5f7f6;
  --border: #e0e5e3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 122, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.btn-full {
  width: 100%;
  padding: 16px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

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

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.logo-img--footer {
  height: 56px;
  filter: brightness(1.2);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  background: var(--gradient-main);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 122, 74, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  z-index: -2;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(72, 202, 228, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(141, 211, 95, 0.15) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* Hero wave canvas */
.hero-wave-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  padding: 140px 0 100px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: titleReveal 0.6s ease 0.1s forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
}

.hero-title-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 0.8s ease forwards;
}

.hero-title-line--1 {
  animation-delay: 0.3s;
}

.hero-title-line--2 {
  animation-delay: 0.7s;
  background: linear-gradient(
    90deg,
    #fff 0%, #fff 30%,
    var(--cyan-light) 42%,
    var(--green-lighter) 50%,
    var(--cyan-light) 58%,
    #fff 70%,
    #fff 100%
  );
  background-size: 250% 100%;
  background-position: 100% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleReveal 0.8s ease 0.7s forwards, shimmer 2.5s ease-in-out 1.5s 1 forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -50% center; }
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 2;
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  animation: titleReveal 0.8s ease 1.1s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: titleReveal 0.8s ease 1.4s forwards;
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
}

.section-desc {
  margin-top: 12px;
  color: var(--text-light);
}

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

.about-message-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 16px;
}

.about-message-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.about-message-text {
  color: var(--text-light);
  line-height: 2;
}

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

.about-table tr {
  border-bottom: 1px solid var(--border);
}

.about-table th,
.about-table td {
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
}

.about-table th {
  width: 130px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dark);
  white-space: nowrap;
}

.about-table td {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Service ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--green);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.service-card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Strength ===== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.strength-item {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.strength-item:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow);
}

.strength-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.strength-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.strength-item-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== Flow ===== */
.flow-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.flow-step {
  flex: 1;
  max-width: 300px;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.flow-step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--cyan-dark);
  margin-bottom: 16px;
}

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.flow-step-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--cyan);
  flex-shrink: 0;
}

.flow-arrow svg {
  width: 28px;
  height: 28px;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-dark);
}

.contact-info-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-form {
  background: var(--bg-gray);
  padding: 40px;
  border-radius: var(--radius);
}

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

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: #e74c3c;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer .logo-img {
  height: 56px;
  filter: brightness(1.5);
}

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

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links-group ul li {
  margin-bottom: 8px;
}

.footer-links-group ul li a {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links-group ul li a:hover {
  opacity: 1;
  color: var(--cyan-light);
}

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

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

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

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

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .hero-inner {
    padding: 120px 0 80px;
  }

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

  .about-grid,
  .service-grid,
  .strength-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-grid {
    flex-direction: column;
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .flow-step {
    max-width: 100%;
    width: 100%;
  }

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

  .contact-form {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
  }

  .section {
    padding: 60px 0;
  }

  .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);
  }
}

/* ===== Estimate page ===== */
[hidden] { display: none !important; }

.nav-link.is-current { color: var(--green); }
.nav-link.is-current::after { width: 100%; }

.page-hero {
  background: var(--gradient-main);
  color: #fff;
  padding: 136px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(72, 202, 228, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(141, 211, 95, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.85;
}

.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-hero-desc { opacity: 0.9; }

.estimate-section { padding-top: 64px; }

.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.estimate-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.estimate-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.estimate-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.estimate-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.estimate-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}

.estimate-step .form-group:last-child { margin-bottom: 0; }

.service-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-choice-item { cursor: pointer; }

.service-choice-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-choice-body {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.service-choice-item:hover .service-choice-body { border-color: var(--cyan-light); }

.service-choice-item input:checked + .service-choice-body {
  border-color: var(--green);
  background: rgba(26, 122, 74, 0.05);
}

.service-choice-item input:focus-visible + .service-choice-body {
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.2);
}

.service-choice-name {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
}

.service-choice-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.input-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
}

.input-unit span {
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.form-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.estimate-inhouse-note {
  color: var(--text-light);
  font-size: 0.95rem;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.option-item:hover { border-color: var(--cyan-light); }

.option-item:has(input:checked) {
  border-color: var(--green);
  background: rgba(26, 122, 74, 0.05);
}

.option-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
}

.option-name {
  flex: 1;
  font-size: 0.95rem;
}

.option-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-dark);
  white-space: nowrap;
}

.estimate-result {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  border-top: 4px solid var(--green);
}

.estimate-result-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.estimate-result-total {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}

.estimate-result-total small {
  font-size: 1.1rem;
  margin-left: 4px;
}

.estimate-result-period {
  font-size: 0.85rem;
  color: var(--cyan-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.estimate-breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.estimate-breakdown th,
.estimate-breakdown td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.estimate-breakdown th {
  text-align: left;
  font-weight: 400;
  color: var(--text-light);
  padding-right: 12px;
}

.estimate-breakdown td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.estimate-breakdown tfoot th,
.estimate-breakdown tfoot td {
  font-weight: 700;
  color: var(--text);
}

.estimate-notes {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.estimate-notes li {
  padding-left: 1em;
  text-indent: -1em;
}

.estimate-notes li::before { content: '※'; }

.request-form {
  max-width: 760px;
  margin: 0 auto;
}

.request-summary {
  background: #fff;
  border: 1px dashed var(--green-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.request-summary-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
}

.request-summary-text {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: pre-wrap;
  line-height: 1.7;
}

@media (max-width: 960px) {
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-result { position: static; }
}

@media (max-width: 768px) {
  .page-hero { padding: 112px 0 48px; }
  .estimate-section { padding-top: 40px; }
  .estimate-step { padding: 24px 20px; }
  .estimate-result { padding: 28px 20px; }
}

@media (max-width: 420px) {
  .service-choice { grid-template-columns: 1fr; }
}
