/* ================================================
   SJH-75UF Technical White — Professional Style
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --bg:          #ffffff;
  --bg-sub:      #f8f9fa;
  --bg-card:     #ffffff;
  --border:      #e0e4e8;
  --text:        #2c3e50;
  --text-soft:   #546e7a;
  --text-light:  #90a4ae;
  --accent:      #7a1f2c; /* Wine red — calm, sophisticated */
  --accent-soft: #f5e6e9;
  --success:     #196f3d;
  --mono:        'Roboto Mono', 'Courier New', monospace;
  --sans:        'Inter', 'Noto Sans JP', sans-serif;
  --shadow:      0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg:   0 10px 30px rgba(0, 0, 0, 0.08);
  --radius:      4px;
  --transition:  cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* スラッシュ/ドット入りゼロを無効化（通常の 0 で表示） */
  font-feature-settings: "zero" 0;
}

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

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--text); font-weight: 700; }
p { color: var(--text-soft); }

/* ── Navigation ── */
.navbar {
  background: white;
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { height: 32px; }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero Section — Image-First Layout ── */
.hero {
  padding: 0;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/wallpaper1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  filter: grayscale(0.2);
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%,
    rgba(255,255,255,0.6) 40%,
    var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 10;
}

/* Hero Image Slider — Full Width Top */
.hero-slider-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0 40px;
}
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
}

/* Hero Text — Below Image */
.hero-text {
  text-align: center;
  padding: 0 0 80px;
  animation: fadeInSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-text .model-name {
  display: block;
  font-family: var(--mono);
  font-size: 52px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.hero-text h1 {
  font-size: 36px;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero-text .hero-tagline {
  font-size: 16px;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ── Key Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-box {
  background: var(--bg-card);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.feature-val {
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.feature-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section Styles ── */
section { padding: 120px 0; }
section:nth-child(even) { background-color: var(--bg-sub); }

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

/* ── Content Blocks ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

/* Wide content grid — image takes more space */
.content-grid-wide {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: center;
}
.content-grid-wide.reverse { direction: rtl; }
.content-grid-wide.reverse > * { direction: ltr; }

.tech-card {
  background: white;
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent);
}
.tech-card h3 { margin-bottom: 24px; font-size: 26px; }
.tech-card p { margin-bottom: 16px; font-size: 15px; }

/* ── Spec Table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.spec-table th, .spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table th { background: var(--bg-sub); font-weight: 600; color: var(--text-soft); width: 40%; font-size: 14px; }
.spec-table td { font-family: var(--mono); font-size: 14px; font-weight: 500; }

/* ── Image Styles ── */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.tech-image {
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.05));
}
/* Full-bleed image within container */
.img-full {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ── Quote / Callout ── */
.callout {
  background: var(--accent-soft);
  padding: 40px;
  border-radius: var(--radius);
  border-left: 6px solid var(--accent);
  margin: 40px 0;
}
.callout p { color: var(--accent); font-weight: 600; font-size: 19px; line-height: 1.5; font-style: italic; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover {
  background: #5c1620;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(122, 31, 44, 0.32);
}

/* ── Footer ── */
footer {
  background: #1a252f;
  color: white;
  padding: 100px 0 40px;
}
footer h4 { color: white; margin-bottom: 32px; font-size: 20px; letter-spacing: 0.05em; }
footer p { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-bottom {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Animations ── */
@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImgEntry {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on Scroll */
.reveal, .fade-up, .fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--transition);
}
.reveal.active, .reveal.visible, .fade-up.visible, .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gallery Styles (Ported & Adjusted) ── */
.gallery-grid {
  columns: 3;
  column-gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── Lightbox Styles ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content { text-align: center; max-width: 90vw; }
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-soft);
  max-width: 90vw;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.lightbox-close:hover { color: var(--accent); }

/* ── Social Share Bar ── */
.share-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 1500;
  background: var(--border);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--text-soft);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { color: white; }
.share-x:hover { background: #000; }
.share-fb:hover { background: #1877F2; }
.share-line:hover { background: #06C755; }
.share-copy:hover { background: var(--accent); }
.share-copy.copied::after {
  content: attr(data-copied);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--text);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  pointer-events: none;
}
@media (max-width: 768px) {
  .share-bar {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }
  .share-btn { flex: 1; height: 48px; }
  .share-copy.copied::after {
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
  }
  body { padding-bottom: 48px; }
}

/* ── Dealer Styles ── */
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.dealer-card {
  background: white;
  border: 1px solid var(--border);
  padding: 32px;
  text-decoration: none;
  transition: all 0.3s var(--transition);
}
.dealer-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.dealer-card-badge {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  margin-bottom: 12px;
  display: inline-block;
}

/* ── Contact Section ── */
.contact-box {
  background: var(--bg-sub);
  padding: 60px;
  text-align: center;
  border-radius: var(--radius);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-slider-wrapper { padding: 40px 0 24px; max-width: 100%; }
  .hero-text .model-name { font-size: 36px; }
  .hero-text h1 { font-size: 28px; }
  .hero-text { padding-bottom: 60px; }
  .content-grid, .content-grid-wide { grid-template-columns: 1fr; gap: 40px; }
  .hero-bg-overlay {
    background: radial-gradient(circle at center, rgba(255,255,255,0.8), var(--bg) 100%);
  }
  /* モバイル：常時表示をやめ、1行に収めて画面占有を最小化 */
  .navbar {
    position: static;
    padding: 8px 0;
  }
  .navbar .container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .nav-logo { height: 26px; flex: 0 0 auto; }
  .nav-links {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    padding: 4px 0;
    margin: 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .section-title { font-size: 28px; }
  .tech-card { padding: 32px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 8px 12px; }
  .nav-links a { font-size: 12px; }
  .nav-links li .btn { padding: 6px 12px !important; font-size: 12px !important; }
}

@media (max-width: 380px) {
  .nav-links { gap: 6px 10px; }
  .nav-links a { font-size: 11.5px; }
}
