/* Homepage fullpage — Cepai-inspired layout & palette */
:root {
  --fp-accent: #c8102e;
  --fp-accent-hover: #a00d25;
  --fp-dark: #1a1a1a;
  --fp-text: #333333;
  --fp-muted: #666666;
  --fp-line: #e5e5e5;
  --fp-bg: #ffffff;
  --fp-bg-soft: #f7f7f7;
  --fp-bg-alt: #fafafa;
}

/* —— PC fullpage shell —— */
@media (min-width: 993px) {
  body.home-fullpage {
    overflow: hidden;
  }
  body.home-fullpage .navigation-n12m-1_blk {
    display: none;
  }
  body.home-fullpage .navigation-n12m-1 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--fp-line) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: background .35s, border-color .35s, box-shadow .35s;
  }
  body.home-fullpage .navigation-n12m-1.is-solid,
  body.home-fullpage.fp-on-banner .navigation-n12m-1 {
    background: #fff !important;
    border-bottom-color: var(--fp-line) !important;
  }
  body.home-fullpage .navigation-n12m-1 .navbar-ul > li,
  body.home-fullpage.fp-on-banner .navigation-n12m-1 .navbar-ul > li {
    color: var(--fp-text);
  }
  body.home-fullpage .navigation-n12m-1 .navbar-ul > li:hover,
  body.home-fullpage .navigation-n12m-1 .navbar-ul > li.active,
  body.home-fullpage.fp-on-banner .navigation-n12m-1 .navbar-ul > li:hover,
  body.home-fullpage.fp-on-banner .navigation-n12m-1 .navbar-ul > li.active {
    color: var(--fp-accent);
    border-bottom: 3px solid var(--fp-accent);
  }
  body.home-fullpage .navigation-n12m-1 .search-box .search-btn {
    background: var(--fp-accent);
  }

  #pagepiling {
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  #pagepiling .fp-section {
    box-sizing: border-box;
  }
  #pagepiling .section-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 6% 40px;
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
  }
  #pagepiling .section-inner.full-bleed {
    max-width: none;
    padding: 0;
  }

  /* Left section menu */
  #fp-side-menu {
    position: fixed;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1090;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #fp-side-menu li {
    margin: 0 0 14px;
  }
  #fp-side-menu a {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fp-muted);
    text-decoration: none;
    padding-left: 14px;
    border-left: 2px solid transparent;
    transition: color .25s, border-color .25s;
    line-height: 1.2;
  }
  #fp-side-menu li.active a,
  #fp-side-menu a:hover {
    color: var(--fp-accent);
    border-left-color: var(--fp-accent);
  }
  body.home-fullpage.fp-on-banner #fp-side-menu a {
    color: rgba(255, 255, 255, 0.75);
  }
  body.home-fullpage.fp-on-banner #fp-side-menu li.active a,
  body.home-fullpage.fp-on-banner #fp-side-menu a:hover {
    color: #fff;
    border-left-color: var(--fp-accent);
  }

  /* Hide pagePiling right dots */
  #pp-nav {
    display: none !important;
  }
}

/* —— Shared section styles —— */
.fp-headline {
  margin: 0 0 28px;
  text-align: left;
}
.fp-headline h2 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--fp-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.fp-headline .sub {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  color: var(--fp-muted);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fp-headline h2:after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--fp-accent);
  margin-top: 14px;
}

.fp-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 0 28px;
  height: 42px;
  line-height: 42px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--fp-accent);
  text-decoration: none;
  transition: background .3s, transform .3s;
}
.fp-btn:hover {
  background: var(--fp-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* Section enter animations */
.fp-anim-left,
.fp-anim-right,
.fp-anim-up {
  opacity: 0;
  transition: opacity .55s ease, transform .55s ease;
}
.fp-anim-left { transform: translateX(-40px); }
.fp-anim-right { transform: translateX(40px); }
.fp-anim-up { transform: translateY(30px); }
.pp-section.active .fp-anim-left,
.pp-section.active .fp-anim-right,
.pp-section.active .fp-anim-up,
.fp-section-ready .fp-anim-left,
.fp-section-ready .fp-anim-right,
.fp-section-ready .fp-anim-up {
  opacity: 1;
  transform: translate(0, 0);
}

/* —— Banner —— */
#section1 {
  background: #111;
  overflow: hidden;
}
#section1 .section-inner.full-bleed {
  height: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
#section1 .slideBox,
#section1 .slideBox .bd,
#section1 .slideBox .bd ul,
#section1 .slideBox .bd li,
#section1 .slideBox .bd li a {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
#section1 .slideBox {
  position: relative;
  overflow: hidden;
}
#section1 .slideBox .bd {
  position: relative;
  overflow: hidden;
}
#section1 .slideBox .bd ul {
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
}
#section1 .slideBox .bd li {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden;
}
#section1 .slideBox .bd li a {
  display: block;
  position: relative;
  overflow: hidden;
}
#section1 .slideBox .bd img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  /* Show full original image content and stretch to fill — no crop/zoom */
  object-fit: fill !important;
  object-position: center center;
  display: block;
}
#section1 .slideBox .hd {
  bottom: 40px;
}
#section1 .slideBox .hd ul li.on {
  background: var(--fp-accent);
}

/* —— About —— */
#section2 {
  background: var(--fp-bg-alt);
  overflow: hidden;
}
#section2 .section-inner {
  overflow: hidden;
  justify-content: center;
}
.fp-about-grid {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  flex: 0 0 auto;
  max-height: 58vh;
}
.fp-about-grid .fp-about-text {
  flex: 1 1 48%;
  min-width: 0;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fp-about-grid .fp-about-media {
  flex: 0 0 46%;
  width: 46%;
  max-width: 560px;
  min-width: 280px;
  position: relative;
  /* Fixed display box — tall images cannot stretch the section */
  height: min(42vh, 400px);
  max-height: 400px;
  overflow: hidden;
  background: #eaeaea;
  border-radius: 2px;
  align-self: center;
}
.fp-about-grid .fp-about-media .owl-carousel {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.fp-about-grid .fp-about-media .owl-carousel .owl-wrapper-outer,
.fp-about-grid .fp-about-media .owl-carousel .owl-wrapper,
.fp-about-grid .fp-about-media .owl-carousel .owl-item {
  height: 100% !important;
}
.fp-about-grid .fp-about-media .item {
  position: relative;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100%;
  overflow: hidden;
  margin: 0;
}
.fp-about-grid .fp-about-media .item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s ease;
}
.fp-about-grid .fp-about-media .item:hover img {
  transform: scale(1.06);
}
.fp-about-grid .fp-about-media .item .text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
}
.fp-about-grid .fp-about-media .owl-buttons {
  z-index: 3;
}
.fp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fp-line);
  flex-shrink: 0;
}
.fp-stats li {
  flex: 1 1 25%;
  min-width: 100px;
  padding: 12px 12px 0 0;
}
.fp-stats label {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--fp-accent);
  margin: 0;
  line-height: 1.2;
}
.fp-stats span {
  display: block;
  font-size: 1.25rem;
  color: var(--fp-muted);
  margin-top: 4px;
}
.fp-about-text .text-content {
  color: var(--fp-text);
  font-size: 1.5rem;
  line-height: 1.7;
  max-height: 22vh;
  overflow: hidden;
  flex: 0 1 auto;
}
.fp-about-text .text-content p {
  margin: 0 0 12px;
  color: var(--fp-text);
  font-size: 1.5rem;
  line-height: 1.7;
}
.fp-about-text .fp-btn {
  flex-shrink: 0;
}

/* —— Advantages strip inside about —— */
.fp-adv-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fp-line);
  flex-shrink: 0;
  max-height: 12vh;
  overflow: hidden;
}
.fp-adv-row .adv-item {
  flex: 1 1 30%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 180px;
}
.fp-adv-row .adv-item .cover {
  flex: none;
  width: 48px;
  height: 48px;
}
.fp-adv-row .adv-item .cover img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.fp-adv-row .adv-item h4 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fp-dark);
}
.fp-adv-row .adv-item p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--fp-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Products —— */
#section3 {
  background: var(--fp-bg);
}
.fp-products ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 2%;
}
.fp-products ul li {
  width: 32%;
  margin: 0;
}
.fp-products .item {
  position: relative;
  overflow: hidden;
  background: var(--fp-bg-soft);
  border: 1px solid var(--fp-line);
  height: 0;
  padding-bottom: 68%;
  transition: border-color .35s, box-shadow .35s;
}
.fp-products .item:hover {
  border-color: var(--fp-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.fp-products .cover-image {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.fp-products .cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.fp-products .item:hover img {
  transform: scale(1.1);
}
.fp-products .item .mask {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  opacity: 0;
  transition: opacity .35s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.fp-products .item:hover .mask {
  opacity: 1;
}
.fp-products .text .th {
  margin: 12px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fp-products .text .th a {
  color: var(--fp-dark);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color .25s;
}
.fp-products .text .th a:hover {
  color: var(--fp-accent);
}

/* —— Case —— */
#section4 {
  background: var(--fp-bg-soft);
}
.fp-case .owl-carousel .item {
  padding: 0 10px;
}
.fp-case .blk {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fp-line);
  background: #fff;
  height: 0;
  padding-bottom: 100%;
  transition: border-color .35s;
}
.fp-case .blk:hover {
  border-color: var(--fp-accent);
}
.fp-case .cover-image {
  position: absolute;
  inset: 0;
  display: block;
}
.fp-case .cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.fp-case .blk:hover img {
  transform: scale(1.1);
}
.fp-case .title {
  display: block;
  text-align: center;
  padding: 12px 8px 0;
  color: var(--fp-dark);
  font-size: 1.5rem;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .25s;
}
.fp-case .title:hover {
  color: var(--fp-accent);
}
.fp-case .owl-buttons .imco {
  background: var(--fp-dark) !important;
}
.fp-case .owl-buttons .imco:hover {
  background: var(--fp-accent) !important;
}

/* —— News —— */
#section5 {
  background: var(--fp-bg);
}
.fp-news-grid {
  display: flex;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}
.fp-news-grid .fp-news-video {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #111;
}
.fp-news-grid .fp-news-video .item {
  height: 100%;
  min-height: 280px;
  margin: 0;
}
.fp-news-grid .fp-news-video .covpic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}
.fp-news-grid .fp-news-video .item:hover .covpic {
  transform: scale(1.06);
  filter: brightness(0.85);
}
.fp-news-grid .fp-news-list {
  flex: 1 1 55%;
  min-width: 0;
}
.fp-news-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fp-news-list ul li {
  margin: 0 0 12px;
  border-bottom: 1px solid var(--fp-line);
  transition: background .3s;
}
.fp-news-list ul li a {
  display: flex;
  gap: 20px;
  padding: 14px 10px;
  text-decoration: none;
  color: var(--fp-text);
  transition: color .25s;
}
.fp-news-list ul li:hover {
  background: var(--fp-bg-soft);
}
.fp-news-list ul li:hover a {
  color: var(--fp-accent);
}
.fp-news-list .time {
  flex: none;
  width: 70px;
  text-align: center;
}
.fp-news-list .time .day {
  display: block;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--fp-accent);
  line-height: 1.1;
}
.fp-news-list .time span {
  display: block;
  font-size: 1.3rem;
  color: var(--fp-muted);
}
.fp-news-list .content h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 500;
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fp-news-list .content .text {
  font-size: 1.4rem;
  color: var(--fp-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Footer / Contact section —— */
/* Fill the whole viewport so no white gap under the dark contact screen */
#section6 {
  background: #1a1a1a !important;
  position: relative;
}
@media (min-width: 993px) {
  body.home-fullpage #section6,
  body.home-fullpage #section6.pp-section {
    height: 100vh !important;
    min-height: 100vh !important;
    background: #1a1a1a !important;
  }
  /* Full-height flex: center content, then shift up 5% of the page */
  body.home-fullpage #section6 .section-inner {
    position: relative;
    height: 100% !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 56px;
    max-width: none;
    box-sizing: border-box;
  }
  body.home-fullpage #section6 .friendly-link-n122m-2 {
    padding-top: 0;
    padding-left: 120px;
    padding-right: 40px;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    /* Centered by flex, then up 5% of the page */
    transform: translateY(-5vh);
  }
  body.home-fullpage #section6 .friendly-link-n122m-2 footer {
    align-items: flex-start;
  }
  body.home-fullpage #section6 .copyright-n101m-1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    margin: 0;
    flex-shrink: 0;
    z-index: 2;
  }
}
body.home-fullpage #section6 .friendly-link-n122m-2 .cinfos .cus .info .value:hover,
body.home-fullpage #section6 .friendly-link-n122m-2 .links .blk .value:hover {
  color: var(--fp-accent);
}
body.home-fullpage #section6 .area-background-n4m-72 > .area-background-cont {
  background: linear-gradient(to right, #111, #2a0a10);
}

/* Contact box: above sections so tips stay clickable */
body.home-fullpage .contact-box-n101m-1 {
  z-index: 10060 !important;
}
body.home-fullpage .contact-box-n101m-1 .item i {
  background: var(--fp-accent);
}
body.home-fullpage .contact-box-n101m-1 .item i:hover {
  background: var(--fp-dark);
}
/* Tip bridge: keep hover when moving from icon to tip */
body.home-fullpage .contact-box-n101m-1 .item .tools {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10061;
  top: 0;
  right: 100%;
  padding-right: 18px;
  min-height: 50px;
  transition: opacity .15s ease;
}
body.home-fullpage .contact-box-n101m-1 .item:hover .tools,
body.home-fullpage .contact-box-n101m-1 .item .tools:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Hide empty / useless side items that look like stray dots */
body.home-fullpage .contact-box-n101m-1 .item.hide,
body.home-fullpage .contact-box-n101m-1 .item:empty {
  display: none !important;
}

/* Footer SNS: one row, icons only, no white circle base */
body.home-fullpage #section6 .sns.fximgdiv,
body.home-fullpage #section6 .friendly-link-n122m-2 .sns {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
}
body.home-fullpage .friendly-link-n122m-2 .sns a,
body.home-fullpage #section6 .sns.fximgdiv a {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 4px 8px 4px 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
}
body.home-fullpage .friendly-link-n122m-2 .sns a:hover,
body.home-fullpage #section6 .sns.fximgdiv a:hover {
  background: transparent !important;
}
body.home-fullpage .friendly-link-n122m-2 .sns a img,
body.home-fullpage #section6 .sns.fximgdiv a img {
  width: 28px;
  height: 28px;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
}

/* —— Mobile: normal scroll, no pagepiling —— */
@media (max-width: 992px) {
  #fp-side-menu,
  #pp-nav {
    display: none !important;
  }
  html,
  body.home-fullpage,
  html.home-fullpage-html {
    overflow: auto !important;
    height: auto !important;
  }
  #pagepiling,
  #pagepiling .pp-section,
  #pagepiling .section {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }
  #pagepiling .section-inner {
    padding: 40px 16px 30px;
    height: auto;
    display: block;
  }
  #pagepiling .section-inner.full-bleed {
    padding: 0;
  }
  #section1 .slideBox {
    height: auto;
  }
  #section1 .slideBox .bd img {
    height: auto;
    object-fit: contain;
  }
  .fp-about-grid,
  .fp-news-grid {
    flex-direction: column;
    gap: 24px;
    max-height: none;
  }
  .fp-about-grid .fp-about-media {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 220px;
    max-height: 220px;
  }
  .fp-about-text .text-content {
    max-height: none;
  }
  .fp-adv-row {
    max-height: none;
  }
  .fp-products ul li {
    width: 48%;
  }
  .fp-anim-left,
  .fp-anim-right,
  .fp-anim-up {
    opacity: 1;
    transform: none;
  }
  .fp-headline h2 {
    font-size: 2.2rem;
    text-align: center;
  }
  .fp-headline h2:after {
    margin-left: auto;
    margin-right: auto;
  }
  .fp-headline {
    text-align: center;
  }
  #section2,
  #section3,
  #section4,
  #section5 {
    padding-bottom: 10px;
  }
  #section6 .section-inner {
    padding: 80px 15px 48px;
    justify-content: center;
  }
  body.home-fullpage #section6 .friendly-link-n122m-2 {
    padding-left: 0;
    padding-right: 0;
    transform: translateY(-3vh);
  }
  #section6 .copyright-n101m-1 {
    bottom: 10px;
  }
}
