/* =========================================================
   AIDEN — corporate site styles
   依存ゼロ / システムフォント / オフライン動作
   コーポレートブルー基調のスタンダードな企業サイトデザイン
   ========================================================= */

:root {
  --ink:        #101f36;
  --ink-2:      #16294a;
  --text:       #1f2a3a;
  --muted:      #5a6474;
  --muted-2:    #8b93a3;
  --line:       #e3e7ee;
  --line-2:     #edf0f5;
  --surface:    #ffffff;
  --surface-2:  #f6f8fb;
  --surface-3:  #eef2f8;
  --accent:     #155bb5;
  --accent-2:   #1e73d2;
  --accent-ink: #0e3f80;
  --grad:       linear-gradient(135deg, #155bb5 0%, #1e73d2 100%);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(16,25,45,.05), 0 6px 20px rgba(16,25,45,.06);
  --shadow-lg:  0 16px 44px rgba(16,25,45,.12);
  --maxw:       1120px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
          "Segoe UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.4;
  letter-spacing: .01em;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead { color: var(--muted); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: var(--surface-3); }
.btn-light {
  background: #fff;
  color: var(--accent-ink);
  border-color: #fff;
}
.btn-light:hover { background: #eaf1fb; border-color: #eaf1fb; }
.btn-arrow::after { content: "→"; font-weight: 700; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: .02em; color: var(--ink); }
.brand img { display: block; }
.brand .brand-mark { height: 38px; width: auto; }
.brand .brand-type { height: 14px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand .brand-text small { font-weight: 500; font-size: 9px; color: var(--muted-2); letter-spacing: .13em; line-height: 1; white-space: nowrap; }
.site-footer .brand .brand-text small { color: #7c8398; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
}
.brand small { font-weight: 500; font-size: 10.5px; color: var(--muted-2); letter-spacing: .12em; display: block; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--text);
  padding: 9px 13px; border-radius: 6px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--accent); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 12px; }
.nav-links a.nav-cta { color: #fff; padding: 10px 20px; }
.nav-links a.nav-cta:hover { color: #fff; background: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #14315c 0%, var(--ink) 70%);
  color: #fff;
  overflow: hidden;
  padding: 92px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 500px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 500px at 50% 0%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero .eyebrow { color: #8ab8ee; }
.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
  max-width: 20em;
}
.hero h1 .grad { color: #9cc4f2; }
.hero p.sub { margin-top: 24px; font-size: clamp(15.5px, 1.9vw, 18px); color: #c3cddd; max-width: 40em; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 52px; display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stats .stat .l { font-size: 13.5px; color: #97a2b6; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.alt { background: var(--surface-2); }

/* logo / trust strip */
.trust { padding: 26px 0; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.trust .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust span { color: var(--muted-2); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.trust b { color: var(--text); font-weight: 700; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
/* ホバーエフェクトはリンクのカードのみ(クリックできない div カードには付けない) */
a.card { transition: box-shadow .18s ease, border-color .18s ease; }
a.card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
a.card:hover h3 { color: var(--accent); }
.card .ic {
  width: 44px; height: 44px; border-radius: 9px;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 18px;
  background: var(--surface-3); color: var(--accent);
}
.card .ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin: 6px 0; }

/* number markers (approach / services) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 68px; }
.step .num {
  position: absolute; left: 0; top: 2px;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.svc-num {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 10px;
}

/* ---------- news / お知らせ ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 110px 96px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
a.news-item:hover { background: var(--surface-2); }
a.news-item:hover h3 { color: var(--accent); }
.news-item time { color: var(--muted-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-item .cat {
  justify-self: start;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent); background: var(--surface-3);
  border-radius: 4px; padding: 2px 10px; white-space: nowrap;
}
.news-item h3 { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.7; }
.news-item .body { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- company table ---------- */
.co-table { width: 100%; border-collapse: collapse; }
.co-table th, .co-table td {
  text-align: left; vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.8;
}
.co-table tr:first-child th, .co-table tr:first-child td { border-top: 1px solid var(--line); }
.co-table th {
  width: 200px; font-weight: 700; color: var(--ink);
  background: var(--surface-2); white-space: nowrap;
}
.co-table td { color: var(--text); }
.co-table .note { color: var(--muted-2); font-size: 13.5px; }

/* ---------- article cards ---------- */
.articles { display: grid; gap: 0; }
.art {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line-2);
  transition: background .15s;
}
.art:hover { background: var(--surface-2); }
.art:first-child { border-top: 1px solid var(--line-2); }
.art time { color: var(--muted-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.art h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.art .go { color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.art .go::after { content: " →"; }

.featured-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.fcard {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .18s, border-color .18s;
  height: 100%;
}
.fcard:hover { box-shadow: var(--shadow); border-color: #d6dce8; }
.fcard .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.fcard time { display: block; color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.fcard h3 { font-size: 16.5px; line-height: 1.6; margin: 14px 0 0; font-weight: 700; flex: 1; }
.fcard .go { margin-top: 18px; color: var(--accent); font-weight: 700; font-size: 14px; }
.fcard .go::after { content: " →"; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, #16345f 0%, var(--ink) 80%);
  border-radius: 14px;
  padding: 56px;
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.8vw, 30px); }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 14px; font-size: 16.5px; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

/* ---------- about / prose ---------- */
.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; color: var(--text); }
.prose h2 { font-size: 25px; margin: 42px 0 16px; }
.prose h3 { font-size: 18.5px; margin: 30px 0 10px; }
.prose ul { color: var(--text); padding-left: 22px; }
.prose ul li { margin: 8px 0; }

.profile {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.avatar {
  width: 160px; height: 160px; border-radius: var(--radius);
  background: var(--ink-2); display: grid; place-items: center;
  color: #fff; font-size: 56px; font-weight: 700;
  position: relative; overflow: hidden;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
}
.profile h3 { font-size: 22px; }
.profile .role { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 4px; }
.profile .links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 6px; background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px;
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21,91,181,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-info .row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.contact-info .row .ic { font-size: 20px; color: var(--accent); }
.contact-info .row b { display: block; color: var(--ink); }
.contact-info .row span { color: var(--muted); font-size: 14.5px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.7; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- page header (sub pages) ---------- */
.page-head {
  background: linear-gradient(160deg, #14315c 0%, var(--ink) 75%);
  color: #fff; padding: 64px 0 56px;
}
.page-head .eyebrow { color: #8ab8ee; }
.page-head h1 { color: #fff; font-size: clamp(27px, 3.8vw, 40px); }
.page-head p { color: #c3cddd; margin-top: 16px; font-size: 16.5px; max-width: 40em; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a9b1c2; padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 0.8fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; }
.site-footer .brand .mark { background: var(--accent-2); }
.site-footer .brand small { color: #7c8398; }
.footer-top p { margin-top: 16px; max-width: 28em; font-size: 14.5px; color: #8b92a6; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: #a9b1c2; font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #6e7589; flex-wrap: wrap; gap: 10px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .featured-grid { grid-template-columns: 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .profile { grid-template-columns: 1fr; justify-items: start; }
  section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .co-table th { width: 130px; white-space: normal; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .art { grid-template-columns: 1fr; gap: 6px; }
  .art time { order: -1; }
  .art .go { display: none; }
  .news-item { grid-template-columns: 96px 1fr; gap: 8px 14px; }
  .news-item h3 { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero { padding: 64px 0 70px; }
}
