/* ============================================================
   KOGATEX コーポレートLP — Stylesheet
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section { padding: var(--space-9) 0; }
.section--alt  { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-invert); }

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Section heading ---------- */
.section-head { max-width: 680px; margin-bottom: var(--space-7); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--color-accent);
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px; height: 2px;
  background: var(--color-accent);
}

.section-title {
  margin-top: var(--space-3);
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
}
.section-lead {
  margin-top: var(--space-4);
  color: var(--color-text-soft);
}
.section--dark .section-lead { color: var(--color-text-invert-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px var(--space-6);
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(240, 100, 30, 0.32);
}
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--lg { padding: 18px var(--space-7); font-size: var(--fs-md); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(13, 38, 69, 0.0);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(13, 38, 69, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
}
.logo__mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.logo__text {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.logo__text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-invert-soft);
}

/* Nav */
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; gap: var(--space-5); }
.nav__list a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-invert);
  padding: var(--space-2) 0;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.22s var(--ease);
}
.nav__list a:hover::after { width: 100%; }
.nav__cta {
  padding: 10px var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease);
}
.nav__cta:hover { background: var(--color-accent-hover); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--space-9));
  padding-bottom: var(--space-9);
  background:
    radial-gradient(900px 500px at 80% -10%, var(--navy-600) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--color-text-invert);
  overflow: hidden;
}
/* blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(800px 600px at 30% 40%, #000 0%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-invert);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-dark);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.hero__title {
  margin-top: var(--space-5);
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.hero__title .accent {
  color: var(--orange-400);
  position: relative;
}
.hero__lead {
  margin-top: var(--space-5);
  max-width: 32em;
  color: var(--color-text-invert-soft);
}
.hero__actions {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero__stats {
  margin-top: var(--space-7);
  display: flex;
  gap: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-dark);
}
.hero__stat .num {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--white);
}
.hero__stat .label {
  font-size: var(--fs-xs);
  color: var(--color-text-invert-soft);
  letter-spacing: 0.04em;
}

/* Hero visual card */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(155deg, rgba(42, 93, 146, 0.35), rgba(13, 38, 69, 0.65));
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-lg);
}
.hero-card__tag {
  position: absolute;
  top: -14px; right: var(--space-6);
  padding: 6px var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--color-accent);
  border-radius: 100px;
}
.hexring {
  width: 132px; height: 132px;
  margin: var(--space-3) auto var(--space-6);
}
.hero-card__pillars {
  display: grid;
  gap: var(--space-3);
}
.pillar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}
.pillar-row svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--orange-400); }
.pillar-row b { font-size: var(--fs-sm); font-weight: 700; }
.pillar-row span { display: block; font-size: var(--fs-xs); color: var(--color-text-invert-soft); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: var(--space-4);
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-text-invert-soft);
  writing-mode: vertical-rl;
}

/* ============================================================
   Business（2本柱）
   ============================================================ */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.biz-card {
  position: relative;
  padding: var(--space-7) var(--space-6);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.biz-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-300);
}
.biz-card:hover::before { transform: scaleX(1); }
.biz-card__no {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--steel-400);
  letter-spacing: 0.1em;
}
.biz-card__icon {
  width: 58px; height: 58px;
  margin: var(--space-4) 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  color: var(--orange-400);
}
.biz-card__icon svg { width: 30px; height: 30px; }
.biz-card__title {
  font-size: var(--fs-lg);
  font-weight: 800;
}
.biz-card__desc {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}
.tag-list {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag-list li {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--navy-700);
  padding: 5px var(--space-3);
  background: var(--steel-100);
  border-radius: 100px;
}

/* ============================================================
   Strengths（dark）
   ============================================================ */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.strength {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius);
}
.strength__num {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1;
  color: var(--orange-400);
  flex-shrink: 0;
}
.strength__title {
  font-size: var(--fs-md);
  font-weight: 800;
}
.strength__desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-invert-soft);
}

/* ============================================================
   Capabilities（対応領域）
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.cap {
  padding: var(--space-7) var(--space-6);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.cap__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--steel-100);
}
.cap__head svg { width: 26px; height: 26px; color: var(--color-accent); }
.cap__head h3 { font-size: var(--fs-md); font-weight: 800; }
.cap__list { margin-top: var(--space-4); display: grid; gap: var(--space-3); }
.cap__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}
.cap__list li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 9px;
  flex-shrink: 0;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ============================================================
   Flow（流れ）
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
.flow__step {
  position: relative;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.flow__step .step-no {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}
.flow__step .step-title {
  margin-top: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 800;
}
.flow__step .step-desc {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
}
.flow__step::after {
  content: "";
  position: absolute;
  top: 50%; right: calc(var(--space-5) * -1);
  width: var(--space-5); height: 2px;
  background: var(--steel-300);
  transform: translateX(-2px);
}
.flow__step:nth-child(3n)::after,
.flow__step:last-child::after { display: none; }

/* ============================================================
   Company（会社概要）
   ============================================================ */
.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.company__table { width: 100%; border-collapse: collapse; }
.company__table th,
.company__table td {
  text-align: left;
  padding: var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  vertical-align: top;
}
.company__table th {
  width: 32%;
  font-weight: 700;
  color: var(--navy-700);
}
.company__table td { color: var(--color-text-soft); }
.company__map {
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(13, 38, 69, 0.04), rgba(13, 38, 69, 0.10)),
    repeating-linear-gradient(0deg, var(--steel-100) 0 38px, var(--steel-50) 38px 76px),
    repeating-linear-gradient(90deg, var(--steel-100) 0 38px, var(--steel-50) 38px 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--steel-500);
  text-align: center;
}
.company__map svg { width: 40px; height: 40px; color: var(--color-accent); }
.company__map b { color: var(--navy-700); font-size: var(--fs-sm); }
.company__map span { font-size: var(--fs-xs); }

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}
.contact-info { display: grid; gap: var(--space-5); }
.contact-info__item {
  display: flex;
  gap: var(--space-4);
}
.contact-info__item svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--orange-400);
}
.contact-info__item .k {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--color-text-invert-soft);
}
.contact-info__item .v {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--white);
}
.contact-info__item .v.tel { font-size: var(--fs-xl); font-weight: 900; }

.form {
  background: var(--white);
  color: var(--color-text);
  padding: var(--space-7) var(--space-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form__row { margin-bottom: var(--space-4); }
.form__row label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.form__row label .req {
  font-size: 10px;
  color: var(--white);
  background: var(--color-accent);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: var(--space-2);
}
.form__row input,
.form__row textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-sm);
  padding: 12px var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--steel-50);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--white);
}
.form__row textarea { resize: vertical; min-height: 110px; }
.form__submit { width: 100%; margin-top: var(--space-2); }
.form__note {
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-soft);
  text-align: center;
}

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-600));
  color: var(--white);
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-7) 0;
  flex-wrap: wrap;
}
.cta-strip__title { font-size: var(--fs-xl); font-weight: 900; }
.cta-strip__text { font-size: var(--fs-sm); opacity: 0.92; margin-top: var(--space-1); }
.cta-strip .btn {
  background: var(--white);
  color: var(--orange-600);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy-900);
  color: var(--color-text-invert-soft);
  padding: var(--space-8) 0 var(--space-5);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-7);
  flex-wrap: wrap;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-dark);
}
.footer__brand { max-width: 320px; }
.footer__brand .logo { margin-bottom: var(--space-3); }
.footer__brand p { font-size: var(--fs-sm); }
.footer__nav { display: flex; gap: var(--space-8); }
.footer__nav h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.footer__nav ul { display: grid; gap: var(--space-2); }
.footer__nav a { font-size: var(--fs-sm); }
.footer__nav a:hover { color: var(--orange-400); }
.footer__bottom {
  margin-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
}
.footer__sample {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-invert-soft);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --fs-3xl: 2.4rem; --fs-2xl: 1.9rem; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__content { order: 1; }
  .hero__visual { order: 2; }
  .hero-card { max-width: 380px; }
  .company { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow__step:nth-child(3n)::after { display: block; }
  .flow__step:nth-child(2n)::after,
  .flow__step:last-child::after { display: none; }
}

@media (max-width: 680px) {
  :root { --fs-3xl: 1.9rem; --fs-2xl: 1.55rem; --space-9: 60px; }
  .nav__list, .nav__cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-800);
    padding: var(--space-5) var(--space-5) var(--space-6);
    overflow-y: auto;
    transform: translateY(-105%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
    box-shadow: var(--shadow-lg);
  }
  .header.is-open .nav {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.32s var(--ease), visibility 0s;
  }
  .header.is-open .nav__list,
  .header.is-open .nav__cta { display: flex; }
  .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav__list a {
    width: 100%;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border-dark);
  }
  .nav__cta {
    width: 100%;
    margin-top: var(--space-4);
    padding: 14px;
    text-align: center;
  }

  .biz-grid, .strength-grid, .cap-grid, .flow { grid-template-columns: 1fr; }
  .flow__step::after { display: none !important; }

  /* hero — mobile rebuild（見出しを先頭へ・崩れ解消） */
  .hero {
    padding-top: calc(var(--header-h) + var(--space-6));
    padding-bottom: var(--space-8);
  }
  .hero__inner { gap: var(--space-7); }
  .hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    padding: 7px var(--space-3);
    border-radius: var(--radius-sm);
  }
  .hero__title { line-height: 1.45; }
  .hero__title br { display: none; }
  .hero__lead { margin-top: var(--space-4); font-size: var(--fs-sm); }
  .hero__actions { margin-top: var(--space-6); flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { margin-top: var(--space-6); gap: var(--space-4); }
  .hero__stat { flex: 1; min-width: 0; }
  .hero__stat .num { font-size: var(--fs-lg); }
  .hero-card { max-width: 100%; padding: var(--space-6) var(--space-5); }
  .hexring { width: 104px; height: 104px; margin-bottom: var(--space-5); }
  .hero__scroll { display: none; }

  /* strengths — tighten */
  .strength { gap: var(--space-4); padding: var(--space-5); }
  .strength__num { font-size: var(--fs-lg); }

  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}
