@charset "UTF-8";
:root {
  --primary: #61C0BF;
  --secondary: #BBDED6;
  --tertiary: #FAE3D9;
  --annotations: #FFB6B9;
  --font: #333333;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#loading-spinner {
  width: 3rem;
  height: 3rem;
}

.vertical-inherit {
  vertical-align: inherit;
}

/* ヘッダー関連 */
#header {
  position: relative;
  z-index: 1001;
}

.header-banner {
  background-color: white;
  padding: 10px 0px;
  color: var(--font);
}

.menu-bar {
  height: 61.5px;
  background-color: var(--primary);
}

/* サービスアイコン */
a.service-icon {
  margin-left: 16px;
  margin-right: 0px;
}

li.menu-item {
  background-color: var(--primary);
}

.menu-name {
  font-size: 17px;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

/* ヘッダーのドロップダウン位置調整 */
li[id^=menu-] ul.dropdown-menu {
  left: 0;
  transform: none;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  li[id^=menu-] ul.dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* メニューアイテム */
li[id^=menu-] ul.dropdown-menu li {
  padding: 5px 0px;
  background-color: var(--primary);
  border-bottom: 1px solid white;
}

li[id^=menu-] ul.dropdown-menu li:first-child {
  border-top: 1px solid white;
}

/* メニューアイテムのリンク */
li[id^=menu-] ul.dropdown-menu li a {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

li[id^=menu-] ul.dropdown-menu li a:hover,
li[id^=menu-] ul.dropdown-menu li a:active {
  background-color: var(--secondary);
}

/* アイコン領域 */
.service-icon-area {
  max-width: -moz-fit-content;
  max-width: fit-content;
  height: inherit;
}

/* アイコン */
.service-icon {
  width: -moz-fit-content;
  width: fit-content;
  height: inherit;
}

/* アイコン画像 */
.service-icon > img {
  height: inherit;
}

/* ドロップダウン（開閉は data-open） */
[data-dropdown] {
  position: relative;
}

[data-dropdown] > [data-dropdown-menu] {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

[data-dropdown][data-open=true] > [data-dropdown-menu] {
  display: block;
}

/* 通知未読件数（既定は非表示：開いていて & 未読あり の時だけ表示） */
.alert-icon {
  position: absolute;
  /* --- デスクトップ(>=960px)の基準位置：上端センターに合わせる --- */
  top: 0;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  /* ご要望の「Xだけ -50%」を拡張し、上方向へも -50% でセンタリング */
  /* 見た目（直値のみ） */
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: none;
  /* 既定は非表示 */
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* 開いていて、かつ未読ありの時だけ表示 */
[data-dropdown][data-open=true][data-has-unread=true] .alert-icon {
  display: inline-flex !important;
}

[aria-expanded=true][data-has-unread=true] .alert-icon {
  display: inline-flex !important;
}

/* クリップ対策で内側に収めたいときは .--inside を付与（任意） */
.alert-icon.--inside {
  transform: none;
  top: 2px;
  right: 2px;
  left: auto;
}

/* JS が値を入れられなかった時に幅 0 になるのを防ぐ（テスト用） */
.alert-icon:empty::before {
  content: "0";
  opacity: 0.75;
}

/* エラーテキスト赤色 */
span[id^=error_],
span[class^=error-] {
  color: red;
}

/* モーダルのテキスト色 */
.modal-body .container .row > h2,
label[for=email_or_username],
label[for=password] {
  color: var(--font);
}

/* 登録&ログインモーダルのリンクテキスト */
#forget_password,
a.terms-text {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

#forget_password:hover,
#temporary_user_link:hover,
#login_link:hover,
a.terms-text:hover {
  color: var(--secondary) !important;
}

/* 登録モーダルの入力欄領域 */
.register-area {
  height: 460px;
  overflow-y: scroll;
}

.register-page-area {
  height: 560px;
}

/* カテゴリー項目 */
.category-item,
.side-category-item,
.area-item {
  text-decoration: none;
  cursor: pointer;
}

/* 未読件数 */
span#notification_count {
  display: inline-block;
  padding: 0px 5px;
  background-color: var(--annotations);
  border-color: var(--annotations);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  border-radius: 10px;
}

/* 未読件数(ドロップダウン) */
span#notification_count_dropdown {
  display: inline-block;
  background-color: var(--annotations);
  top: auto;
}

/* show_gig_templateのプロフィール画像要素 */
div.author > span.author-img {
  display: inline;
  float: none !important;
}

/* show_gig_templateのの出品者名のスタイル */
div.author > span.author-img > a.author-name {
  overflow: visible !important;
}

/* フッターの各ページリンク */
.footer-top ul li a:hover {
  color: var(--secondary) !important;
}

/* フッターの画面上部への移動ボタン */
div#to-top {
  bottom: 15px;
}

/* 選択出来ないようにする */
label {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* カテゴリーのドロップダウン */
.category-dropdown {
  max-height: 320px;
  overflow-y: auto;
  width: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* 境界線の色 */
.hr-color {
  border-top-color: rgb(128, 128, 128);
}

/********** メッセージモーダル **********/
img#send_user_img {
  min-height: 100%;
}

.display-none {
  display: none !important;
}

.max-size-100 {
  max-width: 100px;
  max-height: 100px;
}

.max-height-300 {
  max-height: 300px;
}

/* お気に入りボタンを常時表示（テーマの hover-only 設定を上書き） */
.favorite {
  display: inline-flex !important;
}

.product:hover .favorite {
  display: inline-flex !important;
}
