/* ============================================================
   WEBIRU — Shared Styles
   ============================================================ */

:root {
  --bg:         #ffffff;
  --bg-soft:    #f9fafb;
  --bg-dark:    #0f172a;
  --text:       #111827;
  --text-sub:   #6b7280;
  --accent:     #3d52a0;
  --accent-lt:  #eef0fa;
  --border:     #e5e7eb;
  --font-body:  'Noto Sans JP', sans-serif;
  --font-en:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section.bg-soft { background: var(--bg-soft); }
.section.bg-dark { background: var(--bg-dark); color: #fff; }

/* ── Grid ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Typography ──────────────────────────────────────────── */
.section-label {
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
}
.section-lead {
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 2;
  margin-top: 16px;
  max-width: 560px;
}
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* ── Button ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-en);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #2d3e7a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(61,82,160,.25); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-lt); }
.btn-white {
  background: #fff;
  color: var(--accent);
}
.btn-white:hover { background: var(--accent-lt); }

/* ── Header ──────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background .3s, box-shadow .3s;
}
#site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
}
.logo span { font-size: .65rem; font-weight: 400; color: var(--text-sub); display: block; letter-spacing: .1em; margin-top: -2px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-en);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-sub);
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta a {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 6px;
}
.nav-cta a:hover { background: #2d3e7a; }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s;
}

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-en);
  font-size: .9rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
  letter-spacing: .04em;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-title { font-size: clamp(2rem, 4vw, 3.5rem); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  font-family: var(--font-en);
  letter-spacing: .04em;
}
.breadcrumb .sep { opacity: .4; }

/* ── Scroll animation ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── Footer ──────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer-logo-sub { font-size: .8rem; color: rgba(255,255,255,.35); letter-spacing: .06em; }
.footer-col-title {
  font-family: var(--font-en);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
  font-family: var(--font-en);
}

/* ── Works Card ──────────────────────────────────────────── */
.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.work-card:hover .work-preview img { transform: scale(1.04); }

.work-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.08); }
.work-preview {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.work-info { padding: 20px 22px; }
.work-badge {
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
}
.work-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.work-tags { font-size: .78rem; color: var(--text-sub); }

/* ── Service Card ────────────────────────────────────────── */
.service-card {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(61,82,160,.08); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 1.8; fill: none; }
.service-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-text { font-size: .88rem; color: var(--text-sub); line-height: 1.9; }
.service-price { font-family: var(--font-en); font-size: .82rem; color: var(--accent); font-weight: 600; margin-top: 16px; }

/* ── Why items ───────────────────────────────────────────── */
.why-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; }
.why-num {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-lt);
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
}
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-text { font-size: .88rem; color: var(--text-sub); line-height: 1.9; }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-banner .section-title { color: #fff; }
.cta-banner .section-lead { color: rgba(255,255,255,.7); margin: 16px auto 36px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
