/*
Theme Name: Kirifuda Sports Japan
Description: A Japanese sports-uniform presentation layer for the Bridge parent theme. It intentionally retains Bridge and WPBakery/Qode shortcodes.
Template: bridge
Version: 1.0.0
Text Domain: kirifuda-sports-jp
*/

:root {
  --ks-ink: #102238;
  --ks-navy: #0a1930;
  --ks-blue: #0b5fa5;
  --ks-sky: #e8f5ff;
  --ks-red: #e84b3c;
  --ks-paper: #f6f8fa;
  --ks-line: #dce4ec;
  --ks-shadow: 0 14px 36px rgba(10, 25, 48, .10);
}

body {
  background: var(--ks-paper);
  color: var(--ks-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;
  font-feature-settings: "palt" 1;
}

/* Header: compact, readable Japanese navigation with a restrained B2B-sports feel. */
header,
header.sticky,
header.fixed,
.header_bottom,
.header_top {
  background: rgba(255,255,255,.97) !important;
}

header:not(.with_hover_bg_color) nav.main_menu > ul > li > a,
header .header_inner_left nav.main_menu > ul > li > a {
  color: var(--ks-ink) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 72px;
  padding: 0 9px;
  white-space: nowrap;
}

header:not(.with_hover_bg_color) nav.main_menu > ul > li.active > a,
header:not(.with_hover_bg_color) nav.main_menu > ul > li:hover > a {
  color: var(--ks-red) !important;
}

header .q_logo img,
header .q_logo a {
  max-height: 54px;
}

header .header_inner_left,
header .header_inner_right {
  min-height: 72px;
}

nav.mobile_menu ul li a,
nav.mobile_menu ul li h3 {
  color: var(--ks-ink) !important;
  font-weight: 700;
}

/* Main canvas and Qode/WPBakery content become calm editorial blocks. */
.content,
.content .content_inner,
.container,
.container_inner {
  background: transparent;
}

.content .container .container_inner,
.content .container .container_inner.default_template_holder {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--ks-shadow);
  margin-top: 42px;
  margin-bottom: 68px;
  padding: clamp(22px, 4vw, 56px);
}

.full_width .full_width_inner > .vc_row,
.content .vc_row {
  position: relative;
}

.qode_elements_holder,
.vc_row,
.wpb_content_element {
  margin-bottom: 28px;
}

.qode_elements_holder .qode_elements_item,
.vc_column_container > .vc_column-inner {
  box-sizing: border-box;
}

.content h1,
.content h2,
.content h3,
.content h4,
.title h1 {
  color: var(--ks-ink);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -.025em;
}

.content h2 {
  border-left: 5px solid var(--ks-red);
  padding-left: 16px;
}

.content a:not(.qbutton):not(.vc_btn3):not(.button) {
  text-underline-offset: 3px;
}

.qbutton,
.vc_btn3,
.vc_general.vc_btn3,
input[type="submit"],
.wpcf7-form-control.wpcf7-submit {
  background: var(--ks-red) !important;
  border: 1px solid var(--ks-red) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(232,75,60,.22);
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  transition: transform .18s ease, background .18s ease;
}

.qbutton:hover,
.vc_btn3:hover,
.vc_general.vc_btn3:hover,
input[type="submit"]:hover,
.wpcf7-form-control.wpcf7-submit:hover {
  background: var(--ks-navy) !important;
  border-color: var(--ks-navy) !important;
  transform: translateY(-2px);
}

/* Existing portfolio / service tiles keep their WPBakery markup but gain a unified card system. */
.wpb_wrapper .vc_grid-item,
.wpb_wrapper .qode-portfolio-list-holder-outer,
.projects_holder article,
.latest_post_holder > ul > li,
.blog_holder article,
.qodef-portfolio-list-holder article {
  background: #fff;
  border: 1px solid var(--ks-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16,34,56,.06);
  overflow: hidden;
}

.projects_holder article:hover,
.latest_post_holder > ul > li:hover,
.blog_holder article:hover {
  border-color: rgba(11,95,165,.35);
  box-shadow: 0 16px 34px rgba(16,34,56,.13);
  transform: translateY(-3px);
}

.projects_holder article,
.latest_post_holder > ul > li,
.blog_holder article {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Footer and notices carry the same dark stadium-night palette. */
footer,
footer .footer_top_holder,
footer .footer_bottom_holder {
  background: var(--ks-navy) !important;
  color: rgba(255,255,255,.78);
}

footer a,
footer .footer_top a,
footer .footer_bottom a {
  color: #fff;
}

.qode_carousels .slides > li,
.flexslider .slides > li {
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 1250px) {
  header:not(.with_hover_bg_color) nav.main_menu > ul > li > a {
    padding: 0 6px;
    font-size: 11px;
  }
}

@media (max-width: 1000px) {
  .content .container .container_inner,
  .content .container .container_inner.default_template_holder {
    margin-top: 20px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
}

/* Home: a purpose-built landing page. The legacy Qode/WPBakery content remains
   untouched in the database and continues to power the other pages. */
body.home .content,
body.home .content .content_inner,
body.home .wrapper,
body.home .wrapper_inner {
  background: var(--ks-paper);
}

.ks-home {
  background: var(--ks-paper);
  color: var(--ks-ink);
  margin: 0 !important;
  overflow: hidden;
  width: 100% !important;
}

.ks-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ks-eyebrow {
  color: var(--ks-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  margin: 0 0 18px;
}

.ks-hero {
  align-items: center;
  background: linear-gradient(90deg, rgba(7, 19, 35, .92) 0%, rgba(7, 19, 35, .72) 43%, rgba(7, 19, 35, .16) 100%), var(--ks-hero-image) center 42% / cover no-repeat;
  color: #fff;
  display: flex;
  min-height: min(720px, calc(100vh - 72px));
  position: relative;
}

.ks-hero::after {
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  content: "";
  height: min(42vw, 580px);
  position: absolute;
  right: -13vw;
  top: -12vw;
  width: min(42vw, 580px);
}

.ks-hero__inner { position: relative; z-index: 1; }
.ks-hero .ks-eyebrow { color: #ff9b90; }
.ks-hero h1,
.ks-home h2,
.ks-home h3 {
  color: inherit;
  font-family: inherit;
}
.ks-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: 1.06;
  margin: 0;
}
.ks-hero__lead {
  color: rgba(255,255,255,.88);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 2;
  margin: 28px 0 34px;
}
.ks-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ks-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 16px;
  justify-content: center;
  letter-spacing: .04em;
  min-height: 54px;
  padding: 0 24px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ks-button:hover { transform: translateY(-2px); }
.ks-button--solid { background: var(--ks-red); color: #fff; }
.ks-button--solid:hover { background: #fff; color: var(--ks-ink); }
.ks-button--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.ks-button--ghost:hover { background: #fff; color: var(--ks-ink); }
.ks-button--light { background: #fff; color: var(--ks-navy); }
.ks-button--light:hover { background: var(--ks-red); color: #fff; }
.ks-hero__tag {
  bottom: 38px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
  position: absolute;
  right: 5vw;
  text-align: right;
}

.ks-value-section { background: #fff; padding: 116px 0 108px; }
.ks-section-heading h2,
.ks-process h2,
.ks-cta h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1.22;
  margin: 0;
}
.ks-values {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 52px;
}
.ks-value-card {
  background: var(--ks-paper);
  border-top: 3px solid var(--ks-red);
  min-height: 246px;
  padding: 28px;
}
.ks-value-card__number {
  color: rgba(16,34,56,.32);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 48px;
}
.ks-value-card h3 { font-size: 21px; font-weight: 800; margin: 0 0 12px; }
.ks-value-card p { color: #5b6877; font-size: 14px; line-height: 1.9; margin: 0; }

.ks-lookbook { background: #dceaf2; padding: 112px 0; }
.ks-lookbook__head,
.ks-section-heading--row {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}
.ks-text-link {
  border-bottom: 1px solid currentColor;
  color: var(--ks-ink);
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 7px;
  text-decoration: none;
}
.ks-text-link span { color: var(--ks-red); margin-left: 9px; }
.ks-lookbook__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  margin: 54px auto 0;
  max-width: 1380px;
  padding: 0 24px;
}
.ks-lookbook__item { margin: 0; overflow: hidden; }
.ks-lookbook__item--tall { grid-row: span 2; }
.ks-lookbook__item--wide { grid-column: span 2; }
.ks-lookbook__item img,
.ks-works__grid img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  width: 100%;
}
.ks-lookbook__item:hover img,
.ks-works__grid img:hover { transform: scale(1.035); }

.ks-process { background: #fff; padding: 118px 0; }
.ks-process__grid { display: grid; gap: 12vw; grid-template-columns: .9fr 1.1fr; }
.ks-process__lead { color: #536273; font-size: 16px; line-height: 2; margin: 28px 0; }
.ks-steps { list-style: none; margin: 0; padding: 0; }
.ks-steps li { border-top: 1px solid var(--ks-line); display: grid; gap: 14px; grid-template-columns: 52px 1fr; padding: 24px 0; }
.ks-steps li:last-child { border-bottom: 1px solid var(--ks-line); }
.ks-steps span { color: var(--ks-red); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.ks-steps strong { font-size: 19px; font-weight: 800; }
.ks-steps small { color: #637083; font-size: 13px; grid-column: 2; line-height: 1.7; }

.ks-works { background: var(--ks-paper); padding: 112px 0; }
.ks-works__grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
.ks-works__grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.ks-cta { background: var(--ks-navy); color: #fff; padding: 116px 0; }
.ks-cta .ks-eyebrow { color: #ff9b90; }
.ks-cta__inner { align-items: end; display: flex; justify-content: space-between; gap: 40px; }

@media (max-width: 800px) {
  .ks-shell { width: min(100% - 32px, 1180px); }
  .ks-hero { min-height: 650px; background-position: 61% center; }
  .ks-hero::after,
  .ks-hero__tag { display: none; }
  .ks-hero h1 { font-size: clamp(43px, 14vw, 64px); }
  .ks-hero__lead { font-size: 14px; }
  .ks-value-section,
  .ks-lookbook,
  .ks-process,
  .ks-works,
  .ks-cta { padding: 76px 0; }
  .ks-values,
  .ks-process__grid,
  .ks-works__grid { grid-template-columns: 1fr; }
  .ks-value-card { min-height: 0; }
  .ks-value-card__number { margin-bottom: 28px; }
  .ks-lookbook__head,
  .ks-section-heading--row,
  .ks-cta__inner { align-items: start; flex-direction: column; }
  .ks-lookbook__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 210px 210px 210px; margin-top: 38px; padding: 0 16px; }
  .ks-lookbook__item--tall { grid-row: span 2; }
  .ks-lookbook__item--wide { grid-column: span 2; }
  .ks-process__grid { gap: 46px; }
}
