/* ==========================================================================
   connectome.design — Single Page LP
   ========================================================================== */

:root {
  --c-bg-dark: #17191d;
  --c-bg-dark2: #1f2229;
  --c-bg-light: #ffffff;
  --c-bg-alt: #f3f4f6;
  --c-text: #1c1e22;
  --c-text-light: #f4f4f2;
  --c-muted: #6b7280;
  --c-muted-light: #9aa1ab;
  --c-accent: #6fa8a2;
  --c-accent-dark: #57837e;
  --c-line: #e2e4e8;
  --c-line-dark: rgba(255, 255, 255, 0.14);
  --header-h: 64px;
  --font-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-en: "Manrope", "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-bg-light);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: opacity 0.25s, transform 0.25s, background 0.25s, color 0.25s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(23, 25, 29, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text-light);
}
.brand-mark { border-radius: 8px; }
.brand-name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.global-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--c-text-light);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.global-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-cta a {
  background: var(--c-accent);
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 700;
}
.nav-cta a:hover { background: var(--c-accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--c-text-light);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-bg.jpg") center / cover no-repeat;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 25, 29, 0.35) 0%,
    rgba(23, 25, 29, 0.15) 50%,
    rgba(23, 25, 29, 0.65) 100%
  );
}

.hero-vertical {
  position: absolute;
  left: 34px;
  top: 55%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.42em;
  color: var(--c-accent);
  z-index: 1;
}

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 100px 110px;
  color: #fff;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 4.4vw, 54px);
  line-height: 1.75;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-title .accent { color: var(--c-accent); }

.hero-divider {
  width: 72px;
  height: 2px;
  background: var(--c-accent);
  margin: 30px 0;
}

.hero-sub {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 2;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-company {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.1em;
  color: var(--c-accent);
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 230px;
  padding: 17px 28px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  border-radius: 2px;
  transition: opacity 0.25s, background 0.25s, border-color 0.25s;
}
.btn-hero .arrow { font-family: var(--font-en); }
.btn-hero:hover { opacity: 0.85; }

.btn-hero-primary {
  background: #efece2;
  color: #17191d;
}
.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 56px 0; }
.section-alt { background: var(--c-bg-alt); }

.section-dark {
  background: var(--c-bg-dark);
  color: var(--c-text-light);
}
.section-dark .section-lead { color: var(--c-muted-light); }

.section-label {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 6px 0 18px;
  line-height: 1.4;
}

.section-lead {
  max-width: 720px;
  color: var(--c-muted);
  margin-bottom: 32px;
}

/* --- Service cards ------------------------------------------------------ */

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(23, 25, 29, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(23, 25, 29, 0.12);
}

.service-card-body { padding: 30px 32px 34px; }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Dark-section variant */
.section-dark .service-card {
  background: var(--c-bg-dark2);
  border-color: var(--c-line-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.section-dark .service-card:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.section-dark .check-list li {
  border-bottom-color: var(--c-line-dark);
  color: rgba(244, 244, 242, 0.9);
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px dashed var(--c-line);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--c-accent);
  border-bottom: 2.5px solid var(--c-accent);
}

/* --- About (dark) --------------------------------------------------------- */

.section-dark h3 {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-dark h3 .en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.philosophy { margin-top: 24px; }

.philosophy p {
  font-size: clamp(20px, 2.7vw, 30px);
  font-weight: 700;
  line-height: 2.2;
  letter-spacing: 0.05em;
}

.philosophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px 32px;
  max-width: 880px;
}
.philosophy-list li {
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--c-line-dark);
  position: relative;
  font-weight: 500;
  font-size: 15px;
}
.philosophy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.vision { margin-top: 64px; }
.vision p {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 2;
  max-width: 800px;
}

.ceo { margin-top: 48px; }

.ceo-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.ceo-photo { text-align: center; }
.ceo-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--c-line-dark);
}
.ceo-name {
  font-size: 14px;
  color: var(--c-muted-light);
  line-height: 1.8;
}
.ceo-name strong {
  font-size: 19px;
  color: var(--c-text-light);
}
.ceo-kana {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.ceo-timeline div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line-dark);
}
.ceo-timeline div:first-child { padding-top: 0; }
.ceo-timeline dt {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}
.ceo-timeline dd {
  font-size: 14.5px;
  color: rgba(244, 244, 242, 0.85);
}

/* --- Company table --------------------------------------------------------- */

.company-table {
  width: 100%;
  max-width: 840px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(23, 25, 29, 0.05);
}
.company-table th,
.company-table td {
  padding: 20px 28px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 180px;
  background: var(--c-bg-alt);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}
.company-table td { font-size: 15px; }

/* Dark-section variant */
.section-dark .company-table {
  background: var(--c-bg-dark2);
  border-color: var(--c-line-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.section-dark .company-table th,
.section-dark .company-table td {
  border-bottom-color: var(--c-line-dark);
}
.section-dark .company-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--c-text-light);
}

/* --- Contact --------------------------------------------------------------- */

.contact-email {
  margin-top: 8px;
}
.contact-email a {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: 0.02em;
  color: var(--c-text-light);
  border: 1px solid var(--c-line-dark);
  border-radius: 16px;
  padding: 22px 40px;
  transition: border-color 0.25s, background 0.25s;
  overflow-wrap: anywhere;
}
.contact-email a:hover {
  border-color: var(--c-accent);
  background: rgba(70, 168, 184, 0.1);
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  background: #101216;
  color: var(--c-text-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand-mark { border-radius: 10px; margin-bottom: 16px; }
.footer-company { font-weight: 700; font-size: 17px; }
.footer-address {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--c-muted-light);
}

.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.sns-links a,
.privacy-link {
  color: var(--c-muted-light);
  font-size: 13.5px;
  transition: color 0.2s;
}
.sns-links a:hover,
.privacy-link:hover { color: #fff; }

.copyright {
  text-align: center;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--c-muted-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 56px;
  padding: 22px 0;
}

/* --- Reveal animation ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ?noanim — screenshot/verification mode */
html.no-anim { scroll-behavior: auto; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  transition: none !important;
  animation: none !important;
}
html.no-anim .reveal { opacity: 1; transform: none; }
html.no-anim .hero { min-height: 720px; }

/* --- Responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .consulting-intro { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .ceo-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(23, 25, 29, 0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .global-nav.is-open { max-height: 420px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
  }
  .global-nav a { padding: 14px 8px; font-size: 15px; }
  .nav-cta { margin-top: 12px; }
  .nav-cta a { text-align: center; }

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

  .section { padding: 44px 0; }
  .hero-vertical { display: none; }
  .hero-content { padding: 120px 24px 72px; }
  .btn-hero { min-width: 0; width: 100%; }
  .ceo-timeline div { grid-template-columns: 1fr; gap: 4px; }
  .company-table th { width: 120px; white-space: normal; }
  .company-table th, .company-table td { padding: 16px 18px; }
  .contact-email a { padding: 16px 22px; }
}
