
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #111;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}


.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #e60012;
}

.logo-sub {
  font-size: 10px;
  color: #555;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

.main-nav a {
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #e60012;
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 999px;
}

/* Hero slider */

.hero {
  padding: 24px 0 40px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
}


.hero-content {
  max-width: 520px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.hero-text {
  margin: 0 0 16px;
  font-size: 14px;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #ffffff;
  color: #e60012;
  border-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.btn-primary.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border-color: #ddd;
}

.btn-secondary:hover {
  background: #e9e9e9;
  text-decoration: none;
}

/* Hero nav */

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.25);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.hero-nav--prev {
  left: 10px;
}

.hero-nav--next {
  right: 10px;
}

.hero-nav:hover {
  background: rgba(0,0,0,0.4);
}

.hero-nav:active {
  transform: translateY(-50%) scale(0.97);
}

.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

/* 輪播圓點（未選中＝白底紅框，選中＝實心紅色） */
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #d90000;   /* 紅色邊框 */
  background: transparent;     /* 未選中時為空心 */
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: #d90000;         /* 被選中：實心紅色 */
  transform: scale(1.15);      /* 小放大一點，更清楚 */
}

/* Home sections */

.home-section {
  padding: 16px 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.03);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(230,0,18,0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.info-card:hover::before {
  opacity: 1;
}

.info-icon img {
  width: 400px;
  height: 200px;
  object-fit: contain;
  display: block;
}
.info-icon {
  margin-bottom: 10px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: 600;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-card p {
  margin: 0 0 12px;
  font-size: 16px;
  color: #555;
}

.card-link {
  font-size: 16px;
  color: #e60012;
  font-weight: 500;
}

/* Page hero */

.page-hero {
  padding: 40px 0 26px;
  border-bottom: 1px solid #f0f0f0;
}

.page-hero--company {
  background: linear-gradient(135deg, #fff, #ffecee);
}

.page-hero--melco {
  background: linear-gradient(135deg, #fff, #ffecee);
}

.page-hero--recruit {
  background: linear-gradient(135deg, #fff, #ffecee);
}

.page-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 6px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.08em;
}

.page-lead {
  margin: 0;
  font-size: 16px;
  color: #555;
  max-width: 100%;
}

/* Recruit banner */

.recruit-banner {
  padding: 10px 16px 14px;
  text-align: center;
}

.recruit-banner .jp-copy {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e60012;
  color: #e60012;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* Content sections */

.section-block {
  padding: 32px 0;
}

.section-block--gray {
  background: #f8f8f8;
}

.section-block--narrow {
  padding: 32px 0 40px;
}

.container--narrow {
  max-width: 880px;
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
}

/* Tables */

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.info-table th,
.info-table td {
  padding: 8px 10px;
  vertical-align: top;
}

.info-table th {
  width: 120px;
  color: #555;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.info-table td {
  border-bottom: 1px solid #f2f2f2;
}

.info-table ul {
  margin: 4px 0 0 18px;
  padding: 0;
}

/* Chips */

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.product-chip {
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 6px 12px;
  background: #fff;
}

.small-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: #777;
}

/* Map & access */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.map-embed iframe {
  width: 100%;
  min-height: 350px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.access-info h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
}

.access-info p {
  margin: 0 0 12px;
  font-size: 16px;
}

.access-info ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 16px;
}

/* MELCO group */

.section-intro {
  font-size: 16px;
  color: #555;
  max-width: 100%;
}

.melco-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.melco-card {
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  padding: 16px 18px 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.melco-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.melco-card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
}

/* Recruit page */

.recruit-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.recruit-feature {
  border-radius: 14px;
  border: 1px solid #eee;
  padding: 16px 16px 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  text-align: center;
}

.recruit-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.recruit-feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.recruit-feature p {
  margin: 0;
  font-size: 13px;
  color: #555;
}

.recruit-links {
  margin-top: 28px;
  font-size: 13px;
}

.recruit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 6px;
}

/* Footer */

.site-footer {
  margin-top: 32px;
  background: #111;
  color: #f5f5f5;
  font-size: 12px;
}

/*🔥 減少 footer 高度：padding 由 16px 改為 8px */
.footer-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;       /* ← 在這裡調整高度 */
}

/*🔥 公司名稱 + 地址同排顯示 */
.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;            /* ← 名稱與地址之間的間距 */
  flex-wrap: wrap;      /* ← 手機太窄時自動換行，不會擠爆 */
}

/*🔥 兩段文字樣式一致 */
.footer-company,
.footer-address {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

/* 保留原本的 link 與 copy */
.footer-links a {
  font-size: 12px;
  color: #f5f5f5;
}

.footer-copy {
  text-align: center;
  padding: 10px 0 14px;
  border-top: 1px solid #333;
  font-size: 14px;
}
/* Animations: fade-in on scroll */

.js-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

.js-fade-delay-1 {
  transition-delay: 0.08s;
}

.js-fade-delay-2 {
  transition-delay: 0.16s;
}

/* Responsive */

@media (max-width: 880px) {
  .hero-slide {
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .melco-grid {
    grid-template-columns: 1fr;
  }

  .recruit-feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
  }

  .container--narrow {
    max-width: 100%;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px 12px;
    gap: 6px;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    border-radius: 0;
  }

  .site-header {
    border-bottom-color: #f5f5f5;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    bottom: 8px;
  }
}


.footer-address {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

