@charset "utf-8";



/* ===== ヘッダー ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: #eee;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 20px;
  height:auto;
}

/* ===== 左：PCナビ ===== */
.pc-nav {
  grid-column: 1;
}

.pc-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.pc-nav a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

/* ===== 中央：ロゴ ===== */
.logo {
  grid-column: 2;
  margin: 0;
  justify-self: center;
}






@media screen and (min-width:1px) and ( max-width:479px) {
img.logosizebg{
display:block;
margin:0 auto;
padding:0 auto;
max-width:220px;
width:100%;
}
}

@media screen and (min-width:480px) and ( max-width:959px) {
img.logosizebg{
display:block;
margin:0 auto;
padding:0 auto;
max-width:250px;
width:100%;
}
}

@media screen and (min-width:960px) {
img.logosizebg{
display:block;
margin:0 auto;
padding:0 auto;
max-width:310px;
width:100%;
}
}





/* ===== 右：ボタン ===== */
.menu-btn {
/*--- display:none; 3本ライン開閉ボタンを非表示する場合はここをnoneにする---*/
  grid-column: 3;
  justify-self: end;

  width: 30px;
  height: 22px;
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #000;
  left: 0;
  transition: 0.3s;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 10px; }
.menu-btn span:nth-child(3) { bottom: 0; }

/* × */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* ===== ドロワー ===== */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 30%;
  height: 100vh;

  display: flex;
  justify-content: center;   /* 横中央 */
  align-items: flex-start;   /* ← 上に変更 */

  padding-top: 100px;        /* ← 上から余白（調整OK） */

  background: #eee;

  transform: translateX(100%);
  transition: 0.5s ease;
  z-index: 999;
}

.nav.active {
  transform: translateX(0);
}

/* メニュー */
.nav ul {
  list-style: none;
  text-align: center;
  width: 100%; /* ← これ追加（地味に重要） */
  padding-left: 0;  /* ← これ追加 */
  margin: 0;        /* ← 念のため */
}

.nav li {
  margin: 20px 0;
}

.nav a {
  font-size: 1em;
  text-decoration: none;
  color: #000;
}

/* ===== スマホ対応 ===== */
@media (max-width: 959px) {

  /* PCナビ非表示 */
  .pc-nav {
    display: none;
  }

  /* ドロワー広く */
  .nav {
    width: 45%;
  }
}

/* ===== PCのみ（任意） ===== */
@media (min-width: 960px) {

  /* ハンバーガー消す場合はコメント外す */
  /*
  .menu-btn {
    display: none;
  }
  */

}
</style>