/* ====== フォント設定 ====== */
header.gb114-header,
.footer,
.nav-links,
.footer-links,
.main-link {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
}

/* ====== 基本リセット ====== */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

/* ====== PC/SP 表示切り替え ====== */
.sp          { display: none; }
.menu-toggle { display: none; }

/* ====================================================
   モバイルメニュー（ハンバーガー展開時のオーバーレイ）
   ==================================================== */
.menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 15px 15px 30px;
    z-index: 3000;
    color: #fff;
    overflow-y: auto;
}

.menu.active { display: block; }

/* 管理バー表示時はメニュー開始位置を下げる */
body.admin-bar .menu {
    top: 106px; /* 46px admin bar + 60px header */
    height: calc(100vh - 106px);
}

/* リンク（直接の子のみ。button-container-menu 内は除外） */
.menu > a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
}

.menu > a:hover              { color: #4BC314; }
.menu > a:last-of-type       { border-bottom: none; }

/* メニュー内ボタンエリア */
.button-container-menu {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* お問い合わせボタンはリスト内に既出のため非表示 */
.contact-button-menu { display: none; }

.purchase-button-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #FF5A00;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background-color 0.3s;
}

.purchase-button-menu:hover { background-color: #e65c00; }

.purchase-button-menu img,
.purchase-button-img {
    width: 28px;
    height: auto;
}

/* ====================================================
   PC ヘッダー
   ==================================================== */
header.gb114-header {
    background-color: #fff;
    position: fixed;
    width: 100%;
    height: 75px;
    top: 0;
    left: 0;
    z-index: 1001;
    padding: 0;
    overflow: visible !important;
    box-shadow: 0 1px 0 #eaeaea, 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Arkhe の overflow 干渉を完全に無効化 */
header.gb114-header nav,
header.gb114-header .nav-links,
header.gb114-header .nav-links > li {
    overflow: visible !important;
}

/* 管理バー表示時 */
body.admin-bar header.gb114-header { top: 32px; }

/* nav を flex コンテナに（Arkhe の nav { margin-top:8px } を上書き） */
header.gb114-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 0 0 20px;
    margin: 0;
}

/* ロゴ */
.logo          { flex-shrink: 0; line-height: 0; }

/* 購入ボタンコンテナ（PC）*/
.button-container { display: flex; align-self: stretch; align-items: stretch; flex-shrink: 0; }
.logo img      { height: 60px; width: auto; display: block; }

/* ナビゲーションリンク */
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-links li {
    position: relative;
    min-width: 135px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links li.menu-usage { min-width: 175px; }

/* 縦線セパレータ */
.nav-links > li:last-child { border-right: 1px solid #e4e4e4; }

/* メインリンク */
.main-link {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    background-color: #fff;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    letter-spacing: 0.06em;
    border-left: 1px solid #e4e4e4;
    transition: background-color 0.25s, color 0.25s;
}

.menu-item:hover > .main-link { background-color: #4bc314; color: #fff; }

/* ドロップダウン矢印（▼） */
.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    position: relative;
    top: -2px;
    flex-shrink: 0;
}

/* サブメニュー内矢印（>） */
.sub-arrow {
    color: #323232;
    font-size: 0.9rem;
    margin-left: 8px;
}

.dropdown li a:hover .sub-arrow { color: #4BC314; }

/* ドロップダウン */
.dropdown {
    display: none;
    position: absolute;
    width: 220px;
    background-color: #fff;
    top: 100%;
    left: 0;
    z-index: 9999;
    border-top: 3px solid #4bc314;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.menu-item:hover .dropdown { display: block; }

.dropdown li {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child { border-bottom: none; }

.dropdown li a {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #3C3C3C;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.dropdown li a:hover            { color: #4BC314; }
.dropdown li:hover              { background-color: #F2F2F2; }

/* 購入ボタン（ヘッダーflex内・右端） */
.purchase-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #FF5A00;
    color: #fff;
    padding: 0 1.8rem;
    align-self: stretch;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    border-radius: 0 0 0 18px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: background-color 0.25s;
    flex-shrink: 0;
}

.purchase-button img  { width: 28px; height: auto; }
.purchase-button:hover { background-color: #e65c00; }

/* ====================================================
   フッター
   ==================================================== */
.footer {
    background-color: #323232;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo      { flex: 1; text-align: left; }
.footer-g-master  { flex: 1; text-align: right; }

.footer-logo img,
.footer-g-master img { height: 50px; width: auto; }

.footer-links { flex: 3; text-align: center; }

.footer-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li { position: relative; }

.footer-links li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: #fff;
}

.footer-links a {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #ddd; }

.footer-copyright {
    margin-top: 20px;
    text-align: center;
    color: #fff;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* ====================================================
   モバイル（≤ 1200px）
   ==================================================== */
@media screen and (max-width: 1200px) {

    /* 表示切り替え */
    .sp { display: flex; }
    .pc { display: none; }

    /* ヘッダー */
    header.gb114-header {
        height: 60px;
        z-index: 4000;
    }

    header.gb114-header nav {
        padding: 0 10px 0 10px;
        justify-content: space-between;
    }

    /* ロゴ */
    .logo img { height: 45px; }

    /* PCナビ非表示 */
    .nav-links { display: none; }

    /* ハンバーガーボタン */
    .button-container {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 40px;
        height: 45px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: #4BC314;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle:hover span { background-color: #3b9e11; }

/* 開いたとき ☰ → × */
.menu-toggle.active span:nth-child(1) { transform: translateY(15px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-15px) rotate(-45deg); }

    /* スマホでは購入ボタン非表示 */
    .purchase-button { display: none; }

    /* フッター */
    .footer          { padding: 25px 0; }
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .footer-logo     { margin-bottom: 0; text-align: center; }
    .footer-links    { display: none; }
    .footer-g-master { display: none; }
}

/* 管理バー（狭い画面） */
@media screen and (max-width: 600px) {
    body.admin-bar header.gb114-header { top: 46px; }
}
