@charset "UTF-8";

/* ベース設定 */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    /* ヘッダーの高さ分調整（PC用） */
    padding-top: 40px; 
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}
a:hover { opacity: 0.7; }

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img{
    width: 200px;
    vertical-align: bottom; /* 画像下の余白消し */
}

/* ナビゲーション基本 */
.global-nav__list {
  display: flex;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.global-nav__list-a {
  text-decoration: none;
  color: #333;
  position: relative;
  padding: 15px 15px 5px 15px;
  display: block; /* 修正: クリック範囲確保 */
}

/* 下線アニメーション */
.global-nav__list-a:not(.btn-cart)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0056b3;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.global-nav__list-a:not(.btn-cart):hover::after {
  transform: scaleX(1);
}

/* カートボタン */
.btn-cart {
  display: inline-block;
  background-color: #0056b3;
  color: #fff !important;
  padding: 15px 30px;
  margin-left: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
  line-height: 1;
}
.btn-cart:hover {
  background-color: #004494; /* 色の変化を微調整 */
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* カートボタンのアイコン調整 */
.btn-cart i {
    margin-right: 8px; /* アイコンの右側に隙間を作る */
    font-size: 1.1em;  /* アイコンだけ少し大きくする（お好みで） */
}

/* --- メガメニュー（ドロップダウン）設定 --- */
.global-nav li.has-dropdown {
    position: relative;
    /* PCのみホバーで表示するための基点 */
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    overflow: hidden;
}

/* PC: ホバー時表示 */
@media screen and (min-width: 769px) {
    .global-nav li.has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-inner {
    display: flex;
    padding: 20px 0;
}

.dropdown-col {
    width: 50%;
    padding: 0 20px;
    position: relative;
}

.dropdown-col:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #eee;
}

.col-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #0056b3;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef4f9;
    letter-spacing: 0.05em;
}

.col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col-list ul {
  padding: 5px;
}

.col-list li {
    padding: 5px; /* ★修正: pading -> padding */
    margin-bottom: 2px;
}

.col-list li a {
    display: block;
    padding: 8px 10px;
    color: #555;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    border-bottom: none !important; 
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}
.col-list li a:hover {
    background-color: #f4f8fb;
    color: #0056b3;
    transform: translateX(5px);
}

/* 吹き出しの三角（PCのみ表示） */
@media screen and (min-width: 769px) {
    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #fff;
    }
}

/* ------------------------------------------- */
/* ★追加：レスポンシブ（スマホ）対応 CSS */
/* ------------------------------------------- */

/* ハンバーガーボタン（初期は非表示） */
.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001; /* メニューより上 */
}

@media screen and (max-width: 768px) {
    /* ボディのパディング調整 */
    body {
        padding-top: 60px;
    }
    
    .logo img {
        width: 140px; /* スマホではロゴを小さく */
    }

    /* ハンバーガーボタン表示 */
    .nav-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background:#0056b3;
        position: absolute;
        transition: all 0.3s;
    }
    .nav-toggle span:nth-child(1) { top: 0; }
    .nav-toggle span:nth-child(2) { top: 9px; }
    .nav-toggle span:nth-child(3) { bottom: 0; }

    /* メニュー開いた時のハンバーガー変形（×印） */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    /* ナビゲーション本体（スマホ時は隠す→スライドイン） */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%; /* 画面外へ */
        width: 85%;   /* 画面の8割 */
        height: 100vh;
        background: #fff;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px; /* 上部余白 */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .global-nav.active {
        right: 0; /* 表示 */
    }

    .global-nav__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .global-nav__list > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    /* カートボタンの調整 */
    .btn-cart {
        margin: 20px;
        display: block;
        text-align: center;
        width: calc(100% - 120px); /* 左右余白調整 */
    }

    /* スマホでのドロップダウン（常に表示、またはアコーディオン的に配置） */
    .dropdown-menu {
        position: static; /* 絶対配置解除 */
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid #f0f0f0;
        background: #f9f9f9;
        display: none; /* JSで開閉切り替え推奨だが、今回は簡易的にCSSのみなら常時表示も検討 */
    }
    /* スマホで「商品をさがす」の中にメニューがあることを示す */
    .has-dropdown .global-nav__list-a::after {
        display: none; /* 下線アニメーション削除 */
    }
    
    /* スマホレイアウト：カラムを縦積みに */
    .dropdown-inner {
        flex-direction: column;
        padding: 0;
    }
    .dropdown-col {
        width: 100%;
        padding: 15px 20px;
    }
    .dropdown-col:first-child::after {
        display: none; /* 区切り線消去 */
    }
    
    /* スマホでアクティブ時にドロップダウンを表示するCSSクラス（JSで制御用） */
    .has-dropdown.open .dropdown-menu {
        display: block;
    }
    
    /* 背景の黒マスク */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 900;
        display: none;
    }
    .nav-overlay.active {
        display: block;
    }
}

/* メインビジュアルエリア */

.hero-section {

    background: #f4f8fb; /* 薄い青背景 */

    padding: 60px 0;

    text-align: center;

}

.hero-inner {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 40px;

    flex-wrap: wrap;

}

.hero-text h1 {

    font-size: 2.5rem;

    color: #0056b3;

    margin-bottom: 10px;

}

.hero-text p {

    font-size: 1.1rem;

    font-weight: bold;

}



/* ガイドライン説明 */

.guideline-section {

    padding: 50px 0;

    text-align: center;

}

.guideline-text {

    max-width: 800px;

    margin: 0 auto;

    text-align: left;

}



/* ターゲット別ボタン */

.target-section {

    background: #fff;

    padding: 40px 0;

    text-align: center;

}

.target-buttons {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin-top: 20px;

}

.target-btn {

    display: block;

    width: 300px;

    padding: 30px;

    background: #eef4f9;

    border: 2px solid #dae6f1;

    border-radius: 10px;

    color: #0056b3;

}



/* カテゴリ一覧 */

.category-section {

    background: #f9f9f9;

    padding: 60px 0;

}

.category-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

}

.category-card {

    background: #fff;

    padding: 20px;

    border: 1px solid #eee;

    border-radius: 8px;

    text-align: center;

}

.category-card h3 {

    color: #0056b3;

    border-bottom: 2px solid #0056b3;

    display: inline-block;

    padding-bottom: 5px;

}



/* フッター */

.site-footer {

    background: #333;

    color: #fff;

    padding: 40px 0;

    text-align: center;

}