/* 詳細ページ専用スタイル */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #0969da;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0860ca;
    text-decoration: underline;
}

/* 素材詳細メインコンテナ */
.item-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    overflow: hidden;
}

/* 詳細ヘッダー */
.detail-header {
    padding: 2rem;
    border-bottom: 1px solid #d1d9e0;
    background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
}

.detail-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #24292f;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* メイン画像 */
.detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
}

.detail-image img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 6px;
}

.no-image {
    color: #656d76;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 3rem;
}

/* 詳細コンテンツ */
.detail-content {
    padding: 0;
}

/* 詳細セクション */
.detail-section {
    padding: 2rem;
    border-bottom: 1px solid #d1d9e0;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* タグ */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2d48a3;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #93c5fd;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

/* 説明 */
.description {
    color: #656d76;
    line-height: 1.8;
    font-size: 1rem;
    background: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

/* 素材リスト（折りたたみ） */
.item-list-toggle {
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    overflow: hidden;
}

.toggle-button {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #24292f;
    transition: background-color 0.2s ease;
}

.toggle-button:hover {
    background: #eef2f5;
}

.item-list-content {
    border-top: 1px solid #d1d9e0;
    padding: 1.5rem;
    background: #ffffff;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.set-list-item-name {
    background: #f6f8fa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #d1d9e0;
    font-size: 0.875rem;
    color: #24292f;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 規約情報 */
.terms-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

.terms-type {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #93c5fd;
}

.terms-link {
    color: #0969da;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.terms-link:hover {
    color: #0860ca;
    text-decoration: underline;
}

/* ダウンロード・購入セクション */
.download-section {
    border-radius: 8px;
    border: 1px solid #d1d9e0;
    overflow: hidden;
}

.download-section.free {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
    padding: 1.5rem;
}

.download-section.free .price-option,
.free-download-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #22c55e;
    border-radius: 8px;

    transition: box-shadow 0.2s ease;
}

.download-section.free .price-option:hover,
.free-download-container:hover {
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}
.download-section.paid {
    background: #f6f8fa;
}

.download-section h3 {
    background: #0969da;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.booth-options,
.dlsite-option {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.price-option:hover {
    box-shadow: 0 2px 8px rgba(36, 41, 47, 0.1);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.size-info {
    color: #656d76;
    font-size: 0.875rem;
    font-weight: 500;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #24292f;
}

.free-price {
    color: #16a34a;
}

/* ボタン */
.download-button,
.purchase-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

/* ダウンロードボタン内のテキストスタイル */
.download-button-text {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-count-small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

.free-download {
    background: #22c55e;
    color: white;
}

.free-download:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.booth-button {
    background: #ff6b35;
    color: white;
}

.booth-button:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.dlsite-button {
    background: #0969da;
    color: white;
}

.dlsite-button:hover {
    background: #0860ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(9, 105, 218, 0.3);
}

.download-unavailable {
    color: #656d76;
    font-style: italic;
    padding: 0.75rem;
}

/* メタ情報 */
.meta-info {
    background: #f6f8fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d1d9e0;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #d1d9e0;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-weight: 600;
    color: #24292f;
}

.meta-value {
    color: #656d76;
}