/* ==========================================================================
   AdaptiveNode合同会社 コーポレートサイト
   ========================================================================== */

:root {
  --ink: #0A0E17;
  --ink-soft: #4A5160;
  --ink-faint: #8A8F99;
  --bg: #FFFFFF;
  --bg-alt: #F5F6F8;
  --line: #DADEE5;
  --line-strong: #B9BFC9;
  --accent: #2451C4;
  --accent-soft: #E8EDFB;

  --font-jp: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Roboto Mono", monospace;

  --edge: clamp(20px, 6vw, 96px);
  --content-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt" 1;
  letter-spacing: 0.01em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}

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

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.br-sp {
  display: none;
}

/* ---------------------------------------------------------------------- */
/* Brand bar                                                              */
/* ---------------------------------------------------------------------- */

.brandbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.brandbar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--edge);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brandbar__mark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brandbar__sub {
  font-size: 12px;
  color: var(--ink-faint);
}

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

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black, transparent);
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid var(--accent);
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 28px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-soft);
  line-height: 2;
}

.hero__scroll {
  position: absolute;
  left: var(--edge);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--line-strong);
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------- */
/* Section shared                                                          */
/* ---------------------------------------------------------------------- */

main > section {
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.02em;
}

.section-lead {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.9;
}

/* ---------------------------------------------------------------------- */
/* Business cards                                                          */
/* ---------------------------------------------------------------------- */

.business {
  background: var(--bg-alt);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.card--link {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.card--link:hover {
  background: var(--ink);
  color: #fff;
}

.card--link:hover .card__eyebrow,
.card--link:hover .card__index {
  color: #fff;
  opacity: 0.6;
}

.card--link:hover .card__text {
  color: rgba(255, 255, 255, 0.72);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card__title {
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 16px;
}

.card__text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  flex: 1;
}

.card__more {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__arrow {
  font-family: var(--font-mono);
  transition: transform 0.15s ease;
}

.card-grid--issues .card__eyebrow {
  margin-bottom: 24px;
}

.card-grid--issues .card__title {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------------- */
/* Capabilities list                                                       */
/* ---------------------------------------------------------------------- */

.capabilities {
  background: var(--bg-alt);
}

.cap-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cap-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 28px;
}

.cap-list__index {
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.cap-list__text {
  font-size: 15px;
}

.card--link:hover .card__arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------- */
/* TraceBase section                                                       */
/* ---------------------------------------------------------------------- */

.tb-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}

.tb-lead {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 32px;
}

.tb-points {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}

.tb-points li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.tb-points__label {
  font-weight: 700;
  font-size: 14px;
}

.tb-points__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.tb-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease;
}

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

.btn__arrow {
  font-family: var(--font-mono);
}

.tb-panel {
  border: 1px solid var(--line);
  padding: 32px;
  height: fit-content;
  background: var(--bg-alt);
}

.tb-panel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.tb-panel__value {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
}

.tb-panel__value.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.tb-panel__rule {
  height: 1px;
  background: var(--line);
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------------- */
/* Company overview                                                        */
/* ---------------------------------------------------------------------- */

.info-table {
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.info-row dd {
  font-size: 15px;
  line-height: 1.9;
}

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

.contact {
  border-bottom: none;
}

.contact__intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 48ch;
}

.contact__lead {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.contact__mail {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact__mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.footer {
  padding: 28px 0;
}

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

.footer__name {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer__copy {
  font-size: 12px;
  color: var(--ink-faint);
}

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

@media (max-width: 860px) {
  .tb-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-row,
  .tb-points li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cap-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .br-sp {
    display: inline;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}
