:root {
    --side-space: 20px;
}

html,
body {
    font-family:
        "YakuHanJP",
        "Zen Kaku Gothic Antique",
        "Hiragino Sans",
        "Hiragino Kaku Gothic ProN",
        "Noto Sans JP";
    background-color: #f1f1f1;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

.kana-tight {
    letter-spacing: -0.1em;
    /* カタカナだけ詰める */
    font-feature-settings: "palt" 1;
    /* プロポーショナル字形をON */
}

.navbar-items {
    width: 4.25rem;
}

/* ヘッダー */
#main-header {
    height: 64px;
    z-index: 200;
}

#main-header .nav-item svg {
    width: 18px;
    height: 18px;
    vertical-align: baseline;
}

#main-header .main-header-item {
    flex: 1;
    min-width: 0;
}

/* 余計な中央寄せを解除 */
#main-header .main-header-item {
    display: flex;
    justify-content: flex-start;
}

/* brandは基本触らなくてOK */
#main-header .navbar-brand {
    margin-right: auto;
    /* ← これがBootstrap流左寄せ */
}


.site-header {
    background: var(--bs-white);
    height: 60px;
}

/* ヘッダナビアイコン */
.nav-icon {
    color: #0092D7;
}

.nav-link span {
    color: #000;
    transition: color 0.2s ease;
}

.nav-link:hover span {
    color: #0092D7;
}

/* ハンバーガーメニュー */
.hamburger-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn .bar {
    display: block;
    width: 30px;
    height: 2px;
    margin: 6px 0 0 0;
    background-color: #000;
    transition: 0.3s;
}

.hamburger-btn .menu-label {
    font-size: 12px;
    margin-top: 3px;
    color: #000;
}

/* 開閉アニメーション */
.hamburger-btn.active .top {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .middle {
    opacity: 0;
}

.hamburger-btn.active .bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* PCでは非表示 */
.btn-hamburger {
    display: none;
}

.menu-category {
    padding: 0;
    margin: 0;
}

.menu-category li {
    list-style: none;
}

.menu-category .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    /* 左右の余白 */
    border-bottom: 1px solid #e8e8e8;
    /* グレー1pxライン */
    color: #000;
    transition: color 0.2s ease;
}

.menu-category .nav-link:hover {
    color: #0092D7;
}

.menu-category .arrow {
    font-weight: bold;
    color: #000;
    margin-left: 0.5rem;
    /* 矢印とテキストの間隔 */
}

.menu-category+.menu-category {
    margin-top: 1rem;
    /* カテゴリ間の余白 */
}

.navbar-nav .dropdown-menu {
    position: static;
    border: none;
}

#offcanvasNavbar .nav-item span {
    font-size: 1em;
}

/* スマホ・タブレット表示 */
@media (max-width: 767.98px) {
    .btn-hamburger {
        display: flex;
        /* フレックスで中身を縦に揃える */
        flex-direction: column;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        gap: 4px;
    }

    .btn-hamburger .bar {
        width: 25px;
        height: 2.5px;
        background-color: #000;
        border-radius: 2px;
        transition: all 0.3s ease;

    }

    .hamburger-text {
        font-size: 10px;
        margin-top: 2px;
        letter-spacing: 1px;
        color: #000;

    }

    .offcanvas {
        max-width: 80vw;
    }

    #offcanvasNavbar .nav-item span {
        font-weight: 500;
        font-size: 18px;
    }

    #offcanvasNavbar .dropdown-item {
        font-weight: 500;
        font-size: 18px;
    }

    /* .back-to-top {
        display: none !important;
    } */

    .fs-5_5 {
        font-size: 0.85rem !important;
    }
}


/* 共通カードリンク */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link .card {
    transition: all 0.3s ease;
    /* opacityはカード全体では使わない */
}

/* ホバー時 → 影だけ追加 */
.card-link:hover .card {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
}

/* 新着製品情報カード */
.product-card {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    border-radius: 8px 8px 0 0 !important;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.product-card:hover .card-img-top {
    filter: brightness(85%);
}

.prod-price {
    font-size: 0.95rem;
    font-weight: 500;
}

.prod-price .price-num {
    font-size: 1.5em;
    font-weight: 700;
}

/* New!ラベル */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3em 0.7em 0.4em;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    /* hover影響外 */
    z-index: 10;
    /* バッジを上に表示 */
}

.prod-card[data-is-top=true] {
    .new-badge {
        display: block;
    }
}

.prod-card[data-is-top=false] {
    .new-badge {
        display: none;
    }
}

/* PickUp画像 */
.card .card-img-top {
    border-radius: 36px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* 新着製品情報カード専用 */
.product-card {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card .card-body p,
.product-card .card-body h5,
.product-card .card-body .fs-7 {
    color: #000 !important;
    /* PickUpカードホバーの白文字を上書き */
}

.card-link:hover .product-card .card-img-top {
    filter: brightness(90%);
}

.card-link:hover .card-img-top {
    filter: brightness(85%);
}

.card-link:hover .card-body p,
.card-link:hover .card-body svg {
    color: #0092D7;
    fill: #0092D7;
}

/* カードリンクのフォーカス枠を消す */
.card-link {
    outline: none;
}

/* お知らせ */
#news {
    position: relative;
    z-index: 100;
}

#newsList {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.5s ease;
}

#newsList li {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
}

#news {
    font-size: clamp(0.8rem, 2vw, 1rem);
}

#news .carousel-inner {
    margin: auto auto;
    max-width: 80%;
}

#nextBtn,
#prevBtn {
    background: transparent;
    opacity: 1;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    top: 50%;
    transform: translateY(-50%);
}

#nextBtn:hover,
#prevBtn:hover {
    /* ほんのり白背景 */
    background: rgba(255, 255, 255, 0.2);
}

/* アコーディオンの枠線をなくす */
.accordion-item {
    border: none;
}

/* アコーディオンのタイトルボタン */
.accordion-button {
    background-color: #fff;
    /* 初期背景 */
    color: #333;
    /* テキスト色 */
    border: none;
    /* 枠線を消す */
    box-shadow: none;
    /* Bootstrapが付ける影を消す */
    transition: background-color 0.2s ease;
}

/* 開いているときのスタイル */
.accordion-button:not(.collapsed) {
    background-color: #414141;
    color: #ffffff;
    box-shadow: none;
}

/* 開いているときの矢印を白に */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
}

/* クリックやフォーカス時の色調整 */
.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

/* ボディ部分 */
.accordion-body {
    background-color: #ffffff;
    padding: 2rem 0.5rem;
    line-height: 1.8;
}


/* フッター：右要素 */
.lh-xl {
    line-height: 2.3 !important;
}

.text-xs {
    font-size: 0.75rem;
}

/* フッター：トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: var(--side-space);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 12px 16px;
    background: #000;
    color: #fff;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    /* 表示時のみクリック可能に */
}

/* フッター：FCGロゴ */
.footer-logo {
    text-align: end;
    width: 200px;
    height: 24px;
}

/* フォント指定 */
.zen-kaku-gothic-antique-bold {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    font-style: normal;
}

.zen-kaku-gothic-antique-black {
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* サイト全体のリンク共通スタイル */
a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #0092D7;
}

a.text-white:hover,
a.text-white:focus {
    color: #0092D7 !important;
    /* Bootstrapの白を上書き */
}

/* セクション上下余白の共通スタイル */
.py-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.fs-7 {
    font-size: 0.78em !important;
    font-weight: 700 !important;
    letter-spacing: -0.05em !important;
}

.fs-base {
    font-size: 1rem !important;
    font-weight: 300 !important;
    line-height: 1.65rem !important;
}