@charset "utf-8";

/*------------------------------------------------------
© 2026 Nudge Inc. All Rights
ページヘッダの追加スタイルを定義する
------------------------------------------------------*/

#pageHeader .page-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}

#pageHeader #sitelogoArea {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin: 0;
  padding: 0;
}

#pageHeader #returnTopPage {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

#pageHeader .header-search-area {
  position: relative;
  flex: 1 1 380px;
  max-width: 380px;
  min-width: 220px;
}

#pageHeader #searchArea {
  border-left: 0;
}

#pageHeader #loginInfoArea {
  margin-top: 0;
  text-align: inherit;
}

#pageHeaderSearchAlertArea {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  padding: 8px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  color: #111111;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

#pageHeaderSearchAlertArea.hidden {
  display: none;
}

#pageHeader .searchAlert {
  color: #111111;
}

#pageHeader .header-search-form {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 100px;
  background: #ffffff;
  transition: border-color .15s, box-shadow .15s;
}

#pageHeader .header-search-form:focus-within {
  border-color: #bbbbbb;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}

#pageHeader .header-search-field {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

#pageHeader #searchform input.pageHeaderSearchWord {
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: none;
  outline: none;
  background: transparent;
  color: #111111;
  font-size: 16px;
  line-height: 1;
}

#pageHeader #searchform input.pageHeaderSearchWord::placeholder {
  color: #666666;
}

#pageHeader .header-search-button {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #bbbbbb;
  cursor: pointer;
  transition: color .15s, background-color .15s;
}

#pageHeader .header-search-button:hover,
#pageHeader .header-search-button:focus {
  background: #f6f6f6;
  color: #111111;
}

#pageHeader svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#pageHeader .header-search-button svg {
  width: 18px;
  height: 18px;
}

#pageHeader .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  margin-left: auto;
}

#pageHeader .notLoginArea,
#pageHeader .stillLoginArea,
#pageHeader .user-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#pageHeader .username {
  display: inline-block;
  max-width: 320px;
  margin-right: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageHeader .header-link {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

#pageHeader .header-link:hover,
#pageHeader .header-link:focus {
  color: #ffffff;
  text-decoration: none;
}

#pageHeader .header-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

#pageHeader .header-account-button:hover,
#pageHeader .header-account-button:focus {
  color: #ffffff;
  text-decoration: none;
}

#pageHeader .header-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#pageHeader .header-logout svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

#pageHeader .header-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

#pageHeader .cart {
  position: relative;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: normal;
}

#pageHeader .cart:hover {
  opacity: 1;
  filter: none;
}

#pageHeader .cartLink {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 100px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  color: #111111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}

#pageHeader .cartLink:hover,
#pageHeader .cartLink:focus {
  color: #111111;
  opacity: .9;
  text-decoration: none;
  transform: scale(1.04);
}

#pageHeader .cartLink svg {
  width: 14px;
  height: 14px;
}

#pageHeader .cartLink span {
  display: inline;
  color: #111111;
}

#pageHeader .cartLink .cart-cnt {
  position: absolute;
  top: -5px;
  right: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  background: #111111;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

#pageHeader .headerMiniCartSource {
  display: none;
}

#pageHeader a:focus-visible,
#pageHeader button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  #pageHeader .page-header-inner {
    gap: 10px 12px;
    padding: 10px 16px 12px;
  }

  #pageHeader .header-search-area {
    flex-basis: 300px;
    max-width: 340px;
    min-width: 200px;
  }

  #pageHeader .header-actions,
  #pageHeader .notLoginArea,
  #pageHeader .stillLoginArea,
  #pageHeader .user-controls {
    gap: 10px;
  }

  #pageHeader .username {
    max-width: 180px;
  }
}

@media screen and (max-width: 767px) {
  #pageHeader .page-header-inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    min-height: auto;
    padding: 10px 16px 12px;
  }

  #pageHeader #sitelogoArea {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
  }

  #pageHeader .header-actions {
    order: 2;
    width: auto;
    margin-left: auto;
    gap: 10px;
  }

  #pageHeader .header-search-area {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  #pageHeader .username {
    display: none;
  }

  #pageHeader .notLoginArea,
  #pageHeader .stillLoginArea,
  #pageHeader .user-controls {
    gap: 10px;
  }

  #pageHeader .cartLink {
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  #pageHeaderSearchAlertArea {
    max-width: 100%;
    white-space: normal;
  }
}

@media screen and (max-width: 374px) {
  #pageHeader .header-actions,
  #pageHeader .notLoginArea,
  #pageHeader .stillLoginArea,
  #pageHeader .user-controls {
    gap: 8px;
  }

  #pageHeader .header-link {
    font-size: 11px;
  }

  #pageHeader .cartLink {
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }
}
