:root{
  --headerH: clamp(72px, 6vw, 92px);
  --pageX: clamp(16px, 2vw, 28px);
}

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
  box-shadow: 0 3px 5px rgba(46, 68, 214, 0.12);
}

.header-inner{
  height: var(--headerH);
  display: flex;
  align-items: center;
  padding: 0 var(--pageX);
  gap: clamp(18px, 2vw, 28px); /* ロゴとメニューの間 */
  box-sizing: border-box;
}

/* ロゴ */
.logo img{
  height: clamp(44px, 4.5vw, 64px);
  width: auto;
  display: block;
}

/* ナビ（ASNAROと同じ挙動：常に横並び・消えない） */
.nav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.nav a{
  text-decoration: none;
  color: #111;
  font-size: clamp(14px, 1.2vw, 16px);
}

.nav a:hover{
  text-decoration: underline;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--headerH) + 16px);
}

/* |ASNARO の区切り（ASNAROの #ava と同じノリで） */
.nav .nav-asnaro{
  border-left: 1px solid #ddd;
  padding-left: clamp(10px, 1.2vw, 16px);
  margin-left: clamp(4px, 0.6vw, 8px);
}

/* ===== Program ドロップダウン（見た目は nav a と同じ） ===== */
.nav-dd{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Program文字ボタン（a と同じ見た目） */
.nav-dd__trigger{
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;

  color: #111;
  font-size: clamp(14px, 1.2vw, 16px);
  padding: 0;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  line-height: 1;
}

.nav-dd__trigger:hover{
  text-decoration: underline;
}

/* メニュー */
.nav-dd__menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: clamp(240px, 22vw, 320px);
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 8px;

  display: none;
  z-index: 2000;
}

.nav-dd__menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
}

.nav-dd__menu a:hover{
  background: rgba(46, 68, 214, 0.08);
  text-decoration: none;
}

/* 開いてる状態 */
.nav-dd.is-open .nav-dd__menu{
  display: block;
}

/* ===== 重要：モバイル用の「畳む/消す」CSSは入れない ===== */
/* .nav-toggle や @media(...) は書かない（ASNARO挙動に合わせる） */

/* ===== レスポンシブ調整（はみ出し防止） ===== */
@media screen and (max-width: 600px) {
  .header-inner {
    display: block; /* flexを解除して、ロゴとナビを完全に分断 */
    height: auto;
    text-align: center;
    padding: 12px 10px;
  }

  .logo {
    display: inline-block;
    margin-bottom: 8px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;    /* 入り切らない場合に自動改行 */
    justify-content: center; /* 中央に集める */
    gap: 8px 12px;      /* 上下 左右 の余白 */
    width: 100%;
    margin: 0 auto;
  }

  .nav a, .nav-dd__trigger {
    font-size: 13px;
    padding: 4px 0;    /* タップしやすく、かつ横幅を取らない */
  }

  /* ASNAROの左線が邪魔で改行時に崩れるのを防ぐ */
  .nav .nav-asnaro {
    border-left: none; 
    padding-left: 0;
    margin-left: 0;
    /* 代わりに少し太くしたり色を変えて区別 */
    font-weight: bold;
    color: #2e44d6;
  }
}
@media screen and (max-width: 600px) {
  .nav-dd__menu {
    position: fixed;
    top: auto; /* 一旦リセット */
    bottom: auto;
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    min-width: 0 !important;
    transform: none !important;
    margin-top: 10px;
  }
}