/* ==========================================================================
   Zero Realize - style.css
   ========================================================================== */

:root {
  --color-black: #1a1a1a;
  --color-dark: #2b2b2b;
  --color-gray-800: #54565a;
  --color-gray-100: #f4f4f4;
  --color-gray-200: #eaeaea;
  --color-white: #ffffff;
  --color-accent: #1a1a1a;
  --header-height: 84px;
  --max-width: 1140px;
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-black);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections get top padding so the fixed header never overlaps content */
section {
  scroll-margin-top: var(--header-height);
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 72px 0;
}

.section-eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 40px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-gray-200);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid var(--color-black);
  padding: 4px 12px;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

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

.main-nav a {
  font-size: 14.5px;
  white-space: nowrap;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

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

.nav-cta {
  border: 1px solid var(--color-black);
  padding: 9px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: calc(var(--header-height) + 72px) 0 72px;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #888;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.hero-lead {
  font-size: 18px;
  color: #444;
  max-width: 560px;
  margin: 0 0 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--color-black);
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.btn--primary:hover { background: #000; }

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

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--color-gray-200);
  padding-top: 48px;
}

.hero-point .icon {
  font-size: 26px;
  margin-bottom: 16px;
}

.hero-point h3 {
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 700;
}

.hero-point p {
  font-size: 14.5px;
  color: #666;
  margin: 0;
}

/* ---------------- Services ---------------- */
.services {
  background: var(--color-gray-100);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.service-card:last-child { margin-bottom: 0; }

.service-card:nth-child(odd) .service-photo { order: 1; }
.service-card:nth-child(even) .service-photo { order: -1; }

.service-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-tag {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.service-card h3 {
  font-size: 26px;
  margin: 0 0 18px;
  font-weight: 700;
}

.service-card p {
  color: #555;
  font-size: 15px;
  margin: 0;
}

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

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-text p {
  color: #444;
  font-size: 15.5px;
}

/* ---------------- FAQ ---------------- */
.faq {
  background: var(--color-gray-100);
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-black);
  font-family: inherit;
}

.faq-question .q-mark {
  font-weight: 700;
  font-size: 20px;
}

.faq-question .chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 14px;
}

.faq-item.is-open .chevron { transform: rotate(180deg); }

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

.faq-item.is-open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  margin: 0 0 22px;
  padding: 0 4px 0 44px;
  color: #555;
  font-size: 14.5px;
}

/* ---------------- Achievements ---------------- */
.achievements ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-gray-200);
}

.achievements li {
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 15px;
  display: flex;
  gap: 14px;
}

.achievements li .achv-company { font-weight: 700; }
.achievements li .achv-desc { color: #666; }

/* ---------------- Mission ---------------- */
.mission {
  background: var(--color-gray-100);
}

.mission-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}

.mission-label {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #999;
}

.mission-heading h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin: 0 0 20px;
}

.mission-equation {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}

.mission-body p {
  color: #444;
  font-size: 15px;
}

/* ---------------- Message ---------------- */
.message-block {
  max-width: 760px;
}

.message-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 28px;
}

.message-block p {
  color: #444;
  font-size: 15.5px;
}

.message-sign {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 700;
}

/* ---------------- Company ---------------- */
.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-gray-200);
}

.company-table tr {
  border-bottom: 1px solid var(--color-gray-200);
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 22px 16px 22px 4px;
  font-size: 14.5px;
  font-weight: 400;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  color: #999;
  font-weight: 500;
}

.company-map {
  margin-top: 40px;
}

.company-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------------- Contact ---------------- */
.contact {
  background: var(--color-gray-800);
  color: var(--color-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-intro .icon-badge {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 28px;
}

.contact-intro h2 {
  font-size: 26px;
  margin: 0 0 18px;
}

.contact-intro p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  max-width: 420px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-form label {
  display: block;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font-family: inherit;
  font-size: 14.5px;
  border-radius: 2px;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form .btn--primary {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.success { color: #9be29b; }
.form-status.error { color: #ff9b9b; }

/* honeypot field - hidden from real users */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #17181a;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.footer-inner small {
  font-size: 12.5px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .service-card,
  .about-grid,
  .contact-inner,
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .service-card:nth-child(odd) .service-photo,
  .service-card:nth-child(even) .service-photo {
    order: -1;
  }
  .mission-label {
    writing-mode: horizontal-tb;
  }
  .hero-points {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--color-gray-200);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .nav-cta { border: none; padding: 14px 0; }

  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--header-height) + 40px); }

  .hero-actions { flex-direction: column; }

  .section { padding: 64px 0; }
}
