/* ==========================================================================
   製造開発支援パートナー - Common Stylesheet
   モノトーン基調 / タイポグラフィ重視 / ミニマルBtoB
   ========================================================================== */

/* Reset & Base
   ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: #0a0a0a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s ease; }
a:hover { opacity: 0.6; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Typography
   ------------------------------------------------ */
.font-en {
  font-family: 'Archivo', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.font-en-light {
  font-family: 'Archivo', 'Inter', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* Layout
   ------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container, .container-narrow { padding: 0 20px; }
}
@media (max-width: 480px) {
  section { padding: 56px 0; }
  .container, .container-narrow { padding: 0 16px; }
}

/* Header / Navigation
   ------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all .3s ease;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .header-inner { padding: 14px 20px; }
  .site-logo { font-size: 16px; }
  .site-logo .logo-jp { font-size: 10px; letter-spacing: 0.06em; }
}
@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .site-logo { font-size: 15px; }
}
.site-logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0a;
}
.site-logo .logo-plus {
  font-weight: 900;
  margin-left: 1px;
  display: inline-block;
  /* "+"を僅かに大きく＆ベースラインを微調整 */
  transform: translateY(-0.04em);
  font-size: 1.05em;
}
.site-logo .logo-jp {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 2px;
  color: #666;
}
.global-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.global-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  white-space: nowrap;
}
.global-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: #0a0a0a;
  transition: width .3s ease;
}
.global-nav a:hover { opacity: 1; }
.global-nav a:hover::after { width: 100%; }
.global-nav .nav-cta {
  background: #0a0a0a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.global-nav .nav-cta:hover { background: #333; opacity: 1; }
.global-nav .nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  width: 32px; height: 24px;
  position: relative;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: #0a0a0a;
  transition: all .3s ease;
}
.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 4px; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.77,0,.175,1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .global-nav.active { transform: translateX(0); }
  .global-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .global-nav a { font-size: 16px; }
}

/* Section Header (Common)
   ------------------------------------------------ */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #0a0a0a;
}
.section-label::before {
  content: '';
  width: 40px; height: 1px;
  background: #0a0a0a;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-title .en {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.section-lead {
  font-size: 16px;
  line-height: 2;
  color: #444;
  max-width: 720px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .section-label { margin-bottom: 24px; gap: 12px; font-size: 11px; letter-spacing: 0.16em; }
  .section-label::before { width: 28px; }
  .section-title { margin-bottom: 20px; }
  .section-title .en { margin-bottom: 12px; }
  .section-lead { font-size: 14px; line-height: 1.95; margin-bottom: 40px; }
}
@media (max-width: 480px) {
  .section-lead { font-size: 13.5px; line-height: 1.9; margin-bottom: 32px; }
}

/* Buttons
   ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: #fff;
  transition: all .3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .btn { padding: 18px 28px; font-size: 13px; gap: 10px; }
  .btn-text { font-size: 12px; }
}
@media (max-width: 480px) {
  .btn { padding: 16px 22px; font-size: 12.5px; width: 100%; }
}
.btn:hover { background: #fff; color: #0a0a0a; opacity: 1; }
.btn-outline {
  background: transparent;
  color: #0a0a0a;
}
.btn-outline:hover { background: #0a0a0a; color: #fff; }
.btn .arrow {
  display: inline-block;
  transition: transform .3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 0;
  border-bottom: 1px solid #0a0a0a;
}
.btn-text .arrow { transition: transform .3s ease; }
.btn-text:hover { opacity: 1; }
.btn-text:hover .arrow { transform: translateX(4px); }

/* Footer
   ------------------------------------------------ */
.site-footer {
  background: #0a0a0a;
  color: #fff;
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}
.footer-logo .logo-plus {
  font-weight: 900;
  margin-left: 2px;
  display: inline-block;
  font-size: 1.05em;
}
.footer-logo-jp {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-top: 24px;
  max-width: 360px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer-nav-col h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-nav-col ul li {
  margin-bottom: 12px;
}
.footer-nav-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-logo { font-size: 26px; }
  .footer-tagline { font-size: 13px; line-height: 1.85; margin-top: 16px; }
  .footer-nav { gap: 24px; }
  .footer-nav h4 { font-size: 12px; }
  .footer-nav a { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; font-size: 11px; padding-top: 24px; }
}

/* Page Hero (sub pages)
   ------------------------------------------------ */
.page-hero {
  padding: 200px 0 120px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.page-hero .breadcrumb {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.page-hero .breadcrumb span { color: #ccc; }
.page-hero h1 {
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.page-hero h1 .en {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.page-hero .lead {
  margin-top: 40px;
  font-size: 16px;
  line-height: 2;
  color: #444;
  max-width: 640px;
}
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 64px; }
  .page-hero .breadcrumb { margin-bottom: 20px; font-size: 10px; gap: 8px; }
  .page-hero h1 { font-size: clamp(22px, 5.4vw, 32px); line-height: 1.4; }
  .page-hero h1 .en { font-size: clamp(48px, 14vw, 72px); margin-bottom: 8px; }
  .page-hero .lead { margin-top: 24px; font-size: 14px; line-height: 1.95; }
}
@media (max-width: 480px) {
  .page-hero { padding: 100px 0 48px; }
  .page-hero h1 { font-size: 20px; }
  .page-hero h1 .en { font-size: 44px; }
  .page-hero .lead { font-size: 13.5px; line-height: 1.9; margin-top: 20px; }
}

/* Animations
   ------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }
.fade-up.delay-4 { transition-delay: .4s; }

/* Utilities
   ------------------------------------------------ */
.text-center { text-align: center; }
.text-gray { color: #666; }
.divider {
  width: 100%; height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0;
}
.bg-light { background: #f5f5f5; }
.bg-dark { background: #0a0a0a; color: #fff; }

/* Modal (used in self-estimate result, contact thanks, etc.)
   ------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  max-width: 560px;
  width: 100%;
  padding: 56px 48px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
@media (max-width: 600px) {
  .modal { padding: 40px 24px; }
}
