/* =================================================================
   ATK 合同会社 — Design System (Direction B / 中庸)
   Charcoal × Cyan · Zen Kaku Gothic New + Noto Sans JP · card-based
   ================================================================= */

:root {
  /* ---- color tokens ---- */
  --ink:          #1d2126;   /* primary dark / charcoal */
  --ink-soft:     #2b3036;
  --paper:        #fbfbfa;   /* page background */
  --paper-alt:    #f3f4f1;   /* alternating section bg */
  --surface:      #ffffff;   /* cards */
  --border:       #e8e9e6;
  --border-strong:#dcdfdb;
  --text:         #3a4045;   /* body */
  --text-soft:    #525a60;
  --text-mute:    #838b84;
  --accent:       #16808f;   /* cyan */
  --accent-deep:  #0f6675;
  --accent-soft:  #e7f0f1;
  --accent-tint:  #eef5f5;

  /* ---- radius ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- shadow ---- */
  --shadow-sm: 0 1px 2px rgba(20,30,40,.03), 0 8px 24px rgba(20,30,40,.04);
  --shadow-md: 0 2px 6px rgba(20,30,40,.05), 0 18px 40px rgba(20,30,40,.07);

  /* ---- layout ---- */
  --container: 1120px;
  --gutter: 56px;

  /* ---- type ---- */
  --font-head: "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,p,dl,dd,figure,ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- layout helpers ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: #e9ebec; }

/* ---- typographic primitives ---- */
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 3px; font-weight: 600;
  color: var(--accent); margin-bottom: 14px;
}
.section--ink .eyebrow { color: #4fb6c4; }
.sec-title { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--ink); letter-spacing: .5px; line-height: 1.4; }
.section--ink .sec-title { color: #fff; }
.lead { font-size: 17px; line-height: 2; color: var(--text-soft); }

/* ---- pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 7px 15px; border-radius: var(--r-pill); white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  padding: 15px 32px; border-radius: var(--r-sm);
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn-sm { padding: 10px 22px; font-size: 13.5px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-deep); }

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,250,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; display: flex; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: 1px; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) { font-size: 14.5px; text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a.is-active:not(.btn) { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* =================================================================
   Page hero (sub pages)
   ================================================================= */
.page-hero { padding: 76px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: 44px; color: var(--ink); letter-spacing: 1px; line-height: 1.35; }
.page-hero .page-hero-lead { margin-top: 22px; max-width: 620px; font-size: 16.5px; line-height: 2; color: var(--text-soft); }
/* page-hero with key-visual panel */
.page-hero--split .container { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.page-hero--split .page-hero-lead { max-width: 520px; }
.page-hero .kv-hero {
  height: 248px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background-color: #eef3f3;
  background-image: radial-gradient(circle at 70% 30%, rgba(22,128,143,.22), transparent 58%), radial-gradient(rgba(22,128,143,.45) 1.4px, transparent 1.6px);
  background-size: cover, 15px 15px;
}
@media (max-width: 860px) {
  .page-hero--split .container { grid-template-columns: 1fr; gap: 28px; }
  .page-hero .kv-hero { height: 180px; }
}

/* =================================================================
   Footer
   ================================================================= */
.site-footer { padding: 52px 0 34px; border-top: 1px solid var(--border); margin-top: 8px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-desc { font-size: 12.5px; color: var(--text-mute); margin-top: 16px; max-width: 320px; line-height: 1.9; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; text-decoration: none; color: var(--text-mute); transition: color .15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-mute); }

/* =================================================================
   Cards / grids (shared)
   ================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.card .tag { font-size: 10.5px; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.card .num {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 22px;
}
.card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.card p { font-size: 14px; line-height: 1.9; color: var(--text-soft); }

/* facts (会社概要 numbers) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.fact dt { font-size: 11px; letter-spacing: 1.5px; color: var(--text-mute); margin-bottom: 10px; }
.fact dd { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }

/* members */
.mem-photo { object-fit: cover; background: #e9ebe8; display: block; }
.mem-avatar { display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-deep); font-family: var(--font-head); font-weight: 700; }
.mem .mem-avatar { font-size: 30px; }
.mem--lg .mem-avatar { font-size: 68px; }
.mem .mem-photo { width: 96px; height: 96px; border-radius: var(--r-md); flex-shrink: 0; }
.mem--lg .mem-photo { width: 100%; height: 248px; border-radius: var(--r-md); margin-bottom: 20px; }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mem { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display: flex; gap: 22px; align-items: center; }
.mem .role { font-size: 10.5px; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin-bottom: 7px; }
.mem .nm { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.mem .bio { font-size: 13px; line-height: 1.85; color: var(--text-soft); }

/* placeholder (imagery slots) */
.ph {
  background-color: #e9ebe8;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(22,128,143,.06) 11px 12px);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: #9aa39c; font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
}

/* cta band */
.cta-band {
  background: var(--ink); border-radius: var(--r-xl); color: #fff;
  padding: 60px 56px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-head); font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.cta-band p { color: #aeb8c0; font-size: 15px; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 860px) {
  :root { --gutter: 28px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 8px 28px 20px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav a.btn { margin-top: 14px; justify-content: center; border-bottom: none; }
  .page-hero h1 { font-size: 32px; }
  .sec-title { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .members { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}

/* =================================================================
   Icons (Lucide)
   ================================================================= */
[data-icon] { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; line-height: 0; vertical-align: middle; }
[data-icon] svg { display: block; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }

/* =================================================================
   Motion — reveals, header, hovers, micro-interactions
   ================================================================= */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

.site-header { transition: box-shadow .28s ease, background .28s ease; }
.site-header.is-scrolled { background: rgba(251,251,250,.93); box-shadow: 0 1px 0 rgba(20,30,40,.04), 0 10px 34px rgba(20,30,40,.07); }

/* nav underline */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .28s cubic-bezier(.2,.7,.2,1);
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active:not(.btn)::after { right: 0; }

/* button + icon micro-interactions */
.btn { will-change: transform; }
.btn-accent:hover, .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,128,143,.22); }
.btn-dark:hover { box-shadow: 0 10px 26px rgba(20,30,40,.22); }
.btn [data-icon] { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.btn:hover [data-icon][data-icon="arrow-right"] { transform: translateX(4px); }
.btn:hover [data-icon][data-icon="arrow-up-right"] { transform: translate(3px,-3px); }

/* card / value / member hover lift */
.card, .value, .mem { transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; }
.card:hover, .value:hover, .mem:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe0e1; }
.card .num { transition: background .28s, color .28s, transform .28s; }
.card:hover .num { background: var(--accent); color: #fff; transform: scale(1.05); }

/* pill alive dot */
@media (prefers-reduced-motion: no-preference) {
  .pill .dot { animation: pill-pulse 2.6s ease-in-out infinite; }
  @keyframes pill-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22,128,143,.5); }
    50% { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(22,128,143,0); }
  }
}

/* key-visual canvas host */
.kv-hero { position: relative; overflow: hidden; }
.kv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.kv-media {
  height: 300px; border-radius: var(--r-lg); border: 1px solid var(--border); position: relative; overflow: hidden;
  background-color: #eef3f3;
  background-image: radial-gradient(circle at 70% 30%, rgba(22,128,143,.20), transparent 58%), radial-gradient(rgba(22,128,143,.4) 1.4px, transparent 1.6px);
  background-size: cover, 15px 15px;
}
@media (max-width: 860px) { .kv-media { height: 210px; } }

/* CTA band premium glow */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 86% 16%, rgba(22,128,143,.38), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }

/* service media subtle hover */
.svc-media .ph { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.svc:hover .svc-media .ph { transform: scale(1.015); }
