@charset "UTF-8";

/* =========================
   3Dモデルテーブル専用CSS
   既存サイトに干渉しないよう mregi-3d- で統一
========================= */

.mregi-3d-section {
  padding: 70px 0;
  background: #fff;
}

.mregi-3d-section * {
  box-sizing: border-box;
}

.mregi-3d-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.mregi-3d-heading {
  text-align: center;
  margin-bottom: 36px;
}

.mregi-3d-heading h2 {
  margin: 0;
  color: #222;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.mregi-3d-heading p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

/* テーブル全体 */
.mregi-3d-table-wrap {
  margin-top: 36px;
}

.mregi-3d-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 18px;
}

.mregi-3d-table th {
  padding: 14px 18px;
  background: #FFCB3B;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.mregi-3d-table th:first-child {
  width: 34%;
  border-radius: 12px 0 0 12px;
}

.mregi-3d-table th:last-child {
  border-radius: 0 12px 12px 0;
}

.mregi-3d-table td {
  padding: 20px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}

.mregi-3d-table td:first-child {
  border-left: 1px solid #e5e5e5;
  border-radius: 16px 0 0 16px;
}

.mregi-3d-table td:last-child {
  border-right: 1px solid #e5e5e5;
  border-radius: 0 16px 16px 0;
}

/* 機器名 */
.mregi-3d-device-name {
  color: #222;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}

.mregi-3d-device-desc {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* 3Dモデル枠 */
.mregi-3d-model-box {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #d9eeee;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9ffff 0%, #edf7f7 100%);
}

.mregi-3d-model-box model-viewer {
  display: block;
  width: 100%;
  height: 340px;
  background: transparent;
}

.mregi-3d-model-help {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #555;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

.mregi-3d-model-error {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #b00020;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/* =========================
   レスポンシブ
========================= */

@media screen and (max-width: 900px) {
  .mregi-3d-table th:first-child {
    width: 38%;
  }
}

@media screen and (max-width: 760px) {
  .mregi-3d-section {
    padding: 48px 0;
  }

  .mregi-3d-inner {
    width: min(100% - 24px, 1120px);
  }

  .mregi-3d-heading {
    margin-bottom: 26px;
  }

  .mregi-3d-heading h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .mregi-3d-heading p {
    text-align: left;
    font-size: 15px;
  }

  .mregi-3d-table,
  .mregi-3d-table thead,
  .mregi-3d-table tbody,
  .mregi-3d-table tr,
  .mregi-3d-table th,
  .mregi-3d-table td {
    display: block;
    width: 100%;
  }

  .mregi-3d-table {
    border-spacing: 0;
  }

  .mregi-3d-table thead {
    display: none;
  }

  .mregi-3d-table tr {
    margin-bottom: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
  }

  .mregi-3d-table td {
    padding: 18px;
    border: none !important;
    border-radius: 0 !important;
  }

  .mregi-3d-table td:first-child {
    background: #f8ffff;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  .mregi-3d-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    color: #087272;
    font-size: 13px;
    font-weight: 800;
  }

  .mregi-3d-device-name {
    font-size: 19px;
  }

  .mregi-3d-model-box {
    min-height: 260px;
  }

  .mregi-3d-model-box model-viewer {
    height: 260px;
  }

  .mregi-3d-model-help {
    right: 10px;
    bottom: 8px;
    font-size: 11px;
  }
}

@media screen and (max-width: 420px) {
  .mregi-3d-section {
    padding: 40px 0;
  }

  .mregi-3d-inner {
    width: min(100% - 20px, 1120px);
  }

  .mregi-3d-model-box model-viewer {
    height: 230px;
  }
}