/* ヘッダーとフッターのスタイル設定 */
header,
.footer,
.nav-links,
.footer-links,
.main-link {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    /* Bold指定 */
}


/* ====== General Styles ====== */
body,
h1,
h2,
h3,
p,
ul,
li,
a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

.menu-toggle {
    display: none;
}

.sp {
    display: none;
}

/* ====== Navigation Bar ====== */
header {
    background-color: #fff;
    /* 背景色を透明に */
    position: fixed;
    /* 背景画像の上に配置 */
    width: 100%;
    height: 75px;
    top: 0;
    left: 0;
    z-index: 1000;
    /* 他の要素より前面に表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
}

.arrow {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid white;
    border-top: 1.5px solid white;
    transform: rotate(135deg);
    vertical-align: middle;
    margin-left: 5px;
    /* 矢印とテキストの間にスペースを追加 */
    position: relative;
    top: -4px;
    /* テキストの高さに矢印を合わせるために微調整 */
}

.logo img {
    height: 65px;
    /* ロゴのサイズを調整 */
    position: absolute;
    left: 50px;
    top: 5px;
    overflow: hidden;
}

/* ナビゲーションのスタイル */
.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    height: auto;
    position: fixed;
    top: 15px;
    left: 25%;
    width: 100%;
    z-index: 1000;
    /* overflow: hidden; */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-item .main-link:hover{
    color: #fff;
}

.nav-links li {
    position: relative;
    padding: 0;
    min-width: 150px;
    /* 各リンクの最小幅を設定 */
}

/* メインメニューの各項目を区切る縦線を設定 */
.nav-links>li {
    position: relative;
    /* 縦線の位置を設定するために relative を指定 */
    /* border-right: 1px solid #fff; */
    /* 縦線の色を白に設定 */
}


/* 最後のメニュー項目の縦線を削除 */
.nav-links>li:last-child {
    border-right: 1px solid;
    /* 最後の項目の縦線を削除 */
}

.nav-links li.menu-usage {
    /* 「使い方」専用のクラスで幅を調整 */
    min-width: 200px;
    /* 使い方の幅を広げる */
}

/* メインリンクのスタイル */
.main-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    /* メインリンクの色を白に */
    background-color: #fff;
    /* 背景を半透明の緑色に */
    padding: 0.5rem 2.5rem;
    display: block;
    text-align: center;
    /* テキストを中央に配置 */
    transition: background-color 0.3s;
    letter-spacing: 0.1em;
    border-left: 1px solid;

}

.main-link:{
    border-right: 1px solid;
}

/* メインメニューのホバー時のスタイル */
.menu-item:hover>.main-link {
    background-color: #3b9e11;
    /* ホバー時の背景色を変更 */
}

/* 矢印のスタイル */
.arrow,
.sub-arrow {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* サブメニューのスタイル */
.dropdown {
    display: none;
    /* 初期状態で非表示 */
    position: absolute;
    width: 100%;
    /* サブメニューを親メニューの幅に合わせる */
    background-color: #fff;
    /* サブメニューの角を直角に */
    top: 100%;
    /* メインメニューの下に表示 */
    left: 0;
}

/* サブメニューのスタイル */
.dropdown :hover {
    background-color: #F2F2F2;
}

/* サブメニューのアイテムを縦並びに */
.dropdown.vertical {
    flex-direction: column;
}

/* サブメニューリンクのスタイル */
.dropdown li {
    padding: 10px 20px;
    /* 各サブメニューリンクのパディングを調整 */
    border-bottom: 1px solid #fff;
    /* 下線を追加 */
}

.dropdown li a {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #3C3C3C;
    /* サブメニューリンクの色を設定 */
    display: flex;
    justify-content: space-between;
    /* テキストと矢印を両端に配置 */
    align-items: center;
    /* 矢印とテキストの高さを揃える */
    border-right: none;
}


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

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

/* サブメニューの矢印スタイル */
.sub-arrow {
    color: #323232;
}

.sub-arrow:hover {
    color: #4BC314;
    /* テキストの色を変更 */
}

/* サブメニューをホバー時に表示 */
.menu-item:hover .dropdown {
    display: block;
    /* ホバー時にサブメニューを表示 */
}

/* 購入リンクボタンのスタイル */
.purchase-button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* ボタン内のコンテンツを中央に配置 */
    gap: 10px;
    background-color: #FF5A00;
    color: #fff;
    padding: 1.5rem 1.5rem;
    /* 上下のパディングを調整して縦を長くする */
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0 0 0 15px;
    /* 元の角丸スタイルを維持 */
    position: fixed;
    /* ボタンを画面の右上に固定 */
    top: 0px;
    /* 上からの位置を調整 */
    right: 0px;
    /* 右からの位置を調整 */
    z-index: 1001;
    /* 他の要素の上に表示 */
    transition: background-color 0.3s;
    letter-spacing: 0.1em;
    text-align: center;
    /* テキストを中央揃え */
}

.purchase-button img {
    width: 30px;
    /* アイコンの大きさを調整 */
    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-logo-right {
    flex: 1;
    /* 左端に配置する */
    text-align: right;
    /* 左揃え */
}

.footer-g-master {
    flex: 1;
    /* 左端に配置する */
    text-align: right;
    /* 左揃え */
}

.footer-g-master img {
    height: 50px;
    /* 画像の高さを調整 */
    width: auto;
    /* 幅は自動調整 */
}

.footer-logo img  {
    height: 50px;
    /* 画像の高さを調整 */
    width: auto;
    /* 幅は自動調整 */
}

/* リンクのスタイル */
.footer-links {
    flex: 3;
    /* リンクエリアの幅を広くする */
    text-align: center;
    /* リンクを中央揃えに */
}

.footer-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
    /* リンクを垂直方向に中央揃え */
    /* transform: translateX(-15%); */
    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;
    /* 文字間隔を指定 */
}

@media(max-width:1600px){
    .main-link {
        font-size: 1.0rem;
        padding: 0;
        letter-spacing: 0.1em;
        border-left: 1px solid;
    }

    .purchase-button {
        padding: 23px 5px;
        font-size: 0.8rem;
    }

    .nav-links {
        top: 25px;
        left: 30%;
        width: 100%;
    }
}

@media screen and (max-width: 959px) {
    /* 959px以下に適用されるCSS（タブレット用） */
}

@media screen and (max-width: 1200px) {
    .purchase-button-menu {
        display: inline-block; /* 画像とテキストを横に並べる */
        font-size: 1rem;
        font-weight: bold;
        text-decoration: none;
        color: #ffffff;
        background-color: #ff6f00;
        padding: 10px 15px; /* スマホ用にパディングを調整 */
        border-radius: 5px;
        vertical-align: middle; /* 画像と文字を垂直方向に揃える */
        line-height: 1; /* 高さを揃える */
        width: 45%; /* スマホ用の幅 */
        height: 50%; /* スマホ用の高さ */
        display: flex;
        align-items: center;
        gap: 0.25em;
    }

    .purchase-button-img {
        display: inline-block;
        vertical-align: middle; /* 画像をテキストと同じラインに揃える */
        width: 24px; /* スマホ用の画像幅に調整 */
        height: auto; /* 高さを自動調整 */
        margin-right: 8px; /* 画像とテキストの間にスペースを追加 */
    }
}


@media screen and (max-width: 1200px) {



    .sp {
        display: flex;
    }

    .pc {
        display: none;
    }

    header {
        overflow-x: hidden;
        background-color: #fff;
        height: auto;
        z-index: 1003;
        height: 30px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        /* 全体を右側に揃える */
        align-items: center;
        position: fixed;
    }

    

    /* トグルボタンとカートボタンを同じ行に配置 */
    .button-container {
        display: flex;
        align-items: center;
        /* 垂直方向に中央揃え */
        justify-content: flex-end;
        /* カートボタンを右側に配置し、その左にトグルボタンを配置 */
    }

    /* ハンバーガーメニューのデザイン */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 40px;
        /* ボタン全体の幅 */
        height: 45px;
        /* ボタン全体の高さ */
        cursor: pointer;
        /* ポインターを表示 */
        margin-right: 35px;
        /* ボタン右側に余白を設定 */
    }

    /* ハンバーガーラインのスタイル */
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2.2px;
        /* 線の太さ */
        background-color: #4BC314;
        /* 線の色を調整 */
        border-radius: 2px;
        /* 丸みを付ける */
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    /* トグルボタンのホバー時の色変更 */
    .menu-toggle:hover span {
        background-color: #3b9e11;
    }

    /* 480px以下に適用されるCSS（スマホ用） */
    .nav-links {
        display: none;
    }


    .logo img {
        max-height: 55px;
        top: 10%;
        left: 2%;
    }

    .purchase-button {
        width: 70px; /* スマホ用の幅 */
        height: 70px; /* スマホ用の高さ */
        font-size: 0; /* テキストを非表示にする */
    }

    .purchase-button img {
        margin-right: 0; /* アイコンとテキストの間のスペースをなくす */
        width: 35px; /* スマホでもアイコンの幅を維持 */
    }

    .purchase-button {
        z-index: 1001;
        font-size: 0;
        width: 70px;
        height: 64px;
        display: flex;
        justify-content: center;
        /* 水平方向に中央揃え */
        align-items: center;
        /* 垂直方向に中央揃え */
        padding: 10px;
        /* ボタン内に適度な余白を追加 */
    }

    /* ボタン内のアイコンのスタイル */
    .purchase-button-menu img {
        /* width: 35px; */
        /* アイコンの幅 */
        height: auto;
        /* 高さを自動調整 */
        justify-content: center;
        align-items: center;
    }

    /* 購入ボタンホバー時のスタイル */
    .purchase-button:hover {
        background-color: #e65c00;
        /* ホバー時の色を変更 */
    }

    .footer {
        padding: 25px 0;
    }


    .footer-container {
        flex-direction: column;
        /* コンテナ内の要素を縦並びに */
        align-items: center;
        /* 要素を中央に配置 */
    }

    .footer-logo {
        margin-bottom: -1.5rem;
        /* 画像の下に余白を追加 */
    }

    .footer-links {
        display: none;
    }

    .footer-links li {
        margin: 0.5rem 0;
        /* 各リンク間に余白を設定 */
    }

    .footer-links ul {
        display: none;
    }

    

}