:root {
  --black: #111417;
  --gray-700: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --accent: #0052ff;
  --accent-soft: #eef3ff;
  --white: #ffffff;
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 24px; width: auto; }
nav ul { display: flex; gap: 36px; list-style: none; align-items: center; }
nav a {
  font-family: var(--font-en); font-size: 14px; font-weight: 500;
  color: var(--gray-700); transition: color .2s;
}
nav a:hover, nav a.active { color: var(--black); }
nav a.active { position: relative; }
nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.btn-contact {
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  background: var(--black); color: #fff !important;
  padding: 10px 22px; border-radius: 999px; transition: background .2s;
}
.btn-contact:hover { background: var(--accent); }

/* ===== Hero ===== */
.hero { padding: 96px 0 64px; }
.hero-label {
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-en); font-size: clamp(48px, 8vw, 88px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.hero h1 span { color: var(--gray-300); }
.hero p {
  margin-top: 24px; max-width: 560px;
  font-size: 15px; color: var(--gray-500);
}

/* ===== Filter ===== */
.filter { padding: 8px 0 56px; }
.filter-list {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none;
  border-top: 1px solid var(--gray-100); padding-top: 32px;
}
.filter-btn {
  font-family: var(--font-ja); font-size: 13.5px; font-weight: 500;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gray-300); background: var(--white);
  color: var(--gray-700); transition: all .2s;
}
.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn.active {
  background: var(--black); border-color: var(--black); color: #fff;
}

/* ===== Work sections ===== */
.work-section { padding-bottom: 88px; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-family: var(--font-en); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head .ja {
  font-size: 13px; color: var(--gray-500);
}
.section-head .line { flex: 1; height: 1px; background: var(--gray-100); }

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px;
}
.card { cursor: pointer; }
.thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px;
  overflow: hidden; background: var(--gray-100); margin-bottom: 18px;
}
.thumb-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .thumb-inner { transform: scale(1.045); }
.thumb-inner svg { width: 100%; height: 100%; }
.card-tags { display: flex; gap: 20px; margin-bottom: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--gray-500);
  letter-spacing: .12em;
}
.tag::before {
  content: ""; width: 12px; height: 1px;
  background: var(--gray-500); flex-shrink: 0;
}
.card h3 {
  font-size: 18.5px; font-weight: 700; line-height: 1.5;
  transition: color .2s;
}
.card:hover h3 { color: var(--accent); }
.card .desc {
  font-size: 13px; color: var(--gray-500); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CTA ===== */
.cta { background: #f6f7f9; padding: 96px 0; }
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 12px 72px;
  text-align: left;
}
/* 左側(資料イメージ:白の長方形を2枚重ねたCSS装飾) */
.cta-inner::before,
.cta-inner::after {
  content: ""; display: block;
  grid-column: 1; grid-row: 1 / span 3;
  aspect-ratio: 16 / 10; width: calc(100% - 28px);
  background: #fff;
  border: 1px solid var(--gray-100); border-radius: 8px;
}
/* 前面の1枚目(左上) */
.cta-inner::before {
  z-index: 1;
  margin: 0 28px 28px 0;
  box-shadow: 0 16px 48px rgba(17, 20, 23, .1);
}
/* 背面の2枚目(右下にずらして重ねる) */
.cta-inner::after {
  margin: 28px 0 0 28px;
  box-shadow: 0 16px 48px rgba(17, 20, 23, .06);
}
.cta-title, .cta-lead, .cta-button { grid-column: 2; }
.cta-title {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 700;
  line-height: 1.55; letter-spacing: 0.02em; color: var(--black);
  margin-top: 4px;
}
.cta-lead { font-size: 13.5px; color: var(--gray-500); margin-top: 4px; }
.cta-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px;
  background: var(--accent); color: #fff;
  font-family: var(--font-en); font-weight: 700; font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 18px 32px; border-radius: 6px;
  margin-top: 16px;
  transition: background 0.3s ease;
}
.cta-button:hover { background: #0043d6; }
.cta-button .arrow {
  display: inline-block; font-family: var(--font-en);
  transition: transform 0.3s ease;
}
.cta-button:hover .arrow { transform: translateX(4px); }
/* ===== Footer ===== */
footer { padding: 35px 0; border-top: 1px solid var(--gray-100); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-nav { display: flex; gap: 28px; list-style: none; }
.footer-nav a { font-family: var(--font-en); font-size: 13px; color: var(--gray-500); }
.footer-nav a:hover { color: var(--black); }
.copyright { font-family: var(--font-en); font-size: 12px; color: var(--gray-300); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  nav ul li:not(:last-child) { display: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-inner::before,
  .cta-inner::after { grid-row: 1; max-width: 480px; }
  .cta-title, .cta-lead, .cta-button { grid-column: 1; }
}
@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 40px; }
  .cta { padding: 64px 0; }
}

.hidden-section { display: none; }
