 /*    amazonテンプレートここしか全ページで見ているものが無い   */
.affi-container
 {
    display: grid;
    place-content: center;
    margin-top: 30px;
    margin-bottom: 60px;
}
.affi-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    text-decoration: none;
    color: inherit;
    height: 100%;
    width:237px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.affi-img-wrapper {
    width: 100%;
    /* height: 260px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.affi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
#tenmil img
 {
    max-width: 100%;
}
.affi-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    border:none !important;
}
.affi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.affi-catch-copy {
    background: #ffeb3b;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.affi-title
 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.affi-merit
 {
    font-size: 12px;
    color: #444;
    margin-bottom: 5px;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.affi-merit-label
 {
    display: inline-block;
    background: #ff4081;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}
.affi-actions {
	margin-top:5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color:#fff !important;}
.affi-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(to bottom, #ff9900, #ff8c00);
    color: white !important;
    padding: 12px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    line-height: 1.2;
    cursor: pointer;
}