:root {
  --ink: #1b2436;
  --ink-soft: #4a5268;
  --muted: #7a8296;
  --primary: #2b3a67;
  --primary-dark: #1f2c50;
  --accent: #c98a3e;
  --accent-soft: #f3e4cc;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #e5e1d6;
  --radius: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-mark { font-size: 22px; font-weight: 700; letter-spacing: 0.02em; color: var(--primary); }
.logo-mark span { color: var(--accent); }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-color: var(--accent); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 20px !important;
  border-radius: 999px; font-size: 13px !important; border: none !important;
}
.nav-cta:hover { background: var(--primary-dark); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--surface);
    flex-direction: column; padding: 28px 24px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .menu-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #233259 60%, #1b2436 100%);
  color: #fff; padding: 76px 0 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,138,62,0.35), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow { display: inline-block; font-size: 12px; letter-spacing: 0.12em; background: rgba(201,138,62,0.18);
  color: var(--accent); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; font-weight: 700; }
.hero h1 { font-size: 38px; line-height: 1.5; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: 16px; color: #cfd6ea; margin: 0 0 32px; }
.hero-stats { display: flex; gap: 36px; margin-top: 8px; }
.hero-stat b { font-size: 26px; display: block; color: #fff; }
.hero-stat span { font-size: 12px; color: #9aa6c8; }

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #2a1c08; }
.btn-primary:hover { background: #b87a2e; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }

/* Sections */
section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 6px; display: block; }
.section-head h2 { font-size: 26px; margin: 0; font-weight: 800; }
.section-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.link-more { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.link-more:hover { color: var(--accent); }

/* Category pills */
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.cat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,36,54,0.1); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 16px; margin: 0; line-height: 1.6; }
.card-company { font-size: 12px; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag-chip {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; background: #eef1f8; color: var(--primary);
  border: 1px solid #dde3f2;
}
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.card-meta b { color: var(--ink); }

/* Interview cards */
.interview-card { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; align-items: center; }
.interview-card img.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.interview-card .t { flex: 1; }
.interview-card h3 { font-size: 15px; margin: 0 0 6px; line-height: 1.5; }
.interview-card .role { font-size: 12px; color: var(--accent); font-weight: 700; }

/* Filter layout (projects list) */
.listing-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .listing-wrap { grid-template-columns: 1fr; } }

.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; }
.filter-panel h4 { font-size: 13px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.filter-group { margin-bottom: 24px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-opt { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 7px 0; cursor: pointer; color: var(--ink-soft); }
.filter-opt input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.filter-opt:hover { color: var(--ink); }
.filter-opt.radio-cat { }
.filter-reset { font-size: 12px; color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: none; padding: 0; margin-top: 4px; }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.result-count b { color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chip { font-size: 12px; background: var(--primary); color: #fff; padding: 5px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.active-chip button { background: none; border: none; color: #fff; cursor: pointer; font-size: 13px; line-height: 1; opacity: .8; }
.active-chip button:hover { opacity: 1; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Detail page */
.detail-hero { background: var(--surface); }
.detail-hero-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.detail-header { padding: 32px 0 0; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--primary); }
.detail-title { font-size: 28px; font-weight: 800; margin: 0 0 16px; line-height: 1.5; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; align-items: center; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 28px 0; }
@media (max-width: 620px) { .info-box { grid-template-columns: 1fr 1fr; } }
.info-item span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.info-item b { font-size: 15px; }
.detail-body p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 20px; }
.detail-body { max-width: 760px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.apply-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.apply-box h3 { margin: 0 0 6px; font-size: 18px; }
.apply-box p { margin: 0; color: #cfd6ea; font-size: 13px; }

/* Interview detail quote */
.quote-block { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.interview-person { display: flex; gap: 16px; align-items: center; margin: 24px 0 32px; }
.interview-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.interview-person b { display: block; font-size: 15px; }
.interview-person span { font-size: 12px; color: var(--muted); }

/* Forms */
.form-wrap { max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.form-row .req { color: #b4452f; font-size: 11px; font-weight: 700; margin-left: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  font-family: inherit; background: var(--surface);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 24px 0; }

/* Strip / CTA band */
.cta-band { background: linear-gradient(135deg, #1b2436, #2b3a67); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: #cfd6ea; margin: 0 0 28px; font-size: 14px; }

/* Category showcase */
.catshowcase { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 920px) { .catshowcase { grid-template-columns: repeat(2, 1fr); } }
.catshowcase a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.catshowcase a:hover { border-color: var(--accent); }
.catshowcase .dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 12px; }
.catshowcase b { display: block; font-size: 13.5px; }

/* Footer */
footer.site-footer { background: #1b2436; color: #b7bdd3; padding: 56px 0 28px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: #fff; font-size: 13px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 13px; color: #8d94ae; max-width: 320px; }
.footer-bottom { border-top: 1px solid #2d3758; padding-top: 22px; font-size: 12px; color: #7982a0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Breadcrumb / misc pages */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 26px; margin: 0 0 8px; }
.page-head p { color: var(--muted); font-size: 14px; margin: 0; }

.static-page .detail-body { max-width: 760px; }
.static-page h2 { font-size: 18px; margin: 36px 0 12px; }

.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-size: 86px; font-weight: 800; color: var(--primary); margin: 0; }
.notfound p { color: var(--muted); margin: 10px 0 28px; }

/* search modal */
.search-overlay {
  position: fixed; inset: 0; background: rgba(27,36,54,0.6); backdrop-filter: blur(2px);
  display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 80px 20px;
}
.search-overlay.open { display: flex; }
.search-modal { background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 560px; padding: 24px; }
.search-modal input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; margin-bottom: 14px; }
.search-close { text-align: right; }
.search-close button { background: none; border: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.search-results a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.search-results a:hover { color: var(--accent); }
