/* =============================================
   MACHINE PAGE CSS
   ============================================= */

/* ---- Product Detail Layout ---- */
.ln-product-section {
  padding: 80px 0;
}

.ln-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ln-product-detail--reverse {
  direction: rtl;
}

.ln-product-detail--reverse > * {
  direction: ltr;
}

.ln-product-detail-img {
  position: relative;
  background: var(--base-white);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 400px;
}

.ln-product-detail-img img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.ln-product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--main-navy);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.ln-product-badge--sub {
  background: var(--sub-navy);
}

.ln-product-badge--accent {
  background: var(--opt-accent);
  color: var(--main-navy);
}

.ln-product-badge--new {
  background: #B8860B;
  color: #fff;
}

.ln-product-name-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--main-navy);
  margin: 8px 0 4px;
  line-height: 1;
}

.ln-product-name-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.ln-product-catch {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-navy);
  line-height: 1.6;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--opt-accent);
}

.ln-product-detail-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 2;
  margin: 0 0 24px;
}

.ln-product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ln-product-features li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ln-product-features li .fa {
  color: var(--opt-accent);
  font-size: 12px;
  flex-shrink: 0;
}

.ln-product-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Comparison Table ---- */
.ln-comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ln-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  min-width: 720px;
}

.ln-comparison-table thead tr {
  background: rgba(255,255,255,0.08);
}

.ln-comparison-table thead th {
  padding: 16px 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  line-height: 1.4;
}

.ln-comparison-table thead th span {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--pearl-silver);
  margin-top: 4px;
}

.ln-comp-label {
  background: rgba(255,255,255,0.06) !important;
  font-weight: 600 !important;
  color: var(--pearl-silver) !important;
  font-size: 11px !important;
  letter-spacing: 0.05em;
  text-align: left !important;
  padding-left: 20px !important;
}

.ln-comp-pro {
  background: rgba(191,174,150,0.15) !important;
}

.ln-comparison-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ln-comparison-table tbody td {
  padding: 14px 20px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  line-height: 1.6;
}

.ln-comp-yes {
  color: #7ECBA1 !important;
  font-weight: 600 !important;
}

.ln-comp-link {
  color: var(--opt-accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.ln-comp-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---- Target Grid ---- */
.ln-target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-line);
  border: 1px solid var(--border-line);
}

.ln-target-card {
  background: var(--soft-white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ln-target-icon {
  width: 44px;
  height: 44px;
  background: var(--main-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.ln-target-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 12px;
  line-height: 1.5;
}

.ln-target-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.9;
  margin: 0 0 16px;
  flex: 1;
}

.ln-target-rec {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  background: var(--base-white);
  padding: 8px 12px;
  border-left: 3px solid var(--opt-accent);
  width: 100%;
}

.ln-target-rec strong {
  color: var(--main-navy);
  font-weight: 700;
}

/* ---- Footer ---- */
.ln-footer {
  background: var(--main-navy);
  color: #fff;
}

.ln-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.ln-footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.ln-footer-address {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--pearl-silver);
  line-height: 1.9;
  margin: 0 0 8px;
}

.ln-footer-mail a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--opt-accent);
  text-decoration: none;
}

.ln-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ln-footer-nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--opt-accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.ln-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ln-footer-nav ul li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--pearl-silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ln-footer-nav ul li a:hover {
  color: #fff;
}

.ln-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 64px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ln-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--pearl-silver);
  margin: 0;
}

.ln-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
}

.ln-footer-links li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--pearl-silver);
  text-decoration: none;
}

.ln-footer-links li a:hover {
  color: #fff;
}

/* ---- Scroll Animation ---- */
.ln-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ln-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media screen and (max-width: 1024px) {
  .ln-product-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ln-product-detail--reverse {
    direction: ltr;
  }

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

  .ln-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px 32px;
  }
}

@media screen and (max-width: 736px) {
  .ln-product-section {
    padding: 48px 0;
  }

  .ln-section-inner {
    padding: 0 24px;
  }

  .ln-product-detail-img {
    min-height: 280px;
    padding: 24px;
  }

  .ln-target-grid {
    grid-template-columns: 1fr;
  }

  .ln-footer-inner {
    padding: 40px 24px 24px;
  }

  .ln-footer-bottom {
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .ln-corp-nav {
    display: none;
  }
}
