@charset "utf-8";
/* =========================================
AI要約ボタン
========================================= */
.ai-summary-btn {
    display: inline-flex!important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-image: linear-gradient(45deg, #1e40af 0%, #7e22ce 100%);
    background-size: 200% auto;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.ai-summary-btn img{
    width:25px;
}

.ai-summary-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ai-summary-btn:hover {
    background-position: right center;
}

.ai-summary-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ai-summary-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    margin-bottom: 30px;
}

.ai-summary-box {
    position: relative;
    display: flex;
    padding: 24px 24px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background: url('/api/itemsummary/img/bg-itemsummary.png') 50% / cover no-repeat;
    box-shadow: 0 0 5px 0 #0003;
    overflow: hidden;
}

.ai-summary-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #fff;
    opacity: 0.85;
}

.ai-summary-box > * {
    position: relative;
    z-index: 1;
}

.ai-summary-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    padding-bottom: 16px;
    border-bottom: 1px solid #d9d9d9;
}

.ai-summary-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}
.ai-summary-header-title img{
    width:25px;
}

.ai-summary-header-text {
    color: rgba(0, 0, 0, 0.48);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.ai-summary-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 16px;
    align-self: stretch;
}

.ai-summary-title {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.56);
}

.ai-summary-desc {
    align-self: stretch;
    padding-bottom: 8px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
}

.ai-summary-tags-header {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.56);
    margin: 0;
    font-size: 14px;
}

.ai-summary-tags {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 8px;
    align-self: stretch;
    flex-wrap: wrap;
}

.ai-summary-tag-item {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    background-color: #ebebeb;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
}

.ai-summary-note {
    display: flex;
    align-items: center;
    align-self: stretch;
    font-size: 11px;
    color: #868686;
}

.ai-summary-icon-info {
    height: 14px;
    width: 14px;
    margin-right: 4px;
    fill: currentColor;
}



/* =========================================
AI要約 ローディング
========================================= */
.ai-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    border-radius: 5px;
    background: url('/api/itemsummary/img/bg-itemsummary.png') 50% / cover no-repeat;
    margin: 50px 0 20px;
    position:relative;
}
.ai-loading-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: #fff;
    opacity: 0.85;
}

.ai-loading-icon {
    width: 36px;
    height: 36px;
    animation: ai-bounce 2s ease-in-out infinite;
}
.ai-loading-text,
.ai-loading-subtext{
    position: relative;
    z-index: 1;
}

@keyframes ai-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-loading-text {
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #7e22ce 50%, #1e40af 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ai-shine 2s linear infinite;
}

@keyframes ai-shine {
    to { background-position: 200% center; }
}

.ai-loading-subtext {
    font-size: 12px;
    color: #888888;
    font-weight: normal;
}



/* =========================================
AI要約 全体
========================================= */
.ai-summary-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 0;
    margin: 0 0 20px;
    opacity: 0;
    animation: ai-fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ai-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}