:root {
  --primary: #d39776;
  --primary-dark: #915039;
  --brown: #5c2512;
  --accent-yellow: #fef45d;
  --accent-yellow-mid: #f6e754;
  --accent-yellow-dark: #d5b530;
  --bg-light: #f4f4f4;
  --text-dark: #333;
  --text-medium: #707070;
  --white: #fff;
  --gradient-banner: linear-gradient(to bottom, #915039, #8a4a34 49%, #5c2512);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: 120px;
}

body {
  font-family:
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 30px;
}

.mobile-br {
  display: block;
}

.tablet-br {
  display: none;
}

.mobile-br.tablet-br {
  display: block;
}

.mobile-hide {
  display: none;
}

.mobile-hide.tablet-hide {
  display: none;
}

/* ====== Header ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  padding: 0;
}

.logo {
  position: relative;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
}

.logo-mobile {
  display: block;
}
.logo-ipad {
  display: none;
}
.logo-pc {
  display: none;
}

.footer .logo {
  box-shadow: none;
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: var(--bg-light);
}

.nav a {
  flex: 1;
  text-align: center;
  padding: 0;
  font-size: 18px;
  color: var(--text-medium);
  line-height: 60px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary-dark);
}

.nav-divider {
  display: block;
  width: 1px;
  height: 19px;
  background: var(--text-medium);
  flex-shrink: 0;
}

/* ====== Hero ====== */
.hero {
  margin-top: 120px;
  position: relative;
  background-color: var(--primary);
  background-image:
    linear-gradient(to top, var(--primary) 36%, transparent 64%),
    url("../images/banner-mobile.webp");
  background-size:
    100% auto,
    100% auto;
  background-position:
    bottom,
    top center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
  height: 570px;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 48px;
}

.hero-content {
  max-width: 100%;
  text-align: center;
  margin-top: 266px;
}

.hero-title {
  line-height: 1.1;
}

.hero-title-white {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.75);
  letter-spacing: 4px;
}

.hero-title-yellow {
  display: block;
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-yellow);
  text-shadow: 0 5px 12px rgba(0, 0, 0, 0.75);
  letter-spacing: 4px;
  margin-top: 8px;
  margin-left: 0;
}

.hero-subtitle {
  display: block;
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin-top: 16px;
  line-height: 1.5;
  text-align: center;
}

/* ====== Number Banner ====== */
.number-banner {
  background: var(--gradient-banner);
  padding: 24px 0;
  position: relative;
  z-index: 10;
  height: 150px;
}

.number-banner-decor {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -22%);
  width: 100%;
  max-width: 500px;
  pointer-events: none;
}

.number-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.number-banner p {
  display: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.btn-cta {
  display: none;
  padding: 12px 40px;
  background: linear-gradient(
    180deg,
    var(--accent-yellow) 0%,
    var(--accent-yellow-mid) 55%,
    var(--accent-yellow-dark) 100%
  );
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 500;
  border-radius: 28.5px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.hero-sub-btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 22px;
  padding: 5px 36px;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.number-banner-alt {
  background: var(--primary);
}

.number-banner-alt p {
  display: block;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 34px;
}

/* ====== Section Title with Lines ====== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  max-width: 280px;
  height: 1px;
  background: var(--text-medium);
  display: none;
}

.section-title span {
  font-size: 26px;
  font-weight: 500;
  color: var(--primary-dark);
  text-align: center;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  font-size: 20px;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto;
  line-height: 30px;
}

/* ====== Features ====== */
.features {
  padding: 100px 0 40px;
  background: var(--white);
  position: relative;
  z-index: 20;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 30px;
}

.feature-card {
  text-align: center;
  padding: 0 55px;
}

.feature-icon {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 20px;
  color: var(--text-medium);
  line-height: 30px;
}

.number-banner-secondary {
  padding: 32px 0;
  background-color: #d39776;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  color: #fff;
}

/* ====== Use Cases ====== */
.use-cases {
  padding: 100px 0;
  background: var(--bg-light);
}

/* Carousel (mobile) */
.use-cases-carousel {
  margin: 0 -30px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
  will-change: transform;
  padding: 46px 0;
  touch-action: pan-y;
}

.use-case-card {
  flex: 0 0 calc(100vw - 100px);
  margin: 0 50px;
  background: var(--white);
  border-radius: 30px;
  padding: 20px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.16);
}

.use-case-icon {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.use-case-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.use-case-text h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 14px;
}

.use-case-text p {
  font-size: 20px;
  color: var(--text-medium);
  line-height: 30px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  padding: 10px 0 0;
}

.carousel-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #cecece;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  width: 50px;
  border-radius: 7.5px;
  background: var(--primary);
}

/* ====== Plan ====== */
.plan {
  padding: 100px 0;
  background: var(--white);
}

.plan-content {
  max-width: 800px;
  margin: 50px auto 0;
}

.plan-section {
  margin-bottom: 32px;
}

.plan-section h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
}

.plan-section li {
  font-size: 18px;
}

.plan-section ul,
.plan-section ol {
  padding-left: 0;
  list-style: none;
}

.plan-section ol {
  counter-reset: plan-counter;
}

.plan-section ol li::before {
  counter-increment: plan-counter;
  content: counter(plan-counter) ".";
  position: absolute;
  left: 0;
}

.plan-section li {
  position: relative;
  padding: 4px 0 4px 1.5em;
  color: var(--text-medium);
  line-height: 1.78;
}

.plan-section ul li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* ====== CTA Section ====== */
.cta-section {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.cta-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-content p {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 4px;
}

.cta-phone {
  font-size: 36px;
  font-weight: 900;
  color: var(--brown);
  letter-spacing: 2px;
  margin-top: 8px;
}

/* ====== Footer ====== */
.footer {
  background: var(--gradient-banner);
  padding: 50px 0px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.8;
}

.footer-sep {
  display: none;
}

/* ============================================
   Tablet / iPad (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  .mobile-br {
    display: none;
  }

  .tablet-br {
    display: block;
  }

  .mobile-hide {
    display: inline;
  }

  .header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 40px;
  }

  .container {
    padding: 0 60px;
  }

  .logo {
    justify-content: flex-start;
    height: auto;
    box-shadow: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: auto;
    background: transparent;
  }

  .nav a {
    flex: unset;
    padding: 8px 14px;
    font-size: 20px;
    line-height: normal;
    color: var(--text-dark);
  }

  .nav a:hover {
    color: var(--primary-dark);
  }

  .nav-divider {
    display: block;
    width: 1px;
    height: 16px;
    background: var(--text-medium);
  }

  .hero {
    height: auto;
    min-height: 600px;
    margin-top: 80px;
    background-image: url("../images/banner-tablet.webp");
    background-size: cover;
    background-position: center center;
  }

  .hero .container {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-content {
    text-align: left;
    margin-top: 0;
  }

  .hero-title-white {
    font-size: 79px;
  }

  .hero-title-yellow {
    font-size: 79px;
    margin-left: 0;
    margin-top: 10px;
  }

  .hero-subtitle {
    display: block;
    font-size: 34px;
    margin-top: 32px;
    line-height: 1.4;
    text-align: left;
  }

  .hero-sub-btn {
    display: none;
  }

  .number-banner {
    padding: 40px 0;
    height: 190px;
    display: flex;
    align-items: center;
  }

  .number-banner .container {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .number-banner-content {
    line-height: 1.13;
  }

  .number-banner-decor {
    left: -110px;
    transform: translateY(-36%);
    width: auto;
    clip-path: inset(0 0 45% 0);
    max-width: 694px;
  }

  .number-banner p {
    display: none;
  }

  .btn-cta {
    display: inline-block;
    font-size: 30px;
    padding: 12px 52px;
  }

  .hero-sub-btn {
    display: none;
  }

  .number-banner-alt p {
    display: block;
    font-size: 26px;
  }

  .features {
    padding: 120px 0 50px;
  }

  .section-title span {
    font-size: 34px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .section-title::before,
  .section-title::after {
    display: block;
    max-width: 220px;
  }

  .section-subtitle {
    font-size: 20px;
    line-height: 1.75;
    margin-bottom: 0px;
  }

  .features-grid {
    margin-top: 0px;
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card {
    padding: 28px 10px;
  }

  .feature-icon {
    width: 190px;
    height: 190px;
    margin-bottom: 0px;
  }

  .feature-card h3 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .feature-card p {
    font-size: 20px;
    line-height: 1.67;
  }

  .number-banner-secondary {
    padding: 46px 0;
    font-size: 26px;
  }

  .use-cases {
    padding: 120px 0;
  }

  .use-cases-carousel {
    margin: 60px 0 0 0;
    overflow: visible;
  }

  .carousel-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0;
    transition: none;
    transform: none !important;
  }

  .carousel-dots {
    display: none;
  }

  .use-case-card {
    flex: unset;
    margin: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 30px;
    padding: 28px 25px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.16);
    gap: 12px;
  }

  .use-case-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 0px;
  }

  .use-case-text h3 {
    font-size: 26px;
    margin-bottom: 0px;
  }

  .use-case-text p {
    font-size: 20px;
    line-height: 1.67;
  }

  .plan {
    padding: 120px 0;
  }

  .plan-content {
    max-width: 630px;
  }

  .plan-section h3 {
    font-size: 22px;
  }

  .plan-section li {
    font-size: 18px;
    line-height: 1.5;
  }

  .cta-content h2 {
    font-size: 40px;
  }

  .cta-content p {
    font-size: 40px;
  }

  .cta-phone {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer .container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .footer p {
    font-size: 18px;
    text-align: left;
    line-height: 1.9;
  }

  .footer-sep {
    display: none;
  }
}

/* ============================================
   Desktop / PC (min-width: 1100px)
   ============================================ */
@media (min-width: 1100px) {
  .mobile-br {
    display: none;
  }

  .tablet-br {
    display: none;
  }

  .mobile-br.tablet-br {
    display: none;
  }

  .mobile-hide {
    display: inline;
  }

  .mobile-hide.tablet-hide {
    display: inline;
  }

  .container {
    padding: 0 90px;
  }

  .header .container {
    height: 80px;
    padding: 0 90px;
  }

  .logo {
    font-size: 20px;
    box-shadow: none;
  }

  .nav a {
    font-size: 20px;
    padding: 8px 20px;
  }

  .hero {
    min-height: 612px;
    margin-top: 80px;
    background-image: url("../images/banner-pc.webp");
  }

  .hero .container {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-title-white {
    font-size: 118px;
    letter-spacing: 6px;
  }

  .hero-title-yellow {
    font-size: 118px;
    letter-spacing: 6px;
    margin-top: 10px;
    margin-left: 75px;
  }

  .number-banner {
    padding: 48px 0;
    height: 150px;
  }

  .number-banner-decor {
    left: -150px;
    transform: translateY(-38%);
    width: auto;
    clip-path: inset(0 0 45% 0);
  }

  .number-banner .container {
    flex-direction: row;
    justify-content: flex-end;
    gap: 80px;
    padding-left: 154px;
  }

  .number-banner p {
    display: block;
    font-size: 42px;
  }

  .btn-cta {
    display: inline-block;
    font-size: 32px;
    padding: 10px 52px;
  }

  .hero-sub-btn {
    display: none;
  }

  .number-banner-alt {
    padding: 40px 0;
  }

  .number-banner-alt p {
    font-size: 26px;
  }

  .number-banner-content {
    position: relative;
    z-index: 11;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 30px;
    margin-right: -50px;
  }

  .number-banner-secondary {
    padding: 47px 42px;
    font-size: 28px;
  }

  .features {
    padding: 150px 0 60px;
  }

  .section-title span {
    font-size: 38px;
    white-space: nowrap;
  }

  .section-title {
    gap: 50px;
    padding: 0 60px;
  }

  .section-title::before,
  .section-title::after {
    max-width: 65%;
  }

  .section-subtitle {
    font-size: 24px;
    margin-bottom: 70px;
    max-width: 900px;
    line-height: 1.9;
  }

  .features-grid {
    margin-top: -45px;
    gap: 60px;
  }

  .feature-card {
    padding: 0 ;
  }

  .feature-icon {
    width: 225px;
    height: 225px;
    margin-bottom: 0px;
  }

  .feature-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .feature-card p {
    font-size: 22px;
    line-height: 1.67;
    padding: 0 52px;
  }

  .use-cases {
    padding: 150px 0;
  }

  .use-cases-carousel {
    margin: 0;
  }

  .carousel-track {
    column-gap: 50px;
    row-gap: 50px;
    max-width: 1050px;
    margin: 0 auto;
  }

  .use-case-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 32px 28px;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.16);
    gap: 35px;
    margin: 0;
    max-width: 500px;
  }

  .use-case-icon {
    display: flex;
    width: 100px;
    height: 100px;
    margin-bottom: 0px;
  }

  .use-case-text h3 {
    font-size: 28px;
    line-height: 1.36;
    margin-bottom: 0px;
  }

  .use-case-text p {
    font-size: 22px;
    line-height: 1.67;
  }

  .plan {
    padding: 150px 0;
  }

  .plan-content {
    max-width: 1015px;
  }

  .plan-section h3 {
    font-size: 28px;
  }

  .plan-section li {
    font-size: 22px;
  }

  .cta-section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
  }

  .cta-content h2 {
    font-size: 50px;
  }

  .cta-content p {
    font-size: 50px;
  }

  .cta-phone {
    font-size: 50px;
    letter-spacing: 3px;
  }

  .cta-image {
    width: 100%;
  }

  .footer {
    padding: 46px 0;
  }

  .footer .container {
    padding: 0;
  }

  .footer p {
    font-size: 18px;
  }

  .footer-br {
    display: none;
  }

  .footer-sep {
    display: inline;
  }
}

@media (min-width: 1440px) {
  .number-banner-decor {
    left: 0;
  }

  .number-banner-content {
    margin-right: 0;
  }

  .features {
    padding: 150px 150px 60px;
  }

  .use-cases {
    padding: 150px 150px;
  }

  .plan {
    padding: 150px;
  }
}
