@charset "UTF-8";

/* =========================================
   Google Fonts 読み込み (Urbanist用)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;700&display=swap');

/* =========================================
   ヘッダー全体（スクロール追従・白背景）
========================================= */
.l-header {
  position: sticky; /* スクロールでついてくる設定 */
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* 白背景 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 境界を明確にするごく薄い影 */
  z-index: 100;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  position: relative; /* PCの中央配置の基準 */
}

.l-header__logo a {
  font-size: 24px;
  font-weight: bold;
  color: #1F1F1D;
  text-decoration: none;
}

/* =========================================
   PC環境（768px以上）
========================================= */
@media screen and (min-width: 768px) {
  
  /* コンテンツを中央に配置し、高さをヘッダーに合わせる */
  .l-header__nav {
    position: absolute;
    left: 50%;
		transform: translateX(-50%);
		width: max-content;
    height: 100%; /* 親（高さ70px）に対して100%の高さを持たせる */
  }

  .l-header__list {
    display: flex;
    align-items: center; /* リスト全体を上下中央揃え */
    height: 100%;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .l-header__item {
    position: relative;
/*    height: 100%;*/
/*    display: flex;*/
    align-items: center; /* テキストを完全に上下中央揃え */
  }

  .l-header__item-title {
    cursor: pointer; /* PCではテキストオンマウスを前提とするためカーソルを変更 */
  }

  .l-header__item-title a,
	.l-header__item > a {
		font-size:17px;
    display: block;
    color: #1F1F1D;
    text-decoration: none;
/*    font-weight: bold;*/
    /* 上下のpaddingを外し、Flexboxの中央揃えに任せることでズレをなくす */
  }

  /* ★PCでは矢印を非表示にする★ */
  .l-header__dropdown-icon {
    display: none;
  }

  /* ドロップダウンメニューの初期状態（非表示） */
  .l-header__dropdown {
    position: absolute;
    top: 100%; /* ヘッダーの真下に配置 */
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 200px;*/
	width: max-content;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    
    /* ホバーアニメーション用 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* テキスト（.has-dropdown要素）へのオンマウスで表示 */
  .has-dropdown:hover .l-header__dropdown {
    opacity: 1;
    visibility: visible;
  }

	.l-header__dropdown a {
		font-size: 17px;
    display: block;
    padding: 12px 20px;
    color: #1F1F1D;
    text-decoration: none;
  }

  .l-header__dropdown a:hover {
    background-color: #f5f5f5;
  }
}

/* =========================================
   スマホ環境（767px以下）
========================================= */
@media screen and (max-width: 767px) {
  
  /* --- ハンバーガーボタン --- */
  .l-header__hamburger {
    /* ★修正：positionをabsoluteにして右上に完全に固定、z-indexを最大値にして最前面へ */
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999; 
  }

  .l-header__hamburger span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #1F1F1D;
    transition: all 0.3s ease;
  }

  .l-header__hamburger span:nth-of-type(1) { top: 10px; }
  .l-header__hamburger span:nth-of-type(2) { top: 19px; }
  .l-header__hamburger span:nth-of-type(3) { top: 28px; }

/* 開いている時の「×」ボタン全体の装飾 */
  .l-header__hamburger.is-active {
    background-color: #1F1F1D; /* 背景色（アクセントカラーに変更してもOK） */
    border-radius: 50%;        /* まん丸にする */
    transform: scale(1.1);     /* ほんの少しだけ大きくして目立たせる */
  }

  /* 開いている時の「×」の線を白にする */
  .l-header__hamburger.is-active span:nth-of-type(1) {
    top: 19px;
    transform: rotate(45deg);
    background-color: #ffffff; /* ★線の色を白に上書き */
  }
  .l-header__hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
  }
  .l-header__hamburger.is-active span:nth-of-type(3) {
    top: 19px;
    transform: rotate(-45deg);
    background-color: #ffffff; /* ★線の色を白に上書き */
  }

/* --- 画面の幅のドロワーメニュー（左から右へスライド） --- */
  .l-header__nav {
    position: fixed;
    top: 0;
    left: -100%; /* 初期状態を「左側の画面外」に配置 */
    width: 85%;   
    height: 100vh;
    background-color: #ffffff;
    padding-top: 0; 
    overflow-y: auto;
    transition: left 0.3s ease; /* アニメーションの対象を left に変更 */
    z-index: 110;
  }

  .l-header__nav.is-open {
    left: 0; /* メニュー展開時は左端にぴったり合わせる */
  }

  /* --- ★追加：ドロワー内のヘッダーエリア（ロゴとボタン） --- */
  .l-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px; /* 本体のヘッダー（×ボタン）と高さを揃える */
    padding: 0 20px;
    border-bottom: 1px solid #eeeeee;
  }

  .l-header__drawer-logo a {
    font-size: 20px;
    font-weight: bold;
    color: #1F1F1D;
    text-decoration: none;
  }

  .l-header__drawer-icons {
    display: flex;
    gap: 12px;
  }

  /* カート・資料請求の仮ボタンスタイル（画像に差し替える場合は適宜調整） */
  .l-header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: 12px;
    background-color: #f5f5f5;
    color: #1F1F1D;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
  }

  /* --- 既存のリストやアコーディオンの設定（変更なし） --- */
  .l-header__list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .l-header__item {
    border-bottom: 1px solid #eeeeee;
  }

  .l-header__item-title,
  .l-header__item > a {
    display: flex;
/*    justify-content: space-between;*/
    align-items: center;
    padding: 16px 20px;
    color: #1F1F1D;
    text-decoration: none;
/*    font-weight: bold;*/
  }

  .l-header__dropdown {
    display: none; 
    background-color: #f9f9f9;
    list-style: none;
    padding: 0;
    margin: 0;
  }

	.l-header__dropdown a {
    display: block;
    padding: 12px 20px 12px 30px;
    color: #1F1F1D;
    text-decoration: none;
    border-bottom: 1px solid #eeeeee;
  }

  .l-header__dropdown-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #1F1F1D;
    border-bottom: 2px solid #1F1F1D;
    transform: rotate(45deg);
		transition: transform 0.3s ease;
		position: absolute;
        right: 5%;
  }

  .has-dropdown.is-open .l-header__dropdown-icon {
    transform: rotate(-135deg);
  }

  /* --- ハンバーガーメニュー外の背景 --- */
  .l-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 105;
  }

  .l-header__overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
}