/*
Theme Name: Astra Child
Template: astra
Description: チケット販売用子テーマ
Version: 1.0
*/

/* *{
	outline: 1px solid red;
} */
/* 基本レイアウト（400px固定） */
#ast-scroll-top{
	background-color: rgba(211, 83, 57 ,0.5)
}
ul,li{
	list-style: none;
	padding-left: 0;
	text-align: justify;
	word-break: break-all;
}
li{
	margin-bottom: 6px; 
}
body {
    margin: 0;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

body #page {
    width: 400px;
    max-width: 400px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    margin: 0;
}

.ast-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}
.cv-btn-size {
    width: 300px;
    text-align: center;
    margin: 0 auto !important;
}
.photo-flex{
	display: flex;
	gap: 5px;
	padding: 0 10px 10px;
}
.p-flex-box{
	flex: 1;
}
.staff-rec{
	position: relative;
}
.staff-rec-ab{
	position: absolute;
	bottom: 1%;
	left: 50%;
	transform: translateX(-50%);
}
.fv-ab{
	position: absolute;
	bottom: 2%;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	z-index: 10; /* 前面に表示 */
}
.ticket-ab{
	position: absolute;
	bottom: 2%;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	z-index: 10; /* 前面に表示 */
}
.last-ab{
	position: absolute;
	bottom: 6%;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
}
.vk_faq .vk_faq_title:before{
	color: #3e9b9e;
}
.vk_faq .vk_faq_content:before{
	color: #e32023;
}
/* cvエフェクト */
/* アニメーション効果を追加 */
.animated-button-link {
    position: relative;
    display: block;
    text-decoration: none;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
}
/* キラッと光るエフェクト */
.animated-button-link:before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: shiny-btn 1.7s ease-in-out infinite;
    z-index: 1;
}
@keyframes shiny-btn {
    0% {
        -webkit-transform: scale(0) rotate(45deg);
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    80% {
        -webkit-transform: scale(0) rotate(45deg);
        transform: scale(0) rotate(45deg);
        opacity: 0.5;
    }
    81% {
        -webkit-transform: scale(4) rotate(45deg);
        transform: scale(4) rotate(45deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: scale(50) rotate(45deg);
        transform: scale(50) rotate(45deg);
        opacity: 0;
    }
}
.fv-ab .animated-button-link .wp-block-image,
.staff-rec-ab .animated-button-link .wp-block-image,
.last-ab .animated-button-link .wp-block-image{
    animation: fuwafuwa 2s linear infinite;
    border-radius: 15px;
    margin: 0;
	margin-top: 3px;
    scale: 1;
}
.animated-button-link img {
    border-radius: 15px;
    display: block;
    width: 100%;
    position: relative;
    z-index: 0;
}
/* ふわふわアニメーション */
@keyframes fuwafuwa {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}
/* 通常のふわふわ動くアニメーション（他の場所用） */
.animated-button-link .wp-block-image {
    animation: fuwafuwa 2s linear infinite;
    border-radius: 15px;
    scale: 1;
}
/* 通常配置のボタン用（position: absoluteを使わない場合） */
.animated-button-link.normal-position {
    position: relative;
    display: inline-block; /* inline-blockに変更 */
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
	margin: 0 0 20px 0; /* 上下にマージンを追加 */
}

/* 通常配置のボタンのキラッと光るエフェクト */
.animated-button-link.normal-position:before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    animation: shiny-btn 1.7s ease-in-out infinite;
    z-index: 1;
}

/* 通常配置のボタンのふわふわアニメーション */
.animated-button-link.normal-position .wp-block-image {
    animation: fuwafuwa 2s linear infinite;
    border-radius: 15px;
    scale: 1;
    margin-top: 3px; /* 解決策として追加 */
}

.animated-button-link.normal-position img {
    border-radius: 15px;
    display: block;
    width: 100%;
    position: relative;
    z-index: 0;
}


/* トップページのみ余白なし */
body.home .ast-container {
    padding: 0;
}

body.home #page {
    padding: 0;
}

/* トップページ以外は余白を追加 */
body:not(.home) .ast-container {
    padding: 0 15px;
}

body:not(.home) #page {
    padding: 0 15px;
    box-sizing: border-box;
}

/* メインコンテンツエリアにも余白 */
body:not(.home) #main {
    padding: 0 !important;
}

body:not(.home) .entry-content {
    padding: 0 !important;
}

/* WooCommerceページの余白調整 */
body:not(.home) .woocommerce {
    padding: 0 !important;
}

body:not(.home) .woocommerce-cart {
    padding: 0 !important;
}

body:not(.home) .woocommerce-checkout {
    padding: 0 !important;
}

/* has-paddingクラス */
.has-padding {
    padding: 0 15px;
}

/* 画像は基本的にpadding無し（全幅表示） */
.entry-content img {
    width: 100%;
    height: auto;
/*     padding: 0; */
    display: block;
}
.pds1{
	padding: 0 2em;
}
.mt1{
	margin-top: 1em;
}

/* 商品リストのスタイリング */
.custom-product-container {
    background: white;
}

.custom-product-list {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}

/* リストアイテムもpadding調整 */
.custom-product-list li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.custom-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    min-height: 70px;
}

.custom-product-item:hover {
    background: #f9f9f9;
}

/* 商品情報部分 */
.product-info {
    flex: 1;
    padding-right: 15px;
}

/* 商品名（divに変更後） */
.custom-product-container .custom-product-list .product-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
}

/* 価格 */
.custom-product-container .custom-product-list .product-price {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.custom-product-container .custom-product-list .product-price .woocommerce-Price-amount {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* 在庫警告 */
.custom-product-container .custom-product-list .stock-warning {
    background: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 8px;
    display: inline-block;
}

/* ボタンエリア */
.custom-product-container .custom-product-list .product-button {
    flex-shrink: 0;
    width: 140px;
    text-align: right;
}

/* カートに入れるボタン（基本アクション - 高級黒） */
.custom-product-container .custom-product-list .custom-add-to-cart-btn {
    background: linear-gradient(145deg, #1f2937, #374151);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
    width: 140px;
    height: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 8px rgba(31, 41, 55, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #374151, #4b5563);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(31, 41, 55, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #6b7280;
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn:active {
    transform: translateY(0px);
    box-shadow: 
        0 2px 4px rgba(31, 41, 55, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* カート数表示時のスタイル（濃いグレー） */
.custom-product-container .custom-product-list .custom-add-to-cart-btn.has-items {
    background: linear-gradient(145deg, #4b5563, #6b7280);
    box-shadow: 
        0 4px 8px rgba(75, 85, 99, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #9ca3af;
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn.has-items:hover {
    background: linear-gradient(145deg, #6b7280, #9ca3af);
    box-shadow: 
        0 6px 12px rgba(75, 85, 99, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ボタンの状態 */
.custom-product-container .custom-product-list .custom-add-to-cart-btn.loading {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    position: relative;
    box-shadow: 
        0 4px 8px rgba(245, 158, 11, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn.success {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    box-shadow: 
        0 4px 8px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-product-container .custom-product-list .custom-add-to-cart-btn.error {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 
        0 4px 8px rgba(239, 68, 68, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 売り切れボタン */
.custom-product-container .custom-product-list .sold-out-button {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: not-allowed;
    min-width: 140px;
    width: 140px;
    height: 40px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 4px rgba(156, 163, 175, 0.2),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* ローディングアニメーション */
.custom-product-container .custom-product-list .custom-add-to-cart-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* カートを見るボタン（シンプル版 - 立体感削減） */
.go-to-cart-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    position: relative;
}

.go-to-cart-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.go-to-cart-btn:active {
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
}

.go-to-cart-btn:focus,
.go-to-cart-btn:visited {
    color: white !important;
    text-decoration: none !important;
    outline: none;
}

/* 無効状態 */
.go-to-cart-btn:disabled,
.go-to-cart-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px rgba(156, 163, 175, 0.2);
}

/* カート数バッジ（完全な円形） */
.cart-count-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
    border: 2px solid white;
}

/* カートボタンコンテナ（背景削除） */
.cart-button-container {
    background: white;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

/* フローティングカート削除 */
.floating-cart {
    display: none !important;
}

/* カート詳細ポップアップ削除 */
.cart-details {
    display: none !important;
}

/* 通知メッセージスタイル */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 200px;
    display: none;
}

.cart-notification.success {
    background: #27ae60;
}

.cart-notification.error {
    background: #e74c3c;
}
/* カートページ */
/* 商品横にある価格の削除 */
.wc-block-cart-item__total {
    display: none !important;
}

/* モバイル対応 */
@media (max-width: 420px) {
    body #page {
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    body {
        background: white;
    }
    
    /* トップページ以外のモバイル余白調整 */
    body:not(.home) .ast-container {
        padding: 0 10px;
    }
    
    body:not(.home) #page {
        padding: 0 10px;
    }
    
    .custom-product-container .custom-product-list .custom-product-item {
        padding: 15px 0;
        min-height: 60px;
    }
    
    .custom-product-container .custom-product-list .product-title {
        font-size: 15px;
    }
    
    .custom-product-container .custom-product-list .custom-add-to-cart-btn,
    .custom-product-container .custom-product-list .sold-out-button {
        min-width: 120px;
        width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .custom-product-container .custom-product-list .product-button {
        width: 120px;
    }
    
    .go-to-cart-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .cart-count-badge {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }
}
/* FAQ */
.faq-container{
	padding: 0 1em;
}
.attention-container{
	margin: 1em 0;
	line-height: 1.5;
}
/* 商品ページ */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
}

.woocommerce div.product div.images {
    margin-bottom: 20px;
}