@charset "UTF-8";

/* =========================================================
   KKヘッダー最終版
   2026-03
   - テーマ標準ヘッダーを消し、自作 #kk-tophero を全ページ共通で安定表示
   - 上部の白い隙間対策
   - 実際の原因だった content-top / widget の余白も統合
   ========================================================= */

/* =========================
   0) 全体の上余白リセット
   ========================= */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#container,
#container-in,
#wrap,
.wrap,
#body-in,
#content,
#content-in,
#main,
#main-in {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================
   1) テーマ標準ヘッダー・ナビを非表示
   ========================= */
#header-container,
#header,
#navi,
.header-container,
.navi,
.site-name,
.logo-text,
.tagline {
  display: none !important;
}

#header-container,
#header-container-in,
#header,
#header-in,
#navi,
#navi-in {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
}

/* =========================
   1.5) 今回の本命：
   content-top / widget の余白を除去
   kk-tophero 自体ではなく、この外側が原因だった
   ========================= */
#content-top,
#content-top-in {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.widget-content-top,
.widget.widget-content-top,
.widget_custom_html,
.widget_text,
.textwidget,
.custom-html-widget {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#content-top .widget,
#content-top .widget:first-child,
#content-top .textwidget,
#content-top .custom-html-widget,
#content-top aside {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#content-top-in.wrap,
#header-container-in.hlt-center-logo,
#header-in.wrap,
#navi-in.wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================
   2) KKヘッダー本体
   ========================= */
#kk-tophero {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

#kk-tophero .kk-topbar {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #111;
  color: #fff;
  position: relative;
}

#kk-tophero .kk-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

#kk-tophero .kk-topbar__logo,
#kk-tophero .kk-topbar__logo:visited,
#kk-tophero .kk-topbar__logo:hover,
#kk-tophero .kk-topbar__logo:active {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  letter-spacing: .03em !important;
  white-space: nowrap;
}

/* =========================
   3) 検索窓
   ========================= */
#kk-tophero .kk-topbar__search {
  display: flex;
  gap: 8px;
  align-items: center;
}

#kk-tophero .kk-topbar__search input {
  width: 260px !important;
  max-width: 40vw !important;
  padding: 9px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

#kk-tophero .kk-topbar__search input::placeholder {
  color: rgba(255,255,255,.75) !important;
}

#kk-tophero .kk-topbar__search button {
  padding: 9px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  cursor: pointer !important;
}

/* =========================
   4) ヒーロー画像エリア
   ========================= */
#kk-tophero .kk-heroimg {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  background: url("/wp-content/uploads/legacy/image/topimg.jpg") center 40% / cover no-repeat;
  overflow: hidden;
}

#kk-tophero .kk-heroimg::after {
  content: none;
}

#kk-tophero .kk-heroimg__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 22px;
  box-sizing: border-box;
}

/* トップ */
body.home #kk-tophero .kk-heroimg,
body.home #kk-tophero .kk-heroimg__inner {
  min-height: 320px;
}

/* 子ページ */
body:not(.home) #kk-tophero .kk-heroimg,
body:not(.home) #kk-tophero .kk-heroimg__inner {
  min-height: 300px;
}

/* 右側パネル */
#kk-tophero .kk-heroimg__right {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 360px;
  max-width: 48vw;
  text-align: right;
  color: #111;
  background: rgba(255,255,255,.62);
  padding: 14px 14px 12px;
  border-radius: 10px;
  box-sizing: border-box;
}

/* 英字タイトル */
#kk-tophero .kk-heroimg__en {
  font-size: 44px;
  line-height: .95;
  font-weight: 800;
  letter-spacing: .01em;
  color: #111;
  text-shadow: none;
  margin: 0 0 10px;
}

/* 電話 */
#kk-tophero .kk-heroimg__tel {
  display: block;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  margin: 0 0 10px;
}

/* CTA */
#kk-tophero .kk-heroimg__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid #666;
  margin: 0 0 12px;
}

/* SNS */
#kk-tophero .kk-heroimg__sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#kk-tophero .kk-heroimg__sns a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#kk-tophero .kk-heroimg__sns img {
  width: 44px !important;
  height: 44px !important;
  display: block;
}

/* =========================
   5) KKヘッダー下ナビ
   ========================= */
.kk-gnav {
  width: 100%;
  margin: 0 !important;
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
}

.kk-gnav__list {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  box-sizing: border-box;
}

.kk-gnav__list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #222;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 6px;
  transition: color .18s ease;
}

.kk-gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #1e6bd6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.kk-gnav__list a:hover,
.kk-gnav__list a:focus-visible {
  color: #1e6bd6;
}

.kk-gnav__list a:hover::after,
.kk-gnav__list a:focus-visible::after {
  transform: scaleX(1);
}

.kk-gnav__list .current-menu-item > a,
.kk-gnav__list .current_page_item > a {
  color: #1e6bd6;
}

.kk-gnav__list .current-menu-item > a::after,
.kk-gnav__list .current_page_item > a::after {
  transform: scaleX(1);
}

/* =========================
   6) スマホ
   ========================= */
@media (max-width: 834px) {
  #kk-tophero .kk-topbar__search input {
    width: 180px !important;
    max-width: 46vw !important;
  }

  #kk-tophero .kk-heroimg__right {
    left: 24px;
    right: 24px;
    top: 14px;
    width: auto;
    max-width: none;
    text-align: left;
  }

  #kk-tophero .kk-heroimg__en {
    font-size: 34px;
  }

  #kk-tophero .kk-heroimg__sns {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  #kk-tophero .kk-topbar__inner {
    padding: 10px 14px;
    gap: 10px;
  }

  #kk-tophero .kk-heroimg {
    background-position: center 38% !important;
  }

  #kk-tophero .kk-heroimg__inner {
    padding: 12px 14px 18px !important;
  }

  body.home #kk-tophero .kk-heroimg,
  body.home #kk-tophero .kk-heroimg__inner {
    min-height: 340px;
  }

  body:not(.home) #kk-tophero .kk-heroimg,
  body:not(.home) #kk-tophero .kk-heroimg__inner {
    min-height: 320px;
  }

  .kk-gnav__list {
    padding: 10px 14px;
    gap: 10px 16px;
  }

  .kk-gnav__list a {
    font-size: 15px;
  }
}