/* ==========================================================================
   Site UX fixes (2026-11). Loaded from footer.php on every page.
   ========================================================================== */

/* --- Preloader: never block the page for long -------------------------- */
/* JS hides it on DOMContentLoaded; this is the no-JS / slow-JS fallback. */
#preloader {
  animation: fj-preloader-out 0.3s ease 2.5s forwards;
}
@keyframes fj-preloader-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* --- Header "見積もり依頼" button in the main nav ------------------------- */
.menuzord-menu > li.nav-cta > a {
  background: #f22613;
  color: #fff !important;
  border-radius: 4px;
  font-weight: 700;
}
.menuzord-menu > li.nav-cta > a:hover,
.menuzord-menu > li.nav-cta > a:focus {
  background: #c81e0f;
}
/* --- Desktop contact bar above the nav (header-info.php) ---------------- */
.fj-infobar {
  background: #2b2b2b;
  color: #d0d0d0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fj-infobar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 10px 0;
}
.fj-infobar-brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  white-space: nowrap;
}
.fj-infobar-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fj-infobar-area {
  font-size: 14px;
  color: #d0d0d0;
}
.fj-infobar .fa {
  color: #f22613;
  margin-right: 4px;
}
.fj-infobar-contact {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fj-infobar-contact > li {
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.fj-infobar-contact > li:first-child {
  border-left: 0;
}
.fj-infobar-contact a,
.fj-infobar-contact span {
  color: #d0d0d0;
}
.fj-infobar-contact a:hover,
.fj-infobar-contact a:focus {
  color: #fff;
  text-decoration: none;
}
/* the main number: biggest and brightest item in the bar */
.fj-infobar-main a {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.fj-infobar-main .fa {
  font-size: 20px;
}
.fj-infobar-hours {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #b8b8b8 !important;
}
.fj-infobar-social {
  padding-right: 0 !important;
}
.fj-infobar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.fj-infobar-social a:hover {
  background: #f22613;
}
.fj-infobar-social a .fa {
  margin: 0;
  font-size: 16px;
}
.fj-infobar-social a:hover .fa {
  color: #fff;
}
/* narrower desktops: drop the area label first, then the email, so it stays one line */
@media (max-width: 1199px) {
  .fj-infobar-area { display: none; }
  .fj-infobar-contact > li { padding: 0 12px; }
}
@media (max-width: 1100px) {
  .fj-infobar-contact > li.fj-infobar-email { display: none; }
}

/* --- Mobile sticky call bar ------------------------------------------- */
.fj-callbar {
  display: none;
}
@media (max-width: 991px) {
  .fj-callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
    padding-bottom: env(safe-area-inset-bottom);
    background: #1e1e1e;
  }
  .fj-callbar a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
  }
  .fj-callbar a .fa { font-size: 20px; }
  .fj-callbar .fj-callbar-tel { background: #2e7d32; }
  .fj-callbar .fj-callbar-mail { background: #f22613; }
  /* keep footer + scroll-to-top clear of the bar */
  body { padding-bottom: 56px; }
  .scrollToTop { bottom: 70px !important; }
}

/* --- Click-to-load YouTube (no 3rd-party load until clicked) ----------- */
.fj-yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000 center / cover no-repeat;
}
.fj-yt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: #f00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.fj-yt:hover::after,
.fj-yt:focus-visible::after { background-color: #c00; }
.fj-yt .fj-yt-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* --- Feature descriptions (were "...." placeholders) ------------------- */
.icon-box .fj-feature-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #c4c4c4;
}

/* --- Service grid (replaces the 9-item carousel) ---------------------- */
.fj-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.fj-service-card {
  display: flex;
  flex-direction: column;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  overflow: hidden;
}
.fj-service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.fj-service-card .fj-service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
.fj-service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}
.fj-service-card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #c4c4c4;
}
.fj-service-card .fj-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fj-service-card .fj-service-actions .btn { margin: 0; }
.fj-link-light { color: #e0e0e0 !important; text-decoration: underline; }

/* --- Company profile table (会社概要) ---------------------------------- */
.fj-profile {
  width: 100%;
  margin: 20px 0 10px;
  border-collapse: collapse;
  font-size: 15px;
}
.fj-profile th,
.fj-profile td {
  padding: 14px 16px;
  border-bottom: 1px solid #3a3a3a;
  vertical-align: top;
  text-align: left;
  line-height: 1.8;
}
.fj-profile th {
  width: 9em;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  background: #2b2b2b;
}
.fj-profile td { color: #d0d0d0; }
@media (max-width: 600px) {
  .fj-profile th,
  .fj-profile td { display: block; width: auto; }
  .fj-profile th { border-bottom: 0; padding-bottom: 6px; }
  .fj-profile td { padding-top: 6px; }
}
.fj-about-text p {
  font-size: 15px;
  line-height: 1.9;
  color: #d0d0d0;
}

/* --- Brand strip heading ---------------------------------------------- */
.fj-brands-title {
  margin: 0;
  padding: 18px 0 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.fj-brands-note {
  margin: 0 0 6px;
  text-align: center;
  font-size: 12px;
  color: #d8d8e8;
}

/* --- Gallery: category caption + enquiry CTA ------------------------- */
.fj-gallery-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.fj-gallery-cta {
  margin: 30px auto 0;
  padding: 24px;
  max-width: 760px;
  text-align: center;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
}
.fj-gallery-cta p { margin: 0 0 14px; color: #d0d0d0; font-size: 15px; }

/* --- Contact form ------------------------------------------------------ */
#contact_form .form-control { font-size: 16px; } /* stops iOS zoom-on-focus */

/* Home service cards sit on a light background */
.fj-card-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #444 !important;
}
.fj-profile a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Handout content (2026-11): service detail sections
   ========================================================================== */
.fj-sec { padding: 70px 0; }
.fj-sec-alt { background: #262626; }
.fj-sec-head { text-align: center; margin-bottom: 36px; }
.fj-sec-head h2 { margin: 0 0 10px; color: #fff; font-weight: 700; line-height: 1.4; }
.fj-sec-head h2 .fj-red { color: #f22613; }
.fj-sec-head p { margin: 0; color: #c4c4c4; font-size: 15px; }
.fj-hl { color: #ffd400; font-weight: 700; }

/* red-edged callout (starburst equivalent) */
.fj-callout {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 30px; padding: 18px 22px;
  background: #2e375f; border-left: 6px solid #f22613; border-radius: 4px;
  color: #fff; font-size: 17px; font-weight: 700; line-height: 1.6;
}
.fj-callout .fa { font-size: 30px; color: #ffd400; flex: none; }
.fj-callout small { display: block; font-size: 13px; font-weight: 400; color: #d8d8e8; }

/* small feature tiles (icon + title + text) */
.fj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fj-tile {
  padding: 20px; background: #2b2b2b; border: 1px solid #3a3a3a; border-radius: 6px;
}
.fj-tile .fj-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 12px;
  border-radius: 50%; background: #f22613; color: #fff; font-size: 20px;
}
.fj-tile h3 { margin: 0 0 6px; font-size: 16px; color: #fff; line-height: 1.5; }
.fj-tile p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #c4c4c4; }

/* numbered repair list */
.fj-steps { list-style: none; margin: 0; padding: 0; counter-reset: fjstep; }
.fj-steps li {
  position: relative; margin: 0 0 12px; padding: 16px 18px 16px 70px;
  background: #2b2b2b; border: 1px solid #3a3a3a; border-radius: 6px;
}
.fj-steps li::before {
  counter-increment: fjstep; content: counter(fjstep);
  position: absolute; left: 18px; top: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f22613; color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.fj-steps h3 { margin: 0 0 6px; font-size: 16px; color: #fff; line-height: 1.5; }
.fj-steps .fj-step-row { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.7; color: #c4c4c4; }
.fj-steps .fj-step-label {
  flex: none; align-self: flex-start; padding: 0 8px; border-radius: 3px;
  font-size: 12px; font-weight: 700; color: #fff; background: #2e375f;
}
.fj-steps .fj-step-label.is-red { background: #f22613; }

.fj-photo { width: 100%; border-radius: 6px; display: block; object-fit: cover; }
.fj-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.fj-cta-row .btn { margin: 0; }

/* navy band (買取いたします) */
.fj-band { background: #2e375f; padding: 40px 0; text-align: center; color: #fff; }
.fj-band h2 { margin: 0 0 8px; color: #fff; font-size: 24px; line-height: 1.6; font-weight: 700; }
.fj-band p { margin: 0; color: #d8d8e8; }

/* tag chips */
.fj-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.fj-tags li { padding: 6px 12px; border-radius: 3px; background: #f22613; color: #fff; font-size: 13px; font-weight: 700; }

/* check list (disposal items etc.) */
.fj-checks { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.fj-checks li { break-inside: avoid; position: relative; padding: 6px 0 6px 26px; color: #d0d0d0; font-size: 15px; }
.fj-checks li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 6px; color: #f22613; }

.fj-panel { padding: 24px; background: #2b2b2b; border: 1px solid #3a3a3a; border-radius: 6px; height: 100%; }
.fj-panel h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.fj-panel .fj-panel-sub { margin: 0 0 14px; color: #a8a8a8; font-size: 13px; }

/* media badge (原・戸田の逸品) */
.fj-media {
  display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px;
  background: #2b2b2b; border: 1px solid #3a3a3a; border-left: 4px solid #ffd400; border-radius: 4px;
  color: #e0e0e0; font-size: 14px; line-height: 1.6;
}
.fj-media .fa { font-size: 28px; color: #ffd400; flex: none; }

/* home teaser links to service sections */
.fj-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fj-teaser {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: #2e375f; border-radius: 6px; color: #fff !important; text-decoration: none !important;
  border-bottom: 4px solid #f22613; transition: background .2s;
}
.fj-teaser:hover, .fj-teaser:focus { background: #3a4675; }
.fj-teaser .fa { font-size: 28px; color: #ffd400; flex: none; width: 34px; text-align: center; }
.fj-teaser strong { display: block; font-size: 16px; }
.fj-teaser span { display: block; font-size: 13px; color: #d8d8e8; }

/* why-cheap check bullets on home */
.fj-why-list { list-style: none; margin: 16px 0 0; padding: 0; }
.fj-why-list li { position: relative; padding: 5px 0 5px 28px; color: #e0e0e0; font-weight: 600; }
.fj-why-list li .fa { position: absolute; left: 0; top: 8px; color: #f22613; }

/* anchor targets clear the sticky nav */
#yunbo, #body-work, #kaitori, #other-services { scroll-margin-top: 80px; }
.fj-band .btn-theme-colored { background: #f22613 !important; border-color: #f22613 !important; color: #fff !important; }
.fj-band .btn-theme-colored:hover { background: #c81e0f !important; }
/* compact icon-left tiles inside panels */
.fj-panel .fj-tile { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; padding: 14px 16px; }
.fj-panel .fj-tile .fj-tile-icon { grid-row: span 2; margin: 0; }
@media (max-width: 600px) { .fj-band h2 { font-size: 19px; } .fj-sec { padding: 50px 0; } .fj-sec-head h2 { font-size: 22px; } }

/* Handout pages (service#pamphlet) */
.fj-handout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 991px) { .fj-handout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.fj-handout-page {
  display: block; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); transition: transform .2s; text-decoration: none !important;
}
.fj-handout-page:hover, .fj-handout-page:focus { transform: translateY(-3px); }
.fj-handout-page img { display: block; width: 100%; height: auto; }
.fj-handout-page span { display: block; padding: 8px 10px; background: #2e375f; color: #fff; font-size: 13px; font-weight: 700; }
#pamphlet { scroll-margin-top: 80px; }

/* Work photo strip (service#other-services) */
.fj-work-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767px) { .fj-work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fj-work-photo { display: block; border-radius: 6px; overflow: hidden; }
.fj-work-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.fj-work-photo:hover img, .fj-work-photo:focus img { transform: scale(1.04); }

/* --- Nav logo: keep its proportions ------------------------------------ */
/* The <img> carries width/height attributes (to reserve space and avoid layout shift).
   The theme only caps the height (58px) and max-width:100% caps the width separately,
   which squashed the logo into a wide strip on tablets. Let the browser scale both together. */
.menuzord-brand img {
  width: auto;
  height: auto;
  max-height: 58px;
}
