/* from 404.html */
.error_page_container {
  background: white;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error_content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.error_image_section {
  margin-bottom: 2rem;
}

.error_image {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  width: auto;
}

.error_text_section {
  margin-top: 2rem;
}

.error_title {
  color: #2c3e50;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.error_description {
  color: #666;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.error_actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.home_button {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  min-width: 180px;
}

.home_button:hover {
  background: linear-gradient(135deg, #2980b9, #1f618d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.back_button {
  display: inline-block;
  background: #95a5a6;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
  min-width: 180px;
}

.back_button:hover {
  background: #7f8c8d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .error_page_container {
    padding: 1rem;
    min-height: 50vh;
  }

  .error_title {
    font-size: 24px;
  }

  .error_description {
    font-size: 16px;
  }

  .error_actions {
    flex-direction: column;
    align-items: center;
  }

  .home_button,
  .back_button {
    padding: 0.8rem 1.5rem;
    font-size: 16px;
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .error_image {
    max-height: 200px;
  }

  .error_title {
    font-size: 20px;
  }

  .error_description {
    font-size: 14px;
  }
}

/* Main Container - Flexbox Layout (2 Columns) */
.history-container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  align-items: flex-start; /* <<< Align columns to the top */
}

/* Column Styling */
.column {
  /* padding: 10px; Apply padding individually */
}

.history-column {
  flex: 1; /* 50% width */
  min-width: 0;
  /* padding: 10px; */
}

/* Image Area - Fade Mask Logic */
.image-area {
  flex: 1; /* 50% width */
  min-width: 0;
  padding: 0;
  /* Initially hidden, fast fade-out transition (when :has() rule no longer applies) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}

/* Image Area - Delayed Fade-In */
.history-container:has(.accordion-toggle:checked) .image-area {
  opacity: 1;
  visibility: visible;
  /* Delayed fade-in (Delay >= accordion expand time) */
  /* Accordion expand = 1.4s + 0.2s = 1.6s */
  transition: opacity 1s ease-in 1.6s, visibility 0s linear 1.6s;
}

/* Accordion Styling */
.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-toggle {
  display: none;
}

.accordion-title {
  display: block;
  padding: 12px 15px;
  background-color: #eee;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.accordion-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background-color: orange;
  z-index: -1;
  transition: width 1s ease;
}

.accordion-title:hover::before {
  width: 100%;
}

/* Accordion Content & SLOWER Sequential Animation Workaround */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background-color: #fff;
  border-top: 1px solid #ddd;
  /* Slower transition for COLLAPSE */
  transition: max-height 0.8s ease-in, padding 0.8s ease-in;
}

.accordion-content p {
  margin-bottom: 5px;
  line-height: 1.3;
  font-size: 0.9rem;
  transition: font-weight 0.3s ease;
}

.accordion-content p:hover {
  font-weight: bold;
}

/* Slower, delayed transition for EXPAND */
.accordion-toggle:checked + .accordion-title + .accordion-content {
  max-height: 5000px;
  padding: 15px;
  transition: max-height 1.4s ease-out 0.2s, padding 1.4s ease-out 0.2s;
}

/* Image Grid Layout */
.image-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  /* height: 100%; Removed height to let content define it */
}

/* Image Placeholder Base Styling - STATIC, SQUARE */
.image-placeholder {
  border: 1px solid #ccc;
  width: 100%; /* Fill grid cell width */
  /* max-width: 150px;  */
  /* aspect-ratio: 1 / 1;  */
  margin: 0 auto; /* Center if grid cell is wider than max-width */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  /* Removed opacity, transform, and animation transitions */
  /* Only keep border transition for hover */
  transition: border-width 0.3s ease;
  background-color: #f0f0f0; /* Base background */
}

.image-placeholder a {
  font-size: 0.8em;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  padding: 3px 5px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  text-align: center;
}

.image-placeholder:hover {
  border-width: 1px;
  border-color: #555;
}
.images {
  width: -webkit-fill-available;
  height: 100%;
  object-fit: contain;
}

/* Single Default Color Theme */
.image-placeholder {
  background: white;
}
/* Removed accordion-specific theme rules */

/* Responsive Design */
@media (max-width: 992px) {
  .history-container {
    flex-direction: column;
    align-items: stretch; /* Reset alignment when stacking */
  }

  .history-column,
  .image-area {
    flex: none;
    width: 100%;
  }

  .image-area {
    margin-top: 15px;
    /* Ensure it's visible immediately when stacked */
    opacity: 1;
    visibility: visible;
    transition: none; /* No transition needed when stacked */
  }
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .image-placeholder {
    /* min-height: 80px; Not needed with aspect-ratio */
    max-width: none; /* Allow filling grid cell */
  }
}

@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .image-placeholder a {
    font-size: 0.7em;
  }
  .accordion-title span {
    font-size: 0.9em;
  }
  .accordion-content p {
    font-size: 0.85em;
  }
}

.card p {
  color: #666;
  /* font-size: 0.9em; */
  font-size: 0.9rem;
}

.value p {
  /* font-size: 0.7em; */
  font-size: 0.7rem;
}

.card h3 {
  /* font-size: 0.9em; */
  font-size: 0.9rem;
}

.card p {
  /* font-size: 0.85em; */
  font-size: 0.85rem;
}

/* from location.html */
.location-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 0 16px;
}
.location-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.location-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.location-info-box {
  background: #f4f6f8;
  color: #222;
  padding: 22px 22px 14px 22px;
  border-radius: 12px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.08rem;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.location-info-box .icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  color: #222;
}
.location-info-box a {
  color: #1e90d9;
  text-decoration: underline;
}
.location-map {
  flex: 2 1 400px;
  min-width: 320px;
  max-width: 600px;
}
.location-map iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.location-method {
  margin: 32px 0 16px 0;
}
.location-method-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.location-method-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.location-method-content > div {
  min-width: 260px;
  flex: 1 1 260px;
}
.location-method-content b {
  color: #1e90d9;
}
.location-method-content .branch-title {
  font-weight: 700;
  color: #1e90d9;
}
.location-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  border-top: 1px solid #eee;
  padding-top: 24px;
}
.location-bottom > div {
  flex: 1 1 260px;
  min-width: 260px;
}
.location-bottom-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
}
.location-operating-box {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  color: #222;
}
@media (max-width: 900px) {
  .location-top,
  .location-method-content,
  .location-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .location-map iframe {
    height: 300px;
  }
}
.icon-row a[href^="tel"],
.icon-row a[href^="mailto"] {
  display: inline-block;
  background: #e3f0ff;
  color: #1565c0;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-left: 6px;
}
.icon-row a[href^="tel"]:hover,
.icon-row a[href^="mailto"]:hover {
  background: #1565c0;
  color: #fff;
  text-decoration: underline;
}
.transport-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.transport-option i {
  font-size: 1.2em;
  margin-top: 2px;
  flex-shrink: 0;
}
.transport-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* from jmpsystem.html */
.section {
  margin-bottom: 48px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 32px;
}

.aboutus-card-group {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0 0 0;
}
.aboutus-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 28px 28px 28px;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}
@media (max-width: 1200px) {
  .aboutus-card {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .aboutus-card {
    padding: 24px 10px 18px 10px;
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .aboutus-card {
    padding: 12px 2vw 10px 2vw;
  }
}
.biz-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.biz-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-width: 0;
}
.biz-img {
  width: 320px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f4;
  flex-shrink: 0;
}
.biz-item > div {
  flex: 1 1 0;
  min-width: 0;
}
.biz-item h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.biz-item p {
  font-size: 1.05rem;
  color: #333;
}
@media (max-width: 900px) {
  .biz-item {
    flex-direction: column;
    gap: 18px;
  }
  .biz-img {
    width: 100%;
    height: 200px;
  }
}
@media (max-width: 800px) {
  .biz-item {
    flex-direction: column;
    gap: 12px;
  }
  .biz-img {
    width: 100%;
    height: 180px;
  }
}

.ceo-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.ceo-img {
  width: 340px;
  min-width: 220px;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f4f4;
}
.ceo-text {
  flex: 1;
}
.ceo-headline {
  color: #1976d2;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}
.ceo-hr {
  border: none;
  border-top: 4px solid #1976d2;
  width: 60px;
  margin: 12px 0 18px 0;
}
.ceo-text p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .ceo-flex {
    flex-direction: column;
    gap: 18px;
  }
  .ceo-img {
    width: 100%;
    height: 200px;
  }
}

.recruit-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.recruit-img {
  width: 340px;
  min-width: 220px;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f4f4;
}
.recruit-text {
  flex: 1;
}
.recruit-headline {
  color: #1976d2;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.recruit-sub {
  color: #1976d2;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.recruit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.recruit-list li {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #333;
}
.recruit-mail {
  color: #1976d2;
  font-weight: 600;
  text-decoration: underline;
}
.recruit-info {
  font-size: 0.98rem;
  color: #666;
  margin-top: 10px;
}
@media (max-width: 800px) {
  .recruit-flex {
    flex-direction: column;
    gap: 18px;
  }
  .recruit-img {
    width: 100%;
    height: 120px;
  }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 18px;
  margin-top: 24px;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-item img {
  width: 100%;
  max-width: 180px;
  height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #eee;
}
.cert-label {
  margin-top: 10px;
  font-size: 1.01rem;
  color: #444;
  text-align: center;
}
@media (max-width: 1000px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}
