.simple-terminal-rank-container {
    background-color: #f8fbff;
    border: 2px solid #d0e3f7;
    border-radius: 12px;
    padding: 24px;
    margin: 2em 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #334155;
}

.str-header {
    text-align: center;
    margin-bottom: 30px;
}

.str-head--desktop { margin-bottom: 10px; }


.str-header-title {
    display: block;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #004a87;
    font-weight: bold;
    line-height: 1.3;
}

.str-header-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.str-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 74, 135, 0.05);
}

.str-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.str-head--mobile {
    display: none;
}

.str-head-text {
    flex: 1;
    min-width: 0;
}

.str-logo {
    flex: 0 0 auto;
    width: 96px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.str-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.8);
    transform-origin: center;
    display: block;
}


.str-rank-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    width: 36px;
    height: 36px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.str-r-1 { background: linear-gradient(135deg, #ffd700, #f39c12); }
.str-r-2 { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.str-r-3 { background: linear-gradient(135deg, #e67e22, #d35400); }
.str-r-any { background: #004a87; }

.str-catch {
    display: block;
    color: #e11d48;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.str-main {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.str-img-box {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    min-height: 100px;
}

.str-img-box img {
    max-width: 85%;
    height: auto;
    border: none !important;
}

.str-info { flex: 1; }

.str-name {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #004a87;
    margin-bottom: 12px;
}

.str-name a {
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    padding-bottom: 4px;
}

.str-name a:hover {
    color: #0a63a8;
}
.str-name a::after {
    content: "\f35d";
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75em;
    margin-left: 4px;
}

.str-name a:hover::after {
    opacity: 0.9;
}

.str-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.str-spec-item {
    background: #f7fafc;
    padding: 8px;
    border-radius: 4px;
    border-left: 5px solid #004a87;
    position: relative;
}

.str-label-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.str-label {
    font-size: 0.6rem;
    color: #64748b;
    white-space: nowrap;
}

.str-val {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.2;
}

.str-val .red,
.str-val.red {
    color: #e11d48;
}

.str-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #4f8ef7;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.post_content .str-help-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
}

.str-tooltip {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1000;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.str-tooltip--floating {
    position: fixed;
    bottom: auto;
    left: 0;
    transform: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.str-tooltip--floating.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.str-tooltip-float .str-help-icon:hover .str-tooltip,
.str-tooltip-float .str-help-icon.is-open .str-tooltip {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.str-tooltip-host {
    position: relative;
    z-index: 5;
}

.str-tooltip a {
    color: #9bd5ff;
    text-decoration: underline;
}

.str-tooltip a:hover {
    color: #c8e8ff;
}

.str-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.str-tooltip-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: block;
}

.post_content .str-tooltip-list {
    padding-left: 0 !important;
}

.str-tooltip-item {
    display: block;
    margin-bottom: 4px;
}

.str-tooltip-item:last-child { margin-bottom: 0; }

.str-desc {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}

.str-btns {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.str-btns a,
.str-btn {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.str-btns a {
    background: #ff9800;
    color: #fff !important;
    box-shadow: 0 3px 0 #e68900;
}

.str-btns a:hover { transform: translateY(2px); box-shadow: 0 1px 0 #e68900; }

.btn-official {
    background: #ff9800;
    color: #fff !important;
    box-shadow: 0 3px 0 #e68900;
}

.btn-official:hover { transform: translateY(2px); box-shadow: 0 1px 0 #e68900; }

.str-btns .btn-review {
    background: #fff;
    color: #004a87 !important;
    border: 1px solid #004a87;
    box-shadow: none;
}

.str-btns .btn-review:hover {
    transform: translateY(2px);
    box-shadow: none;
}

@media (max-width: 900px) {
    .str-grid { grid-template-columns: repeat(2, 1fr); }
    .str-logo { width: 80px; height: 40px; }
}

@media (max-width: 600px) {
    .str-main { flex-direction: column; align-items: center;gap: 10px; }
    .str-head--desktop { display: none; }
    .str-head--mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
    }
    .str-img-box { width: 70%; margin: 10px 0; }
    .str-img-box{min-height: auto;padding: 0.5em;}
    .str-btns { flex-direction: column; }
    .str-name, .str-catch { text-align: center; }
    .str-grid { grid-template-columns: repeat(2, 1fr); }
    .str-logo { display: none; }
    .str-head-text { text-align: center; }
}

.str-footer {
    text-align: center;
    margin-top: 10px;
}

.str-footer-link {
    color: #004a87;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: underline;
}

.str-footer-link:hover {
    color: #0a63a8;
    text-decoration-color: #0a63a8;
    text-decoration: none;
}
