/* ======================================
   All Brain - Corporate Site Style (Light)
   Aligned with World Report theme
   ====================================== */

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

:root {
  --color-primary: #1a3a5c;
  --color-accent: #4a6cf7;
  --color-accent-dark: #3a56d4;
  --color-accent-light: #eef2ff;
  --color-orange: #e8614d;
  --color-purple: #7c5cbf;
  --color-cyan: #0ea5e9;
  --color-green: #22c55e;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-gray: #f8fafc;
  --color-bg-hero: #f0f4ff;
  --color-border: #e2e8f0;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.sp-only { display: none; }

/* ---------- Animations ---------- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
  height: var(--header-height);
}

.header.is-scrolled {
  box-shadow: 0 2px 16px rgba(26, 58, 92, 0.06);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo { display: flex; align-items: center; }

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav-list a {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  transition: color 0.3s;
}

.header__nav-list a:hover { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn--header {
  padding: 8px 24px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 24px;
}

.btn--header:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--primary {
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.25);
}

.btn--white {
  padding: 14px 36px;
  background: #fff;
  color: var(--color-accent);
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 108, 247, 0.12);
  border-color: var(--color-accent);
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero (Light – World Report style) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-hero) 0%, #e0ecff 50%, #f0f4ff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 60px;
}

.hero__logo-mark {
  margin-bottom: 24px;
}

.hero__logo-img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.hero__sub {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-jp);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hero__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll span {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-text-light);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Hero Particles ---------- */
.particle {
  position: absolute;
  border-radius: 50%;
  bottom: -10px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ---------- Section Common ---------- */
.section { padding: 100px 0; }
.section--philosophy { background: var(--color-bg); }
.section--service { background: var(--color-bg-gray); }
.section--company { background: var(--color-bg); }

.section__header { margin-bottom: 48px; }

.section__label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.section__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 12px;
}

/* ---------- Philosophy ---------- */
.philosophy__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.philosophy__heading {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.philosophy__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 16px;
}

.philosophy__card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.philosophy__card {
  background: var(--color-bg-gray);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.philosophy__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.08);
}

.philosophy__card-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--color-accent);
}

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

.philosophy__card-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.philosophy__card-desc {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

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

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26, 58, 92, 0.08);
  border-color: var(--color-accent);
}

.service-card--coming {
  opacity: 0.65;
  border-style: dashed;
}

.service-card__number {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

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

.service-card__title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.service-card__tags li {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.service-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity 0.3s;
}

.service-card__link:hover { opacity: 0.7; }

/* ---------- Company Table ---------- */
.company-table {
  max-width: 720px;
}

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

.company-table th,
.company-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text-light);
}

/* ---------- CTA (Light – World Report style) ---------- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-bg-hero) 0%, #dbeafe 100%);
  color: var(--color-text);
  text-align: center;
}

.cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.cta__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  background: var(--color-bg-gray);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo { display: flex; align-items: center; }

.footer__logo-img {
  height: 24px;
  width: auto;
  opacity: 0.5;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 8px;
}

.footer__nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__nav a {
  font-size: 0.75rem;
  color: var(--color-text-light);
  transition: color 0.3s;
}

.footer__nav a:hover { color: var(--color-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .sp-only { display: inline; }

  .hamburger { display: flex; }

  .header__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(26, 58, 92, 0.1);
  }

  .header__nav.is-open { right: 0; }

  .header__nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .header__nav-list a {
    font-size: 1rem;
  }

  .hero__title { font-size: 1.8rem; }
  .hero__logo-img { width: 64px; height: 64px; }
  .hero__desc { font-size: 0.85rem; }
  .hero__desc br { display: none; }

  .section { padding: 64px 0; }
  .section__title { font-size: 1.6rem; }

  .philosophy__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .philosophy__heading { font-size: 1.3rem; }

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

  .philosophy__card {
    padding: 16px 12px;
  }

  .philosophy__card-icon {
    width: 28px;
    height: 28px;
  }

  .philosophy__card-title { font-size: 0.8rem; }
  .philosophy__card-desc { font-size: 0.7rem; }

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

  .service-card { padding: 24px 20px; }
  .service-card__icon { width: 30px; height: 30px; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .company-table th {
    border-bottom: none;
    padding-bottom: 0;
  }

  .company-table td {
    padding-top: 4px;
  }

  .cta__title { font-size: 1.3rem; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer__nav ul {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy__content {
    gap: 32px;
  }
}
