/**
 * Oripa Ranking - フロント表示スタイル
 * スタイリッシュなカードデザイン
 */

/* コンテナ */
.oripa-ranking-tate {
    border-radius: 16px;
    overflow: hidden;
    margin: 32px 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* タイトル */
.oripa-ranking-tate__title {
    background: linear-gradient(135deg, #d8fa00 0%, #c4e600 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 12px 20px;
    font-weight: 800;
    font-size: 1.1em;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

/* 各項目 */
.oripa-ranking-tate__item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 2px solid #d9d9d9;
    align-items: flex-start;
    background: #fff;
}

.oripa-ranking-tate__item:last-child {
    border-bottom: none;
}

/* 左側エリア（ランキング + ロゴ） */
.oripa-ranking-tate__left {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f5;
    padding: 16px 16px 10px;
    border-radius: 8px;
}

/* ランキング + NEWバッジ 横並び */
.oripa-ranking-tate__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* ランキングタイトル - 小さく */
.oripa-ranking-tate__rank-title {
    background: #d8fa00;
    text-align: center;
    padding: 9px 12px 6px;
    font-weight: 700;
    font-size: 0.85em;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.oripa-ranking-tate__rank-title span {
    margin-left: 4px;
    font-size: 1.1em;
    color: #1a1a1a;
    line-height: 1;
}

/* NEWバッジ */
.oripa-ranking-tate__new {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ロゴエリア */
.oripa-ranking-tate__logo {
    text-align: center;
    position: relative;
}

/* ロゴリンク */
.oripa-ranking-tate__logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サムネイル - スクエア・大きく */
.oripa-ranking-tate__logo-img {
    height: 110px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* サービス名 */
.oripa-ranking-tate__service-name {
    display: block;
    font-weight: 700;
    font-size: 1em;
    color: #1a1a1a;
}

/* コンテンツエリア */
.oripa-ranking-tate__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ハイライト文言 */
.oripa-ranking-tate__highlight {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 6px;
    line-height: 1.5;
    padding-left: 12px;
    color: #1a1a1a;
    border-left: 5px solid #d8fa00;
}

.oripa-ranking-tate__highlight.--red {
    color: #d32f2f;
}

/* ボーナス文言 */
.oripa-ranking-tate__bonus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 0.9em;
    font-weight: 600;
}

.oripa-ranking-tate__bonus-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #aac308;
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* コードエリア */
.oripa-ranking-tate__codes {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.oripa-ranking-tate__code-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oripa-ranking-tate__code-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* コピー可能コード */
.oripa-ranking-tate__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.oripa-ranking-tate__code-text {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.8em;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.oripa-ranking-tate__code-btn {
    background: #d8fa00;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 0.75em;
    font-weight: 700;
}

.oripa-ranking-tate__code.copied .oripa-ranking-tate__code-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
}

/* CTAボタン - 既存サイトの.c-btn--ctaを使用 */
.oripa-ranking-tate__cta {
    margin-top: 8px;
    font-size: 1rem;
}


/* スマホ対応 */
@media (max-width: 768px) {
    .oripa-ranking-tate {
        margin: 24px 0;
        border-radius: 12px;
    }
    
    .oripa-ranking-tate__title {
        padding: 12px 16px;
        font-size: 1em;
    }
    
    .oripa-ranking-tate__item {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    .oripa-ranking-tate__left {
        flex: none;
        width: 100%;
        padding: 12px;
    }
    
    .oripa-ranking-tate__badges {
        justify-content: center;
    }
    
    .oripa-ranking-tate__logo-img {
        height: 140px;
        margin: 0 auto;
    }
    
    .oripa-ranking-tate__content {
        width: 100%;
    }
    
    .oripa-ranking-tate__highlight {
        font-size: 1em;
    }
    
    .oripa-ranking-tate__codes {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .oripa-ranking-tate__code-item {
        align-items: center;
    }
}
