@charset "utf-8";

/* 基本色 */
:root {
  --text: #333;
  --muted: #8a8a8a;
  --line: #e9e9e9;
  --bg: #fff;
}

.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  width: min(1440px, 92%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.brand img {
  height: 40px;
  width: auto;
  display: block;
}

/* ハンバーガーボタン */
.nav-btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 三本線 */
.nav-btn::before,
.nav-btn::after,
.nav-btn span {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
/* 開いている時は × 風に変形 */
body.open .nav-btn span {
 opacity: 0; 
}
body.open .nav-btn::before { 
  transform: translateY(6px) rotate(45deg); 
}
body.open .nav-btn::after  { 
  transform: translateY(-6px) rotate(-45deg); 
}

.nav-pc { 
  display: none; 
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 4vw, 36px);
  flex-wrap: wrap;
  justify-content: center;
}
.nav-link {
  text-decoration: none;
  color: var(--text);
  letter-spacing: .22em;
  font-size: clamp(11px, 2vw, 12px);
  opacity: .75;
}
.nav-link:hover { 
  opacity: 1; 
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: #fff;
  transform: translateY(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  z-index: 1000;
}
body.open .nav-drawer { 
  transform: translateY(0); 
}
body.open { 
  overflow: hidden; 
} 

.nav-drawer-head{
  position: relative;         
  padding: 18px 16px 10px;   
}

.nav-close{
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 28px;           
  line-height: 1;
  padding: 10px;             
}

.nav-drawer-logo{
  display: block;
  margin: 0 auto 22px;        
  width: clamp(180px, 46vw, 280px); 
  height: auto;
}

.nav-drawer-nav .nav-list{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 6px;
}
.nav-drawer-nav .nav-link {
  font-size: 14px;
  letter-spacing: .22em;
}

@media (min-width: 1024px) {
  .masthead-inner { 
    gap: 12px; 
    padding: 14px 0; 
  }
  .brand img { 
    height: 54px; 
  }    /* PCのロゴサイズ */
  .nav-btn { 
    display: none; 
  }      /* ハンバーガー非表示 */
  .nav-pc { 
    display: block; 
  }      /* PCナビ表示 */
  .nav-drawer { 
    display: none; 
  }   /* PCではドロワー使わない */
}
