
/* === Lunaria Header Styling === */

.lunaria-header {
  background-color: var(--lunaria_bg_color, #ffffff);
  border-bottom: 1px solid #eee;
  font-family: sans-serif;
}

.lunaria-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.lunaria-logo {
  flex-shrink: 0;
}

.lunaria-logo-title {
  font-size: 1.5rem;
  margin: 0;
}

.lunaria-logo-link {
  text-decoration: none;
  color: #333;
}

.lunaria-nav {
  flex-grow: 1;
}

.lunaria-nav-items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
  justify-content: flex-end;
}

.lunaria-nav-items li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.lunaria-nav-items li a:hover {
  color: #0073aa;
}

.lunaria-search-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
}

.lunaria-search-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .lunaria-desktop-nav {
    display: none;
  }

  .lunaria-mobile-nav {
    display: block;
    width: 100%;
  }



  .lunaria-nav-items.lunaria-mobile-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lunaria-search-button {
    margin-top: 1rem;
  }
}

@media (min-width: 769px) {
  .lunaria-mobile-nav {
    display: none;
  }
}

.lunaria-logo {
  max-width: 250px;
  overflow: hidden;
}

.lunaria-logo img {
  display: block;
  max-height: 60px;   /* 上下の高さを固定 */
  height: auto;
  width: auto;        /* 横幅は自動調整で、画面からはみ出さない */
  max-width: 100%;    /* コンテナ内で横にも制限 */
}

/* モーダル背景の設定 */
.remodal-wrapper {
  display: none; /* 初期非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* モーダル本体 */
.remodal.searchbox {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 検索フォーム本体 */
.searchform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

/* 入力欄 */
.searchform_input {
  flex: 1;
  padding: 8px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 検索ボタン */
.searchsubmit {
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.searchsubmit:hover {
  background: #555;
}

/* 閉じるボタン（×） */
.remodal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: #333;
  font-size: 20px;
  border: none;
  cursor: pointer;
  padding: 0;
}



/* ハンバーガートグルボタンのスタイル */
.lunaria-hamburger-toggle {
  display: none; /* モバイルのみ表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 40px;
  width: 40px;
  z-index: 10001; /* モバイルナビより前に出す */
}

.lunaria-menu-toggle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10001;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ハンバーガーの3本線 */
.lunaria-hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
}

/* モバイル表示でボタンを表示 */
@media screen and (max-width: 768px) {
  .lunaria-hamburger-toggle {
    display: flex;
  }
}

/* モバイルメニューは初期状態で非表示 */
.lunaria-mobile-nav {
  display: none;
}

/* トグルで追加されるクラスにより表示 */
.lunaria-mobile-nav.is-open {
  display: block;
}

/* オプション：開閉時のアニメーション（任意） */
.lunaria-mobile-nav {
  transition: all 0.3s ease;
}


.lunaria-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center; /* ← 中央揃え */
  padding: 0.5rem 0;
}

.lunaria-logo {
  display: flex;
  align-items: center;
}

.lunaria-toggle,
.lunaria-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  font-size: 1.5rem;
  cursor: pointer;
}

.lunaria-toggle svg,
.lunaria-search-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.breadCrumb {
  max-width: 1200px; /* 本文幅に合わせて変更可 */
  margin: 0 auto;
  font-size: 0.9em;
}
