@charset "utf-8";
/* Supplemental CSS reproducing behaviors the sample achieved via
   Swiper / Slick JS, which we drive with React instead. Keeps the
   sample's static appearance intact. */

/* Prevent a horizontal scrollbar from the intentional negative-margin image
   bleeds (hero / top-news) on narrow viewports. */
html,
body {
  overflow-x: hidden;
}

/* The closed drawer (width:0, position:fixed) holds fixed-width content
   (logo, nav items, contact button) that overflowed to the right and widened
   the layout viewport on mobile. Clip it horizontally; keep vertical scroll
   for when the drawer is open. */
.navi {
  overflow-x: hidden;
  overflow-y: auto;
}

/* ---- Hero crossfade (was Swiper fade effect) ---- */
#mainimage .swiper-wrapper {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: none;
}
#mainimage .swiper-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
#mainimage .swiper-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Service marquee (was Slick autoplay carousel) ---- */
.autoplay {
  overflow: hidden;
  width: 100%;
}
.autoplay .marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: stretch;
  animation: marquee-scroll 24s linear infinite;
}
.autoplay .slick_box {
  flex: 0 0 auto;
  width: 45vw;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Uniform service cards: fixed height + centered content so every background
   image is the same size regardless of how many lines the label wraps to. */
.autoplay .slick_box a[class*="top_service"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 170px;
  padding: 16px 12px;
  line-height: 1.3em;
}
.autoplay .slick_box a[class*="top_service"] img {
  margin: 0 auto 10px;
}
@media print, screen and (min-width: 768px) {
  .autoplay .slick_box a[class*="top_service"] { height: 220px; }
}
@media print, screen and (min-width: 992px) {
  .autoplay .slick_box a[class*="top_service"] { height: 260px; }
}
@media print, screen and (min-width: 1200px) {
  .autoplay .slick_box a[class*="top_service"] { height: 300px; }
}
@media print, screen and (min-width: 768px) {
  .autoplay .slick_box { width: 30vw; }
}
@media print, screen and (min-width: 1200px) {
  .autoplay .slick_box { width: 23vw; }
}

/* ---- Compact, balanced footer ----
   The reference footer filled its width with three office blocks + a recruit
   banner; we have far less content, so lay it out as a brand block (left) and
   a two-column link grid (right) with a divider above a centered copyright. */
footer {
  padding: 40px 0 26px;
}
@media print, screen and (min-width: 992px) {
  footer {
    padding: 52px 0 28px;
  }
}
footer .footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dcdcdc;
}
footer .footer-brand {
  min-width: 0;
}
footer .footer-nav {
  min-width: 0;
}
footer .footer-brand h3 {
  margin-bottom: 0;
}
footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
footer .footer-links li a:link,
footer .footer-links li a:visited {
  color: #333;
  transition: opacity 0.2s ease;
}
footer .footer-links li a:hover {
  opacity: 0.6;
}
footer small.footer-copy {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: #999;
  font-size: 0.82em;
}
footer small.footer-copy i {
  margin-right: 5px;
}
@media screen and (max-width: 767px) {
  footer .footer-main {
    flex-direction: column;
    gap: 22px;
  }
  footer .footer-brand,
  footer .footer-nav {
    width: 100%;
    max-width: 100%;
  }
  footer .footer-links {
    gap: 10px 28px;
  }
}

/* ---- Text wordmark (the reference used a logo image we don't have) ---- */
.site-logo-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #b49531;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
header h1 .site-logo-text {
  font-size: 18px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
}
@media print, screen and (min-width: 768px) {
  header h1 .site-logo-text { font-size: 24px; }
}
@media print, screen and (min-width: 1200px) {
  header h1 .site-logo-text { font-size: 30px; }
}
footer h3 .site-logo-text {
  font-size: 1.6em;
}

/* ---- Contact form (reference `.table_form`) ---- */
.table_form input,
.table_form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 3px;
}
.table_form input:focus,
.table_form textarea:focus {
  border: 1px solid #999;
  outline: none;
}
.form-req {
  display: inline-block;
  background-color: #8d1b1b;
  color: #fff;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: normal;
  line-height: normal;
  border-radius: 3px;
  margin-left: 8px;
}
.form-error {
  color: #8d1b1b;
  font-size: 0.85em;
  margin-top: 5px;
}
.form-status-ok {
  color: #1b3c8d;
  font-weight: 700;
  margin-top: 15px;
}
.form-status-ng {
  color: #8d1b1b;
  font-weight: 700;
  margin-top: 15px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Home banners: equal height ----
   The two .bnr_led banners sit in a flex row (equal-height columns), but the
   anchors sized to their content, so differing image aspect ratios made them
   unequal. Fill the column and center the content. */
.bnr_led {
  height: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.bnr_led > .row {
  flex: 1;
  align-items: center;
}

/* ---- Business section text panel ----
   The reference `bg_business*` photos left a text-free zone; our project
   photos fill the frame, so back the text with a translucent cream panel
   to keep it legible over any image. */
.business-text {
  background: rgba(244, 239, 224, 0.92);
  padding: 22px 26px;
  border-radius: 4px;
}

/* Warm-orange title bars (replacing the hard-to-read navy). */
.business_title {
  background: rgb(233 102 32);
}

/* Soften the reveal on the business sections: the default -100px/+100px
   slide made the title bar and the photo block overlap while animating in.
   Use a small drift so they fade into place without colliding. */
.business_title h3.animate:not(.visible),
[class*="buusiness"].animate:not(.visible) {
  transform: translateY(30px);
}

/* ---- Numbered process/flow list ---- */
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #e2ddc5;
}
.flow-item:last-child {
  border-bottom: 0;
}
.flow-num {
  flex: 0 0 auto;
  width: 48px;
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  color: #b49531;
  font-size: 1.9em;
  line-height: 1;
}
.flow-body strong {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 5px;
}
.flow-body p {
  color: #555;
}

/* ---- Info cards (LED benefits / security solutions) ---- */
.card-box {
  background: #fff;
  border: 1px solid #b49531;
  border-radius: 4px;
  padding: 20px;
  height: 100%;
  margin-bottom: 20px;
}
.card-box h5 {
  color: #b49531;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
  margin-bottom: 10px;
}

/* ---- Project gallery thumbnails ---- */
.mb-gallery {
  margin-bottom: 15px;
}
.gallery-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.gallery-more {
  text-align: center;
  margin-top: 30px;
}
/* .btn-style sets white text only on <a>; ensure <button> variants (e.g. the
   VIEW MORE control) match the anchor buttons like お問い合わせ exactly. */
button.btn-style {
  color: #fff;
  border: none;
  cursor: pointer;
}
@media print, screen and (min-width: 768px) {
  .gallery-thumb { height: 220px; }
}

/* ---- Fixed side "Contact" tab ----
   Replace the faded baked-in image with a real navy tab (icon + vertical text)
   that matches the site's buttons in font and color. */
.fixbtn a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 16px;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 3px 14px rgba(0, 0, 0, 0.16);
}
.fixbtn a i {
  font-size: 1.35em;
  line-height: 1;
}
.fixbtn-label {
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.14em;
  line-height: 1;
}

/* ---- Hamburger menu button ----
   A solid rounded navy button with white bars (legible over photos or white
   headers) that animates into an X when the drawer is open. Overrides the
   reference's thin black bars and per-breakpoint sizing for consistency. */
.el_humburger {
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b3c8d;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease;
  z-index: 20;
}
.el_humburger:hover {
  background: #b49531;
}
@media screen and (max-width: 767px) {
  .el_humburger {
    top: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
  }
}
.el_humburger .el_humburger_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
}
.el_humburger span.el_humburger_bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.el_humburger .hamburger_menu {
  position: static;
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #fff;
}
/* Open state: keep bars white and fold them into an X. */
.js_humburgerOpen .el_humburger span.el_humburger_bar {
  background: #fff;
}
.js_humburgerOpen .el_humburger span.el_humburger_bar.top {
  transform: translateY(8px) rotate(45deg);
}
.js_humburgerOpen .el_humburger span.el_humburger_bar.middle {
  opacity: 0;
}
.js_humburgerOpen .el_humburger span.el_humburger_bar.bottom {
  transform: translateY(-8px) rotate(-45deg);
}
.js_humburgerOpen .el_humburger .hamburger_menu {
  display: none;
}

/* ---- Page-top button: circular navy button with a chevron ---- */
#pagetop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#pagetop.is-visible {
  opacity: 1;
  visibility: visible;
}
#pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #1b3c8d;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease, transform 0.2s ease;
}
#pagetop a:hover {
  background: #b49531;
  transform: translateY(-3px);
}
#pagetop a i {
  font-size: 22px;
  line-height: 1;
}
