
:root {
  --accent: #1d50a2;
  --text: #0b1220;
  --muted: #4b5565;
  --bg: #ffffff;
  --alt: #f5f7fb;
  --border: #e6e8ef;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--border);
}
.header-inner { display:flex; align-items:center; justify-content: space-between; gap: 16px; padding: 14px 0; }

.brand { display:flex; align-items:center; gap: 12px; }
.logo svg { width: 42px; height: 42px; }
.logo path { fill: var(--accent); }
.brand-text { display:flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; letter-spacing: .02em; }
.brand-sub { font-size: 12px; color: var(--muted); }

.nav { display:flex; align-items:center; gap: 16px; }
.nav a { font-size: 14px; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: #eef3ff; color: var(--text); }
.nav-cta { background: var(--accent); color: white !important; }
.nav-cta:hover { background: #163f86 !important; }

.hero {
  padding: 60px 0;           /* ← 余白を減らす */
  min-height: 320px;         /* ← 高さを固定 */
  background:
    linear-gradient(rgba(11,18,32,.55), rgba(11,18,32,.55)),
    url("hero.jpg") center top / cover no-repeat;
  color: #fff;
}
.hero-in
ner { display:grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.badge {
  display:inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(29,80,162,.25);
  color: var(--accent);
  border-radius: 999px;
  background: rgba(29,80,162,.06);
  font-size: 13px;
  margin-bottom: 12px;
}
.hero-title { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 44px); letter-spacing: .02em; line-height: 1.2; }
.hero-lead { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display:flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.primary:hover { filter: brightness(.95); }
.btn.ghost { background: #fff; }
.btn.ghost:hover { background: #f3f6ff; }
.hero-note { margin: 8px 0 0; color: #6b7280; font-size: 12px; }

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-card-inner {
  height: 100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(29,80,162,.06), rgba(29,80,162,0));
}
.stat-num { font-weight: 900; color: var(--accent); letter-spacing: .03em; }
.stat-label { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.section { padding: 54px 0; }
.section.alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { margin: 0 0 10px; font-size: 26px; }
.section-lead { margin: 0 0 22px; color: var(--muted); line-height: 1.8; }

.cards {
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
.section.sm {
  padding: 24px 0 0 0; /* 下を消す */
}
.section.sm + .section {
  padding-top: 24px; /* 次の上を小さく */
}

#greeting.section {
  padding-bottom: 0px;
}

#greeting .section-lead {
  margin-bottom: 0;
}
.section.xs {
  padding: 12px 0;
}
.card h3 { margin: 0 0 10px; }
.card p { margin: 0 0 10px; color: var(--muted); line-height: 1.8; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }

.works-placeholder {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.work-box {
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  height: auto;      /* ← 固定高さやめる */
}

.work-box img{
  width: 100%;
  height: auto;      /* ← 自然な縦横比 */
  display: block;
  border-radius: var(--radius);
}

.table-wrap { overflow:auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.info-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.info-table th, .info-table td {
  text-align: left; vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.info-table th { width: 180px; color: var(--muted); background: #fafbff; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.contact {
  background: radial-gradient(700px 340px at 20% 0%, rgba(29,80,162,.14), transparent 60%);
}
.contact-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact-strong { font-size: 18px; font-weight: 900; color: var(--accent); margin: 10px 0; }
.small-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display:flex; align-items:center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); margin-left: 10px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card { grid-column: span 12; }
  .works-placeholder { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display:none; }
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}
/* ===== ロゴ スマホ最適化 ===== */

@media (max-width: 640px){

  .brand{
    gap: 8px;
  }

  .logo img{
    height: 46px !important;
  }

  .brand-name{
    font-size: 16px;
  }

  .brand-sub{
    font-size: 10px;
  }

}
.card-img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin: 12px 0 14px;
  display: block;
}
/* ヒーロー内のghostボタン修正 */
.hero .btn.ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

.hero .btn.ghost:hover {
  background: rgba(255,255,255,.25);
}
/* アンカーリンク位置補正 */
section {
  scroll-margin-top: 90px;
}
@media (max-width: 640px){

  body {
    font-size: 17px;
  }

  #greeting{
    padding: 16px 0 0 0;   /* 下を消す */
  }

  #greeting .section-lead{
    margin-bottom: 0;
  }

  #greeting + section{
    padding-top: 20px;     /* 次との間隔を少しだけ残す */
  }
  .card-img{
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .info-table{
    min-width: 100%;
  }
  .info-table th{
    width: auto;      /* ← 180pxを解除 */
  }
  .info-table th,
  .info-table td{
    padding: 8px 10px;
  }
}
