/*
Theme Name: Astra Child
Description: Astra Child Theme for News CPT
Author: Your Company
Template: astra
Version: 1.0.0
*/

.main-header-menu .sub-menu .menu-link {
    padding: .7em 1em;
}


.site-primary-footer-wrap{
    padding-top: 14px!important;
    padding-bottom: 14px!important;
}

#topNewsArea {
    position: absolute;
    bottom: 63px;
    background: white;
    border-radius: 10px;
    height: 80px;
    justify-content: center;
    align-items: center;
    display: flex;
    width: fit-content;
    padding: 0px 4vw;
    max-width: 1000px;
}

#topNewsArea ul {
    display: flex;
}

#topNewsArea ul,
#topNewsArea ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

#topNewsArea ul li {
    display: flex;
    flex-direction: column-reverse;
}

#topNewsArea ul li .date {
    font-size: 80%;
    color: #9f9f9f;
    margin-bottom: -7px;
    margin-left: 11px;
    margin-top: -5px;
}

#topNewsArea .elementor-widget-container {
    height: auto;
}

/* タイトルに「販売開始」が含まれている場合のスタイル */
#topNewsArea .display-posts-listing.has-new-product::before {
    content: "新製品 ";
    color: #ffffff;
    background: #54c176;
    font-weight: bold;
    font-size: 0.9em;
    padding: 2px 32px;
    margin: 4px;
    border-radius: 2rem;
    width: fit-content;
}


/* お知らせ最新投稿表示用のスタイル */
.latest-news-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-news-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.latest-news-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.latest-news-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.latest-news-thumbnail img:hover {
    opacity: 0.8;
}

.latest-news-content {
    flex: 1;
}

.latest-news-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.4;
}

.latest-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-title a:hover {
    color: #0073aa;
}

.latest-news-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.latest-news-date time {
    font-weight: 500;
}

.latest-news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.latest-news-more {
    margin-top: 15px;
}

.read-more-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #005177;
    text-decoration: underline;
}


/* ニュースアイテムのスタイル */
.news-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.news-item-content {
    padding: 0px 30px 0px 30px;
}

.news-item-meta {
    margin-bottom: 10px;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-right: 10px;
}

.news-item-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #d32f2f;
}

.news-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
}

.read-more-link:hover {
    text-decoration: underline;
}

.no-news {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ページネーションのスタイル */
.news-pagination {
    margin-top: 30px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    #topNewsArea {
        bottom: 0;
        left: 0;
        height: auto;
        padding: 10px 4vw;
        margin: 20px;
    }

    #topNewsArea ul {
        flex-direction: column;
    }

    .latest-news-item {
        flex-direction: column;
        gap: 15px;
    }

    .latest-news-thumbnail {
        width: 100%;
    }

    .latest-news-thumbnail img {
        height: 200px;
    }

    .latest-news-title {
        font-size: 1.2em;
    }
}

/* お知らせ一覧ページのスタイル */
.news-archive {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

.news-archive h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.2em;
    text-align: left;
    font-weight: 700;
}

.archive-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: left;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.news-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.news-item:hover {
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.news-item-header {
    padding: 15px 30px 0 30px;
    border-bottom: none;
}

.news-item-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-title a {
    color: #333;
    text-decoration: none;
}

.news-item-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.news-item-meta {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-item-meta .category {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    text-decoration: none;
}

.news-item-meta .category:hover {
    background: #e0e0e0;
    color: #333;
}

.news-item-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.news-item-footer {
    margin-top: 0px;
    margin-bottom: 15px;
}

.read-more-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
}

.read-more-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ========================================
   投稿一覧ページ（/articles/）のスタイル
   ======================================== */

/* ヒーローセクション */
.articles-hero {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 40px;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.8em;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 投稿一覧ページのスタイル */
.articles-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    background: #fff;
}

/* Astraテーマのコンテナにflex-directionを適用 */
.ast-container {
    flex-direction: column !important;
}

.articles-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* サイドバー */
.articles-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.sidebar-content h3 {
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.sidebar-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* メインコンテンツ */
.articles-main {
    min-height: 500px;
}

.section-title {
    color: #333;
    font-size: 1.8em;
    font-weight: 600;
    margin: 0 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-card-thumbnail {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.article-card-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-header {
    margin-bottom: 15px;
}

.article-card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-title a {
    color: #333;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.article-card-meta {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-card-meta .category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: 500;
}

.article-card-meta .category:hover {
    background: #bbdefb;
    color: #1565c0;
}

.article-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
    flex: 1;
}

.article-card-footer {
    margin-top: auto;
    padding-top: 15px;
}

/* 投稿一覧ページのページネーション */
.articles-pagination {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.articles-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.articles-pagination .page-numbers.prev,
.articles-pagination .page-numbers.next {
    font-weight: 500;
}

/* 投稿一覧ページのパンくずリスト */
.articles-breadcrumb {
    background: #f8f9fa;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.articles-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.articles-breadcrumb a:hover {
    text-decoration: underline;
}

/* お知らせ詳細ページのスタイル */
.news-single {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 20px;
}

.news-single-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.news-single-title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-single-meta {
    color: #666;
    font-size: 1em;
}

.news-single-thumbnail {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
}

.news-single-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1em;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.news-single-content p {
    margin-bottom: 20px;
}

.news-single-content ul,
.news-single-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-single-content li {
    margin-bottom: 8px;
}

/* パンくずリスト */
.news-breadcrumb {
    background: #f8f9fa;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.news-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    text-decoration: underline;
}

/* ページネーション */
.news-pagination {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.news-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.news-pagination .page-numbers.prev,
.news-pagination .page-numbers.next {
    font-weight: 500;
}

.news-item-title {
    margin-bottom: 5px !important;
    margin-top: 9px;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-archive {
        padding: 20px 15px;
    }

    .news-archive h1 {
        font-size: 1.8em;
    }

    .archive-description {
        font-size: 1em;
    }

    .news-list {
        gap: 20px;
    }

    .news-item-header {
        padding: 12px 15px 0 15px;
    }

    .news-item-title {
        font-size: 1.2em;
    }

    .news-single-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .news-archive {
        padding: 15px 10px;
    }

    .news-archive h1 {
        font-size: 1.6em;
    }

    .news-item-header {
        padding: 10px 20px 0 20px;
    }

    .news-item-content {
        padding: 0px 20px 0px 20px;
    }

    .news-item-title {
        font-size: 1.1em;
        margin-bottom: 0px!important;
    }

    .news-item-meta {
        font-size: 0.8em;
    }

    .news-single-title {
        font-size: 1.5em;
    }
}

/* 投稿一覧ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .articles-hero {
        height: 200px;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.4em;
    }

    .articles-archive {
        padding: 0 15px 30px 15px;
    }

    .articles-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .articles-sidebar {
        position: static;
        padding: 20px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .articles-list {
        gap: 20px;
    }

    .article-card-thumbnail {
        height: 150px;
    }

    .article-card-content {
        padding: 15px;
    }

    .article-card-header {
        margin-bottom: 12px;
    }

    .article-card-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        height: 150px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 1.6em;
    }

    .hero-content h2 {
        font-size: 1.2em;
    }

    .articles-archive {
        padding: 0 10px 20px 10px;
    }

    .articles-sidebar {
        padding: 15px;
    }

    .sidebar-content h3 {
        font-size: 1.1em;
    }

    .sidebar-content p {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.3em;
    }

    .article-card-thumbnail {
        height: 120px;
    }

    .article-card-content {
        padding: 12px;
    }

    .article-card-header {
        margin-bottom: 10px;
    }

    .article-card-title {
        font-size: 1.1em;
    }

    .article-card-meta {
        font-size: 0.8em;
    }
}

/* ========================================
   WooCommerceショップページ用スタイル
   ======================================== */

/* ショップページ全体 */
.custom-shop-page {
    margin: 0 auto;
    padding: 0;
}

/* ヒーローセクション */
.shop-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.shop-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.shop-hero p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* セクション共通スタイル */
.shop-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0073aa;
}

/* 売上ランキング */
.sales-ranking-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sales-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
}

.rank-number {
    font-size: 2em;
    font-weight: bold;
    color: #0073aa;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.ranking-item.rank-1 .rank-number {
    color: #ffd700;
}

.ranking-item.rank-2 .rank-number {
    color: #c0c0c0;
}

.ranking-item.rank-3 .rank-number {
    color: #cd7f32;
}

.product-image {
    margin-right: 20px;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #0073aa;
}

.product-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.sales-count {
    font-size: 0.9em;
    color: #666;
}

/* カテゴリ商品・新着商品 */
.category-products-section,
.new-products-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-products-grid,
.new-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.product-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-item .product-image {
    margin: 0;
    overflow: hidden;
}

.product-item .product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-item .product-info {
    padding: 20px;
}

.product-item .product-title {
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-item .product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.product-rating {
    color: #ffc107;
}

/* ボタン */
.btn-view-all,
.btn-shop-all {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-view-all:hover,
.btn-shop-all:hover {
    background: #005a87;
    color: white;
}

.view-all-link {
    text-align: center;
}

/* 全商品一覧セクション */
.view-all-products {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
}

.view-all-products h2 {
    color: white;
    margin-bottom: 15px;
}

.view-all-products h2::after {
    background: white;
}

.view-all-products p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-shop-all {
    background: white;
    color: #f5576c;
    font-size: 1.1em;
    padding: 15px 30px;
}

.btn-shop-all:hover {
    background: #f8f9fa;
    color: #f5576c;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    .shop-hero h1 {
        font-size: 2.2em;
    }

    .shop-hero p {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .sales-ranking-section,
    .category-products-section,
    .new-products-section {
        padding: 20px;
    }

    .ranking-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .rank-number {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .category-products-grid,
    .new-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .view-all-products {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .shop-hero h1 {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .category-products-grid,
    .new-products-grid {
        grid-template-columns: 1fr;
    }

    .product-item .product-image img {
        height: 150px;
    }
}

/* ========================================
   Netflix風ショップトップページ用スタイル
   ======================================== */
body, .ast-separate-container {
    background: white;
}

body.custom-shop-page {
    background: #000 !important;
}

.netflix-shop-page {
    background: #000;
    color: #fff;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 74vh;
    min-height: 420px;
    max-height: 780px;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 10vw 6vh;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .0) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .9) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: min(1072px, 92vw);
    width: 100%;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.0rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    color: #fff;
    max-width: 650px;
}

.hero__meta {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero__desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero__nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    justify-content: space-between;
    padding: 0 2vw;
    pointer-events: none;
}

.hero__nav-btn {
    padding: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    border: 2px solid rgba(255, 255, 255, .3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.hero__nav-btn:hover {
    background: rgba(0, 0, 0, .7);
    border-color: rgba(255, 255, 255, .6);
    transform: scale(1.1);
}

.hero__nav-btn:active {
    transform: scale(0.95);
}

.hero__nav-btn svg {
    width: 35px;
    height: 35px;
}

.hero__nav-btn--prev {
    left: 2vw;
}

.hero__nav-btn--next {
    right: 2vw;
}

.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

.hero__indicator {
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero__indicator.is-active {
    background: #fff;
}

/* 商品行 */
#rows {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.rows {
    padding: 0 0 40px;
}

.row {
    margin-top: 30px;
}

.row__title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
    padding: 0 4vw;
    color: #fff;
}

.scroller {
    position: relative;
    padding: 0 56px;
}

.track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    gap: 20px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 56px;
    padding: 2px 0 17px 0px;
}

/* 人気の製品セクションのカード間隔を広げる */
.row:first-child .track {
    gap: 40px;
    padding-left: 20px;
}

.track::-webkit-scrollbar {
    height: 10px;
}

.track::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 6px;
}

/* 商品アイテム */
.card {
    position: relative;
    border-radius: 8px;
    scroll-snap-align: start;
    background: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

.item {
    position: relative;
    border-radius: 8px;
    scroll-snap-align: start;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.item__rank {
    position: absolute;
    bottom: 10px;
    left: -34px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 68px;
    font-weight: 900;
    color: #ffffff;
    z-index: 3;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.item__img {
    width: 180px;
    height: 251px;
    background: center/cover no-repeat;
    transition: transform .18s ease;
    border-radius: 10px;
}

.item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.item .card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .85) 80%);
    display: flex;
    width: 106%;
    margin: 0 0 -5px -7px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.item:hover .card__overlay {
    opacity: 1;
}

.item .card__name {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    padding-left: 14px;
}

.item:hover .item__img img {
    transform: scale(1.04);
}

.item__title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.item:hover .item__title {
    opacity: 1;
}

.item__price {
    font-size: 0.8rem;
    color: #b3b3b3;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.item:hover .item__price {
    opacity: 1;
}

/* Nav buttons */
.nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nav button {
    pointer-events: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav .prev {
    left: 0;
}

.nav .next {
    right: 0;
}

.nav button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav .prev::after {
    transform: translate(-50%, -50%) rotate(-135deg);
}

.nav button:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent);
}

.nav .next:hover {
    background: linear-gradient(270deg, rgba(0, 0, 0, .55), transparent);
}

/* ボタン */
.btn {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 0.6rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #f40612;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 9, 20, 0.4);
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal__panel {
    position: relative;
    background: #141414;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1002;
    transition: background 0.3s ease;
    padding: 0;
}

.modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal__hero {
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.modal__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__body {
    padding: 2rem;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
    display: none;
    /* 製品名を非表示 */
}

.modal__price {
    font-size: 1.2rem;
    color: #e50914;
    font-weight: 600;
    margin-bottom: 1rem;
    display: none;
    /* 価格を非表示 */
}

.modal__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #b3b3b3;
    margin-bottom: 2rem;
}

.modal__actions {
    text-align: center;
}

/* レスポンシブ対応 */
@media (min-width: 1600px) {
    .hero {
        margin-left: calc(-800px + 50%);
        max-width: 1600px;
    }
}

@media (max-width: 960px) {
    .track {
        grid-auto-columns: 260px;
    }

    .item__img {
        width: 260px;
        height: 148px;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__desc {
        font-size: 1rem;
    }

    .hero__nav {
        padding: 0 1rem;
    }

    .hero__nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero__nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .scroller {
        padding: 0 24px;
    }

    .track {
        scroll-padding: 24px;
        grid-auto-columns: 150px;
    }

    .item__img {
        width: 150px;
        height: 200px;
    }

    .nav button {
        width: 28px;
    }

    .modal__panel {
        width: 95%;
        margin: 1rem;
    }

    .modal__body {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .track {
        grid-auto-columns: 130px;
    }

    .item__img {
        width: 130px;
        height: 200px;
    }
}

@media (max-width: 544px) {
    header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img {
      max-width: 200px!important; /* 好きなサイズに変更 */
      width: auto!important;      /* 幅の自動調整で縦横比を維持 */
    }
  }

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__content {
        padding: 0 1rem;
    }

    .track {
        grid-auto-columns: 120px;
    }

    .item__img {
        width: 120px;
        height: 160px;
    }

    .item__title {
        font-size: 0.8rem;
    }
}

/* ========================================
   ヘッダー背景色の調整（トップページ以外）
   ======================================== */

/* トップページ以外でヘッダーの背景色を黒に変更 */
body:not(.home) .main-header-bar {
    background-color: #000 !important;
    background: #000 !important;
}

/* トップページ以外でヘッダーの文字色を白に変更 */
body:not(.home) .main-header-bar .site-title a,
body:not(.home) .main-header-bar .site-description,
body:not(.home) .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-custom-html,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget a {
    color: #fff !important;
}


/* トップページ以外でヘッダーのボタンやアイコンの色を調整 */
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:before,
body:not(.home) .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:after {
    color: #fff !important;
}

/* トップページ以外でヘッダーのボーダー色を調整 */
body:not(.home) .main-header-bar {
    border-bottom: 1px solid #333 !important;
}

/* お知らせページ（news）でヘッダーの背景色を黒に変更 */
body.post-type-archive-news .main-header-bar,
body.single-news .main-header-bar {
    background-color: #000 !important;
    background: #000 !important;
}

/* お知らせページでヘッダーの文字色を白に変更 */
body.post-type-archive-news .main-header-bar .site-title a,
body.post-type-archive-news .main-header-bar .site-description,
body.post-type-archive-news .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link,
body.single-news .main-header-bar .site-title a,
body.single-news .main-header-bar .site-description,
body.single-news .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link {
    color: #fff !important;
}

/* 固定ページでヘッダーの背景色を黒に変更 */
body.page .main-header-bar {

}

/* 固定ページでヘッダーの文字色を白に変更 */
body.page .main-header-bar .site-title a,
body.page .main-header-bar .site-description,
body.page .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link {
    color: #fff !important;
    font-weight: 500;
}

/* 投稿ページでヘッダーの背景色を黒に変更 */
body.single-post .main-header-bar {
    background-color: #000 !important;
    background: #000 !important;
}

/* 投稿ページでヘッダーの文字色を白に変更 */
body.single-post .main-header-bar .site-title a,
body.single-post .main-header-bar .site-description,
body.single-post .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link {
    color: #fff !important;
}


body .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link:hover{
    color: #ffffff !important;
    background: #f20039;
}

/* /store/と/company/ページでヘッダーの背景を透過に変更（page-id-クラスを使用） */
body.page-id-8807 .main-header-bar,
body.page-id-8184 .main-header-bar,
body.page-id-9921 .main-header-bar {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

body.page-id-8807 #ast-desktop-header,
body.page-id-8184 #ast-desktop-header,
body.page-id-9921 #ast-desktop-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, transparent 100%);
}



/* /store/と/company/ページでヘッダーの文字色を白に変更（透過背景でも見やすくするため） */
body.page-id-8807 .main-header-bar .site-title a,
body.page-id-8807 .main-header-bar .site-description,
body.page-id-8807 .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link,
body.page-id-8184 .main-header-bar .site-title a,
body.page-id-8184 .main-header-bar .site-description,
body.page-id-8184 .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link,
body.page-id-9921 .main-header-bar .site-title a,
body.page-id-9921 .main-header-bar .site-description,
body.page-id-9921 .main-header-bar .main-navigation .main-header-menu .menu-item .menu-link {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* /store/と/company/ページでヘッダーのボーダーを非表示 */
body.page-id-8807 .main-header-bar,
body.page-id-8184 .main-header-bar,
body.page-id-9921 .main-header-bar {
    border-bottom: none !important;
    box-shadow: none !important;
}

/* /store/と/company/ページでヘッダーの検索アイコンやボタンも調整 */
body.page-id-8807 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon,
body.page-id-8807 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:before,
body.page-id-8807 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:after,
body.page-id-8184 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon,
body.page-id-8184 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:before,
body.page-id-8184 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:after,
body.page-id-9921 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon,
body.page-id-9921 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:before,
body.page-id-9921 .main-header-bar .ast-masthead-custom-menu-items .ast-search-icon .astra-search-icon:after {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* /store/と/company/ページでヘッダーのウィジェットエリアも調整 */
body.page-id-8807 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget,
body.page-id-8807 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget a,
body.page-id-8184 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget,
body.page-id-8184 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget a,
body.page-id-9921 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget,
body.page-id-9921 .main-header-bar .ast-masthead-custom-menu-items .ast-header-widget-area .widget a {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* ========================================
   WooCommerce商品詳細ページ用スタイル
   ======================================== */

/* 商品詳細ページ全体 */
.custom-single-product {
    max-width: 1400px;
    margin: 2em auto 0;
    padding: 20px;
}

/* 商品コンテナ（左右2カラム） */
.product-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* 商品画像セクション（左側） */
.product-images {
    position: sticky;
    top: 20px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    max-width: 84vw;
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #0073aa;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品情報セクション（右側） */
.product-info {
    display: flex;
    flex-direction: column;
}

.product-summary {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.product-breadcrumb {
    font-size: 0.9em;
    color: #666;
}

.product-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 1.5em;
    color: #212121;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 600;
    border-bottom: 1px solid #cbcbcb;
    padding-bottom: 10px;
    margin-top: 38px;
}

.product-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.product-price del {
    color: #999;
    font-size: 0.8em;
    margin-right: 10px;
}

.product-price ins {
    text-decoration: none;
    color: #dd0c16;
}

.product-price ins::after {
    font-size: 0.7em;
    content: '（税込）';
    display: inline-block;
    color: #de0000;
}

.product-stock {
    margin-bottom: 10px;
}

.stock-status {
    display: inline-block;
    padding: 0px 5px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.stock-status.in-stock {
    color: #155724;
    font-weight: normal;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-short-description {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666;
    margin-bottom: 25px;
}

.product-short-description p {
    margin-bottom: 15px;
}

.product-full-description {
    font-size: 0.9em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    padding: 0px;
}

.product-full-description p {
    margin-bottom: 15px;
}

.product-full-description ul,
.product-full-description ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.product-full-description li {
    margin-bottom: 8px;
}

.product-full-description h3,
.product-full-description h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* 購入フォーム */
.product-purchase {
    background: transparent;
    padding: 0;
    border: none;
}

.quantity {
    margin-bottom: 0;
    display: inline-block;
    margin-right: 15px;
}

.quantity input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
}

.ast-stock-detail{
    display: none;
}

.single_add_to_cart_button {
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 0;
    font-weight: normal;
    background-color: #ffd814 !important;
    border-color: #ffd814 !important;
    color: #000 !important;
    padding: 14px;
    width: calc(100% - 158px);
}

.single_add_to_cart_button:hover {
    background: #e0a800;
}

/* 商品メタ情報 */
.product-meta {
    background: transparent;
    padding: 0;
    border: none;
    margin-top: 20px;
}

.product-meta>div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-meta>div:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    margin-right: 10px;
}

.meta-value {
    color: #666;
}

.meta-value a {
    color: #0073aa;
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* 決済方法 */
.payment-methods {
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
    margin-top: 25px;
}

.payment-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-icons .icon {
    width: 60px !important;
    height: 40px !important;
}

.payment-icon {
    background: transparent;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    border: 1px solid #ddd;
    min-width: 60px;
    text-align: center;
}

/* 商品タブ */
.product-tabs {
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* レビューセクション */
.reviews-section {
    padding: 30px;
}

.reviews-section h2 {
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

.woocommerce-tabs {
    margin: 0;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 20px 30px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: white;
}

.woocommerce-tabs .panel {
    padding: 30px;
    margin: 0;
}

/* 関連商品 */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 50% 50%;
        gap: 30px;
    }

    .product-title {
        font-size: 1.6em;
    }

    .product-price {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .custom-single-product {
        padding: 15px;
    }

    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        position: static;
    }

    .product-title {
        font-size: 1.5em;
    }

    .product-price {
        font-size: 1.2em;
    }

    .thumbnail-gallery {
        justify-content: center;
    }

    .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 15px 20px;
        text-align: center;
    }

    .payment-icons {
        gap: 6px;
    }

    .payment-icon {
        font-size: 0.8em;
        padding: 6px 10px;
        min-width: 50px;
    }

    .quantity {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .single_add_to_cart_button {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-single-product {
        padding: 10px;
    }

    .product-title {
        font-size: 1.4em;
    }

    .product-price {
        font-size: 1.1em;
    }

    .product-purchase {
        padding: 0;
    }

    .single_add_to_cart_button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .woocommerce-tabs .panel {
        padding: 20px;
    }

    .thumbnail-gallery {
        gap: 8px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .payment-icons {
        justify-content: center;
        gap: 4px;
    }
    
    .payment-icon {
        font-size: 0.75em;
        padding: 5px 8px;
        min-width: 45px;
    }
}

/* ========================================
   WooCommerce専用フッター
   ======================================== */

.woocommerce-custom-footer-wrapper {
    position: relative;
    z-index: 10;
}

.woocommerce-footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0 0px 0;
    margin-top: 0;
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 30px auto 80px;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.footer-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.contact-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-section-title {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-links li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-bullet {
    color: #999;
    font-size: 0.8em;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.response-time {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.response-note {
    color: #999;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.original-copyright-footer {
    background: #000;
    padding: 14px 0;
    margin-top: 0;
}

.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright-container p {
    color: #fff;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
}





/* レスポンシブ対応 */
@media (max-width: 768px) {
    .woocommerce-footer {
        padding: 30px 0 15px 0;
        margin-top: 0;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .footer-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .contact-sections {
        gap: 20px;
    }

    .contact-section-title {
        font-size: 0.95em;
        margin-bottom: 12px;
    }

    .contact-links a {
        font-size: 0.85em;
    }

    .response-time {
        font-size: 0.85em;
    }

    .response-note {
        font-size: 0.8em;
    }

    .original-copyright-footer {
        padding: 15px 0;
    }

    .copyright-container {
        padding: 0 15px;
    }

    .copyright-container p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .woocommerce-footer {
        padding: 25px 0 10px 0;
        margin-top: 0;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-title {
        font-size: 1em;
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.9em;
    }

    .footer-description {
        font-size: 0.85em;
        margin-bottom: 15px;
    }

    .contact-sections {
        gap: 15px;
    }

    .contact-section-title {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .contact-links li {
        margin-bottom: 8px;
    }

    .contact-bullet {
        font-size: 0.7em;
        margin-right: 6px;
    }

    .contact-links a {
        font-size: 0.8em;
    }

    .response-time {
        font-size: 0.8em;
    }

    .response-note {
        font-size: 0.75em;
    }

    .original-copyright-footer {
        padding: 12px 0;
    }

    .copyright-container {
        padding: 0 10px;
    }

    .copyright-container p {
        font-size: 0.8em;
    }
}

.sub-menu{
    background: #00000098!important;
}

/* スマホ表示でのサブメニュー背景色を白に変更 */
@media (max-width: 768px) {
    .sub-menu {
        background: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .sub-menu .menu-link {
        color: #333333 !important;
    }
    
    .sub-menu .menu-link:hover {
        background: #f5f5f5 !important;
        color: #333333 !important;
    }
    
    /* メニューアイテム全体をクリック可能にするためのスタイル */
    .ast-mobile-header .menu-item-has-children {
        cursor: pointer;
        position: relative;
    }
    
    .ast-mobile-header .menu-item-has-children > .menu-link {
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 40px; /* トグルボタンのスペースを確保 */
        width: 100%;
        box-sizing: border-box;
    }
    
    .ast-mobile-header .menu-item-has-children:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .ast-mobile-header .menu-item-has-children > .menu-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .home .elementor-element.e-con-full.e-flex.e-con.e-child{
        left: 20px!important;
    }
    .home #topRedBtn{
        display: none!important;
    }
    .home h1.elementor-heading-title{
        font-size: 25vw!important;
        line-height: 20.5vw!important;
    }
    
    /* トグルボタンの位置調整 */
    .ast-header-break-point .ast-builder-menu-1 .menu-item.menu-item-has-children > .ast-menu-toggle {
        width: 100% !important;
        border-radius: 0 !important;
        display: flex !important;
        justify-content: end !important;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        z-index: 10;
    }
    
    /* メニューアイテム全体のクリック領域を確保 */
    .ast-mobile-header .menu-item-has-children::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
}

#page header{
    z-index: 1000;
}


/* カートページ専用：ヘッダーのpositionをrelativeに変更 */
.woocommerce-cart #masthead {
    position: relative !important;
}

/* チェックアウトページのレイアウト調整 */
.woocommerce-checkout .col2-set {
    display: flex;
    gap: 20px;
}

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    flex: 1;
    min-width: 0;
}

/* 配送先情報が空の場合のスタイル */
.woocommerce-checkout .col-2:empty {
    display: none;
}

/* 配送先情報が空の場合、col-1を全幅にする */
.woocommerce-checkout .col2-set:has(.col-2:empty) .col-1 {
    flex: 1;
    width: 100%;
}

#post-10130{
    max-width: 700px;
    margin: 0 auto;
}
#post-10130 .entry-content h2{
    border-bottom: 1px solid #c3c3c3;
}

.contact-link{
    color: white;
}
.contact-link:hover{
    color: white;
}

.woocommerce-products-header .page-title {
    color: black;
    font-size: 2.6rem;
    font-weight: 600;
    border-bottom: 1px solid #b7b7b7;
    padding-bottom: 15px;
}

.woocommerce .addresses .title, .woocommerce-account .addresses .title{
    padding: 0 2em!important;
}

.woocommerce ul.products, .woocommerce-page ul.products{
    column-gap: 30px;
    row-gap: 41px;
}

#pay_with_amazon{
    height: 70px;
    width: 70%;
}

/* ================================================
   News Page Styles
   ================================================ */

/* タブナビゲーションのスタイル */
.news-tabs {
    display: flex;
    margin: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.news-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0;
}

.news-tab:hover {
    color: #333;
    background: #f8f8f8;
}

.news-tab.active {
    color: white;
    background: #f20039;
}

/* タブコンテンツのスタイル */
.news-tab-content {
    display: none;
}

.news-tab-content.active {
    display: block;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-tabs {
        flex-direction: column;
    }

    .news-tab {
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }

    .news-tab.active {
        border-bottom-color: #d32f2f;
        border-right: none;
    }
}

/* ================================================
   Articles Page Styles - Card Layout
   ================================================ */

/* 記事カードグリッド */
.articles-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.e-con-inner{
    max-width: 900px;
}

/* 記事カード */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* カードサムネイル */
.article-card-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.article-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-thumbnail img {
    transform: scale(1.05);
}

/* カテゴリバッジ */
.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0000008a;
    color: #fff;
    padding: 2px 11px;
    border-radius: 0;
    font-size: 12px;
    border: 1px solid #ffffff9c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
    z-index: 2;
}

/* カードコンテンツ */
.article-card-content {
    padding: 15px;
    color: #333;
}

.article-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.article-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #007cba;
}

.article-card-date {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* 記事なし表示 */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

/* 記事ページネーション */
.articles-pagination {
    margin-top: 40px;
    text-align: center;
    grid-column: 1 / -1;
}

.articles-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 3px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
}

.articles-pagination .page-numbers:hover,
.articles-pagination .page-numbers.current {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .articles-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .articles-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .article-card-thumbnail {
        height: 180px;
    }
    
    .article-card-content {
        padding: 15px;
    }
    
    .article-card-title {
        font-size: 15px;
    }
    
    .article-card-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .articles-card-grid {
        padding: 10px;
        gap: 15px;
    }
    
    .article-card-thumbnail {
        height: 160px;
    }
    
    .article-card-content {
        padding: 12px;
    }
}

.product_type_simple.add_to_cart_button, .checkout-button, .place-order .button.alt{
    background-color: #ffd814 !important;
    border-color: #ffd814 !important;
    color: black!important;
}

/* ================================================
   Table of Contents Styles - Cocoon Theme Style
   ================================================ */

/* 目次コンテナ */
.table-of-contents {
    background: #fff;
    border: 1px solid #ddd;
    margin: 30px auto;
    padding: 0;
    width: fit-content;
}

/* 目次ヘッダー */
.toc-header {
    background: #ffffff;
    color: white;
    padding: 22px 15px 6px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toc-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.toc-toggle {
    background: white;
    color: #007cba;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 2px;
}

.toc-toggle:hover {
    background: #f0f0f0;
}

/* 目次コンテンツ */
.toc-content {
    background: white;
    padding: 1em 1.6em;
    display: table;
    width: fit-content;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-item {
    margin-bottom: 6px;
    counter-increment: toc-counter;
}

.toc-link {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.4;
}

.toc-link:hover {
    color: #007cba;
}

/* 見出しレベル別のインデント */
.toc-level-2 {
    margin-left: 0;
}

.toc-level-3 {
    margin-left: 20px;
}

.toc-level-4 {
    margin-left: 40px;
}

.toc-level-5 {
    margin-left: 60px;
}

.toc-level-6 {
    margin-left: 80px;
}

/* 見出しにアンカーリンク用のスタイル */
.toc-heading {
    position: relative;
    scroll-margin-top: 80px; /* ヘッダーの高さ分オフセット */
}

.toc-heading:target {
    background: rgba(0, 124, 186, 0.1);
    padding: 2px 4px;
    border-radius: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .table-of-contents {
        margin: 20px 0;
    }
    
    .toc-header {
        padding: 10px 12px;
    }
    
    .toc-title {
        font-size: 15px;
    }
    
    .toc-content {
        padding: 12px;
    }
    
    .toc-link {
        font-size: 13px;
    }
    
    .toc-level-3 {
        margin-left: 15px;
    }
    
    .toc-level-4 {
        margin-left: 30px;
    }
    
    .toc-level-5 {
        margin-left: 45px;
    }
    
    .toc-level-6 {
        margin-left: 60px;
    }
}

.ast-on-card-button.ast-select-options-trigger{
    background-color: initial !important;
    border-color: initial !important;
}

#mCTA:focus{
    color: white!important;
}

/* ================================================
   Single Post Header Styles (移行前デザイン)
   ================================================ */

/* 記事ヘッダー */
.article-header.entry-header {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #333;
}

/* アイキャッチ画像ラップ */
.eye-catch-wrap {
    position: relative;
    margin-bottom: 20px;
}

.eye-catch {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.eye-catch-image {
    width: 100%;
    height: auto;
    display: block;
}

/* カテゴリラベル */
.cat-label {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgb(0 0 0 / 39%);
    color: #fff;
    padding: 2px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}



/* 投稿メタ情報 */
.post-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    position: absolute;
    right: 0;
    bottom: -18px;
}

.post-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cat-label {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .post-meta {
        margin-top: 10px;
    }
    
    .post-date {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.3rem;
    }
    
    .cat-label {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }
}

.post.type-post.status-publish.format-standard.has-post-thumbnail{
    max-width: 760px;
    padding: 0 30px;
    margin: 0 auto;
}

.post.type-post.status-publish.format-standard.has-post-thumbnail .entry-header {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
}

h1.entry-title{
    font-weight: bold;
    font-size: 2rem;
    line-height: 1.25;
    margin: 20px 0px;
}

.entry-content p{
    line-height: 2em;
    font-size: 18px;
}

.entry-content h2.toc-heading{
    padding: 20px 30px;
    font-size: 24px!important;
    line-height: 1.25!important;
    font-weight: bold!important;
    background-color: #f5f6f7!important;
    margin: 60px 0 22px;
}

ol.wp-block-list, ul.wp-block-list{
    padding-left: 40px;
    margin: 29px 0;
    font-size: 18px;
    line-height: 2;
}

h3.toc-heading{
    border-left: 7px solid #888;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 22px;
    padding: 12px 20px;
}

.wp-block-separator {
    border: none;
    border-top: 0px solid;
    margin: 30px auto!important;
}



.entry-content > .wp-block-group, .entry-content > .wp-block-columns{
    padding-left: 0!important;
}

.bold-blue{
    font-weight: bold;
    color: #007cba;
}

#amazon_customer_details .col2-set{
    flex-direction: column!important;
}