:root {
  --agv-orange: #f4511e;
  --agv-orange-dark: #d83b0d;
  --agv-ink: #152028;
  --agv-steel: #43515a;
  --agv-pale: #f3f5f5;
  --agv-line: #d9dfe2;
}

/* The original animated product-first opening is retained in source but replaced visually. */
.back, .machcon, #visual { display: none !important; }
.front { display: block !important; pointer-events: none; }
.front .front_block { display: none !important; }
#intro.contents_section {
  margin: 0;
  padding: 0;
  min-height: 0;
  z-index: 110;
}

.agv-hero {
  min-height: 820px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #10171b;
  color: #fff;
}
.agv-hero__image, .agv-hero__shade {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.agv-hero__image { object-fit: cover; object-position: center; }
.agv-hero__shade {
  background: linear-gradient(90deg, rgba(8,15,19,.92) 0%, rgba(8,15,19,.76) 38%, rgba(8,15,19,.18) 72%, rgba(8,15,19,.08) 100%);
}
.agv-hero__content {
  position: relative; z-index: 2; width: min(1180px, calc(100% - 80px));
  margin: 0 auto; padding: 120px 0 190px;
}
.agv-eyebrow, .agv-kicker {
  margin: 0 0 22px; color: var(--agv-orange); font: 700 14px/1.4 "Oswald", sans-serif;
  letter-spacing: .16em;
}
.agv-hero h1 {
  margin: 0 0 28px; color: #fff; font-size: clamp(46px, 6.3vw, 88px);
  line-height: 1.08; letter-spacing: -.045em; font-weight: 900;
}
.agv-hero h1 span { color: #ff6a38; }
.agv-hero__lead { margin: 0 0 20px; color: #fff; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.55; font-weight: 700; }
.agv-hero__lead span { color: var(--agv-orange); font-size: 1.22em; font-weight: 900; }
.agv-hero__product { margin: 0 0 34px; color: #dbe1e4; font-size: 15px; line-height: 1.8; }
.agv-hero__product strong { display: inline-block; margin-top: 4px; color: #fff; font-size: 28px; }
.agv-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.agv-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding: 12px 23px; border: 1px solid transparent; border-radius: 4px;
  font-size: 15px; line-height: 1.4; font-weight: 700; text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.agv-btn:hover { transform: translateY(-2px); }
.agv-btn--primary { background: var(--agv-orange); color: #fff !important; }
.agv-btn--primary:hover { background: var(--agv-orange-dark); }
.agv-btn--outline { border-color: #fff; background: rgba(255,255,255,.08); color: #fff !important; }
.agv-btn--ghost { border-color: rgba(255,255,255,.38); color: #fff !important; }
.agv-btn--light { background: #fff; color: var(--agv-ink) !important; }
.agv-hero__stats {
  position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr); width: min(1180px, calc(100% - 80px));
  background: rgba(18,28,34,.94); border-top: 3px solid var(--agv-orange);
}
.agv-hero__stats div { padding: 25px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.agv-hero__stats div:last-child { border-right: 0; }
.agv-hero__stats strong, .agv-hero__stats span { display: block; }
.agv-hero__stats strong { color: #fff; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.2; }
.agv-hero__stats span { margin-top: 6px; color: #bac5ca; font-size: 13px; }
.agv-image-note { position: absolute; right: 18px; bottom: 125px; z-index: 4; color: rgba(255,255,255,.8); font-size: 11px; }

.agv-section { position: relative; width: 100%; padding: 110px 0; font-family: "Noto Sans JP", sans-serif; }
.agv-container { width: min(1180px, calc(100% - 80px)); margin: 0 auto; }
.agv-section h2 { margin: 0 0 32px; color: var(--agv-ink); font-size: clamp(34px, 4.2vw, 58px); line-height: 1.25; letter-spacing: -.035em; }
.agv-section h3 { color: var(--agv-ink); }
.agv-section p { color: var(--agv-steel); font-size: 16px; line-height: 2; }
.agv-section-lead { max-width: 850px; margin: 0; }
.agv-system { background: #fff; }
.agv-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; margin-top: 55px; }
.agv-flow > div { padding: 28px 22px; border: 1px solid var(--agv-line); background: var(--agv-pale); }
.agv-flow span, .agv-flow strong, .agv-flow small { display: block; }
.agv-flow span { color: var(--agv-orange); font-weight: 800; }
.agv-flow strong { margin: 12px 0 8px; color: var(--agv-ink); font-size: 17px; }
.agv-flow small { color: #65747c; font-size: 12px; line-height: 1.6; }
.agv-flow i { align-self: center; padding: 0 8px; color: var(--agv-orange); font-size: 23px; font-style: normal; }

.agv-product { background: var(--agv-ink); }
.agv-product h2, .agv-product p { color: #fff; }
.agv-split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.agv-product .agv-split > div:first-child p { color: #d8dfe2; }
.agv-callout { padding: 42px; border-left: 5px solid var(--agv-orange); background: #202d34; }
.agv-callout strong { display: block; margin-bottom: 20px; color: #fff; font-size: 28px; line-height: 1.5; }
.agv-callout p { margin: 0; color: #c5d0d4; font-size: 14px; }

.agv-features { background: #eef1f2; }
.agv-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.agv-feature-grid article { padding: 38px; border-top: 4px solid var(--agv-orange); background: #fff; box-shadow: 0 12px 32px rgba(18,32,40,.08); }
.agv-feature-grid article > span { color: var(--agv-orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.agv-feature-grid h3 { min-height: 58px; margin: 15px 0 24px; font-size: 23px; line-height: 1.45; }
.agv-feature-grid strong { display: block; color: var(--agv-ink); font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.agv-feature-grid strong small { display: block; margin-top: 8px; color: var(--agv-orange); font-size: 14px; }
.agv-feature-grid p { margin: 22px 0 0; font-size: 14px; line-height: 1.8; }
.agv-feature-grid em { display: block; margin-top: 14px; color: #68767d; font-size: 11px; line-height: 1.7; font-style: normal; }

.agv-troubles { background: #fff; }
.agv-trouble-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agv-trouble-grid article { min-height: 245px; padding: 28px; background: linear-gradient(150deg, #25323a, #121b20); }
.agv-trouble-grid b { color: var(--agv-orange); font-size: 30px; }
.agv-trouble-grid h3 { margin: 48px 0 12px; color: #fff; font-size: 20px; }
.agv-trouble-grid p { margin: 0; color: #cbd3d6; font-size: 13px; line-height: 1.8; }
.agv-note { margin: 22px 0 0 !important; color: #66757c !important; font-size: 12px !important; }

.agv-story { background: #f5f2ed; }
.agv-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: story; }
.agv-story-grid article { position: relative; padding: 42px 34px; background: #fff; border-right: 1px solid var(--agv-line); }
.agv-story-grid article:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--agv-orange); color: #fff; text-align: center; line-height: 34px; }
.agv-story-grid span { color: var(--agv-orange); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.agv-story-grid h3 { margin: 20px 0 15px; font-size: 21px; line-height: 1.5; }
.agv-story-grid p { margin: 0; font-size: 14px; line-height: 1.9; }

.agv-compare { background: #fff; }
.agv-table-wrap { overflow-x: auto; border: 1px solid var(--agv-line); }
.agv-compare table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.agv-compare th, .agv-compare td { padding: 20px 24px; border-bottom: 1px solid var(--agv-line); text-align: left; }
.agv-compare thead th { background: var(--agv-ink); color: #fff; }
.agv-compare thead th:last-child { background: var(--agv-orange); }
.agv-compare tbody th { width: 24%; background: #f5f7f7; color: var(--agv-ink); }
.agv-compare td:last-child { background: #fff7f3; color: var(--agv-ink); }

.agv-cta-band { padding: 90px 0; background: var(--agv-orange); }
.agv-cta-band__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.agv-cta-band .agv-kicker { color: #451306; }
.agv-cta-band h2, .agv-cta-band p { color: #fff; }
.agv-cta-band h2 { margin-bottom: 20px; font-size: clamp(30px, 3.4vw, 46px); }
.agv-cta-band p { margin: 0; line-height: 1.9; }
.agv-cta-band__buttons { display: grid; gap: 12px; }

.agv-method { padding: 10px 0 110px; background: #fff; }
.agv-method-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--agv-line); }
.agv-method-grid article { min-height: 230px; padding: 26px 22px; border-right: 1px solid var(--agv-line); }
.agv-method-grid article:last-child { border-right: 0; }
.agv-method-grid span { color: var(--agv-orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.agv-method-grid h3 { margin: 35px 0 12px; color: var(--agv-ink); font-size: 17px; line-height: 1.5; }
.agv-method-grid p { margin: 0; color: var(--agv-steel); font-size: 12px; line-height: 1.8; }

#about .worries_points { grid-template-columns: repeat(4, 1fr); }
#about .agv-about-benefits,
#about .agv-about-benefits .about_list,
#about .agv-about-benefits .scroll_icon,
#about .agv-about-benefits .scroll_img {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  visibility: visible !important;
}
.agv-emphasis { color: var(--agv-orange) !important; font-weight: 900; }

/* Match each answer card image to its message: strength, finishing, speed. */
#about .agv-about-benefits > .about_list:nth-child(2) .about_img span { background-image: url(../img/about3.webp); }
#about .agv-about-benefits > .about_list:nth-child(3) .about_img span { background-image: url(../img/about2.webp); }

@media (max-width: 900px) {
  .agv-hero { min-height: 840px; }
  .agv-hero__content, .agv-container, .agv-hero__stats { width: min(100% - 40px, 760px); }
  .agv-hero__content { padding-top: 110px; }
  .agv-hero__image { object-position: 62% center; }
  .agv-hero__shade { background: linear-gradient(90deg, rgba(8,15,19,.92), rgba(8,15,19,.52)); }
  .agv-flow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .agv-flow i { display: none; }
  .agv-split, .agv-cta-band__inner { grid-template-columns: 1fr; gap: 38px; }
  .agv-trouble-grid { grid-template-columns: repeat(2, 1fr); }
  .agv-method-grid { grid-template-columns: repeat(2, 1fr); }
  .agv-method-grid article { border-bottom: 1px solid var(--agv-line); }
  #about .worries_points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.agv-table-wrap {
		width: 100%;
		overflow-x: visible;
	}

	.agv-compare table {
		width: 100%;
		min-width: 0;
		table-layout: fixed;
		font-size: 11px;
	}

	.agv-compare th,
	.agv-compare td {
		padding: 12px 6px;
		overflow-wrap: anywhere;
		word-break: normal;
		line-height: 1.6;
	}

	.agv-compare thead th:first-child,
	.agv-compare tbody th {
		width: 25%;
	}

	.agv-compare thead th:nth-child(2),
	.agv-compare thead th:nth-child(3) {
		width: 37.5%;
	}

  .agv-hero { min-height: 900px; align-items: flex-start; }
  .agv-hero__content, .agv-container, .agv-hero__stats { width: calc(100% - 28px); }
  .agv-hero__content { padding: 86px 0 280px; }
  .agv-hero__lead { font-size: 18px; }
  .agv-hero__cta { display: grid; }
  .agv-hero__stats { grid-template-columns: 1fr; }
  .agv-hero__stats div { padding: 14px 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .agv-hero__stats strong { font-size: 23px; }
  .agv-hero__stats span { margin-top: 2px; }
  .agv-image-note { bottom: 242px; }
  .agv-section { padding: 72px 0; }
  .agv-section h2 { font-size: 32px; }
  .agv-flow, .agv-feature-grid, .agv-trouble-grid, .agv-story-grid { grid-template-columns: 1fr; }
  .agv-method-grid { grid-template-columns: 1fr; }
  .agv-method-grid article { min-height: 0; border-right: 0; }
  .agv-feature-grid article { padding: 28px; }
  .agv-story-grid article { border-right: 0; border-bottom: 1px solid var(--agv-line); }
  .agv-story-grid article:not(:last-child)::after { top: auto; right: calc(50% - 18px); bottom: -18px; transform: rotate(90deg); }
  #about .worries_points { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .agv-btn { transition: none; }
}
