/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/


@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');


body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
}


/* archive-rakuten_item.php 用のスタイル */
.rakuten-item-archive-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* レスポンシブなグリッド */
    gap: 6px; /* アイテム間の隙間 */
}

/* 個々の商品ボックスのスタイル (既存のrakuten-itemクラスと重複しないように調整) */
.rakuten-item-archive-list .rakuten-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rakuten-item-archive-list .rakuten-item-image {
    text-align: center;
    padding: 15px;
    flex-shrink: 0;
}

.rakuten-item-archive-list .rakuten-item-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 200px;
    object-fit: contain;
}

.rakuten-item-archive-list .rakuten-item-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rakuten-item-archive-list .rakuten-item-name {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}
.rakuten-item-archive-list .rakuten-item-name a {
    text-decoration: none;
    color: #333;
}
.rakuten-item-archive-list .rakuten-item-name a:hover {
    color: #e00;
    text-decoration: underline;
}

.rakuten-item-archive-list .rakuten-item-price {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.rakuten-item-archive-list .rakuten-item-button {
    text-align: center;
    margin-top: auto;
}

.rakuten-item-archive-list .rakuten-item-button .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.rakuten-item-archive-list .rakuten-item-button .button:hover {
    background-color: #c00;
}

/* スマートフォン向け調整 */
@media (max-width: 768px) {
    .rakuten-item-archive-list {
        grid-template-columns: 1fr; /* 1列にする */
    }
    .rakuten-item-archive-list .rakuten-item {
        flex-direction: row; /* 横並びにする */
        align-items: center;
    }
    .rakuten-item-archive-list .rakuten-item-image {
        flex-basis: 35%;
    }
    .rakuten-item-archive-list .rakuten-item-details {
        flex-basis: 65%;
        padding-left: 0;
    }
    
    .rakuten-item-archive-list .rakuten-item-button {
        text-align: left;
    }

}





/* single-rakuten_item.php 用のスタイル */
.rakuten-single-item {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.rakuten-single-item .entry-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #333;
}

.rakuten-single-item-container {
    display: flex;
    flex-wrap: wrap; /* 小さい画面で折り返す */
    gap: 30px; /* アイテム間の隙間 */
    margin-bottom: 20px;
    align-items: center;
}

.rakuten-single-item-image {
    flex: 1; /* スペースを均等に占める */
    min-width: 280px; /* 最小幅 */
    text-align: center;
}

.rakuten-single-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.rakuten-single-item-details {
    flex: 2; /* 画像の2倍のスペースを占める */
    min-width: 300px; /* 最小幅 */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ボタンを下部に配置 */
}

.rakuten-single-item-price {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.rakuten-single-item-description {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}
.rakuten-single-item-description h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.rakuten-single-item-button {
    text-align: center;
    margin-top: auto; /* 詳細が少ない場合でもボタンを下部に */
}

.rakuten-single-item-button .button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.rakuten-single-item-button .button:hover {
    background-color: #c00;
    transform: translateY(-2px);
}

/* スマートフォン向け調整 */
@media (max-width: 768px) {
    .rakuten-single-item-container {
        flex-direction: column;
        gap: 20px;
    }
    .rakuten-single-item-image,
    .rakuten-single-item-details {
        min-width: unset; /* 最小幅をリセット */
        width: 100%;
    }
    .rakuten-single-item .entry-title {
        font-size: 1.6em;
    }
    .rakuten-single-item-price {
        font-size: 1.5em;
    }
}




/* archive-rakuten_item.php のページネーションをLightningテーマに合わせる */
.post-type-rakuten_item .pagination {
    margin: 30px 0; /* 上下の余白 */
    text-align: center;
}

.post-type-rakuten_item .pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* 狭い画面で折り返す */
}

.post-type-rakuten_item .pagination .page-numbers {
    display: inline-flex; /* flexbox を使って中央揃えと垂直方向の配置を改善 */
    justify-content: center;
    align-items: center;
    min-width: 40px; /* ボタンの最小幅 */
    height: 40px; /* ボタンの高さ */
    padding: 0 10px;
    margin: 0 5px;
    background-color: #fff; /* 薄い背景色 */
    border: 1px solid #ddd; /* 枠線 */
    border-radius: 4px; /* 角を丸く */
    color: #000; /* リンク色 */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    line-height: 1; /* 行の高さを調整 */
}

.post-type-rakuten_item .pagination .page-numbers:hover {
    background-color: #fafafa; /* ホバー時の背景色 */
}

.post-type-rakuten_item .pagination .page-numbers.current {
    background-color: #000; /* 現在のページの背景色 */
    border-color: #000; /* 現在のページの枠線色 */
    color: #fff; /* 現在のページの文字色 */
    font-weight: bold;
    cursor: default; /* クリック不可に */
}

.post-type-rakuten_item .pagination .page-numbers.current:hover {
    background-color: #000; /* ホバー時も同じ色 */
    color: #fff;
}

/* 前へ/次へ のアイコン風の見た目 */
.post-type-rakuten_item .pagination .page-numbers.prev,
.post-type-rakuten_item .pagination .page-numbers.next {
    font-size: 1.2rem;
    padding: 0 15px; /* 左右のパディングを調整 */
}

/* ドットのスタイル */
.post-type-rakuten_item .pagination .page-numbers.dots {
    background-color: transparent;
    border: none;
    color: #6c757d;
    cursor: default;
}






/* フッターに表示される最新の楽天アイテムのコンテナ */
.rakuten-items-footer-container {
    background-color: #f8f8f8; /* 背景色を設定して目立たせる */
    padding: 30px 0; /* 上下の余白 */
    border-top: 1px solid #eee; /* 上部に境界線 */
}

/* フッターのタイトル */
.rakuten-items-footer-container .footer-title {
    text-align: center;
    margin-bottom: 20px;
}

/* 商品リストのコンテナ */
.rakuten-items-footer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 -5px; /* 各アイテムの余白を相殺 */
}

/* 各商品アイテムのスタイル */
.rakuten-item-footer {
    width: calc(20% - 10px); /* 5列表示（左右5pxの余白を考慮） */
    margin: 0 5px 10px; /* 上下左右の余白 */
    box-sizing: border-box;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    overflow: hidden; /* 角丸にするために必要 */
    padding: 15px;
}




/* アイテム内のリンク */
.rakuten-item-footer a {
    display: block;
    text-decoration: none;
    color: #333;
}

/* 画像のスタイル */
.rakuten-item-footer img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    margin: 0 auto 10px;
}

/* ホバー時の効果 */
.rakuten-item-footer a:hover img {
    transform: scale(1.05); /* 画像を少し拡大 */
}

.rakuten-item-footer .item-title {
    text-align: left;
}

@media (max-width: 480px) {
    
    .rakuten-item-footer a {
        display: flex;
    }
    .rakuten-item-footer img {
        margin: 0 10px 0 0;
    }

}




/* 商品一覧ボタンのコンテナ */
.rakuten-items-archive-link {
    text-align: center;
    margin-top: 20px;
}

/* ボタンのデザイン */
.rakuten-items-archive-link .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000; /* ボタンの背景色 */
    color: #fff; /* 文字色 */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

/* ボタンのホバー効果 */
.rakuten-items-archive-link .button:hover {
    background-color: #333;
}

/* レスポンシブデザイン */
@media (max-width: 991px) {
    .rakuten-item-footer {
        width: calc(33.333% - 10px); /* 3列表示 */
    }
}

@media (max-width: 767px) {
    .rakuten-item-footer {
        width: calc(50% - 10px); /* 2列表示 */
    }
}

@media (max-width: 480px) {
    .rakuten-item-footer {
        width: 100%; /* 1列表示 */
    }
}


.site-footer-copyright p:nth-child(2) {
    display: none;
}

.page_top_btn {
    height: 40px;
    border-radius: 50%;
    box-shadow: none;
}

.site-header-logo {
    background: url(https://digitalart.fun/store/wp-content/uploads/2025/08/headset.png) no-repeat left bottom / auto 33px;
    padding-left: 40px;
    font-weight: 500;
    text-align: left;
}

@media (max-width: 768px) {

    .site-header-logo {
        background: url(https://digitalart.fun/store/wp-content/uploads/2025/08/headset.png) no-repeat left bottom / auto 30px;
        padding-left: 35px;
        font-size: 16px;
        line-height: 30px;
    }

    
}

.topPosts.wp-block-latest-posts.wp-block-latest-posts__list li {
    margin-bottom: 30px;
}
.topPosts .wp-block-latest-posts__post-title {
    color: #fff;
}

