/* aoidou.com 静的ページ 共通ヘッダー調整  2026-08-31 */
@media (max-width: 999px){
  header > div { gap:8px !important; padding-left:14px !important; padding-right:14px !important; }
  header > div > a:first-of-type { gap:8px !important; flex:0 1 auto; min-width:0; }
  header > div > a:first-of-type > span { flex-shrink:0; }
  header > div > a:first-of-type > span > span:first-child { font-size:15px !important; letter-spacing:0.02em !important; white-space:nowrap; }
  header > div > a:first-of-type > span > span:last-child { font-size:9.5px !important; letter-spacing:0.04em !important; white-space:nowrap; }
  header > div > a:first-of-type > img { width:44px !important; height:30px !important; }
  header > div > div { gap:8px !important; flex:0 0 auto; }
  header > div > div > a[href^="https://lin.ee"] { font-size:12px !important; padding:9px 11px !important; }
  header #hmenu { width:40px !important; height:40px !important; flex:0 0 40px; }
}
@media (max-width: 374px){
  header > div { padding-left:10px !important; padding-right:10px !important; }
  header > div > a:first-of-type > span > span:first-child { font-size:13.5px !important; }
  header > div > a:first-of-type > span > span:last-child { font-size:9px !important; }
  header > div > div > a[href^="https://lin.ee"] { font-size:11.5px !important; padding:8px 9px !important; }
}
header #hinsta { display:flex !important; align-items:center; }
header #hinsta img { display:block; width:28px; height:28px; }

/* ブランド名2行の行間（PC・スマホ共通） */
header > div > a:first-of-type > span { gap:1px !important; }
header > div > a:first-of-type > span > span:first-child { line-height:1.3 !important; }
header > div > a:first-of-type > span > span:last-child { line-height:1.25 !important; }

/* PC（1000px以上）: ヘッダーを2段にする  2026-08-31
   1段目 = ロゴ+屋号 / 電話・Instagram・LINE
   2段目 = ナビ7項目（中央寄せ）
   1段だと項目が増えて屋号や電話番号が折り返すため */
@media (min-width: 1000px){
  header > div { flex-wrap:wrap !important; row-gap:0 !important; padding-bottom:0 !important; }
  header > div > a:first-of-type { order:1; }
  header > div > div { order:2; margin-left:auto !important; }
  header > div > nav#gnav {
    order:3;
    flex:0 0 100%;
    width:100%;
    margin-left:0 !important;
    justify-content:center;
    padding-top:10px;
    padding-bottom:12px;
  }
  #htel { white-space:nowrap !important; }
}

/* 屋号・サブコピーは常に折り返さない */
header > div > a:first-of-type > span > span { white-space:nowrap !important; }

/* ロゴ・屋号を大きく / お問い合わせボタン  2026-08-31 */
header > div > a:first-of-type > img {
  width:66px !important;
  height:44px !important;
}
header > div > a:first-of-type > span > span:first-child { font-size:21px !important; }
header > div > a:first-of-type > span > span:last-child { font-size:12px !important; }

/* スマホは詰める */
@media (max-width: 999px){
  header > div > a:first-of-type > img { width:52px !important; height:35px !important; }
  header > div > a:first-of-type > span > span:first-child { font-size:16px !important; }
  header > div > a:first-of-type > span > span:last-child { font-size:9.5px !important; }
  header #hcontact { display:none !important; }
}
@media (max-width: 374px){
  header > div > a:first-of-type > img { width:46px !important; height:31px !important; }
  header > div > a:first-of-type > span > span:first-child { font-size:14px !important; }
  header > div > a:first-of-type > span > span:last-child { font-size:9px !important; }
}
