/* ベーススタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
    background-color: #c7c7c7;
    font-size: 12px;
    line-height: 2; /* 行間を調整 */
    overflow-x: hidden; /* 横スクロールを無効にする */
    width: 100%;
}


/* 追従ヘッダー */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sticky-header .logo {
    height: 24px;
    margin: 0;
    position: relative;
    top: 5px;
}

/* デフォルト（スマホ表示） */
.main-visual img {
    max-width: 100%;  /* 画像が親要素の幅を超えないように */
    height: auto;
    margin-top: 50px; /* 上部の余白はなし */
    display: block;  /* インライン要素の余白を消すためにブロック表示 */
}

/* PC表示 */
@media (min-width: 1024px) {
    .main-visual img {
        width: 750px;  /* 幅750px */
        height: 750px; /* 高さ750px */
        margin-top: 100px; /* 上部に100pxの余白 */
        display: block;
        margin-left: auto;
        margin-right: auto; /* 中央寄せ */
    }
}


/* 企画概要 */
.summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* 価格別に探す */
.price-filter {
    max-width: 1200px;
    margin: 100px auto;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* ボタンが自動的に折り返されるようにする */
}

.price-btn {
    padding: 10px 20px;
    border: 2px solid #ccc;
    background-color: white;
    color: #222;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    width: 180px;
}

.price-btn:hover {
    background-color: #f0f0f0;
}

/* カラー別に探す */
.color-filter {
    max-width: 1200px;
    margin: 100px auto;
    text-align: center;
}

.color-buttons {
    display: grid;
    gap: 10px;
    justify-content: center; /* これでボタンが中央に寄ります */
}

/* PC表示では12個を横に並べる */
@media (min-width: 1024px) {
    .color-buttons {
        grid-template-columns: repeat(12, 1fr); /* 12個並べる */
    }
}

/* スマホ表示では6個ずつ2行に並べる */
@media (max-width: 768px) {
    .color-buttons {
        grid-template-columns: repeat(6, 1fr); /* 6個ずつ2行 */
    }
}

.color-buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}


/* アイテム紹介 */
.items h2 {
    text-align: center;
    margin: 50px 0 0;
}
.items p {
    text-align: center;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif; /* フォントをスタイリッシュに */
    font-size: 13px;
}


/* リンクの下線を消して文字色を変更しない */
.items a {
    text-decoration: none; /* 下線を消す */
    color: inherit; /* 親要素の色を引き継ぐ（文字色を変えない） */
}

.items a:hover {
    text-decoration: none; /* ホバー時も下線を消す */
    color: inherit; /* ホバー時も文字色を変えない */
}

.items {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.item {
    background-color: #222;
    padding: 5px;
    text-align: center;
    transition: opacity 0.3s;
    color: #fff;
}

.item img {
    width: 100%;
    height: auto;
}

.item:hover {
    opacity: 0.7;
}

/* ボタン追加 */
.view-all-button {
    text-align: center;
    margin: 40px 0;
}

.view-all-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.view-all-button a:hover {
    background-color: #555;
}

/* ブランド紹介 */
.brand-intro h2 {
    text-align: center;
}

.brand-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-item {
    flex: 1;
    padding: 20px;
    transition: opacity 0.3s;
}

.brand-item img {
    width: 100%;
    height: auto;
}

.brand-item:hover img {
    opacity: 0.7;
}

.brand-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #222;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.brand-btn:hover {
    opacity: 0.8;
}

/* 記事コンテンツ */
.article-content {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
}

.article-item img {
    width: 150px;
    height: auto;
    margin-right: 20px;
}

.article-text {
    flex-grow: 1;
}

.article-text a {
    text-decoration: none;
    color: #222;
    font-size: 12px;
}

/* 雪のエフェクト */
.snowflake {
    position: fixed;
    top: -10px;
    color: #ffffff !important;
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh); /* 下にスクロールさせる */
    }
}

/* 追従の「TOPへ戻る」ボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 50px;
    border-radius: 50%; /* 丸いデザイン */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 最前面に配置 */
}

.back-to-top img {
    width: 60px;
    height: 60px;
}

.back-to-top:hover {
    background-color: #555;
}

/* フッター */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    height: 50px;
    position: relative;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr); /* おすすめアイテムを2列に */
    }

    .brand-content {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* ブランド紹介は1列に */
    }

    .article-grid {
        grid-template-columns: repeat(1, 1fr); /* 記事コンテンツも1列に */
    }

    .filter-buttons {
        display: grid;
        grid-template-columns: 1fr; /* 価格別ボタンを縦に並べる */
        gap: 10px;
    }

    .color-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 2行に分ける */
        gap: 10px;
    }
}


/* ボタン追加 */
.view-all-button {
    text-align: center;
    margin: 40px 0 150px;
    font-family: 'Montserrat', sans-serif; /* フォントをスタイリッシュに */
    font-size: 18px;
}

.view-all-button a {
    display: inline-block;
    padding: 5px 20px;
    background-color: #222;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    transition: background-color 0.3s;
    width: 180px;
}

.view-all-button a:hover {
    background-color: #555;
}

/* PC表示時のボタンサイズを大きく */
@media (min-width: 1024px) {
    .view-all-button a {
        padding: 15px 40px; /* ボタンをPC画面で大きく */
        font-size: 18px;    /* フォントサイズも大きく */
    }
}


/* H2見出しのスタイル */
h2 {
    font-family: 'Montserrat', sans-serif; /* フォントをスタイリッシュに */
    font-size: 24px; /* フォントサイズを大きく */
    font-weight: 700; /* 太さを強調 */
    letter-spacing: 1px; /* 文字の間隔を少し広げる */
    text-transform: uppercase; /* 全て大文字にする */
    color: #222; /* 文字色 */
    text-align: center; /* 中央寄せ */
    margin: 20px 0; /* 上下に余白を追加 */
}

img, video, iframe {
    max-width: 100%; /* 画面幅を超えないようにする */
    height: auto; /* アスペクト比を維持して縮小 */
}

.container, .content {
    max-width: 100%; /* コンテンツが画面をはみ出さないようにする */
    overflow-x: hidden; /* 余分なコンテンツがはみ出さないように */
}


