/* =========================
   Masthead（ページ最上部の細いバー）
   ========================= */

.masthead {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: #f7f7f7;         /* グレー帯 */
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #555;
    z-index: 100;
}

.masthead-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 16px;
    box-sizing: border-box;
}

.mast-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    justify-content: flex-end;   /* 左揃えにしたければ flex-start に */
    flex-wrap: nowrap;
    white-space: nowrap;
}

.mast-nav a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

@media (max-width: 660px) {
  .masthead{
    overflow-x: auto;      /* 横スクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール対応 */
    white-space: nowrap;   /* 子要素を横並びに */
  }
  .masthead * {
    display: inline-block; /* 内部要素を横並び化 */
    vertical-align: middle;
  }
  .mast-nav{
    gap: 6px;
  }
}

/* =========================
   ドロワー＆全体コンテナ
   ========================= */

.site-drawer-cover {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  transition: visibility .3s, opacity .3s;
  background: transparent;
  opacity: 0;
}

.is-drawer-opened .site-drawer-cover {
  background: rgba(0,0,0,.4);
  visibility: visible;
  opacity: 1;
}

.site-container {
  transition: transform .3s;
}

/* ドロワーオープン時に中身を左にずらす（テーマ依存ならそのまま） */
.site-container[aria-expanded="false"] {
  transform: translate(-300px);
}

@media (max-width: 320px) {
  .site-container[aria-expanded="false"] {
    transform: translate(calc(-100% - 60px));
  }
}

/* =========================
   ヘッダー本体（masthead のすぐ下）
   ========================= */

.site-header {
  padding: 15px 0;
  text-align: center;
  font-weight: 600;
  position: sticky;      /* ★ fixed ではなく sticky に */
  top: 0;                /* 画面上端に“張り付く”位置 */
  left: 0;
  width: 100%;
  background: #fff;
  background: var(--white);
  z-index: 80;
  transition: transform .3s;
}

/* ドロワーオープン中のスライド（元テーマ仕様に合わせるなら残す） */
.is-drawer-opened .site-header {
  transform: translate(-300px);
}

@media (max-width: 599px) {
  .logged-in .site-header {
    margin-top: 46px; /* WP管理バー対策 */
  }
}

/* スクロールでキャッチコピーやログインを隠す演出用（あれば） */
.site-header.is-scroll .site-description,
.site-header.is-scroll .site-login {
  visibility: hidden;
  opacity: 0;
  height: 0;
  margin-top: 0;
}

.site-header.is-scroll .hamburger {
  margin-top: 5px;
}

.site-header.is-scroll .site-floting-nav {
  top: 15px;
}

/* ロゴまわり */

.site-logo {
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-weight: 600;
}

.site-logo a {
  text-decoration: none;
  color: #222;
  color: var(--black);
}

.site-logo img,
.site-logo-img {
  width: 160px;
  height: 28px;
  display: block;
}

/* キャッチコピー */

.site-description {
  margin: 10px 0 0;
  font-size: .643em;
  font-weight: 300;
  transition:
    opacity .2s,
    visibility .2s,
    height .2s,
    margin .2s;
}

/* 右上フローティングナビ（ログイン| ハンバーガー） */

.site-floting-nav {
  position: absolute;
  top: 30px;
  right: 20px;
  display: flex;
  align-items: center;
}

@media (min-width: 782px) {
  .site-floting-nav {
    top: 15px;
    right: 15px;
  }
}


/* ハンバーガー本体（元テーマに合わせてお好みで） */

.hamburger {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.hamburger__box {
  display: inline-block;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger__inner,
.hamburger__inner::before,
.hamburger__inner::after {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #222;
  border-radius: 1px;
  transition: transform .2s, top .2s, bottom .2s, opacity .2s;
}

.hamburger__inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger__inner::before,
.hamburger__inner::after {
  content: "";
}

.hamburger__inner::before {
  top: -6px;
}

.hamburger__inner::after {
  bottom: -6px;
}

/* 開いているときの × 演出（JSで .is-active を付ける想定） */
.hamburger.is-active .hamburger__inner {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger__inner::before {
  top: 0;
  opacity: 0;
}

.hamburger.is-active .hamburger__inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* =========================
   グローバルナビゲーション
   ========================= */

.site-navigation {
  /* もともと padding-top:85px; は fixed ヘッダー用なので削除/リセット */
  padding-top: 0;
  border-bottom: none;
}

.site-navigation__list {
  font-weight: 600;
  margin: 0 0 0;
  display: flex;
  font-size: .813em;
  white-space: nowrap;
  overflow-x: scroll;
  justify-content: flex-start;
  padding: 15px 16px;
  list-style: none;
  font: 24px;
}

@media (min-width: 600px) {
  .site-navigation__list {
    gap: 16px;
    justify-content: center;
    white-space: normal;
    overflow-x: visible;
    padding: 15px 0;
  }
  .site-navigation__list a {
    font-size: 12.5px;
  } 
}

.site-navigation__list li {
  margin: 0 13px;
  padding-left: 0;
}

@media (min-width: 782px) {
  .site-navigation__list li {
    margin: 0 20px;
  }
}

.site-navigation__list li:before {
  content: none;
}

.site-navigation__list a {
  text-decoration: none;
  color: #222;
  color: var(--black);
  transition: color .3s;
}

.site-navigation__list a:hover {
  color: #00aaca;
  color: var(--light-blue);
  opacity: 1;
}
/* パンくず（元テーマを踏襲） */

.site-breadcrumbs {
  display: none;
}

@media (min-width: 600px) {
  .site-breadcrumbs {
    max-width: 1230px;
    max-width: var(--max-width);
    display: block;
    font-size: .75em;
    margin: 0 auto 20px;
    padding: 20px 20px 0;
  }
  .site-breadcrumbs li {
    display: inline-block;
    margin-top: 0;
  }
  .site-breadcrumbs li:after {
    content: "ー";
    color: #ddd;
    margin: 0 5px;
  }
  .site-breadcrumbs li:last-child:after {
    content: normal;
  }
  .site-breadcrumbs a {
    text-decoration: none;
  }
}

/* 2025_11_11追記 ipad用レイアウト ヘッダーハンバーガーのみに*/

@media (max-width: 841px) {
  .site-navigation{
    display: none;
  }
}
 
