@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Lots Cosme – Header: title left / search right
Template: cocoon-master
Version: 1.1.3
*/

/* ===============================
   Base (共通) − PCレイアウトの土台
   =============================== */
#header-in{
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* 左=ロゴ / 右=検索 */
  gap: 16px;
  flex-wrap: nowrap;
}

/* ロゴブロック：幅100%を取らせない＋左寄せ */
#header-in .logo-header{
  width: auto;
  max-width: none;
  margin-right: auto;               /* 検索を右へ押し出す鍵 */
  text-align: left;
  flex: 0 0 auto;
}

/* サイト名：高さブレ防止 */
#header-in .site-name{
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  text-align: left;
  flex: 0 0 auto;
}
#header-in .site-name a{
  display: inline-block;
  padding: 0;
  line-height: 1.1;
}

/* 検索ブロック（ロゴの右横） */
#header-in .lc-header-search{
  margin-left: 24px;               /* ロゴとの間隔 */
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* Cocoon の .search-box が100%化する事故対策 */
#header-in .lc-header-search .search-box,
#header-in .lc-header-search .search-box.input-box{
  width: auto;
}

/* 検索フォームの横並び（Cocoon標準/自前どちらでも） */
#header-in .lc-header-search form,
#header-in .lc-header-search .search-form,
#header-in .lc-header-search .lc-search-form{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* 入力欄・ボタン（PC基準） */
#header-in .lc-header-search input[type="search"],
#header-in .lc-header-search input[type="text"],
#header-in .lc-header-search .search-field,
#header-in .lc-header-search .lc-search-field{
  width: 320px;
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}
#header-in .lc-header-search input[type="submit"],
#header-in .lc-header-search button,
#header-in .lc-header-search .search-submit,
#header-in .lc-header-search .lc-search-submit{
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

/* 念のため：不可視化されないよう保険 */
.lc-header-search{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===============================
   Mobile (〜1024px) − 上:ロゴ / 下:検索
   =============================== */
@media (max-width:1024px){
  /* ヘッダー縦並び */
  #header-in{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }

  /* ① ロゴ（サイト名） */
  #header-in .logo-header,
  #header-in .site-name{
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* ② 検索バー（横幅100%） */
  #header-in .lc-header-search{
    order: 2 !important;
    width: 100% !important;
    margin-left: 0 !important;
    display: block !important;
  }
  #header-in .lc-header-search .search-form,
  #header-in .lc-header-search .lc-search-form{
    display: flex !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 0 !important;
    align-items: center !important;
  }
  #header-in .lc-header-search .search-box{ width: 100% !important; }

  /* 入力欄・ボタン：タップしやすく */
  #header-in .lc-header-search input[type="search"],
  #header-in .lc-header-search input[type="text"],
  #header-in .lc-header-search .search-field,
  #header-in .lc-header-search .lc-search-field{
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
  }
  #header-in .lc-header-search input[type="submit"],
  #header-in .lc-header-search button{
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
  }

  /* ③ カテゴリ帯は少し間隔 */
  #navi{ margin-top: 8px !important; }
}

/* ===============================
   Desktop (1025px〜) − 既存PC維持
   =============================== */
@media (min-width:1025px){
  #header-in{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px;
    gap: 16px;
  }
  #header-in .logo-header{ margin-right: auto; }
  #header-in .lc-header-search{ margin-left: 24px; }
}

/* ===== ヘッダー下のカテゴリ帯をド真ん中に ===== */
#navi .navi-in{
  max-width:1120px;          /* サイト幅に合わせて調整可 */
  margin:0 auto;
  padding:0 6px;            /* 余白は好みで */
}

#navi .menu{                 /* ← ul 要素（既定の余白を消す） */
  display:flex;
  justify-content:center;    /* 中央寄せの本体 */
  gap:24px;                  /* 項目間の間隔（好みで） */
  margin:0;                  /* ブラウザ既定の margin をゼロに */
  padding:0;                 /* ブラウザ既定の padding をゼロに */
  list-style:none;           /* マーカーを消す（念のため） */
}

#navi .menu > li{ margin:0; }
#navi .menu > li > a{
  display:block;
  padding:10px 8px;          /* 触りやすいタップ領域に */
  text-decoration:none;
}

/* モバイル時は横スクロールにしたい場合（任意） */
@media (max-width: 768px){
  #navi .menu{
    justify-content:center;  /* そのまま中央でもOK */
    gap:18px;
    overflow-x:auto;         /* ←項目が多い時は横スクロール */
    -webkit-overflow-scrolling:touch;
  }
}

