/* 2026-09-16 大隆さん指示: 下部固定メニュー（5タブ）と、上部の「今どのページか」帯 */
.view-hidden{display:none!important}
body.has-tab-bar{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
.view-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;width:min(100% - 20px,1120px);margin:8px auto 0;padding:10px 14px;border:1px solid #e6e1ff;border-radius:14px;background:#fff;box-shadow:0 6px 18px #38257f0d}
.view-title strong{font-size:15px;color:#241b4d}
.view-title span{font-size:12px;color:#6d6b80}
.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px));background:#fffffff5;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid #e6e1ff;box-shadow:0 -6px 18px #38257f14}
.tab-bar-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;border-radius:12px;color:#6d6b80;text-decoration:none;font-size:10.5px;font-weight:800;line-height:1;-webkit-tap-highlight-color:transparent}
.tab-bar-item svg{width:24px;height:24px;fill:currentColor}
.tab-bar-item.active{color:#5140ba;background:#f4f1ff}
.tab-bar-item span{white-space:nowrap}
@media (min-width:900px){.tab-bar{width:min(100%,560px);left:50%;right:auto;transform:translateX(-50%);border:1px solid #e6e1ff;border-bottom:0;border-radius:18px 18px 0 0}}
#accountPanel .account-links{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
#accountPanel .account-links a{display:block;padding:14px;border:1px solid #e6e1ff;border-radius:14px;background:#fff;text-decoration:none;color:#241b4d;font-weight:800}
#accountPanel .account-links a small{display:block;margin-top:4px;color:#6d6b80;font-weight:600;font-size:12px}
#shopCouponsNote p{margin:6px 0 0;color:#6d6b80;font-size:13px}

/* 2026-09-17: 「探す」ではページ名の帯を出さない */
.view-title.view-title-hidden{display:none}

/* 2026-09-17 大隆さん指示: ヘッダーは 1 段（ロゴ・言語・販売者専用）に狭める。会員名・ログアウトはマイアカウントへ。 */
.topbar{min-height:56px;padding:6px max(14px,env(safe-area-inset-left));gap:8px}
.topbar .header-language{margin-left:auto}
.topbar .account-nav{margin:0}
.topbar .account-nav .business-link{white-space:nowrap;font-size:11px;padding:8px 10px;min-height:38px}
.topbar .header-language select{min-height:38px}
.topbar .brand{min-height:38px}
@media(max-width:760px){
  .topbar{display:flex;flex-wrap:nowrap;align-items:center}
  .topbar .header-language{grid-column:auto;grid-row:auto;margin-left:auto}
  .topbar .account-nav{grid-column:auto;justify-content:flex-end}
  .topbar .brand img{width:34px;height:34px}
}
.account-session{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:0 0 12px}
.account-session a{padding:9px 12px;border-radius:11px;color:#5140ba;background:var(--soft,#f4f0ff);text-decoration:none;font-size:13px;font-weight:850}
.account-session .account-logout{border:1px solid var(--line,#e9e5f5);border-radius:11px;background:#fff;color:var(--muted,#6d6b80);font-size:12px;font-weight:800;padding:8px 12px;cursor:pointer}
.account-session .account-logout.hidden{display:none}
.account-session small{flex-basis:100%;color:var(--muted,#6d6b80);font-size:12px;line-height:1.5}

/* 2026-09-22 大隆さん指示「PC版ページメニューを上帯へ移動」。
   PC では下の固定タブではなく、ロゴ帯（.topbar は sticky top:0 / 高さ60px）の
   直下に1段で置く。スクロールしても上に残す。
   ・高さを大きくしすぎない（商品を見る面積を奪わない §6）
   ・現在位置は 太字＋下線だけ。派手にしない（§7）
   ・メニュー名は現行のまま（探す / ホシる中 / ショップ / ホシルバズ / マイアカウント）。
     勝手に変えない（追加指示§5）
   スマホは今までどおり下の固定タブのまま（追加指示§9）。 */
@media (min-width:761px){
  .tab-bar{
    position:fixed;
    top:60px;
    bottom:auto;
    left:0;
    right:0;
    width:auto;
    transform:none;
    display:flex;
    justify-content:center;
    gap:2px;
    padding:0 14px;
    min-height:46px;
    border:0;
    border-bottom:1px solid #e6e1ff;
    border-radius:0;
  }
  .tab-bar-item{
    flex:0 0 auto;
    flex-direction:row;
    align-items:center;
    gap:7px;
    min-height:46px;
    padding:0 14px;
    border-radius:0;
    /* 選ばれている時だけ下線。選ばれていない時も同じ太さの透明な線を持たせて、
       切り替わるたびに文字が上下に動かないようにする。 */
    border-bottom:2px solid transparent;
    font-size:13px;
  }
  .tab-bar-item svg{width:18px;height:18px}
  .tab-bar-item.active{
    background:none;
    color:#5140ba;
    font-weight:900;
    border-bottom-color:#5140ba;
  }
  /* 下に固定タブが無くなるので、下の余白は要らない。代わりに上帯のぶんだけ空ける。 */
  body.has-tab-bar{padding-bottom:0}
  body.has-tab-bar>main{margin-top:46px}
}
