/* Materials Page Styles — 2026 Refined */

/* Overview Section */
.materials-page-overview {
  padding: 80px 0;
  background-color: white;
}

.materials-page-overview .overview-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.materials-page-overview .overview-text {
  flex: 1;
}

.materials-page-overview .overview-lead {
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 16px;
  color: var(--dark);
}

.materials-page-overview .overview-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #555;
}

.materials-page-overview .overview-image {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.materials-page-overview .overview-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.materials-page-overview .overview-image:hover img {
  transform: scale(1.03);
}

/* 数値ハイライト */
.overview-highlights {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.highlight-item {
  flex: 1;
  text-align: center;
  background: white;
  border-radius: 8px;
  padding: 20px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.highlight-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.highlight-number small {
  font-size: 16px;
  font-weight: 700;
}

.highlight-label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Matrix Section */
.materials-matrix {
  padding: 80px 0;
  background-color: var(--light);
}

.matrix-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.legend-item {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-excellent i { color: var(--primary); font-size: 10px; }
.legend-ok i { color: #4a9b2f; font-size: 10px; }
.legend-conditional i { color: #d4a017; font-size: 10px; }
.legend-no i { color: #c44; font-size: 10px; }

.matrix-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: white;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  min-width: 700px;
}

.matrix-table thead th {
  background-color: var(--primary);
  color: white;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.matrix-table thead th small {
  font-weight: 400;
  font-size: 11px;
}

.matrix-th-material {
  text-align: left !important;
  min-width: 180px;
}

.matrix-th-note {
  min-width: 140px;
}

.matrix-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.matrix-table tbody tr:last-child {
  border-bottom: none;
}

.matrix-table tbody tr:hover {
  background-color: #fafcf8;
}

.matrix-table tbody td {
  padding: 13px 12px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.matrix-material-name {
  text-align: left !important;
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
}

.matrix-note {
  text-align: left !important;
  color: #999;
  font-size: 12px;
}

/* ステータスアイコン */
.matrix-status {
  font-size: 18px;
  display: inline-block;
}

.matrix-excellent { color: var(--primary); font-weight: 700; }
.matrix-ok { color: #4a9b2f; }
.matrix-conditional { color: #d4a017; }
.matrix-no { color: #c44; font-size: 16px; }

.matrix-footnote {
  text-align: center;
  margin-top: 24px;
  color: #888;
  font-size: 13px;
}

/* Thickness Section */
.thickness-range {
  padding: 80px 0;
  background-color: white;
}

.thickness-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: white;
}

.thickness-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  min-width: 650px;
}

.thickness-table thead th {
  background-color: var(--secondary);
  color: white;
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.thickness-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.thickness-table tbody tr:last-child {
  border-bottom: none;
}

.thickness-table tbody tr:hover {
  background-color: #fafafa;
}

.thickness-table tbody td {
  padding: 13px 15px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.thickness-material {
  text-align: left !important;
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
}

.thickness-note {
  text-align: left !important;
  color: #999;
  font-size: 12px;
}

/* Precision & Lot Section */
.precision-lot {
  padding: 80px 0;
  background-color: var(--light);
}

.precision-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: white;
}

.precision-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  min-width: 650px;
}

.precision-table thead th {
  background-color: var(--primary);
  color: white;
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.precision-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.precision-table tbody tr:last-child {
  border-bottom: none;
}

.precision-table tbody tr:hover {
  background-color: #fafcf8;
}

.precision-table tbody td {
  padding: 13px 15px;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

.precision-method {
  text-align: left !important;
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
}

.precision-note {
  text-align: left !important;
  color: #999;
  font-size: 12px;
}

/* ロット対応 */
.lot-info {
  margin-top: 48px;
  text-align: center;
}

.lot-lead {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.lot-detail {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* Case Studies */
.case-studies {
  padding: 80px 0;
  background-color: white;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.case-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.case-item .case-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.case-item .case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
  transform: scale(1.05);
}

.case-item .case-details {
  padding: 20px;
  flex-grow: 1;
}

.case-item .case-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.5;
}

.case-item .case-excerpt {
  color: #888;
  font-size: 13px;
  line-height: 1.6;
}

.case-more {
  text-align: center;
  margin-top: 32px;
}

.case-more .btn-more {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.case-more .btn-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.case-more .btn-more i {
  margin-left: 8px;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.case-more .btn-more:hover i {
  transform: translateX(3px);
}

.no-cases {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background-color: var(--light);
  border-radius: 8px;
  color: #888;
}

/* Related Links Section */
.related-links {
  padding: 80px 0;
  background-color: var(--light);
}

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

.related-card {
  display: block;
  background-color: white;
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.related-card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: 22px;
}

.related-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.related-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #888;
  margin: 0 0 12px;
}

.related-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
}

.related-card:hover .related-card-link {
  color: var(--primary-dark);
}

.related-card-link i {
  margin-left: 5px;
  font-size: 11px;
  transition: transform 0.2s ease;
}

.related-card:hover .related-card-link i {
  transform: translateX(3px);
}

/* Animation */
.fade-in-image {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

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

/* Responsive */
@media screen and (max-width: 992px) {
  .materials-page-overview .overview-content {
    flex-direction: column;
  }

  .overview-highlights {
    gap: 12px;
  }

  .highlight-number {
    font-size: 26px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lot-info-inner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

@media screen and (max-width: 768px) {
  .materials-page-overview,
  .materials-matrix,
  .thickness-range,
  .precision-lot,
  .case-studies,
  .related-links {
    padding: 56px 0;
  }

  .materials-page-overview .overview-lead {
    font-size: 17px;
  }

  .overview-highlights {
    flex-direction: column;
    gap: 8px;
  }

  .highlight-item {
    padding: 14px;
  }

  .cases-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .lot-info-inner {
    padding: 20px;
  }
}

@media screen and (max-width: 576px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}
