/* =========================
   Base
   ========================= */
html,
body {
  margin: 0;
  padding: 0;
}

/* =========================
   共通レイアウト
   ========================= */
.q-container {
  max-width: 1100px;
  width: 92vw;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-main {
  max-width: 1100px;
  width: 92vw;
  margin: 0 auto;
}

/* =========================
   ヘッダー
   ========================= */
.q-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1f2023;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ロゴ */
.q-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.q-logo img.custom-logo {
  height: 34px;
  width: auto;
  display: block;
}
.q-logo__text {
  font-weight: 700;
  font-size: 18px;
}

/* 右側アクション（スマホでも常時表示） */
.q-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* ← 狭い幅で折り返し */
  row-gap: 6px; /* 折り返し時の縦間隔 */
}

/* ボタン */
.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  border: 1px solid transparent;
}
.q-btn--light {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.q-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* =========================
   ヒーロースライダー
   ========================= */
.hero-slider {
  max-width: 700px;
  width: 92vw;
  margin: 0 auto 6px;
}
.hero-slider .swiper {
  width: 100%;
}
.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   フッター
   ========================= */
.site-footer {
  background: #fff;
  padding: 14px 0 20px;
}
.site-footer .q-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* フッターメニュー */
.footer-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #4b5563;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 2px;
}
.footer-menu a:hover {
  color: #1f2937;
  border-bottom-color: rgba(0, 0, 0, 0.4);
}

/* 法務リンク */
.site-footer .footer-legal {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
}
.site-footer .footer-legal a {
  color: #8f8f8f;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 0, 0, 0.25);
}
.site-footer .footer-legal a:hover {
  color: #6a6a6a;
  text-decoration-color: currentColor;
}

/* =========================
   ポイントチップ（ヘッダー）
   ========================= */
.q-ptchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 9999px;
  background: #4a4f55;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  margin-right: 8px;
}
.q-ptchip:hover {
  filter: brightness(1.05);
}

/* 画像版コイン（<img class="q-ptchip__coin" ...>） */
.q-ptchip__coin {
  width: 28px;
  height: 28px;
  display: inline-block;
  object-fit: contain; /* 画像の比率を保持 */
}

/* 旧スタイルの背景グラデの指定は削除済み */

.q-ptchip__val {
  font-size: 14px;
  letter-spacing: 0.02em;
}
.q-ptchip__unit {
  opacity: 0.9;
  margin-left: 2px;
}
.q-ptchip__plus {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  border: 2px solid #2b2f34;
  line-height: 1;
}

@media (max-width: 640px) {
  .q-ptchip {
    padding: 6px 12px;
    gap: 8px;
  }
  .q-ptchip__coin {
    width: 24px;
    height: 24px;
  }
  .q-ptchip__val {
    font-size: 13px;
  }
}

.q-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* アカウント名チップ */
.q-userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px; /* はみ出し防止 */
  padding: 6px 10px;
  border: 1px solid #1f2937;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  line-height: 1;
}
.q-userchip__av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  background: #0b1222;
}
.q-userchip__name {
  display: inline-block;
  max-width: 170px; /* コンテナに合わせて調整 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 狭い画面では少し縮める */
@media (max-width: 480px) {
  .q-userchip {
    max-width: 170px;
    padding: 6px 8px;
  }
  .q-userchip__name {
    max-width: 120px;
  }
}

.q-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.q-userchip-wrap {
  position: relative;
}
.q-userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid #1f2937;
  border-radius: 999px;
  background: #111827;
  color: #e5e7eb;
  line-height: 1;
  cursor: pointer;
}
.q-userchip__av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1222;
}
.q-userchip__name {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-userchip__caret {
  opacity: 0.75;
}

.q-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  padding: 6px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  background: #0f172a;
  color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 1000;
}
.q-menu.is-open {
  display: block;
}
.q-menu__item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #e5e7eb;
}
.q-menu__item:hover {
  background: #111f33;
}
.q-menu__logout {
  color: #fecaca;
} /* ほんのり警告色 */
.q-menu__logout:hover {
  background: #2a1114;
}

@media (max-width: 480px) {
  .q-userchip {
    max-width: 170px;
    padding: 6px 8px;
  }
  .q-userchip__name {
    max-width: 110px;
  }
}
