@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;
}

/* Desktop header bar hidden by default (mobile-first). */
.site-header-bar {
  display: none;
}

/* 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;
  }
}
/* Dark, centered footer — matches the reference's #footer (photo/dark bg,
   white text, centered stack, pipe-separated nav) instead of the vendored
   light-gray #eee footer. */
footer {
  background: #0c8da3;
  color: #fff;
}
footer .footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
footer .footer-brand h3 {
  margin-bottom: 0;
}
footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
footer .footer-links li {
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  line-height: 1;
  margin-bottom: 8px;
}
footer .footer-links li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}
footer .footer-links li a:link,
footer .footer-links li a:visited {
  color: #fff;
  font-size: 0.85em;
  transition: opacity 0.2s ease;
}
footer .footer-links li a:hover {
  opacity: 0.65;
}
footer small.footer-copy {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82em;
}
footer small.footer-copy i {
  margin-right: 5px;
}
footer .footer-address {
  display: block;
  margin: 10px 0 4px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}
footer .footer-phone {
  margin: 0 0 4px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
}
footer .footer-contact-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85em;
  transition: background 0.2s ease, color 0.2s ease;
}
footer .footer-contact-btn:link,
footer .footer-contact-btn:visited {
  color: #fff;
}
footer .footer-contact-btn:hover {
  background: #fff;
  color: #1d2088;
}

/* ---- 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: #0c8da3;
  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);
}
/* The desktop header-bar logo is a link outside any h1, so it only ever
   matched the bare `.site-logo-text` rule above — which loses its color to
   the vendored `a:link, a:visited, a:active { color: #333; }` on
   specificity. Bump it the same way as the other custom link colors. */
a.site-logo-text:link,
a.site-logo-text:visited {
  color: #0c8da3;
}
@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;
  color: #fff;
}

/* ---- 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: #0c8da3;
  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: #0c8da3;
  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 #0c8da3;
  border-radius: 4px;
  padding: 20px;
  height: 100%;
  margin-bottom: 20px;
}
.card-box h5 {
  color: #0c8da3;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
  margin-bottom: 10px;
}

/* ---- Problem cards (security page "Problems" list) ----
   Same card-box shell, laid out as icon + text instead of title + desc. */
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.problem-card-icon {
  flex: 0 0 auto;
  font-size: 1.4em;
  line-height: 1.5em;
  color: #0c8da3;
}
.problem-card p {
  margin: 0;
  line-height: 1.5em;
}

/* ---- 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; }
}

/* ---- 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: #0c8da3;
  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: #1d2088;
}
@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;
}

/* ---- 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;
}

/* ---- 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: #0c8da3;
  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: #1d2088;
  transform: translateY(-3px);
}
#pagetop a i {
  font-size: 22px;
  line-height: 1;
}

/* ---- Desktop sticky nav bar (≥992px) ---- */
@media (min-width: 992px) {
  .site-header-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }
  .site-header-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    max-width: 1380px;
    margin: 0 auto;
    min-height: 84px;
    padding: 12px 16px;
  }
  .site-header-logo {
    font-size: 18px;
    text-decoration: none;
  }
  .site-header-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-header-nav li {
    margin-right: 6px;
    padding-right: 6px;
    border-right: 1px solid #0c8da3;
    line-height: 1;
  }
  .site-header-nav li:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }
  .site-header-nav a {
    color: #1d2088;
    font-weight: 700;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
  }
  .site-header-nav a:hover,
  .site-header-nav a.active {
    color: #0c8da3;
  }
  .site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .site-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #0c8da3;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
  }
  /* Vendored style.css has `a:link, a:visited, a:active { color: #333; }`,
     which outranks a bare class selector on specificity — bump these to win. */
  .site-header-cta:link,
  .site-header-cta:visited {
    color: #fff;
  }
  .site-header-cta:hover {
    background: #1d2088;
  }
  .el_humburger {
    display: none;
  }
}

/* Larger header type once there's room to spare */
@media (min-width: 1280px) {
  .site-header-bar-inner {
    gap: 16px;
    padding: 0 24px;
  }
  .site-header-logo {
    font-size: 24px;
  }
  .site-header-nav li {
    margin-right: 10px;
    padding-right: 10px;
  }
  .site-header-nav a {
    font-size: 14px;
  }
  .site-header-actions {
    gap: 12px;
  }
  .site-header-cta {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ---- Contact band: full-bleed banner with overlay ---- */
.footer_contact {
  position: relative;
}

.footer_contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.footer_contact_inr {
  border-top: none;
  background-color: transparent;
  position: relative;
}

.footer_contact h3 {
  color: #fff;
}

.footer_contact h3::after {
  background-color: #fff;
}

.footer_contact p {
  color: #fff;
}

.footer_contact_tel {
  color: #fff;
}
