@charset "UTF-8";

/* ========================================
   PC版ヘッダー
======================================== */
#header { height: -60px; }
header { 
  width: 100%; 
  position: fixed; 
  top: 0; 
  z-index: 9999; 
  height: 60px; 
  padding: 0; 
  margin: 0; 
}

.nav-toggle { display: none; }

header .area { 
  width: 100%; 
  padding: 0; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

header .area .logo { 
  width: 330px; 
  padding-left: 20px; 
}

header .area .logo a img { 
  width: 100%; 
}

header .area nav { 
  color: #fff; 
}

header .area nav ul { 
  width: 100%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 0; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

header .area nav ul li { 
  font-size: 14px; 
  letter-spacing: 1px; 
  display: inline-block; 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  padding: 0 10px; 
}

header .area nav ul li span.furigana { 
  font-size: 10px; 
  opacity: 0.8; 
  font-weight: normal; 
  text-align: center; 
  display: block; 
  width: 100%; 
  padding-top: 5px; 
  letter-spacing: 1px; 
}

header .area nav ul li::after { 
  content: ""; 
  position: absolute; 
  right: 0; 
  top: 20%; 
  height: 60%; 
  width: 1px; 
  background: rgba(255,255,255,0.7); 
  z-index: 1; 
  transition: background 2.3s; 
}

header .area nav ul li:not(:nth-last-child(-n+2))::after { 
  display: block; 
}

header .area nav ul li:nth-last-child(-n+2)::after { 
  display: none !important; 
}

header .area nav ul li::before { 
  content: ""; 
  position: absolute; 
  top: -15px; 
  right: -0px; 
  width: 10px; 
  height: 10px; 
  background: url('../img/header-menu-flower.png') no-repeat center/contain; 
  pointer-events: none; 
  z-index: 2; 
  opacity: 0; 
  filter: blur(6px); 
  transition: opacity 1.2s, filter 1.2s; 
}

header .area nav ul li:hover::before { 
  opacity: 0.9; 
  filter: blur(0); 
  transition: opacity 1.5s, filter 1.5s; 
}

header .area nav ul li a { 
  transition: color 1.2s; 
  color: #fff; 
}

header .area nav ul li a:hover { 
  color: #e5c9d4; 
}

header .area nav ul a.contact { 
  padding: 40px 10px; 
  background: #76384d; 
  color: #fff; 
  border-radius: 0 0 0 30px; 
  transition: background 0.3s, color 0.3s, border-radius 0.4s; 
}

header .area nav ul a.contact:hover { 
  background: #e5c9d4; 
  color: #76384d; 
  border-radius: 0; 
  opacity: 1; 
}

/* ヘッダーロゴ切り替え用 */
#header-logo { 
  transition: opacity 0.3s; 
}

#header-logo.fade { 
  opacity: 0; 
}

header.scrolled .area nav, 
header.scrolled .area nav ul li a { 
  color: #514545; 
}

header.scrolled .area nav ul li::after { 
  background: rgba(81,69,69,0.7); 
}

@media screen and (max-width: 1170px) and (min-width: 1051px) {
  header .area .logo {
    width: 250px;
  }
}

/* ========================================
   スマホ版ヘッダー
======================================== */
@media screen and (max-width: 1050px) { 
  #header { height: 0px; } 
  
  header { 
    width: 100%; 
    position: fixed; 
    top: 0; 
    z-index: 999; 
    height: 0px; 
    padding: 15px 0 0 0; 
    margin: 0; 
  } 
  
  header .area .logo { 
    width: 190px; 
    padding-left: 15px; 
  } 
  
  header .area .logo img { 
    width: 100%; 
  } 
  
  /* ナビゲーション */
  header nav { 
    width: 85%; 
    max-width: 320px; 
    height: 100vh; 
    background: #76384d; 
    position: fixed; 
    top: 0; 
    right: -100%; 
    display: block; 
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 9998; 
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3); 
  } 
  
  header.open nav { 
    right: 0; 
  } 
  
  header nav ul { 
    width: 100%; 
    margin: 0; 
    padding: 100px 0 40px 0; 
    list-style: none; 
    text-align: left; 
    position: static; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
    height: auto; 
    min-height: 100%; 
  }
  
  /* お問い合わせボタンの下に余白を追加 */
  header nav ul a.contact { 
    margin-bottom: 40px !important; 
  }
  
  /* お問い合わせボタンの下線を削除 */
  header nav ul li.contact { 
    border-bottom: none !important; 
    padding-bottom: 0 !important; 
  } 
  
  header nav ul li { 
    display: block; 
    margin: 0; 
    text-align: left; 
    line-height: 1.4; 
    padding: 0; 
    width: 100%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    position: relative; 
    box-sizing: border-box; 
  } 
  
  header nav ul li::before { 
    display: none !important; 
  } 
  
  header nav ul li:hover::before { 
    display: none !important; 
  } 
  
  header nav ul li a { 
    font-size: 17px; 
    position: relative; 
    width: 100%; 
    display: block; 
    padding: 20px 35px; 
    color: #fff; 
    letter-spacing: 2.5px; 
    transition: all 0.3s ease; 
    z-index: 2; 
    font-weight: 400; 
    text-align: center; 
  } 
  
  header nav ul li span.furigana { 
    font-size: 11px; 
    opacity: 0.6; 
    padding-top: 8px; 
    display: block; 
    letter-spacing: 1.5px; 
    font-weight: 300; 
    text-align: center; 
  } 
  
  header nav ul li a:hover { 
    color: #fff; 
    background-color: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); 
    transition: all 0.3s ease;
  }
  
  /* お問い合わせボタン（スマホ版専用） */
  header nav ul a.contact { 
    background: transparent !important; 
    padding: 20px 35px !important; 
    margin-top: 0 !important; 
    margin-bottom: 0 !important; 
    border: none !important; 
    border-radius: 0 !important; 
    position: relative !important; 
    display: block !important; 
    width: 100% !important; 
    font-size: 17px !important; 
    letter-spacing: 2.5px !important; 
    transition: all 0.3s ease !important; 
    z-index: 2 !important; 
    font-weight: 400 !important; 
    text-align: center !important; 
    color: #fff !important; 
  }
  
  /* PC版のスタイルを完全に上書き */
  header .area nav ul li.contact { 
    font-size: 17px !important; 
    letter-spacing: 2.5px !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: block !important; 
    flex-direction: unset !important; 
    align-items: center !important; 
    text-align: center !important; 
  } 
  
  header nav ul a.contact:hover { 
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important; 
    transform: none !important; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important; 
    border-radius: 0 !important; 
    transition: all 0.3s ease !important;
  }
  
  /* ハンバーガーメニュー */
  .nav-toggle { 
    display: block; 
    position: absolute; 
    right: 5%; 
    top: 20px; 
    width: 45px; 
    height: 25px; 
    cursor: pointer; 
    z-index: 10001; 
  } 
  
  .nav-toggle span { 
    display: block; 
    position: absolute; 
    height: 2.6px; 
    width: 100%; 
    background-color: #76384d; 
    left: 0; 
    transition: .25s ease-in-out; 
  } 
  
  .nav-toggle span:nth-child(1) { 
    top: 0px; 
    width: 40px; 
  } 
  
  .nav-toggle span:nth-child(2) { 
    top: 7px; 
    width: 40px; 
  } 
  
  .nav-toggle span:nth-child(3) { 
    top: 14px; 
    width: 40px; 
  } 
  
  /* ハンバーガーメニューアニメーション */
  header.open .nav-toggle span:nth-child(1) { 
    top: 4px; 
    transform: rotate(35deg); 
    background-color: #fff; 
  } 
  
  header.open .nav-toggle span:nth-child(2) { 
    opacity: 0; 
    background-color: #fff; 
  } 
  
  header.open .nav-toggle span:nth-child(3) { 
    top: 4px; 
    transform: rotate(-35deg); 
    background-color: #fff; 
  } 
  
  /* オーバーレイ */
  header::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.6); 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease; 
    z-index: 9997; 
    backdrop-filter: blur(3px); 
  } 
  
  header.open::before { 
    opacity: 1; 
    visibility: visible; 
  }
  
  /* スマホ版ではスクロール時の文字色変化を無効化 */
  header.scrolled nav, 
  header.scrolled nav ul li a { 
    color: #fff !important; 
  }
}

@media (max-width: 768px) {
  header .area nav ul {
    padding: 0 10px;
  }
  header .area nav ul li {
    margin: 0;
    padding: 0;
  }
  header .area nav ul li a {
    font-size: 16px;
    padding: 20px 0;
    line-height: 1.3;
    margin: 0;
    display: block;
  }
  header .area nav ul li::after {
    display: none !important;
  }
}

/* ========================================
   第二階層ページ用ヘッダー設定
======================================== */
/* 第二階層ページでは常に黒色表示 */
body.sub-page header .area nav, 
body.sub-page header .area nav ul li a { 
  color: #514545 !important; 
}

body.sub-page header .area nav ul li::after { 
  background: rgba(81,69,69,0.7) !important; 
}



body.sub-page header .area nav ul li a:hover { 
  color: #76384d !important; 
}

/* 第二階層ページのスマホ版設定 */
@media screen and (max-width: 1050px) {
  body.sub-page header nav, 
  body.sub-page header nav ul li a,
  body.sub-page header .area nav,
  body.sub-page header .area nav ul li a { 
    color: #fff !important; 
  }
  
  body.sub-page .nav-toggle span { 
    background-color: #514545 !important; 
  }
  
  body.sub-page header.open .nav-toggle span { 
    background-color: #fff !important; 
  }
}


