/* ============================================
   FUJI MAINTENANCE - Subpage Styles
   Used on: company.html and all inner pages
   ============================================ */

/* ---------- Page Hero (Subpage Header) ---------- */
.page-hero {
  position: relative;
  height: 300px;
  margin-top: calc(var(--header-height) + var(--header-top-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.75) 0%, rgba(21, 101, 192, 0.55) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-bottom: 40px;
}

.page-hero-title {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.page-hero-sub {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  opacity: 0.7;
  text-transform: uppercase;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 16px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 0.8rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
  content: '›';
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

/* ---------- Subpage Section ---------- */
.sub-section {
  padding: 80px 0;
}

.sub-section.bg-light {
  background: var(--bg-light);
}

/* ---------- Current Nav Indicator ---------- */
.nav-item > a.is-current {
  color: var(--primary-600);
  font-weight: 700;
  position: relative;
}

.nav-item > a.is-current::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary-500);
  border-radius: 1px;
}

/* ---------- Greeting Block ---------- */
.greeting-block {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.greeting-image {
  flex-shrink: 0;
  width: 240px;
}

.greeting-image-placeholder {
  width: 240px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary-400);
  font-size: 0.85rem;
}

.greeting-image-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.greeting-content {
  flex: 1;
}

.greeting-name {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-purple);
}

.greeting-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 12px;
}

/* ---------- Company Info Table ---------- */
.info-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

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

.info-table th {
  width: 180px;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-700);
  background: var(--primary-50);
  vertical-align: top;
  border-right: 2px solid var(--primary-200);
}

.info-table td {
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-table td a {
  color: var(--primary-600);
  font-weight: 600;
}

.info-table td a:hover {
  text-decoration: underline;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.info-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-400);
  font-size: 0.5rem;
  top: 8px;
}

/* ---------- Access Block ---------- */
.access-block {
  max-width: 900px;
  margin: 0 auto;
}

.access-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.access-map iframe {
  display: block;
  width: 100%;
}

.access-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.access-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.access-info i {
  color: var(--primary-500);
  width: 18px;
  text-align: center;
}

.access-info a {
  color: var(--primary-600);
  font-weight: 600;
}

.access-info a:hover {
  text-decoration: underline;
}

/* ---------- Subpage CTA Section ---------- */
.sub-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.sub-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.sub-cta-content h2 {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sub-cta-content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.sub-cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---------- Responsive (Subpage) ---------- */
@media (max-width: 768px) {
  .page-hero {
    height: 220px;
    margin-top: var(--header-height);
  }

  .page-hero-title {
    font-size: 1.6rem;
  }

  .page-hero-content {
    padding-bottom: 28px;
  }

  .sub-section {
    padding: 56px 0;
  }

  .greeting-block {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .greeting-image {
    width: 180px;
  }

  .greeting-image-placeholder {
    width: 180px;
    height: 220px;
  }

  .greeting-name {
    text-align: center;
  }

  .greeting-content p {
    text-align: left;
  }

  .info-table th {
    width: 120px;
    padding: 14px 16px;
    font-size: 0.82rem;
  }

  .info-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .access-info {
    flex-direction: column;
    gap: 12px;
  }

  .sub-cta-box {
    flex-direction: column;
    text-align: center;
  }

  .sub-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .sub-cta-actions .btn {
    justify-content: center;
  }

  .sub-cta-content h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-right: none;
    border-bottom: none;
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .info-table tr {
    margin-bottom: 0;
  }
}
