/* ========================================
   スマホメニュースタイル（シンプル版）
======================================== */

@media (max-width: 768px) {
  .header-toggle {
    display: flex;
    position: relative;
    height: 100%;
    min-height: 44px; /* タップ可能な最小サイズ */
    aspect-ratio: 1/1;
    padding: 8px 10px 6px;
    border-radius: 8px;
    background-color: #fff;
    color: #C64C4C;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1;
    align-items: flex-end;
    cursor: pointer;
    z-index: 1001; /* 他の要素より前面に */
    pointer-events: auto; /* クリックを有効に */
    user-select: none; /* テキスト選択を無効に */
  }
  
  .header-toggle span {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    width: 50%;
    height: 2px;
    border-radius: 100vw;
    background-color: #C64C4C;
    transition: 0.3s all;
  }
  
  .header-toggle span:nth-child(1) {
    top: 16%;
  }
  
  .is-active.header-toggle span:nth-child(1) {
    top: 32%;
    rotate: 135deg;
  }
  
  .header-toggle span:nth-child(2) {
    top: 32%;
  }
  
  .is-active.header-toggle span:nth-child(2) {
    opacity: 0;
    rotate: 45deg;
  }
  
  .header-toggle span:nth-child(3) {
    top: 48%;
  }
  
  .is-active.header-toggle span:nth-child(3) {
    top: 32%;
    rotate: -135deg;
  }
  
  .headerNav {
    display: grid;
    grid-template-rows: 0fr;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #FFD9DD;
    z-index: 1000;
    transition: 0.3s all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .headerNav.is-open {
    grid-template-rows: 1fr;
  }
  
  .headerNav > ul {
    overflow: hidden;
    flex-direction: column !important;
    font-size: 140%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .headerNav-item + .headerNav-item {
    border-top: 1px solid rgba(250, 246, 234, 0.5);
  }
  
  .headerNav-item > a {
    display: block;
    padding: 16px;
    color: #C64C4C;
    text-decoration: none;
  }
  
  .headerNav-item > a:hover {
    background-color: #f5f5f5;
  }
}

/* デスクトップではスマホメニュー要素を非表示 */
@media (min-width: 769px) {
  .header-toggle {
    display: none;
  }
  
  .headerNav {
    /* デスクトップでは通常のナビゲーションとして表示 */
    position: static;
    display: block;
    grid-template-rows: none;
    background-color: #FFD9DD;
    box-shadow: none;
  }
  
  .headerNav > ul {
    display: flex !important;
    flex-direction: row !important;
    font-size: 100%;
  }
}
