:root {
  --color-primary: #0e4d8c;
  --color-primary-dark: #0a3a6b;
  --color-accent: #f5a623;
  --color-text: #1a1f2e;
  --color-text-light: #5a6577;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-border: #e3e8f0;
  --shadow-sm: 0 2px 8px rgba(14, 77, 140, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 77, 140, 0.10);
  --shadow-lg: 0 20px 50px rgba(14, 77, 140, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.logo-name {
  font-size: 18px;
  letter-spacing: 0.05em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
}
.nav a:hover { color: var(--color-primary); }
.nav-cta {
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(245, 166, 35, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(56, 130, 200, 0.25) 0%, transparent 55%),
    linear-gradient(135deg, #0a1f3d 0%, #0e4d8c 60%, #133e6e 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 800px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
  margin-bottom: 36px;
  opacity: 0.95;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.4);
}
.btn-primary:hover {
  background: #e8970d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-block { width: 100%; }

/* ========== Section base ========== */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--color-text);
}
.section-lead {
  font-size: 16px;
  color: var(--color-text-light);
}

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0e4d8c 0%, #133e6e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img-fallback::before {
  content: "❄";
  font-size: 80px;
  color: rgba(255, 255, 255, 0.4);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .service-img img {
  transform: scale(1.05);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  padding: 24px 24px 8px;
  color: var(--color-primary);
}
.service-card p {
  padding: 0 24px 28px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========== Strengths ========== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.strength {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.strength-num {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}
.strength h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.strength p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ========== Works ========== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.work {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: all 0.3s;
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.work img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}
.work figcaption {
  padding: 24px;
}
.work-cat {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.work h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

/* ========== Voice ========== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.voice {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.voice::before {
  content: """;
  position: absolute;
  top: -12px;
  left: 24px;
  font-family: serif;
  font-size: 80px;
  color: var(--color-accent);
  line-height: 1;
}
.voice p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
  position: relative;
}
.voice footer {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ========== Company table ========== */
.company-table {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--color-border);
}
.company-table > div:last-child { border-bottom: none; }
.company-table dt {
  padding: 20px 28px;
  font-weight: 700;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 14px;
}
.company-table dd {
  padding: 20px 28px;
  font-size: 15px;
}

/* ========== Contact ========== */
.contact-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}
.contact-section .section-title { color: #fff; }
.contact-section .section-eyebrow { color: var(--color-accent); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-text p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 32px;
  opacity: 0.92;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}
.contact-form label {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form textarea { resize: vertical; }

/* ========== Footer ========== */
.site-footer {
  background: #0a1a2f;
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-addr,
.footer-tel {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}
.copy {
  font-size: 12px;
  opacity: 0.5;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}

/* ========== Responsive ========== */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    inset: 72px 0 0;
    background: #fff;
    flex-direction: column;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-top: 1px solid var(--color-border);
  }
  body.nav-open .nav { transform: translateX(0); }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .company-table > div { grid-template-columns: 110px 1fr; }
  .company-table dt { padding: 14px 16px; font-size: 13px; }
  .company-table dd { padding: 14px 16px; font-size: 14px; }
  .contact-form { padding: 28px 24px; }
  .hero { min-height: 540px; }
  .hero-content { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
