/* 各サービスの上のバー（2026-11-05。ユーザー：ヘッダーはマドリセカンドに統一・2段目にそのサービス・1つのサービス群に見せる）
   1段目：マドリセカンド（/ へ）・サービス一覧・ログイン／マイページ
   2段目：そのサービスのアイコンと名前・そのサービスの中のリンク（スマホは横にスクロール）
   マドつくの作る画面（#vEdit が出ているとき）は1段目を細く、2段目を出さない */
.sh { display: block; position: relative; z-index: 50; background: #fff; border-bottom: 1px solid #ECEAE4; font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif; font-feature-settings: "palt"; color: #2B2F33; }
.sh a { color: inherit; text-decoration: none; }
.sh, .sh * { box-sizing: border-box; }
.sh-1, .sh-2 { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.sh-1 { height: 44px; }
.sh-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: .02em; flex: none; }
.sh-brand img { width: 24px; height: 24px; border-radius: 6px; }
.sh-menu { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 1px solid #E3E1DB; border-radius: 99px; background: #fff; color: #5B6670; font: 700 12px/1 inherit; font-family: inherit; cursor: pointer; flex: none; }
.sh-menu:hover, .sh-menu[aria-expanded="true"] { border-color: #1F7F73; color: #1F7F73; }
.sh-menu svg { width: 10px; height: 10px; transition: transform .15s; }
.sh-menu[aria-expanded="true"] svg { transform: rotate(180deg); }
.sh-sp { flex: 1; }
.sh-1 .me-link, .sh-1 .ms-me, .sh-1 > button:not(.sh-menu) { flex: none; font-size: 13px; font-weight: 700; color: #1F7F73; }
.sh-2 { height: 46px; border-top: 1px solid #F3F1EC; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.sh-2::-webkit-scrollbar { display: none; }
.sh-svc { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; white-space: nowrap; flex: none; }
.sh-svc img { width: 26px; height: 26px; border-radius: 7px; }
.sh-svc small { font-size: 11px; font-weight: 700; color: #8A9096; }
.sh-svc .beta { font-style: normal; font-size: 10px; font-weight: 700; color: #B98A3A; border: 1px solid #E8D3A8; border-radius: 99px; padding: 1px 6px; }
.sh-nav { display: flex; gap: 2px; margin-left: auto; flex: none; }
.sh-nav a { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #5B6670; white-space: nowrap; }
.sh-nav a:hover { background: #F3F7F6; color: #1F7F73; }
.sh-nav a.up { color: #B98A3A; }
/* サービス一覧 */
.sh-pop { position: absolute; left: 0; right: 0; top: 44px; z-index: 60; }
.sh-pop[hidden] { display: none; }
.sh-pop-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sh-panel { margin-top: 6px; background: #fff; border: 1px solid #E3E1DB; border-radius: 16px; box-shadow: 0 18px 40px rgba(28,43,51,.14); padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; max-height: calc(100vh - 70px); overflow: auto; }
.sh-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.sh-panel a:hover { background: #F3F7F6; }
.sh-panel a.on { background: #EEF7F5; }
.sh-panel img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.sh-panel b { display: block; font-size: 13.5px; line-height: 1.35; }
.sh-panel small { display: block; font-size: 11.5px; color: #6B6F76; line-height: 1.45; }
.sh-panel .soon { display: inline-block; margin-left: 4px; font-size: 10px; color: #B98A3A; }
@media (max-width: 560px) {
  .sh-1, .sh-2 { padding: 0 12px; }
  .sh-brand { font-size: 14px; }
  .sh-svc { font-size: 14px; }
  .sh-svc small { display: none; }
  .sh-nav { margin-left: 4px; }
  .sh-nav a { padding: 6px 8px; }
  .sh-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .sh-panel a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 8px; }
  .sh-panel small { display: none; }
  .sh-panel b { font-size: 12.5px; }
  .sh-panel .soon { display: block; margin: 2px 0 0; }
}
/* マドつくの作る画面：図を広く（1段目を細く・2段目なし） */
body:has(#vEdit:not([hidden])) .sh-1 { height: 30px; }
body:has(#vEdit:not([hidden])) .sh-brand { font-size: 12px; }
body:has(#vEdit:not([hidden])) .sh-brand img { width: 18px; height: 18px; }
body:has(#vEdit:not([hidden])) .sh-menu { height: 22px; font-size: 11px; }
body:has(#vEdit:not([hidden])) .sh-1 .me-link { font-size: 12px; }
body:has(#vEdit:not([hidden])) .sh-2 { display: none; }
body:has(#vEdit:not([hidden])) .sh-pop { top: 30px; }
.sh-tail { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; }
.sh-nav + .sh-tail { margin-left: 8px; }
.sh-tail button { font: inherit; font-weight: 700; }
