/* 
** The Header Media Queries **
** Tweak as per your needs **
*/
html {
  font-family:
    -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", "Noto Sans JP",
    "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 見出し（ロゴ）とメニューの文字色を梅紫系に */
.brand { color: #5a3a4a; }
.nav__item a { color: #5a3a4a; }


.brand {
  font-weight: bold;
  font-size: 20px; }
 
.site-header {
  position: relative;
  background: transparent; }
 
.site-header__wrapper {
  padding-top: 1rem;
  padding-bottom: 1rem; }

.site-header > .wrapper {
  background: #fff3f8;   /* 既存の淡いピンク */
  border-radius: 12px;   /* 角丸で上品に（好みで調整） */
  padding: 10px 16px;    /* 周囲の余白 */
}

@media (min-width: 600px) {
  .site-header__wrapper { 
    display: block;            /* ロゴ→改行→ナビの2段 */
    position: relative;
  }

  .brand {
    display: block; 
    margin-bottom: 6px;
    margin-left: 12px;
  }

  .brand-logo-right {
    position: absolute;
    top: 10px;         /* 上段内での縦位置（好みで） */
    right: 20px;       /* 右端に寄せる */
    height: 44px;      /* サイズは好みで 36–52px */
    width: auto;
  }
  .nav {
    display: block; 
    text-align: center;
    background-color: transparent; /* 内側色は帯に任せて透明に */
    padding: 8px 0;
    position: relative;        /* 濃い帯の基準 */
    overflow: visible;}

  .nav__item a { 
    text-decoration: none;}

  /* 濃いピンク帯：.nav 幅にぴったり合わせる */
  .nav::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0; /* = inset: 0; */
    width: 100%;            /* 100vw は使わない */
    transform: none;        /* 中央補正も不要 */
    background: #f2dde7;    /* 既存の濃いピンク */
    border-radius: 10px;    /* お好み。薄ピンクと馴染む角丸 */
    z-index: 0;             /* 帯は背面 */
  }

  /* メニュー本体：帯より前面に出す＋改行可 */
  .nav__wrapper {
    position: relative; 
    z-index: 1;                /* 文字を前面 */
    display: inline-flex;
    flex-wrap: wrap;           /* nav__break で改行できる */
    gap: 1px 12px !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  /* 改行マーカー（<li class="nav__break">） */
  .nav__break { 
    flex-basis: 100%; 
    width: 0; height: 0; 
  }

  .nav__item a {
    display: block;
    padding: 0.25rem 0.6rem !important;
    white-space: nowrap;       /* 項目の途中で折り返さない */
  }
  .nav__toggle { display: none !important; }
}
 
  .nav__item a {
    display: block;
    padding: 0.5rem 1rem;
   color: #c2185b;                 /* 元気なピンク */
    text-decoration: none;          /* 下線は消す（ご要望どおり） */
    font-weight: 600;               /* 少しだけ力強く */
  }
  .brand-logo,
  .nav__toggle { display: inline-block !important; }/* menuボタンを表示 */

  .brand-logo-right { height: 36px; right: 16px; top: 8px; }



.nav__item a:hover,
.nav__item a:focus-visible {
  color: #d81b60;                 /* ほんの少し濃く */
  background: rgba(210, 64, 112, 0.08);  /* うっすらピンクの面 */
  outline: none;
  border-radius: 6px;             /* 角をやわらかく（お好みで） */
}

/* 現在ページの強調（JSで付く aria-current="page" に反応） */
.nav__item a[aria-current="page"],
.brand[aria-current="page"] {
  color: #d81b60;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 700;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;}

.nav__wrapper {
  list-style: none;
  padding-left: 0;
  margin: 0;}

.brand,
.brand:link,
.brand:visited,
.brand:hover,
.brand:focus {
  text-decoration: none;
  color: #5a3a4a;
}

/* スマホ用ハンバーガーボタン（見た目だけ三本線に） */
@media (max-width: 599px) {
  .nav__toggle {
    appearance: none;
    border: none;
    background: transparent;
    padding: 10px 12px;
    line-height: 1;
    cursor: pointer;
  }
  .nav__toggle .hamburger {
    position: relative;
    display: block;
    width: 24px; height: 2px;
    background: #5a3a4a;            /* 線の色（必要なら #c2185b などに） */
    border-radius: 2px;
  }
  .nav__toggle .hamburger::before,
  .nav__toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px; height: 2px;
    background: #5a3a4a;
    border-radius: 2px;
  }
  .nav__toggle .hamburger::before { top: -6px; }
  .nav__toggle .hamburger::after  { top:  6px; }
  .site-header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右に配置 */
    gap: 8px;
  }

  /* 長いブランド名でボタンが押し出されないように */
  .brand {
    display: inline-block;
    max-width: calc(100% - 56px); /* ボタン分だけ幅を確保 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ハンバーガーを必ず表示（既存と競合しないよう明示） */
  .nav__toggle { display: inline-block !important; }
}
/* キーボード操作時にハンバーガーの位置が分かるように */
.nav__toggle:focus-visible {
  outline: 2px solid #d81b60;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 599px) {
  body.noscroll { overflow: hidden; height: 100vh; }
}

@media (max-width: 599px) {
  .site-header__wrapper { padding: 4px 8px; }
  .site-header > .wrapper { padding: 6px 10px; }
}

@media (min-width: 600px) {
  .nav__wrapper { overflow: visible; max-height: none; } /* ← 内部スクロールを出さない */
  .nav { overflow: visible; } /* 念のため */
}

@media (min-width: 600px) {
  .site-header,
  .site-header__wrapper,
  .site-header > .wrapper,
  .nav,
  .nav__wrapper {
    overflow: visible !important;
    max-height: none !important;
  }
}

/* PC/タブレット：メニュー文字をほんの少しだけ上に */
@media (min-width: 600px) {
  #site-menu a {
    display: inline-block;
    transform: none;
  }
}
/* ふだんの表示 */
.header.sticky { position: sticky; top: 0; z-index: 1000; }

@media (max-width:599px){
  .nav__wrapper{
    position:fixed;
    top:56px;           /* ヘッダー帯の高さに揃える */
    left:0; right:0; bottom:0;
    z-index:1000;
    visibility:hidden; opacity:0;
    transform:translateY(-8px);
    transition:opacity .2s, transform .2s;
    background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.12);
    overflow:auto;      /* ← 中が長いときはここを auto に */
  }
  .nav__wrapper.active{ visibility:visible; opacity:1; transform:translateY(0); }
}

@media (max-width: 599px) { .nav__toggle { display: inline-block !important; } }

/* === PC: メニュー文字をさらに上へ（微調整ノブ付き） === */
@media (min-width: 600px){
  :root{ --menu-lift: 10px; }                  /* 上げ幅 0〜8px くらいで調整 */

  /* 1) 文字ブロック全体をほんの少し上へ */
  .nav__wrapper{
    transform: translateY(calc(-1 * var(--menu-lift)));
    overflow: visible !important;             /* 切れ防止（保険） */
  }

  /* 2) さらに詰めたい場合の細かい余白（任意で下げてもOK） */
  .nav{ padding-top: 4px; padding-bottom: 8px; }
  .nav__item > a{
    padding-top: 4px !important;
    padding-bottom: 6px !important;
    line-height: 1.25 !important;
  }
}

/* PC/タブレットでは右上ロゴを表示 */
@media (min-width: 600px){
  .brand-logo-right{
    display:block !important;
    height:52px !important;
    top:2px !important;
  }
}
/* スマホ（～599px）はロゴを出さない */
@media (max-width: 599px){
  .brand-logo-right{ display:none !important; }
}

/* スマホ（～599px）だけ：メニュー文字を少し拡大 */
@media (max-width: 599px){
  #site-menu .nav__item a{
    font-size: 20px;     /* ← ここを 16–18px で微調整OK */
    line-height: 1.7;    /* 行間も少し広げて読みやすく */
  }
}