@charset "UTF-8";
/* =========================================
   header.css
   2026.10 ヘッダーリニューアル（プルネット）
   - グロナビ（PC）・メガメニュー・SPヘッダー・SP下部固定タブバー・SPドロワー
   - pc-gnav-menu.css を置き換え（同ファイルは廃止）
   - pc-common.css のヘッダー部分（#header-inner以下）を移行
   - デザイン：Figma「桂新堂_修正確認カンプ」
   - ブレークポイント：1024px以下＝SPレイアウト
   - クラス名は ks- で始まる（既存CSSとの衝突回避）
   - 元ファイル：shopserve/_scss/header.scss（直接このCSSを編集しないこと）
   ========================================= */
.ks-header {
  position: relative;
  background: #fff;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
}
.ks-header__inner {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 1200px;
  height: 60px;
  margin: 0 auto;
  padding: 0 14px 0 25px;
}
.ks-header__logo {
  flex: 0 0 auto;
  width: 170px;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.ks-header__logo a {
  display: block;
}
.ks-header__logo img {
  width: 100%;
  height: auto;
}
.ks-header__shipping {
  display: none;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.ks-header__shipping small {
  font-size: 11px;
}
.ks-header__shipping em {
  color: #c40018;
  font-style: normal;
}
.ks-header__icons {
  display: flex;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.ks-header__icons li {
  margin: 0;
  padding: 0;
}
.ks-header__icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 50px;
  height: 60px;
  padding-top: 12px;
  color: #000;
  text-decoration: none;
}
.ks-header__icon img {
  display: block;
  width: auto;
  height: 28px;
}
.ks-header__icon span {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.ks-header__icon:hover {
  opacity: 0.7;
}
.ks-header__cart-count {
  position: absolute;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #c40018;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
  top: 6px;
  right: 3px;
}

@media screen and (min-width: 1025px) and (max-width: 1199px) {
  .ks-header__inner {
    padding: 0 1.5% 0 2%;
  }
  .ks-header__logo {
    width: 140px;
  }
}
@media screen and (max-width: 1024px) {
  #h-top-obi {
    display: none;
  }
  .ks-header__inner {
    justify-content: space-between;
    padding: 0 15px 0 13px;
  }
  .ks-header__logo {
    width: 124px;
  }
  .ks-header__shipping {
    display: block;
  }
  .ks-header__icons {
    display: none;
  }
}
.ks-gnav {
  align-self: stretch;
  margin-left: 28px;
}
.ks-gnav__list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ks-gnav__item {
  height: 100%;
  margin: 0;
  padding: 0;
}
.ks-gnav__link, .ks-gnav__trigger {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.ks-gnav__link::before, .ks-gnav__trigger::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #97864e;
  opacity: 0;
  transition: opacity 0.2s;
}
.ks-gnav__trigger {
  padding-right: 6px;
}
.ks-gnav__trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url(../img/ks-icon-chevron.svg) no-repeat center/contain;
}
.ks-gnav__item:hover > .ks-gnav__link, .ks-gnav__item:hover > .ks-gnav__trigger, .ks-gnav__item:focus-within > .ks-gnav__trigger {
  color: #97864e;
}
.ks-gnav__item:hover > .ks-gnav__link::before, .ks-gnav__item:hover > .ks-gnav__trigger::before, .ks-gnav__item:focus-within > .ks-gnav__trigger::before {
  opacity: 1;
}
.ks-gnav__item:hover > .ks-gnav__trigger::after, .ks-gnav__item:focus-within > .ks-gnav__trigger::after {
  background-image: url(../img/ks-icon-chevron-gold.svg);
}

@media screen and (min-width: 1025px) and (max-width: 1199px) {
  .ks-gnav {
    margin-left: 12px;
  }
  .ks-gnav__link, .ks-gnav__trigger {
    padding: 0 8px;
    font-size: 15px;
  }
  .ks-gnav__trigger {
    padding-right: 4px;
  }
  .ks-gnav__trigger::after {
    width: 20px;
    height: 20px;
  }
}
@media screen and (max-width: 1024px) {
  .ks-gnav {
    display: none;
  }
}
.ks-mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 500;
  background: #fff;
  box-shadow: 0 10px 12px -10px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.ks-gnav__item--mega:hover > .ks-mega, .ks-gnav__item--mega:focus-within > .ks-mega {
  visibility: visible;
  opacity: 1;
}
.ks-mega__inner {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1060px;
  margin: 0 auto;
  padding: 75px 0;
}
.ks-mega__group {
  flex: 0 0 290px;
}
.ks-mega__heading {
  margin: 0 0 14px;
  color: #000;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
}
.ks-mega__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ks-mega__list li {
  margin: 0;
  padding: 0;
}
.ks-mega__list a {
  position: relative;
  display: block;
  padding: 0 30px 0 9px;
  border-bottom: 1px solid #d9d9d9;
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.ks-mega__list a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 11px;
  height: 5px;
  margin-top: -4px;
  background: url(../img/arrow-right.svg) no-repeat center/contain;
}
.ks-mega__list a:hover {
  color: #97864e;
}
.ks-mega__banners {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
  margin-left: auto;
}
.ks-mega--photo .ks-mega__inner {
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 497px;
  padding: 0;
}
.ks-mega--photo .ks-mega__group {
  flex: 0 0 37.1%;
  box-sizing: border-box;
  padding: 75px 36px 75px 14.5%;
}
.ks-mega__photo {
  flex: 1 1 auto;
  overflow: hidden;
}
.ks-mega__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ks-mega-banner {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 325px;
  height: 105px;
  border: 1px solid #999;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ks-mega-banner__img {
  flex: 0 0 186px;
  width: 186px;
  height: 103px;
  object-fit: cover;
}
.ks-mega-banner__label {
  padding-left: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ks-mega-banner:hover {
  opacity: 0.75;
}

@media screen and (min-width: 1025px) and (max-width: 1199px) {
  .ks-mega__inner {
    gap: 40px;
  }
  .ks-mega__group {
    flex-basis: 260px;
  }
  .ks-mega--photo .ks-mega__group {
    padding-left: 6%;
  }
  .ks-mega-banner {
    width: 280px;
  }
  .ks-mega-banner__img {
    flex-basis: 150px;
    width: 150px;
  }
}
@media screen and (max-width: 1024px) {
  .ks-mega {
    display: none;
  }
}
.ks-tabbar,
.ks-drawer-close {
  display: none;
}

@media screen and (max-width: 1024px) {
  body:has(.ks-tabbar) > footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  #floating-menu {
    bottom: calc(110px + env(safe-area-inset-bottom));
  }
}
@media screen and (max-width: 580px) {
  section#itemDetail-wrap.item-sub2 {
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 89;
  }
  body:has(#itemDetail-wrap.item-sub2) #floating-menu {
    bottom: calc(110px + 80px + env(safe-area-inset-bottom));
  }
  section#itemDetail-wrap.item-sub2 {
    transition: filter 0.5s ease, transform 0.5s ease, visibility 0.5s;
  }
  body.ks-footer-visible section#itemDetail-wrap.item-sub2 {
    visibility: hidden;
    filter: opacity(0);
    transform: translateY(16px);
    pointer-events: none;
  }
}
@media screen and (max-width: 1024px) {
  .ks-tabbar {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
    font-family: "Noto Sans JP", sans-serif;
  }
  .ks-tabbar__list {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 600px;
    height: 80px;
    margin: 0 auto;
    padding: 5px 13px;
    list-style: none;
  }
  .ks-tabbar__item {
    display: flex;
    justify-content: center;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
  }
  .ks-tabbar__link,
  .ks-tabbar #header-nav-drawer {
    display: grid;
    grid-template-rows: 40px auto;
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
    width: 70px;
    height: 70px;
    padding-top: 7px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
  }
  .ks-tabbar__icon {
    display: block;
    width: auto;
    max-width: 40px;
    height: auto;
    max-height: 40px;
  }
  .ks-tabbar__link {
    position: relative;
  }
  .ks-tabbar__cart-count {
    position: absolute;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #c40018;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0;
    text-align: center;
    top: 6px;
    right: 8px;
  }
  .ks-tabbar__cart-count:empty {
    display: none;
  }
  .ks-tabbar__label {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
  }
  .ks-tabbar #header-nav-drawer {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    transform: none;
    transition: none;
  }
  .ks-tabbar #header-nav-drawer::after {
    content: none;
  }
  .ks-tabbar #header-nav-drawer .ks-tabbar__label {
    position: static;
    width: auto;
    height: auto;
    margin: 2px 0 0;
    background: none;
    border-radius: 0;
    transition: none;
  }
  .ks-tabbar #header-nav-drawer .ks-tabbar__label::before, .ks-tabbar #header-nav-drawer .ks-tabbar__label::after {
    content: none;
  }
  #wrapper.spsDrawerOpen::before {
    content: none;
  }
  #header-nav-drawer.spsDrawerOpen + .ks-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 56px;
    height: 55px;
    padding: 0;
    cursor: pointer;
  }
  #header-nav-drawer.spsDrawerOpen + .ks-drawer-close::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 0;
    z-index: -2;
    background: rgba(0, 0, 0, 0.6);
  }
  #header-nav-drawer.spsDrawerOpen + .ks-drawer-close::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: #fff;
  }
  #header-nav-drawer.spsDrawerOpen + .ks-drawer-close img {
    display: block;
    width: 34px;
    height: 34px;
  }
  #header-nav-drawer.spsDrawerOpen + .ks-drawer-close span {
    display: none;
  }
}
.ks-drawer-nav {
  display: none;
}

@media screen and (max-width: 1024px) {
  .ks-drawer-nav {
    display: block;
  }
  .ks-pc-only {
    display: none !important;
  }
  #contents > #sub-column,
  #contents > #sub-column.spsDrawerOpen,
  #contents > #sub-column.spsDrawerClose {
    display: block;
    position: fixed;
    top: 0;
    right: auto;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 95;
    float: none;
    box-sizing: border-box;
    width: 325px;
    max-width: calc(100% - 56px - 10px);
    height: auto;
    margin: 0;
    padding: 0 0 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    transition: transform 0.3s, visibility 0.3s;
    transform: translateX(-100%);
    visibility: hidden;
  }
  #contents > #sub-column.spsDrawerOpen {
    transform: none;
    visibility: visible;
  }
  body.fixed {
    position: fixed;
    right: 0;
    left: 0;
    overflow: hidden;
  }
  #contents > #sub-column .btn-lang {
    cursor: default;
    pointer-events: none;
  }
  #contents > #sub-column .lang-list {
    opacity: 1;
    visibility: visible;
  }
  .ks-drawer-nav > h3 {
    color: #988865;
    padding: 10px 30px 10px 10px;
    font-size: 16px;
  }
  .ks-drawer-nav ul.side-accordion ul a {
    display: block;
    cursor: pointer;
  }
  .ks-drawer-nav ul.side-accordion span {
    letter-spacing: 0;
  }
  .ks-drawer-nav__close {
    display: none;
  }
}
@media screen and (max-width: 1024px) {
  header #header-outer {
    height: auto;
  }
  header #header-hight {
    display: none;
  }
}
