/* ============================================
   藍匠 AISHO - Precision Metal Works
   Design System: Industrial Precision
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0C1222;
  --navy-light: #131B2E;
  --navy-mid: #1A2540;
  --silver: #A8B2C1;
  --silver-light: #C8D0DC;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.15);
  --white: #E8ECF1;
  --text: #8892A4;
  --text-light: #6B7588;
  --border: rgba(168,178,193,0.12);
  --radius: 2px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12,18,34,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(12,18,34,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text { display: flex; flex-direction: column; }

.logo-ja {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.logo-en {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s;
}

.nav-desktop a:hover { color: var(--white); }

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-desktop a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 7px 20px;
  font-weight: 600 !important;
  font-size: 12px !important;
  border-radius: var(--radius);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--silver-light);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 94px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(12,18,34,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-nav.active { opacity: 1; pointer-events: auto; }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav a {
  font-size: 18px;
  color: var(--silver-light);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--gold); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: #D4B55A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--silver-light);
  border: 1px solid var(--silver);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,18,34,0.85) 0%, rgba(12,18,34,0.5) 50%, rgba(12,18,34,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  margin-top: 30px;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(42px, 8vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-num {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 96px);
  color: var(--gold);
}

.hero-mm {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--silver);
}

.hero-no {
  font-size: clamp(32px, 6vw, 64px);
  color: var(--silver-light);
  font-weight: 300;
}

.hero-pride {
  color: var(--white);
}

.hero-desc {
  font-size: 16px;
  color: var(--silver);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--silver);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

/* --- Numbers --- */
.numbers {
  padding: 72px 0;
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-value {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.number-unit {
  font-size: 16px;
  color: var(--silver);
  margin-left: 4px;
}

.number-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* --- Section Common --- */
.section {
  padding: 120px 0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.section-desc {
  font-size: 15px;
  color: var(--text);
  max-width: 600px;
  line-height: 1.9;
  margin-bottom: 56px;
}

/* --- About --- */
.about { background: var(--navy); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-icon { margin-bottom: 32px; opacity: 0.8; }

.about-text h3 {
  font-size: 24px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 2;
  font-size: 15px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
}

.about-image-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.caption-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.about-image-caption span:last-child {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

/* --- Technology --- */
.technology {
  background: var(--navy-light);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.tech-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.tech-number {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 200;
  color: rgba(201,168,76,0.12);
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
}

.tech-icon { margin-bottom: 20px; }

.tech-card h3 {
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.tech-model {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.tech-specs {
  list-style: none;
}

.tech-specs li {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 16px;
  position: relative;
}

.tech-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.tech-specs li:last-child { border-bottom: none; }

/* --- Industries --- */
.industries { background: var(--navy); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.industry-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.industry-icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.industry-card h3 {
  font-size: 17px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.industry-card p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
}

/* --- Works --- */
.works { background: var(--navy-light); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--navy);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.work-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.work-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transition: transform 0.6s, filter 0.6s;
}

.work-card:hover .work-image img {
  transform: scale(1.05);
  filter: brightness(0.8) contrast(1.1);
}

.work-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
}

.work-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold);
  padding: 4px 12px;
  letter-spacing: 0.1em;
}

.work-info {
  padding: 28px;
}

.work-info h3 {
  font-size: 16px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.work-info p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.9;
}

/* --- Quality --- */
.quality { background: var(--navy); }

.quality-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.quality-text h2 { text-align: left; }

.quality-text > p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 36px;
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--navy-light);
  border: 1px solid var(--border);
}

.cert-badge { flex-shrink: 0; }

.cert-item strong {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.cert-item p {
  font-size: 12px;
  color: var(--text);
  margin: 0;
}

.quality-list {
  list-style: none;
}

.quality-list li {
  font-size: 14px;
  color: var(--silver);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.quality-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.quality-visual img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.05);
}

/* --- Flow --- */
.flow { background: var(--navy-light); }

.flow-steps {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.flow-step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.flow-num {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--navy-light);
  position: relative;
  z-index: 1;
}

.flow-content h3 {
  font-size: 17px;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.flow-content p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
}

/* --- Company --- */
.company { background: var(--navy); }

.company-table {
  max-width: 800px;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  color: var(--silver);
  font-weight: 500;
  width: 160px;
  white-space: nowrap;
}

.company-table td {
  color: var(--white);
  font-weight: 400;
}

/* --- Contact --- */
.contact { background: var(--navy-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-block {
  margin-bottom: 36px;
}

.contact-block h3 {
  font-size: 14px;
  color: var(--silver);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.contact-phone {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.contact-block p {
  font-size: 13px;
  color: var(--text);
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-tags span {
  font-size: 12px;
  color: var(--silver);
  border: 1px solid var(--border);
  padding: 4px 12px;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--silver);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-group label span { color: var(--gold); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: var(--radius);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-size: 16px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-en {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-light);
}

.footer-credit a {
  color: var(--gold);
  font-weight: 500;
}

.footer-credit a:hover { text-decoration: underline; }

/* --- Animations --- */
.animate-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image img { height: 300px; }

  .tech-grid { grid-template-columns: 1fr; }

  .industry-grid { grid-template-columns: repeat(2, 1fr); }

  .works-grid { grid-template-columns: 1fr; }
  .work-image { height: 280px; }

  .quality-inner { grid-template-columns: 1fr; gap: 40px; }
  .quality-visual img { height: 350px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .section-title { font-size: 26px; }

  .hero-desc { font-size: 14px; }

  .numbers { padding: 48px 0; }
  .number-value { font-size: 36px; }

  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { padding: 32px 24px; }

  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .sample-banner { font-size: 10px; padding: 5px 12px; }
  .header { top: 26px; }

  .hero-title { margin-bottom: 20px; }
  .hero-sub { font-size: 10px; letter-spacing: 0.2em; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .number-value { font-size: 32px; }

  .tech-card { padding: 28px; }
  .tech-number { font-size: 36px; }

  .form-row { grid-template-columns: 1fr; }

  .flow-step { gap: 20px; }
  .flow-num { width: 48px; height: 48px; font-size: 14px; }
  .flow-steps::before { left: 24px; }

  .company-table th { width: 100px; padding: 14px 12px; }
  .company-table td { padding: 14px 12px; }
}
