/* ============================================================
   Anaheim Eight corporate site - design tokens & base styles
   ============================================================ */

:root {
  /* colors */
  --color-bg: #ffffff;
  --color-bg-soft: #f9fbfd;
  --color-text: #333333;
  --color-heading: #1e242b;
  --color-accent: #16409a;      /* navy blue - sampled from the company logo */
  --color-accent-dark: #0f2f72;
  --color-accent-soft: #e8eef4;
  --color-footer-bg: #232830;
  --color-footer-text: #cfd4da;
  --color-border: #e3e7eb;

  /* type */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Lato", var(--font-jp);

  /* layout */
  --header-height: 76px;
  --section-padding: 130px;
  --section-padding-mobile: 64px;
  --max-width: 1120px;

  /* motion */
  --transition-base: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.4;
}

h1 { font-size: 44px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }

p { margin: 0 0 1em; }

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

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

.en {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-lead {
  max-width: 640px;
  color: var(--color-text);
  font-size: 16px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--color-heading);
}

.logo span {
  color: var(--color-accent);
}

.logo-mark {
  height: 34px;
  width: auto;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 10px 20px;
  border-radius: 2px;
  transition: background var(--transition-base);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-heading);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- arrow link (CTA text link, matches reference site) ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
  transition: gap var(--transition-base), color var(--transition-base);
}

.arrow-link:hover {
  gap: 14px;
}

.arrow-link .arrow {
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 1;
}

.arrow-link.on-dark {
  color: #fff;
  border-color: #fff;
}

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--header-height) + 100px);
  padding-bottom: 90px;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #ffffff 100%);
}

.hero h1 {
  font-size: 48px;
  max-width: 720px;
}

.hero .en {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.hero-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 16px;
}

.page-hero {
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 60px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.page-hero .eyebrow { margin-bottom: 18px; }

/* ---------- sections ---------- */
.section {
  padding: var(--section-padding) 0;
}

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

.section--accent {
  background: var(--color-accent);
  color: #fff;
}

.section--accent h2,
.section--accent h3 {
  color: #fff;
}

.section--accent .eyebrow {
  color: #cfe0ee;
}

.section-head {
  margin-bottom: 56px;
}

/* ---------- service cards ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.service-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-item .num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
}

.service-item h3 {
  margin-bottom: 14px;
}

.service-item p {
  max-width: 640px;
  margin-bottom: 0;
}

/* ---------- card grid (top page summary) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(21, 76, 122, 0.12);
}

.card .num {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---------- info table (company page) ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 760px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table:last-child tr:last-child th,
.info-table:last-child tr:last-child td {
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  width: 200px;
  font-weight: 700;
  color: var(--color-heading);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.info-table td {
  font-size: 15px;
}

.info-table td ol,
.info-table td ul {
  margin: 0;
  padding-left: 1.2em;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 28px;
}

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

.contact-detail dt {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-top: 28px;
}

.contact-detail dt:first-child { margin-top: 0; }

.contact-detail dd {
  margin: 6px 0 0;
  font-size: 16px;
}

.contact-phone {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-heading);
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-jp);
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-bg-soft);
}

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

.form-note {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 24px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--color-accent);
  border: none;
  padding: 14px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.btn-submit:hover {
  background: var(--color-accent-dark);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.footer-logo span { color: #6fa8d8; }

.footer-logo .logo-mark {
  height: 30px;
  filter: brightness(0) invert(1);
}

.footer-address {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-footer-text);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: #8a919b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open .nav-cta {
    display: inline-flex;
    margin: 0 24px 24px;
  }

  .hero h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

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